/* ============================================
   DHRMD Malawi - Government Agency Website
   Color Palette: Deep Navy, Gold, White
   Typography: Inter
   ============================================ */

:root {
    --navy: #0f2744;
    --navy-dark: #0a1c2e;
    --navy-light: #1a3a5c;
    --gold: #c9a227;
    --gold-light: #d4af37;
    --gold-dark: #a8861e;
    --gold-pale: #f5ecd0;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-500: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --shadow: 0 2px 12px rgba(15, 39, 68, 0.08);
    --shadow-lg: 0 8px 30px rgba(15, 39, 68, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --transition: 0.2s ease;
    --transition-slow: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ============================================
   Base Styles & Scroll Reveal
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 100ms;
}

.reveal-delay-2 {
    transition-delay: 200ms;
}

.reveal-delay-3 {
    transition-delay: 300ms;
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-glass);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px 0 rgba(31, 38, 135, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Gradient Heroes */
.hero-gradient {
    position: relative;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(201, 162, 39, 0.15), transparent 50%);
    pointer-events: none;
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-title {
    height: 28px;
    width: 80%;
    margin-bottom: 16px;
}

.skeleton-img {
    height: 200px;
    width: 100%;
    border-radius: 8px 8px 0 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    opacity: 1;
}

/* View Transitions API (Chrome 111+) */
main {
    view-transition-name: main-content;
}

::view-transition-old(main-content) {
    animation: 0.25s ease both fade-out;
}

::view-transition-new(main-content) {
    animation: 0.3s ease both fade-in-up;
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SPA overlay for fallback browsers */
.spa-overlay {
    will-change: opacity;
    backface-visibility: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: var(--navy);
    color: var(--white);
    font-size: 0.875rem;
    padding: 8px 0;
}

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

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-small {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.icon-tiny {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ============================================
   Main Header
   ============================================ */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    gap: 24px;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
    line-height: 1.3;
}

.logo-text-sub {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--gray-500);
    display: block;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-list>li>a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-800);
    border-radius: 6px;
}

.nav-list>li>a:hover,
.nav-list>li>a.active-nav {
    color: var(--gold);
    background: var(--gray-100);
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--navy) !important;
}

.nav-cta:hover {
    background: var(--gold-dark) !important;
    color: var(--white) !important;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--navy);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--navy);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--navy);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 39, 68, 0.92) 0%, rgba(15, 39, 68, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

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

/* ============================================
   Quick Access Cards
   ============================================ */
.quick-access {
    padding: 32px 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(15, 39, 68, 0.06);
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.quick-access-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--gray-100);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all var(--transition);
}

.quick-access-card:hover {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: var(--shadow);
}

.quick-access-icon {
    width: 48px;
    height: 48px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-access-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.quick-access-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy);
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 12px;
}

.section-underline {
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto 24px;
}

.section-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
    color: var(--gray-700);
    font-size: 1.0625rem;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
    margin: 48px 0 12px;
}

/* View All link */
.section-cta {
    text-align: center;
    margin-top: 40px;
}

.section-cta .btn {
    font-size: 0.9375rem;
}

/* ============================================
   Who We Are Section
   ============================================ */
.who-we-are {
    background: var(--off-white);
}

/* Vision / Mission Grid — 2 columns with gold border */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.vision-mission-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 2px solid var(--gold);
    border-top: 4px solid var(--gold);
}

.vision-mission-card .vm-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.vm-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.vision-mission-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.vision-mission-card p {
    color: var(--gray-700);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Functions Grid */
.functions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.function-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: 10px;
    border-left: 4px solid var(--gold);
    font-size: 0.9375rem;
    color: var(--gray-800);
}

.function-item::before {
    content: '•';
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}

/* Core Values Grid — 3 columns with circular icons */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: transform var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--gold-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.value-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.value-card p {
    color: var(--gray-700);
    font-size: 0.9375rem;
}

/* ============================================
   Divisions Section
   ============================================ */
