/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --primary-blue: #0a1a2a;
    --secondary-blue: #1e3a5f;
    --accent-blue: #2d5aa0;
    --accent-gold: #d4af37;
    --glow-color: rgba(45, 90, 160, 0.3);
    --deep-grey: #1a1a1a;
    --medium-grey: #2d2d2d;
    --light-grey: #4a4a4a;
    --silver: #c0c0c0;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.6;
    color: var(--deep-grey);
    background-color: var(--white);
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Header Styles */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-blue);
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    stroke: var(--white);
    flex-shrink: 0;
    background: linear-gradient(135deg, #1a237e 0%, #263238 100%);
    padding: 8px;
    border-radius: 6px;
}

.logo-text {
    font-size: 1.25rem;
    line-height: 1.37rem;
    color: #1a237e;
    font-weight: 700;
    display: flex;
    flex-direction: column;
}

.logo-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--light-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-navigation .nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--deep-grey);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    transition: none;
}

.nav-icon {
    width: 16px;
    height: 16px;
    margin-right: 0px;
    stroke: currentColor;
    position: relative;
    top: 3px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
}

/* Main Content */
.site-main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    min-height: 900px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/hero-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

/*.hero h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--white);
    margin: 1rem auto;
    opacity: 0.2;
}*/

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    color: var(--primary-blue);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    gap: 12px;
}

.hero-cta:hover {
    background: var(--off-white);
    box-shadow: var(--shadow-heavy);
}

.hero-cta .arrow-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Section Styles */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

.section-header p {
    font-size: 1.3rem;
    color: var(--light-grey);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Section */
/*.features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}*/

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--light-grey);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Authority Section */
.authority-section {
    background: linear-gradient(135deg, var(--off-white) 0%, #f1f3f4 100%);
}

.authority-content h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.authority-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--deep-grey);
    margin-bottom: 1.5rem;
}

.authority-content .btn {
    margin-top: 1rem;
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
}

.responsibilities-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.responsibilities-list {
    list-style: none;
    padding: 0;
}

.responsibilities-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.responsibilities-list li:last-child {
    border-bottom: none;
}

.responsibilities-list strong {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
}

.responsibilities-list span {
    color: var(--light-grey);
    line-height: 1.6;
    font-size: 1rem;
}

/* Authority Page Header */
.authority-header {
    background-image: url('/assets/images/authority-bg.avif');
    background-size: cover;
    background-position: center;
    /*background-attachment: fixed;*/
    position: relative;
}

.authority-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 35, 126, 0.85), rgba(38, 50, 56, 0.85));
    z-index: 1;
}

.authority-header .container {
    position: relative;
    z-index: 2;
}

/* Authority Page Sections */
.recognition-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.recognition-card {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.recognition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
}

.recognition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.recognition-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.recognition-card p {
    color: var(--light-grey);
    line-height: 1.7;
    font-size: 1.05rem;
}

.operational-authority-section {
    background: var(--white);
}

.operational-authority-section .authority-content h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.operational-authority-section .authority-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--deep-grey);
    margin-bottom: 1.5rem;
}

.emergency-powers-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.emergency-powers-list {
    list-style: none;
    padding: 0;
}

.emergency-powers-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.emergency-powers-list li:last-child {
    border-bottom: none;
}

.emergency-powers-list strong {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
}

.emergency-powers-list span {
    color: var(--light-grey);
    line-height: 1.6;
    font-size: 1rem;
}

.independence-section {
    background: linear-gradient(135deg, var(--off-white) 0%, #f1f3f4 100%);
}

.independence-section .neutrality-content h3,
.independence-section .governance-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.independence-section .neutrality-content p,
.independence-section .governance-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--deep-grey);
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
}

.cta-section .section-header h2 {
    color: var(--white);
}

.cta-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    text-align: center;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    min-width: 200px;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 3rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-heavy);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-blue);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: var(--white);
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #1a237e 0%, #263238 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 26px;
    font-size: 15px;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-link {
    color: var(--silver);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgb(60, 80, 147, 0.75);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright {
    text-align: left;
    flex: 1;
    min-width: 300px;
    opacity: 0.5;
}

.footer-bottom-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    opacity: 0.3;
}

