/**
 * NCU Custom Styles
 * National Cyber Unit website customizations
 */

/* ============================================
   COLOR PALETTE
   ============================================ */
:root {
    --ncu-primary-blue: #003366;
    --ncu-secondary-white: #ffffff;
    --ncu-accent-red: #dc143c;
    --ncu-accent-gold: #ffd700;
    --ncu-green: #28a745;
    --ncu-yellow: #ffc107;
    --ncu-orange: #fd7e14;
    --ncu-red: #dc3545;
}

/* ============================================
   HERO SECTION
   ============================================ */
.ncu-hero-section {
    background: linear-gradient(135deg, var(--ncu-primary-blue) 0%, #004080 100%);
    color: var(--ncu-secondary-white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

.ncu-hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ncu-secondary-white);
}

.ncu-hero-section .ncu-hero-subheadline {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ============================================
   THREAT STATUS WIDGET
   ============================================ */
.ncu-threat-status-widget {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.ncu-threat-status-widget.ncu-threat-small {
    padding: 8px 16px;
    font-size: 12px;
}

.ncu-threat-status-widget.ncu-threat-normal {
    padding: 12px 24px;
    font-size: 14px;
}

.ncu-threat-status-widget.ncu-threat-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Threat Status Colors */
.ncu-threat-status-widget[style*="background-color: #28a745"] {
    background-color: var(--ncu-green) !important;
}

.ncu-threat-status-widget[style*="background-color: #ffc107"] {
    background-color: var(--ncu-yellow) !important;
}

.ncu-threat-status-widget[style*="background-color: #fd7e14"] {
    background-color: var(--ncu-orange) !important;
}

.ncu-threat-status-widget[style*="background-color: #dc3545"] {
    background-color: var(--ncu-red) !important;
}

/* ============================================
   DUAL-PATH CTAs
   ============================================ */
.ncu-dual-path-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 60px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ncu-cta-card {
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ncu-cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.ncu-cta-card.cnii {
    background-color: var(--ncu-primary-blue);
    color: var(--ncu-secondary-white);
}

.ncu-cta-card.public {
    background-color: #f0f4f8;
    color: var(--ncu-primary-blue);
    border: 2px solid var(--ncu-primary-blue);
}

.ncu-cta-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.ncu-cta-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.ncu-cta-button {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ncu-cta-card.cnii .ncu-cta-button {
    background-color: var(--ncu-accent-red);
    color: var(--ncu-secondary-white);
    border-color: var(--ncu-accent-red);
}

.ncu-cta-card.cnii .ncu-cta-button:hover {
    background-color: #b8122e;
    border-color: #b8122e;
}

.ncu-cta-card.public .ncu-cta-button {
    background-color: var(--ncu-primary-blue);
    color: var(--ncu-secondary-white);
    border-color: var(--ncu-primary-blue);
}

.ncu-cta-card.public .ncu-cta-button:hover {
    background-color: #002244;
    border-color: #002244;
}

/* ============================================
   FIXED REPORT INCIDENT BUTTON
   ============================================ */
.ncu-report-incident-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background-color: var(--ncu-accent-red);
    color: var(--ncu-secondary-white);
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.ncu-report-incident-fixed:hover {
    background-color: #b8122e;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    color: var(--ncu-secondary-white);
}

/* ============================================
   CNII PAGES STYLING
   ============================================ */
.template-cnii .entry-content {
    font-family: Arial, Helvetica, sans-serif;
}

.template-cnii .entry-content h2,
.template-cnii .entry-content h3 {
    color: var(--ncu-primary-blue);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.template-cnii .entry-content strong {
    color: var(--ncu-primary-blue);
    font-weight: 600;
}

.template-cnii .entry-content ul li {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* ============================================
   PUBLIC PAGES STYLING
   ============================================ */
.template-public .entry-content {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.8;
}

.template-public .entry-content h2,
.template-public .entry-content h3 {
    color: #0066cc;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 15px;
}

.template-public .entry-content p {
    margin-bottom: 20px;
}

.template-public .entry-content ul li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.template-public .entry-content strong {
    color: #0066cc;
    font-weight: 600;
}

/* ============================================
   THREAT STATUS PAGE
   ============================================ */
.ncu-threat-banner {
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 4px;
}

/* --------------------------------------------
   Formal Threat Level Table Styling
---------------------------------------------*/
.modern-threat-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 2px solid #1f2937;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
}

.modern-threat-table thead {
    background: #1f2937;
    color: #fff;
}

.modern-threat-table thead th {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    border: 1px solid #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-threat-table tbody tr {
    border-bottom: 2px solid #1f2937;
}

.modern-threat-table tbody td {
    padding: 16px;
    line-height: 1.6;
    border-right: 1px solid #d1d5db;
    vertical-align: top;
}

.modern-threat-table tbody tr:last-child {
    border-bottom: 2px solid #1f2937;
}

/* Status Column - Bold Text */
.modern-threat-table tbody td:first-child {
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Color Swatch Column */
.color-swatch {
    display: inline-block;
    width: 40px;
    height: 24px;
    border: 2px solid #1f2937;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.color-swatch-green {
    background-color: #10b981;
}

.color-swatch-yellow {
    background-color: #facc15;
}

.color-swatch-orange {
    background-color: #f97316;
}

.color-swatch-red {
    background-color: #ef4444;
}

.color-label {
    font-weight: 700;
    display: inline-block;
    vertical-align: middle;
}

/* Row Background Colors - Distinct Visual Separation */
.level-low {
    background-color: #f0fdf4;
    border-left: 4px solid #10b981;
}

.level-moderate {
    background-color: #fffbeb;
    border-left: 4px solid #facc15;
}

.level-high {
    background-color: #fff7ed;
    border-left: 4px solid #f97316;
}

.level-severe {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
}

/* CNII Action Column - Formal Bulleted Text */
.cnii-action {
    font-style: normal;
}

.cnii-action ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.cnii-action li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.cnii-action strong {
    font-weight: 700;
    color: #1f2937;
}

/* Public Action Column - Accessible, Direct Text */
.public-action {
    font-weight: 500;
    color: #374151;
    line-height: 1.7;
}

.public-action strong {
    font-weight: 700;
    color: #1f2937;
}

/* Bold text emphasis throughout */
.modern-threat-table tbody td strong {
    font-weight: 700;
    color: #1f2937;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media screen and (max-width: 768px) {
    .ncu-hero-section h1 {
        font-size: 32px;
    }
    
    .ncu-hero-section .ncu-hero-subheadline {
        font-size: 18px;
    }
    
    .ncu-dual-path-ctas {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ncu-cta-card {
        padding: 30px 20px;
    }
    
    .ncu-report-incident-fixed {
        top: 10px;
        right: 10px;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .ncu-threat-status-table {
        font-size: 14px;
    }
    
    .ncu-threat-status-table th,
    .ncu-threat-status-table td {
        padding: 10px;
    }

    /* MOBILE RESPONSIVE (Card Layout - Improved Readability) */
    /* Hide table header */
    .modern-threat-table thead {
        display: none;
    }

    /* Card-like row container */
    .modern-threat-table tbody tr {
        display: block;
        margin-bottom: 18px;
        border-radius: 16px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
        padding: 18px 18px 10px;
        background: #fff;
    }

    /* Stack each cell vertically */
    .modern-threat-table tbody td {
        display: block;
        width: 100%;
        border: none !important;
        padding: 12px 0;
        font-size: 15px;
        line-height: 1.55;
        text-align: left;
    }

    /* Label above content (clearer UX) */
    .modern-threat-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-weight: 700;
        color: #374151;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    /* Remove bottom padding from last cell */
    .modern-threat-table tbody td:last-child {
        padding-bottom: 0;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.ncu-text-primary {
    color: var(--ncu-primary-blue);
}

.ncu-bg-primary {
    background-color: var(--ncu-primary-blue);
}

.ncu-text-accent {
    color: var(--ncu-accent-red);
}

.ncu-bg-accent {
    background-color: var(--ncu-accent-red);
}

.ncu-section-spacing {
    padding: 60px 0;
}