.divisions-section {
    background: var(--white);
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.division-card {
    background: var(--off-white);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}

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

.division-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.division-icon {
    width: 56px;
    height: 56px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.division-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
}

.division-card>p {
    color: var(--gray-700);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.key-services {
    font-size: 0.875rem;
}

.key-services strong {
    display: block;
    color: var(--navy);
    margin-bottom: 8px;
}

.key-services ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
}

.key-services ul li {
    padding-left: 20px;
    position: relative;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.key-services ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

/* ============================================
   Digital Systems Section
   ============================================ */
.systems-section {
    background: var(--navy);
    color: var(--white);
}

.systems-section .section-title {
    color: var(--white);
}

.systems-section .section-underline {
    background: var(--gold);
}

.systems-intro {
    color: rgba(255, 255, 255, 0.9);
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.system-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
}

.system-icon {
    width: 56px;
    height: 56px;
    background: var(--gold-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.system-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gold-dark);
}

.system-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.system-subtitle {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.system-desc {
    font-size: 0.9375rem;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.key-features {
    font-size: 0.875rem;
}

.key-features strong {
    display: block;
    color: var(--navy);
    margin-bottom: 8px;
}

.key-features ul li {
    padding-left: 20px;
    position: relative;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.key-features ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

/* ============================================
   Services Section - Citizens' Service Charter
   ============================================ */
.services-section {
    background: var(--white);
}

.service-charter-intro {
    font-size: 1.0625rem;
}

/* Charter Toolbar - Search & Filters */
.charter-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.charter-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.charter-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--gray-500);
}

.charter-search input {
    width: 100%;
    padding: 12px 20px 12px 44px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    transition: border-color var(--transition);
}

.charter-search input:focus {
    outline: none;
    border-color: var(--gold);
}

.charter-filters {
    display: flex;
    gap: 12px;
}

.charter-filters select {
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-family: inherit;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-800);
}

/* Charter Table / Accordion */
.charter-table-wrapper {
    margin-bottom: 24px;
}

.charter-table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 16px;
    padding: 14px 20px;
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px 8px 0 0;
}

.charter-accordion {
    border: 0;
}

.charter-row {
    border: 1px solid var(--gray-200);
    border-top: none;
}

.charter-row:last-child {
    border-radius: 0 0 8px 8px;
}

.charter-row.hidden {
    display: none;
}

.charter-row-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9375rem;
    text-align: left;
    transition: background var(--transition);
}

.charter-row-header:hover {
    background: var(--gray-100);
}