.verification-text {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-bottom-logo-icon {
    width: 28px;
    height: 28px;
    stroke: var(--white);
    flex-shrink: 0;
}

.footer-bottom-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-bottom-logo-text span:first-child {
    font-size: 1rem;
    line-height: 1.2;
    color: var(--white);
    font-weight: 700;
}

.footer-bottom-logo-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-bottom p {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 13px;
}

.footer-disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 35px;
    height: 35px;
    stroke: var(--white);
    flex-shrink: 0;
    /*background: linear-gradient(135deg, #313caf 0%, #101e25 100%);*/
    /*padding: 8px;*/
    border-radius: 6px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text span:first-child {
    font-size: 1.25rem;
    line-height: 1.37rem;
    color: var(--white);
    font-weight: 700;
}

.footer-logo-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-locations {
    list-style: none;
    padding: 0;
}

.footer-locations li {
    color: var(--silver);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Mobile responsive fixes for scenarios-grid */
    .scenarios-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem;
    }
    
    .scenario-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile responsive fixes for hierarchy-chart */
    .hierarchy-chart {
        padding: 0 1rem;
    }
    
    .hierarchy-level {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hierarchy-card {
        min-width: auto !important;
        width: 100% !important;
        padding: 1.5rem !important;
    }
    
    .supervisory-board {
        min-width: auto !important;
        width: 100% !important;
    }
    
    .supervisory-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    
    .profile-image {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto !important;
    }
    
    .second-tier .hierarchy-card,
    .third-tier .hierarchy-card {
        width: 100% !important;
        padding: 1.5rem !important;
    }
    
    .foundation-card {
        min-width: auto !important;
        width: 100% !important;
        padding: 1.5rem !important;
    }
}

/* Additional mobile breakpoint for very small screens */
@media (max-width: 480px) {
    .scenarios-grid {
        gap: 1rem !important;
        padding: 0 0.5rem;
    }
    
    .scenario-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .hierarchy-chart {
        padding: 0 0.5rem;
    }
    
    .hierarchy-card {
        padding: 1rem !important;
    }
    
    .supervisory-board {
        padding: 1rem !important;
    }
    
    .profile-image {
        width: 80px !important;
        height: 80px !important;
    }
    
    .second-tier .hierarchy-card,
    .third-tier .hierarchy-card {
        padding: 1rem !important;
    }
    
    .foundation-card {
        padding: 1rem !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.moveupbro {
    padding-top: 0 !important;
    margin-top: -100px;
}

/* The Last Line of Defense Section */
.last-line-section {
    background: var(--white);
    padding: 4rem 0;
}

.last-line-section .section-header h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.quote-box {
    position: relative;
    max-width: 900px;
    margin: 3rem auto;
    background: linear-gradient(145deg, rgb(119 255 0 / 8%), rgb(30 126 26 / 12%));
    border: 2px solid transparent;
    border-radius: 0;
    padding: 3.5rem 2.5rem;
    clip-path: polygon(0 0, calc(100% - 50px) 0, 100% 50px, 100% 100%, 50px 100%, 0 calc(100% - 50px));
    box-shadow: 0 0 40px rgb(0 255 0 / 0%), inset 0 0 40px rgba(26, 35, 126, 0.15);
    overflow: hidden;
}

.quote-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgb(0 255 0 / 12%) 50%, transparent 70%);
    clip-path: polygon(0 0, calc(100% - 50px) 0, 100% 50px, 100% 100%, 50px 100%, 0 calc(100% - 50px));
    z-index: -1;
}

.quote-box::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #00ff00, transparent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0.07;
    transform: rotate(15deg);
}

.quote-box blockquote {
    position: relative;
    margin: 0;
    font-style: normal;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--white);
    text-align: left;
    font-weight: 400;
}

.quote-box blockquote::before {
    content: '⚡';
    position: absolute;
    top: -2rem;
    left: -1.5rem;
    font-size: 2.5rem;
    color: #00ff00;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
    filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.4));
}

/* Typewriter Section */
.typewriter-section {
    background-color: #000000;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    /*border: 1px solid #00ff00;*/
    /*box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);*/
}

.typewriter-text {
    font-family: 'Courier New', monospace;
    color: #00ff00;
    line-height: 1.8;
}

.typewriter-line {
    display: block;
    margin-bottom: 0.5rem;
    animation: typewriter 0.0001s steps(1) infinite;
}

.typewriter-line:last-child {
    margin-bottom: 0;
    color: #00ff00;
    font-weight: bold;
}

@keyframes typewriter {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.8; }
}

/* Console Cursor */
.console-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: #00ff00;
    margin-left: 4px;
    animation: cursor-blink 2s infinite;
    vertical-align: text-bottom;
    position: relative;
    top: -2px;
}

@keyframes cursor-blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Crisis Response Scenarios Section */
.crisis-scenarios-section {
    background: var(--white);
    padding: 4rem 0;
}

