        :root {
            --primary: #1a3a6b;
            --primary-dark: #12294a;
            --accent: #e8a33d;
            --accent-light: #f6c96b;
            --soft: #f6f8fc;
            --border: #e6eaf2;
            --text: #1f2937;
            --muted: #6b7280;
        }
        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            font-family: 'Noto Sans Malayalam', 'Inter', sans-serif;
            background: var(--soft);
            color: var(--text);
            overflow-x: hidden;
        }
        ::selection { background: var(--accent); color: #fff; }

        /* ---------- Top Bar ---------- */
        .top-bar {
            background: var(--primary-dark);
            color: #cbd5e1;
            font-size: .82rem;
            letter-spacing: .3px;
        }
        .top-bar a { color: var(--accent-light); text-decoration: none; font-weight: 600; }
        .top-bar a:hover { color: #fff; }

        /* ---------- Header / Menu ---------- */
        .site-header { background: #fff; border-bottom: 3px solid var(--accent); }
        .header-top { background: linear-gradient(135deg, #fdf6ea, #fdf9f0); }
        .brand-block img { height: 72px; width: auto; }
        .brand-block .title {
            color: var(--primary); 
            font-weight: 700; 
            font-size: clamp(1.35rem, 1.20vw, 1.00rem);
            line-height: 1.25;
        }
        .brand-block .sub {
            color: var(--accent); 
            font-size: clamp(0.80rem, 1.2vw, 1.1rem);
            font-weight: 800; 
            letter-spacing: .2px;
        }
        .header-top .office { font-size: .8rem; color: var(--muted); }
        .header-top .office i { color: var(--primary); }
        .header-search {
            display: flex; align-items: center; background: #fff; border: 1.5px solid var(--border);
            border-radius: 999px; padding: .2rem .2rem .2rem 1rem; width: 280px;
            box-shadow: 0 4px 14px rgba(26,58,107,.06);
        }
        .header-search input {
            border: none; outline: none; width: 100%; font-size: .9rem;
            font-family: inherit; background: transparent;
        }
        .header-search .btn-search {
            background: var(--primary); color: #fff; border: none; border-radius: 50%;
            width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
        }

        .menu-bar {
            background: var(--primary-dark);
            position: sticky; top: 0; z-index: 1030;
            box-shadow: 0 6px 20px rgba(18,41,74,.25);
        }
        .menu-bar .navbar { padding: 0; border-bottom: 1px solid var(--accent);}
        .menu-bar .navbar-nav { width: 100%; display: flex; }
        .menu-bar .nav-item { flex: 1 1 0; position: relative; }
        .menu-bar .nav-link {
            color: #e8eef8; font-weight: 600; font-size: .75rem;
            padding: .95rem .4rem !important; text-align: center;
            border-right: 1px solid rgba(255,255,255,.08);
            white-space: nowrap; transition: all .2s;
        }
        .menu-bar .nav-item:last-child .nav-link { border-right: none; }
        .menu-bar .nav-link:hover, .menu-bar .nav-link.active {
            background: var(--accent); color: var(--primary-dark);
        }
        .menu-bar .nav-link.dropdown-toggle::after {
            border: none; content: "\f282"; font-family: "bootstrap-icons"; vertical-align: middle;
            margin-left: 5px;
        }
        .menu-bar .dropdown-menu {
            border: none; border-radius: 0 0 14px 14px; margin-top: 0;
            box-shadow: 0 24px 50px rgba(18,41,74,.2); padding: .5rem; min-width: 250px;
        }
        .menu-bar .nav-item.dropdown.show .dropdown-menu,
        .menu-bar .nav-item.dropdown.open .dropdown-menu { display: block; }
        .menu-bar .nav-item.dropdown.show > .nav-link,
        .menu-bar .nav-item.dropdown.open > .nav-link { background: var(--accent); color: var(--primary-dark); }
        .menu-bar .dropdown-menu.dropdown-menu-end { right: 0; left: auto; }

        /* ---------- Megamenu (Modern cards + feature) ---------- */
        .menu-bar .nav-item.dropdown.mega-parent { position: static; }
        .menu-bar .mega-menu {
            width: 100%; left: 0; right: 0; top: 100%;
            min-width: 0; border-radius: 0 0 18px 18px; padding: 0;
            max-height: calc(100vh - 90px); overflow-y: auto; overflow-x: hidden;
            border: 1px solid #152f56; border-top: none;
        }
        .mega-menu .mega-header {
            background: linear-gradient(120deg, var(--primary-dark), var(--primary));
            color: #fff; padding: 1.1rem 1.5rem; position: relative; overflow: hidden;
            display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
        }
        .mega-menu .mega-header::after {
            content: ""; position: absolute; right: -40px; top: -70px; width: 220px; height: 220px;
            border: 2px dashed rgba(255,255,255,.15); border-radius: 50%;
        }
        .mega-menu .mega-ht { position: relative; z-index: 2; }
        .mega-menu .mega-eyebrow {
            font-size: .72rem; letter-spacing: 1.2px; font-weight: 700;
            color: var(--accent-light); text-transform: uppercase;
        }
        .mega-menu .mega-ht h5 { margin: .15rem 0 .15rem; font-weight: 800; font-size: 1.15rem; }
        .mega-menu .mega-ht p { margin: 0; font-size: .82rem; color: #c9d8ee; max-width: 560px; }
        .mega-menu .mega-viewall {
            position: relative; z-index: 2; flex-shrink: 0;
            background: var(--accent); color: var(--primary-dark); font-weight: 700; font-size: .85rem;
            padding: .5rem 1.1rem; border-radius: 8px; text-decoration: none; transition: all .2s;
        }
        .mega-menu .mega-viewall:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.25); }

        .mega-menu .mega-body {
            display: flex; flex-wrap: wrap; background: #fff; padding: 1.5rem; gap: 1.5rem;
        }
        .mega-menu .mega-col { flex: 1 1 250px; min-width: 0; }
        .mega-menu .mega-feature {
            flex: 1 1 260px; min-width: 0;
            background: linear-gradient(150deg, #f2f6fc, #e7eef9);
            border: 1px solid #dbe6f2; border-radius: 14px; padding: 1.2rem;
            display: flex; flex-direction: column;
        }
        .mega-menu .mega-feature-top { display: flex; gap: .8rem; align-items: flex-start; }
        .mega-menu .mega-feature-top h6 { font-weight: 800; color: var(--primary); margin: 0 0 .2rem; }
        .mega-menu .mega-feature-top p { font-size: .82rem; color: #5a6b7f; margin: 0; }
        .mega-menu .mega-feature-stats { display: flex; gap: .6rem; margin: 1rem 0; }
        .mega-menu .mega-feature-stats > div {
            flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 10px;
            text-align: center; padding: .6rem .3rem;
        }
        .mega-menu .mega-feature-stats strong { display: block; font-size: 1.4rem; color: var(--primary); font-weight: 800; }
        .mega-menu .mega-feature-stats span { font-size: .68rem; color: #6b7a8d; }
        .mega-menu .mega-feature .btn { margin-top: auto; }

        .mega-menu .mega-head {
            display: flex; flex-direction: column; font-weight: 800; color: var(--primary);
            font-size: .98rem; padding-bottom: .55rem; border-bottom: 2px solid var(--accent);
            margin-bottom: .7rem;
        }
        .mega-menu .mega-head i { color: var(--accent); }
        .mega-menu .mega-head small { font-size: .7rem; color: #8a97a8; font-weight: 600; letter-spacing: .3px; }
        .mega-menu .mega-list { list-style: none; margin: 0; padding: 0; }
        .mega-menu .mega-list li { margin-bottom: .15rem; }
        .mega-menu .mega-list a {
            display: flex; align-items: center; gap: 10px; padding: .5rem .6rem;
            border-radius: 8px; color: var(--text); text-decoration: none;
            font-size: .88rem; font-weight: 600; transition: all .15s;
        }
        .mega-menu .mega-list a i { color: var(--primary); width: 20px; flex-shrink: 0; font-size: .95rem; }
        .mega-menu .mega-list a em {
            margin-left: auto; font-style: normal; font-size: .68rem; color: #9aa7b8; font-weight: 500;
        }
        .mega-menu .mega-list a:hover {
            background: linear-gradient(90deg, #eef3fb, #f7fafd); color: var(--primary); transform: translateX(3px);
        }
        .mega-menu .mega-list a:hover em { color: var(--accent); }

        .mega-menu .mega-divisions {
            background: #f7fafd; border-top: 1px solid var(--border); padding: 1.4rem 1.5rem 1.6rem;
        }
        .mega-menu .mega-div-head {
            font-weight: 800; color: var(--primary); font-size: .98rem;
            padding-bottom: .55rem; border-bottom: 2px solid var(--accent); margin-bottom: 1rem;
        }
        .mega-menu .mega-div-head small { font-size: .7rem; color: #8a97a8; font-weight: 600; }
        .mega-menu .mega-card-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem;
        }
        .mega-menu .mega-card {
            display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem;
            background: #fff; border: 1px solid var(--border); border-radius: 10px;
            color: var(--text); text-decoration: none; transition: all .18s;
        }
        .mega-menu .mega-card i {
            width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff;
        }
        .mega-menu .mega-card span { font-size: .8rem; font-weight: 700; line-height: 1.2; }
        .mega-menu .mega-card small { display: block; font-size: .66rem; color: #8a97a8; font-weight: 500; }
        .mega-menu .mega-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(18,41,74,.12); border-color: var(--accent); }
        .mega-menu .mega-card:hover small { color: var(--accent); }
        .mega-menu .mega-card.c1 i  { background:#3b82c4; } .mega-menu .mega-card.c2 i  { background:#e0a94b; }
        .mega-menu .mega-card.c3 i  { background:#5aa469; } .mega-menu .mega-card.c4 i  { background:#8a6ec0; }
        .mega-menu .mega-card.c5 i  { background:#d0785a; } .mega-menu .mega-card.c6 i  { background:#4a9daa; }
        .mega-menu .mega-card.c7 i  { background:#2f7f5f; } .mega-menu .mega-card.c8 i  { background:#c0566b; }
        .mega-menu .mega-card.c9 i  { background:#6b8fd0; } .mega-menu .mega-card.c10 i { background:#a5854a; }
        .mega-menu .mega-card.c11 i { background:#5599bb; } .mega-menu .mega-card.c12 i { background:#7aa35e; }
        .mega-menu .mega-card.c13 i { background:#d06666; } .mega-menu .mega-card.c14 i { background:#4a8f7f; }
        .mega-menu .mega-card.c15 i { background:#7d7dc4; } .mega-menu .mega-card.c16 i { background:#cc7b4a; }
        .mega-menu .mega-card.c17 i { background:#3f7fb0; }

        .mega-menu .mega-footer {
            display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.4rem;
            background: var(--primary-dark); color: #dbe6f5; padding: .85rem 1.5rem;
            font-size: .82rem; border-radius: 0 0 17px 17px;
        }
        .mega-menu .mega-footer span { display: flex; align-items: center; }
        .mega-menu .mega-footer i { color: var(--accent-light); }
        .mega-menu .mega-footer a {
            margin-left: auto; color: #fff; font-weight: 700; text-decoration: none;
            background: var(--accent); color: var(--primary-dark); padding: .4rem 1rem; border-radius: 7px;
        }
        .mega-menu .mega-footer a:hover { filter: brightness(1.05); }

        @media (max-width: 991px) {
            .menu-bar .nav-item.dropdown.mega-parent { position: relative; }
            .menu-bar .mega-menu { position: static; width: 100%; box-shadow: none; border-radius: 0; max-height: none; }
            .mega-menu .mega-body { display: block; }
            .mega-menu .mega-col { margin-bottom: 1rem; }
            .mega-menu .mega-card-grid { grid-template-columns: 1fr; }
            .mega-menu .mega-footer { border-radius: 0; }
            .mega-menu .mega-footer a { margin-left: 0; }
        }
        .menu-bar .dropdown-item {
            border-radius: 8px; padding: .55rem .8rem; font-size: .9rem; font-weight: 500;
            color: var(--text); transition: all .15s;
        }
        .menu-bar .dropdown-item:hover { background: #eef3fb; color: var(--primary); transform: translateX(3px); }
        .menu-bar .dropdown-item i { color: var(--primary); width: 20px; }
        .menu-bar .navbar-toggler {
            border: 1px solid rgba(255,255,255,.3); color: #fff; padding: .4rem .7rem;
        }
        .menu-bar .navbar-toggler:focus { box-shadow: 0 0 0 .15rem rgba(232,163,61,.4); }

        @media (max-width: 1199px) {
            .menu-bar .nav-link { font-size: .78rem; padding: .9rem .2rem !important; }
        }
        .btn-accent {
            background: linear-gradient(135deg, var(--accent), #d9852b);
            color: #fff !important; font-weight: 500; border: none; border-radius: 10px;
            padding: .55rem 1.2rem; transition: all .25s;
        }
        .btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232,163,61,.35); color: #fff; }
        .btn-outline-primary-custom {
            border: 1.5px solid var(--primary); color: var(--primary);
            font-weight: 600; border-radius: 10px; padding: .5rem 1.1rem; background: transparent;
            transition: all .25s;
        }
        .btn-outline-primary-custom:hover { background: var(--primary); color: #fff; }

        /* ---------- Campaign banner slider ---------- */
        .campaign-slider {
            overflow: hidden;
            box-shadow: 0 18px 45px rgba(26,58,107,.14);
            border: 1px solid var(--border);
        }
        .campaign-slider .carousel-item img {
            height: auto; width: 100%; object-fit: cover;
        }
        .campaign-slider .carousel-indicators [data-bs-target] {
            width: 10px; height: 10px; border-radius: 50%; border: 0;
            background: rgba(255,255,255,.6); opacity: .7;
        }
        .campaign-slider .carousel-indicators .active { background: var(--accent); opacity: 1; }
        .campaign-slider .carousel-control-prev,
        .campaign-slider .carousel-control-next {
            width: 12%; opacity: 0; transition: opacity .25s;
        }
        .campaign-slider:hover .carousel-control-prev,
        .campaign-slider:hover .carousel-control-next { opacity: 1; }
        .campaign-slider .carousel-control-prev-icon,
        .campaign-slider .carousel-control-next-icon {
            filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
        }
        @media (max-width: 767px) {
            .campaign-slider .carousel-item img { height: 170px; }
        }

        /* ---------- Inner page banner ---------- */
        .page-banner {
            position: relative;
            background:
                radial-gradient(700px 300px at 90% -20%, rgba(232,163,61,.28), transparent 60%),
                linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2c5aa0 100%);
            color: #fff; padding: 3.2rem 0 2.6rem; overflow: hidden;
        }
        .page-banner::before, .page-banner::after {
            content: ""; position: absolute; border-radius: 50%;
        }
        .page-banner::before {
            width: 340px; height: 340px; border: 2px dashed rgba(255,255,255,.14); top: -120px; right: -80px;
        }
        .page-banner::after {
            width: 240px; height: 240px; border: 1.5px dashed rgba(255,255,255,.1); bottom: -100px; left: -60px;
        }
        .page-banner .container { position: relative; z-index: 2; }
        .page-banner h1 {
            font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin: .4rem 0 0;
        }
        .breadcrumb-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
        .breadcrumb-custom a { color: var(--accent-light); text-decoration: none; font-weight: 600; }
        .breadcrumb-custom a:hover { color: #fff; }
        .breadcrumb-custom span { color: #c9d8ee; }

        .doc-list { list-style: none; padding: 0; margin: 0; }
        .doc-list li {
            display: flex; align-items: center; gap: 12px; padding: .85rem 1rem;
            background: #fff; border: 1px solid var(--border); border-radius: 12px;
            margin-bottom: .7rem; transition: all .2s;
        }
        .doc-list li:hover { border-color: var(--accent); box-shadow: 0 8px 20px rgba(26,58,107,.08); transform: translateX(3px); }
        .doc-list a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem; flex: 1; }
        .doc-list a:hover { color: var(--primary); }
        .doc-list .fi {
            width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            background: #eef3fb; color: var(--primary); font-size: 1rem;
        }

        .data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
        .data-table thead th {
            background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem;
            padding: .85rem 1rem; text-align: left; white-space: nowrap;
        }
        .data-table tbody td {
            padding: .8rem 1rem; font-size: .9rem; border-top: 1px solid var(--border); vertical-align: top;
        }
        .data-table tbody tr:nth-child(even) { background: #f8fafd; }
        .data-table tbody tr:hover { background: #eef3fb; }

        .accordion-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 1rem; overflow: hidden; }
        .accordion-card .acc-head {
            padding: 1rem 1.25rem; font-weight: 700; color: var(--primary);
            cursor: pointer; display: flex; justify-content: space-between; align-items: center;
            border-bottom: 1px solid var(--border);
        }
        .accordion-card .acc-body { padding: 1.25rem; }

        .card-soft { background: #fff; border: 1px solid var(--border); border-radius: 16px; }
        .icon-chip {
            width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
            background: #eef3fb; color: var(--primary);
        }

        /* ---------- Hero ---------- */
        .hero {
            position: relative;
            background:
                radial-gradient(800px 400px at 85% -10%, rgba(232,163,61,.25), transparent 60%),
                radial-gradient(700px 500px at -10% 110%, rgba(74,120,198,.35), transparent 60%),
                linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #2c5aa0 100%);
            color: #fff;
            overflow: hidden;
        }
        .hero::before, .hero::after {
            content: ""; position: absolute; border-radius: 50%; filter: blur(4px); opacity: .5;
        }
        .hero::before {
            width: 420px; height: 420px; border: 2px dashed rgba(255,255,255,.15);
            top: -140px; right: -120px;
        }
        .hero::after {
            width: 300px; height: 300px; border: 1.5px dashed rgba(255,255,255,.12);
            bottom: -110px; left: -80px;
        }
        .hero .container { position: relative; z-index: 2; }
        .hero-badge {
            display: inline-flex; align-items: center; gap: 8px;
            background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
            border-radius: 999px; padding: .35rem 1rem; font-size: .8rem; font-weight: 600;
            color: var(--accent-light);
        }
        .hero h1 {
            font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.6rem);
            line-height: 1.25; margin: 1.2rem 0 1rem;
        }
        .hero h1 span { color: var(--accent-light); }
        .hero p.lead { color: #dbe6f5; font-size: 1.05rem; max-width: 560px; }
        .hero-stats .stat {
            background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
            border-radius: 14px; padding: 1rem 1.25rem; text-align: center; min-width: 110px;
        }
        .hero-stats .stat h3 { font-weight: 800; margin: 0; color: #fff; }
        .hero-stats .stat p { margin: 0; font-size: .78rem; color: #bcd0ea; }
        .hero-card {
            background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
            backdrop-filter: blur(14px); border-radius: 20px; overflow: hidden;
            box-shadow: 0 25px 60px rgba(0,0,0,.25);
        }
        .hero-card .card-header {
            background: rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.15);
            padding: 1rem 1.25rem;
        }
        .hero-card .list-group-item {
            background: transparent; border-color: rgba(255,255,255,.12);
            color: #e8eef8;
        }
        .hero-card .list-group-item a { color: #fff; text-decoration: none; }
        .hero-card .list-group-item a:hover { color: var(--accent-light); }
        .hero-card .tag {
            font-size: .68rem; padding: .2rem .55rem; border-radius: 6px;
            background: rgba(232,163,61,.2); color: var(--accent-light);
            font-weight: 700; letter-spacing: .3px; white-space: nowrap;
        }
        .hero-banner {
            background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
            border-radius: 16px; padding: 1rem 1.25rem;
        }
        .hero-banner .label { color: var(--accent-light); font-weight: 700; font-size: .8rem; }

        /* ---------- Section headings ---------- */
        .section-eyebrow {
            display: inline-block; color: var(--accent); font-weight: 800;
            font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: .5rem;
        }
        .section-title { font-weight: 800; color: var(--primary); }

        /* ---------- Quick links ---------- */
        .quick-card {
            background: #fff; border: 1px solid var(--border); border-radius: 16px;
            padding: 1.2rem .75rem; text-align: center; text-decoration: none; color: var(--text);
            transition: all .25s; height: 100%;
        }
        .quick-card .icon {
            width: 52px; height: 52px; margin: 0 auto .6rem; border-radius: 14px;
            display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
            color: var(--primary); background: #eef3fb; transition: all .25s;
        }
        .quick-card:hover {
            transform: translateY(-6px); border-color: transparent;
            box-shadow: 0 16px 35px rgba(26,58,107,.12);
        }
        .quick-card:hover .icon { background: linear-gradient(135deg, var(--accent), #d9852b); color: #fff; }
        .quick-card h6 { font-size: .85rem; font-weight: 700; margin: 0; }

        /* ---------- I&PRD Initiatives cards ---------- */
        .init-card {
            background: #fff; border: 1px solid var(--border); border-radius: 14px;
            padding: .9rem 1rem; text-decoration: none; color: var(--text);
            transition: all .25s; height: 100%;
        }
        .init-card .ic {
            width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.25rem; color: #fff;
        }
        .init-card .ic.c1 { background: linear-gradient(135deg, #3b82c4, #2a6299); }
        .init-card .ic.c2 { background: linear-gradient(135deg, #e0a94b, #c98a2e); }
        .init-card .ic.c3 { background: linear-gradient(135deg, #5aa469, #3f8a4f); }
        .init-card .ic.c4 { background: linear-gradient(135deg, #8a6ec0, #6a4f9e); }
        .init-card .ic.c5 { background: linear-gradient(135deg, #d06666, #b04b4b); }
        .init-card .ic.c6 { background: linear-gradient(135deg, #2f7f5f, #1e6247); }
        .init-card strong { display: block; font-size: .92rem; font-weight: 700; color: var(--primary-dark); }
        .init-card small { font-size: .74rem; color: #7a8899; display: block; line-height: 1.25; }
        .init-card .ext { color: var(--accent); font-size: .9rem; flex-shrink: 0; opacity: .55; transition: all .2s; }
        .init-card:hover {
            transform: translateY(-5px); border-color: transparent;
            box-shadow: 0 14px 30px rgba(26,58,107,.12);
        }
        .init-card:hover .ext { opacity: 1; transform: translateX(3px); }

        /* ---------- News cards ---------- */
        .news-card {
            background: #fff; border: 1px solid var(--border); border-radius: 16px;
            padding: 1.5rem; height: 100%; display: flex; flex-direction: column;
            transition: all .25s; position: relative; overflow: hidden;
        }
        .news-card::before {
            content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
            background: linear-gradient(var(--accent), #d9852b); opacity: 0; transition: opacity .25s;
        }
        .news-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(26,58,107,.1); }
        .news-card:hover::before { opacity: 1; }
        .news-card .date { font-size: .75rem; color: var(--muted); font-weight: 600; }
        .news-card .cat {
            font-size: .7rem; font-weight: 700; color: var(--primary);
            background: #eef3fb; border-radius: 6px; padding: .2rem .6rem;
        }
        .news-card h5 { font-weight: 700; color: var(--text); font-size: 1.02rem; line-height: 1.5; }
        .news-card .readmore { color: var(--accent); font-weight: 700; font-size: .88rem; text-decoration: none; }
        .news-card .readmore:hover { color: #d9852b; }

        /* ---------- Flagship project cards ---------- */
        .flagship-card {
            background: #fff; border: 1px solid var(--border); border-radius: 16px;
            overflow: hidden; text-decoration: none; color: var(--text);
            transition: all .25s; display: flex; flex-direction: column; height: 100%; padding: 0;
        }
        .flagship-card .fp-img {
            display: flex; align-items: center; justify-content: center;
            width: 100%; height: 150px; color: rgba(255,255,255,.85); font-size: 1.6rem;
            position: relative; overflow: hidden;
        }
        .flagship-card .fp-img::after {
            content: ""; position: absolute; inset: 0;
            background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 10px, transparent 10px 20px);
        }
        .flagship-card .fp-img i { position: relative; z-index: 2; }
        .flagship-card .fp-img.c1 { background: linear-gradient(135deg, #e04f5f, #c0392b); }
        .flagship-card .fp-img.c2 { background: linear-gradient(135deg, #3b82c4, #2a6299); }
        .flagship-card .fp-img.c3 { background: linear-gradient(135deg, #5aa469, #3f8a4f); }
        .flagship-card .fp-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
        .flagship-card h5 { font-weight: 800; color: var(--primary-dark); font-size: 1.1rem; margin-bottom: .5rem; }
        .flagship-card p { margin-bottom: .8rem; }
        .flagship-card .readmore {
            display: inline-block; margin-top: auto; color: var(--accent); font-weight: 700; font-size: .88rem; text-decoration: none;
        }
        .flagship-card:hover {
            transform: translateY(-6px); border-color: transparent;
            box-shadow: 0 18px 40px rgba(26,58,107,.12);
        }
        .flagship-card:hover .readmore { color: #d9852b; }

        /* ---------- Notifications ---------- */
        .notice-list { list-style: none; padding: 0; margin: 0; }
        .notice-list li {
            display: flex; align-items: center; gap: 12px;
            padding: .9rem 1rem; border-radius: 12px; background: #fff;
            border: 1px solid var(--border); margin-bottom: .75rem; transition: all .2s;
        }
        .notice-list li:hover { border-color: var(--accent); box-shadow: 0 8px 20px rgba(26,58,107,.08); }
        .notice-list a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem; flex: 1; }
        .notice-list a:hover { color: var(--primary); }
        .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

        .gradient-panel {
            background: linear-gradient(160deg, var(--primary) 0%, #2c5aa0 100%);
            border-radius: 20px; color: #fff; padding: 1.75rem;
            position: relative; overflow: hidden; height: 100%;
        }
        .gradient-panel::after {
            content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
            background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 5px, transparent 5px 20px);
            bottom: -80px; right: -60px;
        }
        .gradient-panel a { color: var(--accent-light); text-decoration: none; }
        .gradient-panel a:hover { color: #fff; }

        /* ---------- Publications ---------- */
        .pub-card {
            background: #fff; border: 1px solid var(--border); border-radius: 16px;
            overflow: hidden; text-decoration: none; color: var(--text);
            transition: all .3s; height: 100%;
        }
        .pub-card:hover { transform: translateY(-6px); box-shadow: 0 22px 45px rgba(26,58,107,.16); }
        .pub-card img {
            display: block; width: 100%; height: auto; object-fit: cover;
            background: #eef1f7;
            box-shadow: inset 10px 0 14px -8px rgba(10,26,51,.55),
                        inset -7px 0 8px -6px rgba(255,255,255,.45);
        }
        .pub-card .body { padding: .9rem 1.1rem 1.1rem; }
        .pub-card .body .type { font-size: .7rem; font-weight: 700; color: var(--accent); }
        .pub-card .body h6 { font-weight: 700; margin: 0; }

        /* ---------- About ---------- */
        .about-img { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(26,58,107,.15); }
        .feature-item { display: flex; gap: 14px; align-items: flex-start; padding: 1rem 0; }
        .feature-item .fi {
            width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
            background: #eef3fb; color: var(--primary);
        }
        .feature-item h6 { font-weight: 700; margin-bottom: .25rem; }
        .feature-item p { font-size: .88rem; color: var(--muted); margin: 0; }

        .leader-card {
            background: #fff; border: 1px solid var(--border); border-radius: 18px;
            padding: 1.75rem 1.25rem; text-align: center; height: 100%;
            transition: all .25s;
        }
        .leader-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(26,58,107,.1); }
        .leader-card img {
            width: 150px; height: 150px; object-fit: cover; border-radius: 10%;
            border: 3px solid var(--accent); padding: 3px; background: #fff;
        }
        .leader-card h6 { font-weight: 700; margin: .8rem 0 .1rem; }
        .leader-card .role { color: var(--accent); font-weight: 700; font-size: .8rem; }

        /* ---------- CTA ---------- */
        .cta {
            background:
                radial-gradient(600px 300px at 20% 0%, rgba(232,163,61,.3), transparent 60%),
                linear-gradient(135deg, var(--primary-dark), var(--primary));
            border-radius: 24px; color: #fff; padding: 3rem;
            position: relative; overflow: hidden;
        }
        .cta h3 { font-weight: 800; }
        .cta p { color: #dbe6f5; }

        /* ---------- Footer ---------- */
        footer {
            background: var(--primary-dark); color: #b7c6de;
            position: relative;
        }
        footer::before {
            content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
            background: linear-gradient(90deg, var(--accent), #d9852b);
        }
        footer h6 { color: #fff; font-weight: 700; letter-spacing: .5px; margin-bottom: 1.1rem; }
        footer a { color: #b7c6de; text-decoration: none; transition: color .2s; }
        footer a:hover { color: var(--accent-light); }
        footer ul { list-style: none; padding: 0; margin: 0; }
        footer ul li { margin-bottom: .55rem; font-size: .9rem; }
        footer ul li i { color: var(--accent); margin-right: 6px; font-size: .75rem; }
        .social-icon {
            width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
            background: rgba(255,255,255,.08); border-radius: 10px; color: #fff;
            font-size: 1rem; margin-right: 6px; transition: all .2s;
        }
        .social-icon:hover { background: var(--accent); transform: translateY(-3px); }
        .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }

        /* ---------- Accessibility toolbar ---------- */
        .a11y-bar { background: var(--primary-dark); font-size: .8rem; color: #cbd5e1; }
        .a11y-bar a, .a11y-bar button { color: var(--accent-light); text-decoration: none; font-weight: 600; background: none; border: none; font-size: .8rem; padding: 0; }
        .a11y-bar a:hover, .a11y-bar button:hover { color: #fff; }
        .a11y-bar .skip-link { border-right: 1px solid rgba(255,255,255,.2); padding-right: 10px; margin-right: 10px; }
        .a11y-bar .a11y-controls { display: flex; align-items: center; gap: 8px; }
        .a11y-bar .a11y-controls button {
            background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: #fff;
            padding: 3px 9px; border-radius: 6px; font-size: .78rem; font-weight: 700; transition: all .2s;
        }
        .a11y-bar .a11y-controls button:hover { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
        .a11y-bar .a11y-controls button.active-contrast { background: #fff; color: #000; border-color: #fff; }

        .lang-dropdown { position: relative; }
        .lang-dropdown .lang-current {
            display: flex; align-items: center; gap: 6px; cursor: pointer;
            background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
            border-radius: 6px; padding: 2px 10px; color: #fff; font-weight: 600; font-size: .8rem;
        }
        .lang-dropdown .lang-current img { height: 14px; border-radius: 2px; }
        .lang-dropdown .lang-menu {
            display: none; position: absolute; right: 0; top: 110%; z-index: 1050;
            background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2);
            padding: .4rem; min-width: 150px;
        }
        .lang-dropdown.open .lang-menu { display: block; }
        .lang-dropdown .lang-menu a {
            display: flex; align-items: center; gap: 8px; padding: .5rem .7rem; color: var(--text);
            border-radius: 8px; font-weight: 500; text-decoration: none; font-size: .88rem;
        }
        .lang-dropdown .lang-menu a:hover { background: #eef3fb; color: var(--primary); }
        .lang-dropdown .lang-menu a img { height: 16px; border-radius: 2px; }

        body.high-contrast { background: #000 !important; }
        body.high-contrast,
        body.high-contrast * { color: #ff0 !important; border-color: #ff0 !important; }
        body.high-contrast .top-bar,
        body.high-contrast .site-header,
        body.high-contrast .menu-bar,
        body.high-contrast footer,
        body.high-contrast .card-soft,
        body.high-contrast .gradient-panel { background: #000 !important; }

        /* ---------- Animations ---------- */
        .reveal { opacity: 0; transform: translateY(30px); transition: all .7s ease; }
        .reveal.in-view { opacity: 1; transform: none; }
        .float-anim { animation: float 6s ease-in-out infinite; }
        @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

        @media (max-width: 991px) {
            .brand-block { justify-content: center; text-align: center; }
            .brand-block img { height: 54px; }
            .header-search { width: 100%; }
            .a11y-bar .skip-link,
            .a11y-bar .a11y-controls { display: none; }
            .a11y-bar .container { justify-content: flex-end; }
            .menu-bar .navbar-toggler { margin-left: auto; }
            .menu-bar .navbar-collapse {
                position: absolute; top: 100%; left: 0; right: 0;
                max-height: calc(100vh - 60px); overflow-y: auto; overflow-x: hidden;
                background: var(--primary-dark);
                border-top: 2px solid var(--accent);
                border-radius: 0 0 16px 16px;
                box-shadow: 0 25px 50px rgba(18,41,74,.35);
                z-index: 1045;
            }
            .menu-bar .navbar-collapse.collapsing { transition: none; }
            .menu-bar .nav-link { text-align: left; padding: .8rem 1rem !important; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
            .menu-bar .dropdown-menu { border-radius: 0; box-shadow: none; min-width: auto; }
        }


        /* ==========================================
   Back to Top Button
========================================== */

.back-to-top{
    position:fixed;
    right:25px;
    bottom:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:var(--bs-primary,#0f2b5c);
    color:#fff;
    font-size:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(0,0,0,.20);
    z-index:1050;

    opacity:0;
    visibility:hidden;
    transform:translateY(20px);

    transition:all .3s ease;
}

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

.back-to-top:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 28px rgba(0,0,0,.28);
}

.back-to-top:active{
    transform:scale(.95);
}

.back-to-top i{
    line-height:1;
}

/* Mobile */

@media (max-width:768px){

    .back-to-top{
        width:44px;
        height:44px;
        right:15px;
        bottom:15px;
        font-size:18px;
    }

}

.display-5{
    font-size:clamp(1.3rem, 2vw + 1rem, 2.5rem);
    line-height:1.2;
    font-weight:700;
}


.icon-chip.c1 { background:#3b82c4; }
.icon-chip.c2 { background:#e0a94b; }
.icon-chip.c3 { background:#5aa469; }
.icon-chip.c4 { background:#8a6ec0; }
.icon-chip.c5 { background:#d0785a; }
.icon-chip.c6 { background:#4a9daa; }
.icon-chip.c7 { background:#2f7f5f; }
.icon-chip.c8 { background:#c0566b; }
.icon-chip.c9 { background:#6b8fd0; }
.icon-chip.c10 { background:#a5854a; }
.icon-chip.c11 { background:#5599bb; }
.icon-chip.c12 { background:#7aa35e; }
.icon-chip.c13 { background:#d06666; }
.icon-chip.c14 { background:#4a8f7f; }
.icon-chip.c15 { background:#7d7dc4; }
.icon-chip.c16 { background:#cc7b4a; }
.icon-chip.c17 { background:#3f7fb0; }

@media (max-width: 767.98px) {
    .brand-block span {
        text-align: left;
    }

    .brand-block .title,
    .brand-block .sub {
        text-align: left;
        font-size: clamp(0.9rem, 1.10vw, 1.25rem);
    }
}

/* Compact Mega Menu Styles */
.mega-menu.mega-menu-sm {
    min-width: 480px;      /* Fixed compact width */
    max-width: 520px;
    width: max-content;
    left: 0 !important;    /* Prevents stretching to full container width */
    right: auto !important;
}

/* Responsive Handling for Mobile Screens */
@media (max-width: 768px) {
    .mega-menu.mega-menu-sm {
        min-width: 100%;
        width: 100%;
    }
}

/* ==========================================
   District Office Detail Page
   ========================================== */

/* District Banner - 1900 x 250 */
.dist-banner {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--primary-dark);
}
.dist-banner img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.dist-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18,41,74,.85) 0%, rgba(26,58,107,.7) 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 1.5rem;
}
.dist-banner-overlay h1 {
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: #fff;
    margin: .3rem 0 .15rem;
}
.dist-banner-overlay p {
    color: var(--accent-light);
    font-size: .9rem;
    font-weight: 600;
}
@media (max-width: 767px) {
    .dist-banner,
    .dist-banner img { height: 180px; }
}

/* District Navigation Bar */
.dist-nav-bar {
    background: #fff;
    border-bottom: 2px solid var(--border);
    box-shadow: 0 4px 12px rgba(26,58,107,.06);
}
.dist-nav-scroll {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding: .6rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.dist-nav-scroll::-webkit-scrollbar { display: none; }
.dist-nav-item {
    flex-shrink: 0;
    padding: .45rem .9rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text);
    background: var(--soft);
    border: 1px solid var(--border);
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
}
.dist-nav-item:hover {
    background: #eef3fb;
    color: var(--primary);
    border-color: var(--primary);
}
.dist-nav-item.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}