:root {
    --font-size-scale: 1;
    /* Default scale */
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Base font size scales with the variable */
    font-size: calc(16px * var(--font-size-scale));
    transition: font-size 0.3s ease;
}

/* Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background-color: #f1f5f9;
    color: #1e293b;
    line-height: 1.6;
    font-size: 1rem;
    /* Use rem for scaling */
}

body.no-scroll {
    overflow: hidden;
}

/* Accessibility Bar */
.accessibility-bar {
    background-color: #062a41;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 5px 40px;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .accessibility-bar {
        padding: 5px 15px;
        justify-content: center;
    }
}

.font-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.font-controls span {
    color: #cbd5e0;
    font-size: 0.8rem;
    font-weight: 600;
}

.font-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.font-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4caf50;
    color: #4caf50;
}

.font-btn.active {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
}

/* Home page splash screen */
#splash-screen {
    position: fixed;
    inset: 0;
    background-color: rgba(11, 60, 93, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo {
    width: 80px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: pulse-mini 1.5s ease-in-out infinite;
}

.logo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
}

.loader-ring {
    position: absolute;
    width: 95px;
    height: 95px;
    border: 2px solid transparent;
    border-top: 3px solid #ffffff;
    border-right: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    z-index: 1;
    animation: rotate-loader 0.8s linear infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

@keyframes rotate-loader {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-mini {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Header */
header {
    background-color: #0b3c5d;
    color: #ffffff;
    position: relative;
    /* Anchor for absolute positioned mobile elements */
}

.header-container {
    max-width: 100%;
    margin: auto;
    padding: 0;
    position: relative;
    /* Secondary anchor for mobile toggle */
}

.branding-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding: 4px 20px;
    background-color: #0b3c5d;
}

@media (max-width: 768px) {
    .branding-bar {
        padding: 5px 10px;
    }
}

header h1 {
    font-size: 1.625rem;
    font-weight: 700;
    flex: 1 1 auto;
    text-align: center;
    margin: 0 10px;
    letter-spacing: 0.5px;
    line-height: 1.05;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.25rem;
        margin: 0 10px;
    }
}

.header-logo {
    height: 113.52px;
    max-height: 126.72px;
    width: auto;
    object-fit: contain;
    padding: 0;
    display: block;
    flex-shrink: 0;
    align-self: center;
    transform: translateY(10%);
    transition: transform 0.3s ease, height 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .header-logo {
        height: 58px;
    }
}

/* Hide mobile toggle by default (desktop view) */
.mobile-nav-toggle {
    display: none;
}

.nav-bar {
    background-color: #062a41;
    display: flex;
    justify-content: center;
    padding: 6px 30px;
    /* Reduced vertical padding by 15% from 8px */
    margin: 10px auto 0;
    /* Removed bottom margin */
    border-radius: 25px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.3s, transform 0.2s;
}

nav a:hover {
    color: #4caf50;
    transform: translateY(-1px);
}

/* Alert Ticker */
.alert-ticker {
    background: #062a41;
    color: #ff9800;
    overflow: hidden;
    white-space: nowrap;
    height: 40px;
    display: flex;
    align-items: center;
    margin-top: 0;
    /* Explicitly zero out top margin */
    border-bottom: 2px solid #ff9800;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 25s linear infinite;
}

.ticker-content span {
    padding: 0 40px;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* Alert Type Colors */
.alert-info {
    color: #4caf50;
}

/* Green */
.alert-warning {
    color: #ffeb3b;
}

/* Yellow */
.alert-emergency {
    color: #f44336;
}

/* Red */
.alert-update {
    color: #03a9f4;
}

/* Blue */

.ticker-separator {
    color: rgba(255, 255, 255, 0.4);
    padding: 0 10px;
    font-size: 1.125rem;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-content:hover {
    animation-play-state: paused;
    cursor: pointer;
}

.ticker-content span {
    padding: 0 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.hero {
    position: relative;
    background: url('../images/Video wall set up.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 100px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    overflow: hidden;
}

/* Dark Gradient Overlay - Below Content (z-index: 1) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* Glassmorphism Container - Above Overlay (z-index: 2) */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: fadeInDown 1s ease-out;
    transition: transform 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
}

@media (hover: hover) {
    .hero-content:hover {
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transform: scale(1.015);
    }
}

.hero-logo {
    max-width: 207px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    transition: transform 0.3s ease;
    display: inline-block;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero p {
    color: #f5f5f5;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 15px;
        min-height: 400px;
    }

    .hero-content {
        padding: 25px 15px;
        margin: 0 10px;
        border-radius: 15px;
    }

    .hero h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-logo {
        max-width: 100px;
        margin-bottom: 15px;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Main Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

/* Section Title */
.section-title {
    font-size: 1.375rem;
    margin-bottom: 25px;
    border-left: 5px solid #0b3c5d;
    padding-left: 12px;
}

/* Cards Layout */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Card */
.card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: #0b3c5d;
    margin-bottom: 10px;
    font-size: 1.125rem;
}

.card p {
    font-size: 0.875rem;
}

/* Footer */
.site-footer {
    background-color: #0b3c5d;
    color: #ffffff;
    padding: 60px 0 0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    padding: 0 25px 50px;
}

.footer-column h4 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #81c784);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: #4caf50;
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #cbd5e0;
    line-height: 1.6;
}

.contact-item i {
    color: #4caf50;
    font-size: 1.1rem;
    margin-top: 4px;
}

.contact-item strong {
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* --- Organizational Hierarchy --- */
.hierarchy-level {
    display: none;
}

.hierarchy-level.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.section-subtitle {
    font-size: 1.5rem;
    color: #0b3c5d;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-division-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.main-division-card {
    background: linear-gradient(135deg, #0b3c5d, #1a365d);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(11, 60, 93, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.main-division-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #4caf50;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.main-division-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.main-division-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.main-division-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 60, 93, 0.25);
    background: linear-gradient(135deg, #1a365d, #2c3e50);
}

.sub-division-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.sub-division-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: default;
}

.sub-division-card h3 {
    color: #0b3c5d;
    font-size: 1.15rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sub-division-card h3 i {
    color: #4caf50;
    font-size: 1.25rem;
}

.sub-division-card p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
}

.sub-division-card.clickable-card {
    cursor: pointer;
    border-left: 5px solid #0b3c5d;
}

.sub-division-card.clickable-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #4caf50;
}

.back-button {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0b3c5d;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    transition: all 0.2s;
}

.back-button:hover {
    background: #e2e8f0;
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .contact-item i {
        margin-top: 0;
    }

    .footer-links a:hover {
        transform: scale(1.05);
    }
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h3 {
    color: #0b3c5d;
    margin-top: 25px;
    margin-bottom: 10px;
}

.about-content ul {
    list-style: none;
    padding-left: 20px;
}

.about-content ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.achievements-list i {
    color: #0b3c5d;
    width: 20px;
    text-align: center;
}

/* Analytics Page */
/* Analytics styles removed */

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-info {
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Ensure long email addresses or unbroken strings wrap inside contact cards */
.contact-info p {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.contact-info h3 {
    color: #0b3c5d;
    margin-bottom: 10px;
}

.contact-icon {
    font-size: 2rem;
    color: #0b3c5d;
    margin-bottom: 15px;
    display: block;
}

.contact-info .highlight {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 10px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #0b3c5d;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0b3c5d;
    box-shadow: 0 0 4px rgba(11, 60, 93, 0.3);
}

.btn {
    background-color: #0b3c5d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1a5a8a;
}
/* Back to Website Link */

/* Dashboard Animations & Metrics Grid handled above */

/* Charts Grid */



/* Media Section */
.media-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.media-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); 
    border: 1px solid #e5e7eb;
}

.media-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e1e8ed;
}

.media-preview img,
.media-preview iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.media-info {
    padding: 20px;
}

.media-info h3 {
    color: #0b3c5d;
    margin-bottom: 8px;
}

.media-info p {
    color: #4a5568;
    margin-bottom: 0;
}

/* Leadership Section */
.leadership-section {
    padding: 60px 20px;
    background-color: #f4f7f9;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.leadership-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-bottom: 4px solid #0b3c5d;
}

.leadership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.leadership-image-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #e1e8ed;
}

.leadership-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.leadership-info {
    padding: 25px;
}

.leadership-info h3 {
    color: #0b3c5d;
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 700;
}

.leadership-info p {
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .leadership-grid {
        grid-template-columns: 1fr;
    }
}

/* Organization Hierarchy */
.hierarchy-level {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.hierarchy-level.active {
    display: block;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0b3c5d;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.back-button:hover {
    background: #1a5a8a;
}

.main-division-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.main-division-card {
    background: linear-gradient(135deg, #0b3c5d, #1a5a8a);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.main-division-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.main-division-card i {
    font-size: 48px;
    margin-bottom: 20px;
}

.main-division-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.main-division-card p {
    font-size: 16px;
    opacity: 0.9;
}

.sub-division-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.sub-division-card {
    background: white;
    border-left: 5px solid #0b3c5d;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.sub-division-card:hover {
    background: #f8fbfe;
    transform: translateX(5px);
}

.sub-division-card h3 {
    color: #0b3c5d;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle::before {
    content: "";
    width: 20px;
    height: 2px;
    background: #0b3c5d;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness & Navigation Toggles */
.mobile-nav-toggle,
.mobile-menu-overlay {
    display: none;
}

@media (max-width: 992px) {
    header h1 {
        font-size: 22px;
        margin: 0 20px;
    }

    .header-logo {
        height: 96px;
    }
}

@media (max-width: 768px) {
    .branding-bar {
        padding: 10px 20px;
        flex-direction: column;
        gap: 10px;
    }

    header h1 {
        font-size: 18px;
        margin: 0;
        order: 1;
    }

    .header-logo {
        height: 72px;
    }

    .header-logo.left {
        order: 0;
    }

    .header-logo.right {
        order: 2;
    }

    .header-container {
        position: relative;
        /* Context for absolute toggle */
        padding: 10px 0;
    }

    .nav-bar {
        display: none;
    }

    /* Hamburger Menu Icon */
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
        color: #ffffff;
        /* White color for visibility on dark blue background */
        cursor: pointer;
        z-index: 10001;
    }

    /* Mobile Overlay Menu */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: rgba(11, 60, 93, 0.98);
        backdrop-filter: blur(10px);
        z-index: 10010;
        /* Higher than .mobile-nav-toggle (10001) */
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .mobile-menu-overlay.active {
        right: 0;
    }

    .mobile-menu-overlay nav {
        display: flex;
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .mobile-menu-overlay a {
        color: white;
        font-size: 20px;
        font-weight: 600;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        transition: color 0.3s;
    }

    .mobile-menu-overlay a:hover {
        color: #4caf50;
    }

    .close-mobile-menu {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 32px;
        color: white;
        cursor: pointer;
        z-index: 10005;
    }

    /* Ensure hamburger is always visible when needed */
    .mobile-nav-toggle {
        transition: opacity 0.3s;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .container {
        padding: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .camera-summary {
        grid-template-columns: 1fr 1fr;
    }

    .main-division-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links,
    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 45px;
    }

    .branding-bar h1 {
        font-size: 14px;
        padding: 0 5px;
    }

    .camera-summary {
        grid-template-columns: 1fr;
    }
}

/* About Page Content Styling */
.about-content p {
    text-align: justify;
    margin-bottom: 20px;
}

/* Minimal Organization Hierarchy Arrow Indicators */
.clickable-card {
    position: relative;
    padding-right: 40px !important;
    /* Make room for the arrow */
}

/* The horizontal line */
.clickable-card::after {
    content: '';
    position: absolute;
    bottom: 30px;
    right: 25px;
    width: 15px;
    height: 1.5px;
    background-color: currentColor;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* The arrow head (greater than symbol) */
.clickable-card::before {
    content: '';
    position: absolute;
    bottom: 26.5px;
    /* Centered relative to the line */
    right: 25px;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Adjust colors based on card type */
.main-division-card.clickable-card::before,
.main-division-card.clickable-card::after {
    color: #ffffff;
}

.sub-division-card.clickable-card::before,
.sub-division-card.clickable-card::after {
    color: #0b3c5d;
}

/* Hover Animation */
.clickable-card:hover::after {
    transform: translateX(5px);
    opacity: 1;
}

.clickable-card:hover::before {
    transform: translateX(5px) rotate(45deg);
    opacity: 1;
}

/* --- NEW PROFESSIONAL UI STYLES --- */

/* Sidebar Styling (Shared) */
/* Sidebar Styling (Shared) */
.sidebar {
    width: 260px;
    background: #0f172a;
    color: #cbd5e1;
    position: fixed;
    top: 130px;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
}

.sidebar-brand {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.sidebar-brand h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-nav {
    flex: 1;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.7;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.nav-item.active {
    background: #3b82f6;
    color: #ffffff;
}

.nav-item.active i {
    opacity: 1;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.nav-item-logout {
    color: #ef4444 !important;
}

.nav-item-logout:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Main Content Area adjustments */
.main-with-sidebar {
    margin-left: 260px;
    padding: 40px;
    min-height: calc(100vh - 130px);
    transition: margin-left 0.3s ease;
}

/* analytics page specific sections removed */

/* Dashboard Professional Upgrades */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-card h4 {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.dashboard-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.dashboard-label {
    display: block;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 8px;
}

/* Command & Control Table */
.cc-table-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}

.cc-table th {
    background: #f8fafc;
    padding: 16px 24px;
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    border-bottom: 1px solid #e2e8f0;
}

.cc-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 0.9375rem;
}

.cc-table tr:hover td {
    background: #fbfcfe;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-with-sidebar {
        margin-left: 0;
    }
}

/* Shared Tab Styles */
.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 5px;
}

.tab-btn {
    padding: 10px 24px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
    color: #3b82f6;
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
}

.tab-btn.active {
    color: #1a365d;
    border-bottom-color: #1a365d;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.4s ease-out;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shared Status Box Styles */
.status-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.status-box {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.status-box:hover {
    transform: translateY(-2px);
}

.status-box strong {
    display: block;
    font-size: 1.875rem;
    font-weight: 800;
    margin: 8px 0;
    color: #3b82f6;
}

.status-box small {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

/* Status List Item Styling (Camera DSR) */
.status-list-item {
    background: white;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: background 0.2s;
}

.status-list-item:hover {
    background: #f8fafc;
}

.status-index {
    font-weight: 700;
    color: #0b3c5d;
    font-size: 14px;
}

.status-name {
    font-weight: 700;
    color: #1a365d;
    font-size: 1.1rem;
}

.status-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.status-detailed {
    text-align: left;
}

.status-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.status-total,
.status-working,
.status-not-working {
    font-weight: 800;
    font-size: 1.1rem;
}

.status-total {
    color: #0f172a;
}

.status-working {
    color: #10b981;
}

.status-not-working {
    color: #ef4444;
}

.status-pct {
    font-size: 11px;
    font-weight: 600;
}

@media (min-width: 769px) {
    .status-list-item {
        flex-direction: row;
        align-items: center;
        padding: 16px 25px;
    }

    .status-name {
        flex: 1.5;
        margin-bottom: 0;
        font-size: 1rem;
    }

    .status-stats-row {
        flex: 3;
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
    }

    .status-detailed {
        text-align: center;
    }
}

/* Excel Button Style */
.btn-excel {
    background-color: #15803d !important;
    color: white !important;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-excel:hover {
    background-color: #166534 !important;
}

/* --- Responsive adjustments for dashboard and reports --- */
@media (max-width: 768px) {

    /* Main Content Area */
    .main-with-sidebar {
        padding: 20px 15px;
    }

    .section-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-right.dashboard-meta {
        width: 100%;
        justify-content: space-between;
        font-size: 12px;
    }

    /* Dashboard Grid */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dashboard-card {
        padding: 20px;
    }

    .dashboard-value {
        font-size: 1.75rem;
    }

    /* Charts Grid */
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .chart-container {
        padding: 15px;
        min-height: 300px;
    }

    /* AI Insights */
    .insight-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Status Display (Boxes) */
    .status-display {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .status-box {
        padding: 15px 10px;
    }

    .status-box strong {
        font-size: 1.25rem;
    }

    /* Report Item Lists (Incidents, MAOC, SOPs) */
    /* Target divs (created dynamically) */
    #incident-list-container>div,
    #maoc-list-container>div,
    #sop-list-container>div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding: 20px !important;
    }

    #incident-list-container .btn,
    #maoc-list-container .btn,
    #sop-list-container .btn {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }

    /* Form Groups in Reports */
    .form-group div[style*="flex"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .form-group input,
    .form-group select,
    .form-group button {
        width: 100% !important;
    }

    /* Tabs */
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 8px 15px;
        font-size: 14px;
        flex-shrink: 0;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .status-display {
        grid-template-columns: 1fr;
    }

    .dashboard-value {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 15px;
    }

    .footer-links a {
        background: #f1f5f9;
        padding: 12px;
        border-radius: 8px;
        font-weight: 700;
        color: #1e293b !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
}

/* Footer Section */

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