/* Governance Hero Section */
.governance-hero {
    /*background-image: linear-gradient(rgba(26, 35, 126, 0.8), rgba(38, 50, 56, 0.8)), url('/assets/images/dollar.jpg');*/
    background-image:  linear-gradient(rgb(26 35 126 / 74%), rgb(38 50 56 / 66%)), url(/assets/images/dollar.jpeg);
    background-size: cover;
    background-position: center calc(50% - 40px);
    background-attachment: fixed;
    position: relative;
}

.governance-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 126, 0.3);
    z-index: 1;
}

.governance-hero .container {
    position: relative;
    z-index: 2;
}

/* Hierarchy of Authority Section */
.hierarchy-section {
    background: #f0f4f8;
    padding: 4rem 0;
}

.hierarchy-section .section-header h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.hierarchy-section .section-header p {
    color: var(--deep-grey);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hierarchy-chart {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hierarchy-level {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.hierarchy-level:last-child {
    margin-bottom: 0;
}

.hierarchy-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    text-align: center;
    min-width: 250px;
}

.second-tier .hierarchy-card,
.third-tier .hierarchy-card {
    width: 350px;
    padding: 1.5rem 2.5rem;
}

.supervisory-board {
    min-width: 400px;
    padding: 2rem;
}

.supervisory-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid var(--primary-blue);
}

.supervisory-text {
    flex: 1;
}

.supervisory-text h3 {
    margin-bottom: 0.5rem;
}

.supervisory-text .subtitle {
    margin-bottom: 0.75rem;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.supervisory-board h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.supervisory-board .subtitle {
    color: var(--deep-grey);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
}

.supervisory-board .description {
    color: var(--deep-grey);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.hierarchy-card h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.hierarchy-card .description {
    color: var(--deep-grey);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.foundation-card {
    min-width: 180px;
    padding: 1.75rem;
}

.foundation-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.foundation-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.foundation-card h4 {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.foundation-text {
    text-align: center;
    margin-top: 1.5rem;
}

.foundation-text p {
    color: var(--deep-grey);
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
}

.crisis-scenarios-section .section-header h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.crisis-scenarios-section .section-header p {
    color: var(--deep-grey);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.scenario-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.scenario-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.scenario-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.scenario-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 0;
}

.scenario-card > p {
    color: var(--deep-grey);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.response-protocol {
    background: #e3f2fd;
    border-left: 4px solid var(--primary-blue);
    padding: 1rem;
    border-radius: 4px;
}

.response-protocol h4 {
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.response-protocol p {
    color: var(--deep-grey);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Emergency Activation Timeline */
.timeline-section {
    background: var(--white);
    padding: 4rem 0;
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-phase {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    position: relative;
}

.timeline-phase:last-child {
    margin-bottom: 0;
}

.phase-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.phase-icon span {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 700;
}

.phase-content {
    flex: 1;
    position: relative;
}

.phase-content h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.phase-actions {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.phase-actions li {
    color: var(--deep-grey);
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.125rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.phase-actions li::before {
    content: '•';
    color: var(--accent-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.phase-timeline {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff8c00;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    line-height: 1;
}

/* Comms Page Header */
.comms-header {
    background-image: url('/assets/images/cont.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.comms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 35, 126, 0.85), rgba(38, 50, 56, 0.85));
    z-index: 1;
}

.comms-header .container {
    position: relative;
    z-index: 2;
}

/* Comms Page Dark Theme */
.comms-header + *,
.comms-header ~ * {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
}

.comms-header ~ .section {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
}

.comms-header ~ .section h2,
.comms-header ~ .section h3,
.comms-header ~ .section h4 {
    color: #ffffff !important;
}

.comms-header ~ .section p {
    color: #e0e0e0 !important;
}

.comms-header ~ .section li {
    color: #e0e0e0 !important;
}

/* Dark theme for specific Comms page sections */
.comms-header ~ .crisis-scenarios-section {
    background-color: #111111 !important;
}

.comms-header ~ .crisis-scenarios-section .scenario-card {
    background-color: #1a1a1a !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}

.comms-header ~ .crisis-scenarios-section .scenario-card h3 {
    color: #00ff00 !important;
}

.comms-header ~ .crisis-scenarios-section .scenario-card p {
    color: #cccccc !important;
}

.comms-header ~ .crisis-scenarios-section .scenario-card .response-protocol h4 {
    color: #00ff00 !important;
}

.comms-header ~ .timeline-section {
    background-color: #0f0f0f !important;
}

.comms-header ~ .timeline-section .timeline-phase {
    background-color: #1a1a1a !important;
    border: 1px solid #333333 !important;
}

.comms-header ~ .timeline-section .phase-icon {
    background-color: #00ff00 !important;
    color: #000000 !important;
}

.comms-header ~ .timeline-section .phase-timeline {
    background-color: #00ff00 !important;
    color: #000000 !important;
}

/* Dark theme for cards and grids */
.comms-header ~ .section .card {
    background-color: #1a1a1a !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}

.comms-header ~ .section .card h3 {
    color: #00ff00 !important;
}

.comms-header ~ .section .card p {
    color: #cccccc !important;
}

.comms-header ~ .section .grid-2,
.comms-header ~ .section .section .grid-3 {
    background-color: transparent !important;
}

/* Dark theme for buttons */
.comms-header ~ .section .btn-primary {
    background-color: #00ff00 !important;
    color: #000000 !important;
    border: 2px solid #00ff00 !important;
}

.comms-header ~ .section .btn-primary:hover {
    background-color: #00cc00 !important;
    border-color: #00cc00 !important;
}

.comms-header ~ .section .btn-secondary {
    background-color: transparent !important;
    color: #00ff00 !important;
    border: 2px solid #00ff00 !important;
}

.comms-header ~ .section .btn-secondary:hover {
    background-color: #00ff00 !important;
    color: #000000 !important;
}

/* Dark theme for lists */
.comms-header ~ .section ul li {
    border-bottom-color: #333333 !important;
}

.comms-header ~ .section ul li strong {
    color: #00ff00 !important;
}

/* Additional Comms page specific fixes */
.comms-header::before {
    background: none !important;
}

.comms-header ~ .section .quote-box blockquote::before {
    content: none !important;
}

.comms-header ~ .section .response-protocol {
    background-color: black;
    border-left-color: #00ff00 !important;
}

.comms-header ~ .section .response-protocol p {
    background-color: transparent !important;
    color: #cccccc !important;
}

.comms-header ~ .section .scenario-icon {
    background-color: #00ff00 !important;
    color: #000000 !important;
}

.comms-header ~ .section .scenario-icon svg path,
.comms-header ~ .section .scenario-icon svg line,
.comms-header ~ .section .scenario-icon svg circle {
    stroke: #000000 !important;
}

.comms-header ~ .section .phase-icon span {
    color: #000000 !important;
}

.comms-header ~ .section .card-icon {
    background-color: #00ff00 !important;
}

.comms-header ~ .section .card-icon svg path {
    fill: black;
}

.comms-header ~ .section .timeline-phase {
    position: relative;
    overflow: hidden;
}

.comms-header ~ .section .timeline-phase::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at top right, rgba(0, 255, 0, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.comms-header ~ .section .phase-actions li::before {
    color: #00ff00 !important;
}


.continuity-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 35, 126, 0.85), rgba(38, 50, 56, 0.85));
    z-index: 1;
}

.continuity-header .container {
    position: relative;
    z-index: 2;
}

/* Secure Command Centers Section */
.command-centers-section {
    background: var(--white);
}

.command-center-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.command-center-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.command-center-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.location-pin {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.5);
    color: black;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2;
}

.location-pin svg {
    fill: black;
}

.command-center-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.command-center-content {
    padding: 2rem;
}

.command-center-content h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.command-center-content p {
    color: var(--light-grey);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.command-center-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.command-center-features li {
    color: var(--deep-grey);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.command-center-features li:last-child {
    border-bottom: none;
}

.command-center-features li::before {
    content: '•';
    color: var(--accent-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Facilities Page Header */
.facilities-header {
    background-image: url('/assets/images/visiter-times-square.avif');
    background-size: cover;
    background-position: center;
    /*background-attachment: fixed;*/
    position: relative;
}

.facilities-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 35, 126, 0.85), rgba(38, 50, 56, 0.85));
    z-index: 1;
}

.facilities-header .container {
    position: relative;
    z-index: 2;
}

/* Authority Page Sections */



.mb35 {
    margin-bottom: 35px;
}



.chair_name {
    margin-bottom: 0 !important;
}

.chair_st {
    margin-bottom: 0 !important;
}


.p1 {
    padding: 1rem;
}

/* External Links Section Styles */
.external-links-container {
    max-width: 800px;
    margin: 0 auto;
}

.external-links {
    margin-top: 1.5rem;
}

.external-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    font-weight: 500;
}

.external-link:hover {
    background: var(--accent-blue);
    color: var(--white);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.external-link span {
    flex: 1;
    margin-right: 0.5rem;
}

.external-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.external-link:hover .external-icon {
    transform: scale(1.1);
}

/* Responsive adjustments for external links */
@media (max-width: 768px) {
    .external-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .external-icon {
        width: 16px;
        height: 16px;
    }

    .hero {
        min-height: 600px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .section .btn {
        margin-bottom: 15px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .header-content {
        padding: 1rem 0;
    }

    .site-header {
        zoom: 0.8;
    }
}
