.charter-row.expanded .charter-row-header {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.charter-service-name {
    flex: 1;
    font-weight: 500;
    color: var(--navy);
}

.charter-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-free {
    background: #d4edda;
    color: #155724;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-paid {
    background: #fff3cd;
    color: #856404;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-time {
    background: #e2e3e5;
    color: var(--gray-800);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.expand-icon {
    width: 20px;
    height: 20px;
    color: var(--gray-500);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.charter-row.expanded .expand-icon {
    transform: rotate(180deg);
}

.charter-row-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.charter-row.expanded .charter-row-content {
    max-height: 500px;
}

.charter-row-content .charter-detail {
    padding: 16px 20px;
    font-size: 0.875rem;
    color: var(--gray-700);
    background: var(--off-white);
}

.charter-detail:last-child {
    border-radius: 0 0 8px 8px;
}

.charter-no-results {
    text-align: center;
    color: var(--gray-500);
    padding: 32px;
}

.service-charter-note {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: 24px;
}

.charter-pdf-download {
    margin-bottom: 32px;
}

.charter-pdf-download .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.charter-pdf-download .btn svg {
    width: 20px;
    height: 20px;
}

/* Our Commitment */
.charter-commitment {
    background: var(--navy);
    color: var(--white);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.charter-commitment h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.charter-commitment p {
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.charter-rights {
    font-weight: 600;
    color: var(--gold);
    margin-top: 16px !important;
}

/* Complaints / Reporting Section */
.charter-complaints {
    background: var(--gray-100);
    padding: 32px;
    border-radius: 12px;
}

.charter-complaints h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.charter-complaints>p {
    color: var(--gray-700);
    margin-bottom: 24px;
}

.complaints-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}

.complaints-contact h4 {
    font-size: 1rem;
    color: var(--navy);
    margin: 16px 0 8px;
}

.complaints-contact h4:first-child {
    margin-top: 0;
}

.complaints-contact ul {
    margin: 0;
}

.complaints-contact li {
    padding: 4px 0;
    color: var(--gray-700);
}

.complaints-contact p,
.complaints-contact address {
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.complaints-contact a {
    color: var(--navy);
}

.complaints-contact a:hover {
    color: var(--gold);
}

.complaints-form-wrapper h4 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.complaint-form .form-group {
    margin-bottom: 16px;
}

.complaint-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 6px;
}

.complaint-form .required {
    color: #dc3545;
}

.complaint-form input,
.complaint-form select,
.complaint-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-family: inherit;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
}

.complaint-form input:focus,
.complaint-form select:focus,
.complaint-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.complaint-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   News & Vacancies Sections
   ============================================ */
.news-section {
    background: var(--off-white);
}

.news-placeholder,
.vacancies-placeholder {
    text-align: center;
    padding: 48px 24px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.vacancies-placeholder .btn {
    margin-top: 20px;
}

/* ============================================
   Reports Section
   ============================================ */
.reports-section {
    background: var(--off-white);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.report-card {
    background: var(--white);
    padding: 28px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}

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

.report-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

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

.report-badge {
    position: absolute;
    top: 28px;
    right: 28px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.report-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.report-card>p {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 16px;
    flex: 1;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--navy);
    color: var(--white) !important;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all var(--transition);
    width: 100%;
}

.btn-download:hover {
    background: var(--navy-light);
}

.btn-download svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Inner Page Hero / Page Hero Banner
   ============================================ */
.page-hero {
    background: var(--navy);
    padding: 56px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.page-hero .page-hero-underline {
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto 16px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
    max-width: 640px;
    margin: 0 auto;
}

/* ============================================
   About Page Specific
   ============================================ */
.about-content {
    padding: 64px 0;
}

.about-block {
    margin-bottom: 56px;
}

.about-block h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    word-wrap: break-word;
}

.about-block .section-underline {
    margin: 0 0 24px;
}

.about-block p {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.mandate-list {
    counter-reset: mandate;
    margin: 16px 0 24px;
}

.mandate-list li {
    counter-increment: mandate;
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.7;
}

.mandate-list li::before {
    content: counter(mandate, lower-roman) ".";
    color: var(--gold);
    font-weight: 700;
    min-width: 36px;
    flex-shrink: 0;
    display: inline-block;
}

.ops-list {
    counter-reset: ops;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin: 16px 0 24px;
}

.ops-list li {
    counter-increment: ops;
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: var(--gray-100);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.ops-list li::before {
    content: counter(ops, lower-roman) ".";
    color: var(--gold);
    font-weight: 700;
    min-width: 28px;
    flex-shrink: 0;
}

.org-chart-wrapper {
    text-align: center;
    margin: 32px 0;
}

.org-chart-wrapper img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.asset-fallback {
    padding: 64px 32px;
    text-align: center;
    background: var(--off-white);
    border: 2px dashed var(--gray-300);
    border-radius: 16px;
    margin: 24px 0;
}

.fallback-icon {
    width: 64px;
    height: 64px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--navy);
}

.fallback-icon svg {
    width: 32px;
    height: 32px;
}

.asset-fallback p {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-about p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-col p,
.footer-col a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-col address {
    font-style: normal;
}

.footer-col address p {
    margin-bottom: 8px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--gold);
    margin-top: 2px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--navy);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

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

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 0 20px;
        max-width: 900px;
        margin: 0 auto;
    }

    .about-block {
        margin-bottom: 56px;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--gray-100);
    }

    .about-block:last-child {
        border-bottom: none;
    }

    .about-content::after {
        content: "";
        display: block;
        height: 100px;
        /* Spacer for chatbot button */
    }

    .charter-toolbar {
        flex-direction: column;
    }

    .charter-filters {
        flex-wrap: wrap;
    }

    .charter-table-header {
        display: none;
    }

    .charter-row-header {
        flex-wrap: wrap;
    }

    .charter-badges {
        order: 3;
        width: 100%;
    }

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

    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .ops-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 0.8125rem;
    }

    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 16px;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--gray-100);
        margin-top: 8px;
        display: none;
    }

    .has-dropdown.active .dropdown-menu {
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-about,
    .footer-col {
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .key-services ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .hero {
        min-height: 420px;
    }
}

/* ============================================
   Vacancies Section
   ============================================ */
.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.vacancy-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.vacancy-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--gold-pale);
}

.vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.vacancy-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-right: 16px;
}

.vacancy-status {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.vacancy-status.open {
    background: #e6f4ea;
    color: #137333;
}

.vacancy-status.closed {
    background: #fce8e6;
    color: #c5221f;
}

.vacancy-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.vacancy-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vacancy-detail-item svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
}

.vacancy-desc {
    font-size: 0.9375rem;
    color: var(--gray-700);
    margin-bottom: 24px;
    flex-grow: 1;
}

.vacancy-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.vacancy-deadline {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ============================================
   News Section
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

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

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

.news-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gold);
    color: var(--navy);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-summary {
    font-size: 0.9375rem;
    color: var(--gray-700);
    margin-bottom: 24px;
    flex-grow: 1;
}

.news-read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.news-read-more:hover {
    color: var(--navy);
    gap: 12px;
}

/* ============================================
   AI Chatbot Widget
   ============================================ */
.chatbot-widget {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    font-family: var(--font-primary);
}

.chatbot-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0b1f41;
    /* Dark navy from reference */
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    background: var(--navy);
}

.chatbot-toggle svg {
    width: 24px;
    height: 24px;
}

.chatbot-window {
    position: absolute;
    bottom: 84px;
    right: 0;
    width: 360px;
    height: 480px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
}

.chatbot-window.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.chatbot-header {
    background: #0b1f41;
    /* Dark navy */
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-title svg {
    color: var(--white);
    /* White icon in header instead of gold */
}

.chatbot-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 4px;
}

.chatbot-close:hover {
    color: var(--white);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--white);
    /* White background instead of gray */
}

.chat-msg {
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    display: flex;
    gap: 8px;
}

.bot-msg {
    align-self: flex-start;
    color: var(--navy);
}

.bot-msg .msg-content {
    background: #f1f4f9;
    /* Light gray-blue from reference */
    padding: 12px 16px;
    border-radius: 12px;
    border-top-left-radius: 4px;
}

.user-msg {
    align-self: flex-end;
}

.user-msg .msg-content {
    background: #0b1f41;
    color: var(--white);
    padding: 12px 16px;
    border-radius: 12px;
    border-bottom-right-radius: 4px;
}

.bot-avatar {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 10px;
    color: var(--gray-500);
}

.chatbot-input-area {
    padding: 16px;
    background: #f8fafc;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chatbot-input-area input {
    flex-grow: 1;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    background: var(--white);
}

.chatbot-input-area input:focus {
    border-color: var(--gray-400);
}

.chatbot-input-area button {
    background: #0b1f41;
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.chatbot-input-area button:hover {
    background: var(--navy);
}

@media (max-width: 768px) {
    .chatbot-window {
        width: calc(100vw - 48px);
        height: 60vh;
        bottom: 100px;
        right: 24px;
    }

    .vacancies-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .vacancy-details {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   UI Enhancements (Breadcrumbs, Toasts, Pagination, Back-to-Top)
   ============================================ */

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 16px;
    position: relative;
    z-index: 2;
}

.breadcrumbs a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--gold);
}

.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.breadcrumbs .current {
    color: var(--gold);
    font-weight: 500;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: #0b1f41;
    /* Navy */
    color: var(--gold);
    /* Gold icon */
    border: 2px solid var(--gold);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glass);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--white);
    color: var(--gray-800);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    border-left: 4px solid var(--gold);
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.info {
    border-left-color: #3b82f6;
}

/* Bootstrap Pagination Overrides */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
    flex-wrap: wrap;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.page-item .page-link:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gold-dark);
}

.page-item.active .page-link {
    background: var(--navy-dark);
    color: var(--white);
    border-color: var(--navy-dark);
}

.page-item.disabled .page-link {
    color: var(--gray-400);
    background: var(--gray-100);
    pointer-events: none;
}