:root {
    --primary: #1a3a5c;
    --primary-dark: #0f2440;
    --primary-light: #edf2f7;
    --accent: #c8a84e;
    --accent-dark: #a68a3e;
    --success: #2e7d5b;
    --danger: #b91c1c;
    --text-dark: #1a202c;
    --text-light: #5a6a7e;
    --white: #ffffff;
    --gray-50: #f7f8fa;
    --gray-100: #edf0f4;
    --gray-200: #dce1e8;
    --gray-300: #bcc5d1;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12);
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ── BASE FONT SIZE (prevents OS/browser scaling issues) ── */
html {
    font-size: 16px; /* 1rem = 16px on all devices */
}

/* Desktop large (1400px+) */
@media (min-width: 1400px) {
    html { font-size: 16px; }
}

/* Desktop normal (1200px-1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    html { font-size: 15px; }
}

/* Laptop / Large Tablet (992px-1199px) */
@media (max-width: 1199px) and (min-width: 993px) {
    html { font-size: 14px; }
}

/* Tablet (768px-992px) */
@media (max-width: 992px) and (min-width: 769px) {
    html { font-size: 13px; }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    html { font-size: 14px; }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    html { font-size: 13px; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--gray-50);
    overflow-x: hidden;
}

.glass-morphism {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(12px, 3.5vw, 50px);
}

.full-width-padding {
    width: 100%;
    padding: 0 clamp(12px, 3.5vw, 50px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Header & Navigation */
header {
    background: transparent;
    z-index: 1000;
    line-height: 1;
}

/* ── TOP BAR (Government Blue) ─────────────────────────────── */
.top-bar {
    background: #0f2440;
    color: #ffeedd;
    padding: 8px 0;
    border-bottom: none;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Contact Info in Top Bar */
.topbar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.email-info {
    color: #0f2440;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* Middle Bar: Emblem + Name */
.middle-bar {
    background: #ffffff;
    padding: 15px 0;
    border-top: 4px solid #0f2440; /* Blue line to separate from browser UI */
    border-bottom: 1px solid var(--gray-200);
}

.middle-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.middle-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.middle-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.emblem-middle {
    height: clamp(45px, 7vw, 75px);
    width: auto;
    flex-shrink: 0;
}

.dept-name-middle {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gov-title-middle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.dept-h2-middle {
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    font-weight: 800;
    color: #0f4c81;
    margin: 0;
    line-height: 1.2;
}

.province-title-middle {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff9800;
    margin: 0;
}

/* Right section: Phone + Controls */
.topbar-right-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.topbar-right-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}

/* Search form */
.topbar-search {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: 20px;
    padding: 2px 4px 2px 12px;
    border: 1px solid var(--gray-200);
}

.topbar-search input {
    background: transparent;
    border: none;
    color: #0f2440;
    padding: 3px 8px 3px 0;
    width: 130px;
    outline: none;
    font-size: 0.82rem;
    font-family: inherit;
}

.topbar-search input::placeholder {
    color: rgba(15, 36, 64, 0.6);
}

.topbar-search button {
    background: transparent;
    color: #ffc107;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.topbar-search button:hover {
    color: #0f2440;
}

/* Phone Pill Button */
.phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
    font-weight: 600;
}
.phone-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    color: #fff;
}
.phone-icon-wrap {
    background: rgba(0,0,0,0.20);
    padding: 6px 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}
.phone-text {
    padding: 4px 14px 4px 10px;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 0.85rem;
}
.phone-text small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Font Size Controls */
.font-size-controls {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.fs-btn {
    background: transparent;
    border: none;
    color: rgba(15, 36, 64, 0.75);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 3px;
    transition: all 0.2s ease;
}
.fs-btn:hover { background: rgba(0,0,0,0.05); color: #0f2440; }
.fs-sm { font-size: 0.8rem; }
.fs-md { font-size: 1rem;  }
.fs-lg { font-size: 1.2rem;  }

/* Separator */
.topbar-sep {
    color: rgba(15, 36, 64, 0.3);
    font-size: 1rem;
    padding: 0 2px;
}

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
}
.lang-btn {
    color: rgba(15, 36, 64, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.22s ease;
}
.lang-btn:hover {
    background: rgba(0,0,0,0.05);
    color: #0f2440;
}
.lang-btn.active {
    background: rgba(0,0,0,0.08);
    color: #0f2440;
    font-weight: 800;
}
.lang-divider {
    color: rgba(15, 36, 64, 0.3);
    font-size: 0.8rem;
    user-select: none;
    padding: 0 1px;
}
.lang-divider {
    color: rgba(15, 36, 64, 0.3);
    font-size: 0.8rem;
    user-select: none;
    padding: 0 1px;
}

/* ── TABLET Header adjustments (769px – 1100px) ─── */
@media (max-width: 1100px) and (min-width: 769px) {
    .middle-bar-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    .middle-right {
        align-items: flex-start;
        width: 100%;
    }
    .topbar-right-controls {
        flex-wrap: wrap;
        gap: 6px;
    }
    .topbar-contact {
        gap: 12px;
    }
    .topbar-search input {
        width: 100px;
    }
    .email-info {
        font-size: 0.78rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .dept-h2 { font-size: 0.95rem; }
    .emblem-top { height: 50px; }
    .topbar-right-controls { display: none; }
    .topbar-contact { display: none; }
    .phone-text small { display: none; }
    .middle-bar {
        padding: 10px 0;
    }
    .middle-left {
        gap: 10px;
    }
    .gov-title-middle {
        font-size: 0.72rem;
    }
    .province-title-middle {
        font-size: 0.72rem;
    }
}

/* Main Header HIDDEN (merged into top-bar) */
.main-header {
    display: none;
}

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

.gov-identity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.emblem {
    height: 65px; /* Further reduced from 75px */
    width: auto;
}

.dept-name .gov-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1px;
    letter-spacing: 0.5px;
}

.dept-name h1 {
    font-size: 1.65rem; /* Further reduced from 1.85rem */
    color: var(--primary);
    font-weight: 800;
    line-height: 1.2;
    margin: 1px 0;
}

.dept-name .province-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.nw-logo {
    height: 75px;
    width: 75px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

/* Navigation Menu */
.nav-container {
    background: #0f4c81;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo-text {
    display: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px 0;
}

.nav-links {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    display: block;
    padding: 14px 16px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-links > li > a:hover {
    background: var(--primary-dark);
}

/* ── HIGHLIGHTED NAV TABS (About, Services, Circulars) ─── */
.nav-links > li > a.nav-highlight {
    position: relative;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links > li > a.nav-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    transition: width 0.3s ease;
}

.nav-links > li > a.nav-highlight:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-links > li > a.nav-highlight:hover::after {
    width: 70%;
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 5px 5px;
    z-index: 100;
    overflow: hidden;
}

.dropdown-content li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-light);
}

.dropdown-content li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section Modern */
.hero-modern {
    position: relative;
    height: 55vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-image: url('../../image/WhatsApp Image 2026-05-04 at 3.35.42 PM.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    background-color: transparent;
}

.hero-modern::before {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 40, 80, 0.4), rgba(0, 20, 40, 0.6));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 0 10%;
}

.hero-glass-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 35px 45px;
    border-radius: 30px;
    max-width: 800px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    position: relative;
}

.hero-tagline {
    display: inline-block;
    background: var(--accent);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 25px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-premium {
    background: var(--accent);
    color: var(--text-dark);
    padding: 12px 25px; /* Scaled down */
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem; /* Scaled down */
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Scaled down */
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

.btn-premium:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
    padding: 12px 25px; /* Scaled down */
    border-radius: 50px;
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem; /* Scaled down */
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Styling */
section {
    padding: clamp(50px, 8vw, 100px) 0;
}

.section-title {
    margin-bottom: clamp(30px, 5vw, 60px);
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 5px;
    background: var(--accent);
    border-radius: 2px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(20px, 3vw, 40px);
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-med);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-img i {
    font-size: 4rem;
    color: var(--primary);
}

.card-body {
    padding: 30px;
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

/* Home Page Specific Classes */
/* Dashboard Section */
.dashboard-section {
    padding: 80px 0;
    margin-top: -60px; /* Overlap with hero */
    position: relative;
    z-index: 10;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: clamp(16px, 2.5vw, 30px);
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
}

.card-header {
    padding: 25px 30px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.header-icon.accent {
    background: #fff8e1;
    color: var(--accent-dark);
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    flex: 1;
}

.view-all-link {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.card-content {
    padding: 20px 30px;
    flex: 1;
}

/* Circular Items */
.circular-item-modern {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 20px;
    transition: var(--transition);
}

.circular-item-modern:last-child {
    border-bottom: none;
}

.circ-meta {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.circ-num {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.95rem;
}

.circ-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.circ-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

.circ-title:hover {
    color: var(--primary);
}

.circ-action {
    color: var(--text-light);
    opacity: 0.5;
    transition: var(--transition);
}

.circular-item-modern:hover .circ-action {
    opacity: 1;
    color: var(--danger);
    transform: scale(1.1);
}

/* Notice Items */
.notice-list-modern {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notice-item-modern {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.notice-item-modern:hover {
    background: var(--white);
    border-color: var(--accent);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.notice-indicator {
    width: 4px;
    height: 40px;
    background: var(--accent);
    border-radius: 10px;
}

.notice-body {
    flex: 1;
}

.notice-date-modern {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
}

.notice-title-modern {
    font-size: 1rem;
    margin-top: 5px;
    line-height: 1.4;
}

.card-footer {
    padding: 20px 30px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.btn-text {
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.centered {
    text-align: center;
}

.service-icon-bg {
    background: var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.read-more-link {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.dark-bg {
    background: var(--primary-dark);
    color: var(--white);
}

.white-text {
    color: var(--white) !important;
}

.borderless {
    border: none !important;
}

.light-body {
    background: var(--white);
    color: var(--text-dark) !important;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.news-title {
    font-size: 1.2rem;
    color: var(--primary-dark) !important;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
}

.centered-btn-container {
    text-align: center;
    margin-top: 50px;
}

.accent-btn {
    background: var(--accent) !important;
    color: var(--text-dark) !important;
}

/* Tables */
.table-container {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--primary-dark);
    color: var(--white);
    text-align: left;
    padding: 15px 20px;
    font-weight: 600;
}

td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-med);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--gray-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: clamp(40px, 6vw, 80px) 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.footer-col ul li {
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer-col ul li:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* News Ticker */
.news-ticker {
    display: flex;
    background: #e06b6b;
    border-top: none;
    border-bottom: none;
    height: 34px;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.ticker-label {
    background: #ffffff;
    color: #c0392b;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.82rem;
    z-index: 5;
    box-shadow: 3px 0 8px rgba(0,0,0,0.1);
    white-space: nowrap;
    border-right: 2px solid #ffffff;
}

.ticker-label i {
    margin-right: 10px;
    animation: pulse 1.5s infinite;
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: scrollTickerRight 50s linear infinite;
}

.ticker-item {
    color: #ffffff;
    padding: 0 60px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.ticker-item i {
    font-size: 0.8rem;
    margin-right: 15px;
    color: #ffffff;
}

@keyframes scrollTickerRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── RESPONSIVE BREAKPOINTS ─────────────────────────── */

/* Large Desktop (1400px+) — spacious layout */
@media (min-width: 1400px) {
    .container, .full-width-padding {
        padding: 0 60px;
    }
}

/* Laptop / Medium Desktop (992px – 1199px) */
@media (max-width: 1199px) {
    .container, .full-width-padding {
        padding: 0 30px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .nav-links > li > a {
        padding: 14px 10px;
        font-size: 0.82rem;
    }
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet Landscape (769px – 992px) */
@media (max-width: 992px) {
    .container, .full-width-padding {
        padding: 0 20px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .nav-links > li > a {
        padding: 13px 8px;
        font-size: 0.8rem;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    }
    .org-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ── TABLET PORTRAIT / LARGE MOBILE (481px – 768px) ── */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .container, .full-width-padding {
        padding: 0 15px;
    }

    .main-header {
        padding: 15px 0;
    }

    .emblem {
        height: 50px;
    }

    .dept-name .gov-title {
        font-size: 0.75rem;
    }

    .dept-name h1 {
        font-size: 1.2rem;
    }

    .dept-name .province-title {
        font-size: 0.85rem;
    }

    /* Mobile Menu */
    .mobile-logo-text {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 74, 153, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        box-shadow: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links > li {
        width: auto;
        border-bottom: none;
        margin-bottom: 15px;
        text-align: center;
    }

    .nav-links > li > a {
        padding: 10px 20px;
        font-size: 1.3rem;
        font-weight: 700;
    }

    .dropdown-content {
        position: static;
        background: rgba(255,255,255,0.1);
        box-shadow: none;
        display: none;
        border-radius: 10px;
        margin-top: 10px;
    }

    .dropdown-content li a {
        color: var(--white);
        border-bottom: none;
        font-size: 1.1rem;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .hero-modern {
        height: auto;
        min-height: 420px;
        padding: 60px 0;
    }

    .hero-glass-box {
        padding: 24px;
        margin: 0 12px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.2;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-premium, .btn-outline-white {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .section-title {
        margin-bottom: 30px;
        text-align: center;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .section-title h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    section {
        padding: 50px 0;
    }

    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .table-container {
        overflow-x: auto;
        margin: 0 -15px;
        border-radius: 0;
    }

    table {
        min-width: 600px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col ul li:hover {
        transform: none;
    }

    .org-card-premium {
        padding: 24px;
    }
}

/* ── SMALL MOBILE (max 480px) ── */
@media (max-width: 480px) {
    .container, .full-width-padding {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-glass-box {
        padding: 18px;
        margin: 0 8px;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .nav-links > li > a {
        font-size: 1.1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .news-ticker {
        height: 30px;
    }

    .ticker-label span {
        display: none;
    }

    .ticker-label {
        padding: 0 10px;
    }
}

/* Body lock when menu open */
body.menu-open {
    overflow: hidden;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* ==========================================
   ORGANIZATIONAL CHART SECTION STYLES
   ========================================== */
.org-section {
    background-color: var(--gray-50);
    padding: 80px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.org-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .org-grid {
        grid-template-columns: 1fr;
    }
}

.org-card-premium {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 40px;
    transition: var(--transition);
}

.org-card-premium.graphic-sidebar {
    background: linear-gradient(145deg, var(--white) 0%, var(--primary-light) 100%);
    border: 1px solid rgba(0, 74, 153, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.org-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 20px;
}

.org-section-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.org-section-header h3 i {
    color: var(--accent-dark);
}

.org-graphic-preview {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.org-graphic-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.org-graphic-preview:hover img {
    transform: scale(1.05);
}

.org-graphic-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 74, 153, 0.3);
    backdrop-filter: blur(2px);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.8rem;
    transition: var(--transition);
}

.org-graphic-preview:hover .org-graphic-overlay {
    opacity: 1;
}

/* Tree Structure using Flexbox Grid */
.org-tree-scroll-container {
    overflow-x: auto;
    width: 100%;
    padding: 20px 0;
}

.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 800px;
    position: relative;
    padding: 10px;
}

.org-row {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.org-row:last-child {
    margin-bottom: 0;
}

/* Connectors */
.org-row::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: var(--gray-300);
}

.org-row.level-0::before {
    display: none;
}

.org-branches {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    position: relative;
    margin-top: 20px;
    padding-top: 20px;
}

.org-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 160px);
    height: 2px;
    background-color: var(--gray-300);
}

.org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.org-branch::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: var(--gray-300);
}

/* Node Styling */
.org-node-box {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    min-width: 160px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    cursor: default;
}

.org-node-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-dark);
}

.org-node-box.level-0 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(0, 74, 153, 0.25);
    min-width: 200px;
    padding: 18px 25px;
}

.org-node-box.level-0 h4 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.org-node-box.level-1 {
    background: var(--white);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.05);
    min-width: 170px;
}

.org-node-box.level-1 h4 {
    color: var(--primary-dark);
    font-weight: 700;
}

.org-node-box.level-2 {
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    font-size: 0.9rem;
    padding: 10px 14px;
    min-width: 140px;
}

.org-node-box h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--text-dark);
}

.org-node-box p {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.org-node-box.level-0 p {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Vertical items (list style branches) */
.org-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    width: 100%;
    position: relative;
    padding-left: 15px;
}

.org-vertical-list::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 2px;
    height: calc(100% - 10px);
    background-color: var(--gray-300);
}

.org-vertical-item {
    display: flex;
    align-items: center;
    position: relative;
}

.org-vertical-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px;
    width: 15px;
    height: 2px;
    background-color: var(--gray-300);
}

.org-vertical-item .org-node-box {
    text-align: left;
    padding: 8px 15px;
    min-width: 180px;
    background: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.org-vertical-item .org-node-box i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Lightbox styles */
.org-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.org-lightbox.active {
    display: flex;
}

.org-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.org-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.1);
}

.org-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition);
}

.org-lightbox-close:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.org-lightbox-download {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Navigation Search */
.nav-search-form {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 4px 15px;
    margin-left: 20px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.nav-search-form input {
    border: none;
    outline: none;
    padding: 6px 10px;
    font-size: 0.9rem;
    width: 150px;
    background: transparent;
}

.nav-search-form button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-search-form button:hover {
    color: var(--accent-dark);
}

@media (max-width: 992px) {
    .nav-search-form {
        margin: 15px 0;
        width: 100%;
        justify-content: space-between;
    }
    .nav-search-form input {
        width: 100%;
    }
}
