:root {
    --forest: #002C72;
    --forest-dark: #001A47;
    --turmeric: #F2B705;
    --alert: #C1272D;
    --scholarship-blue: #1565C0;
    --bg: #F6F4EE;
    --panel: #FFFFFF;
    --ink: #211D16;
    --ink-soft: #5B5647;
    --line: #E3DFD2;
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

/* ===== FIX: prevent page-wide horizontal scrollbar =====
   Added because .mainnav li { flex: 0 0 auto !important } (in index.html's
   inline <style>) stops nav items from shrinking, and .nav-static-item's
   white-space: nowrap stops labels from wrapping. On narrower/mid-size
   desktop widths the nav's total width can exceed the viewport and bleed
   past the edge, which makes the whole <body> pick up a horizontal
   scrollbar. This clips overflow at the html/body level only - it does
   NOT touch overflow on .mainnav / .mainnav-outer, because those are the
   positioning ancestors of the dropdown submenus (.nav-dropdown is
   position:absolute, top:100%, inside them). Setting overflow-x on those
   elements forces the browser to also clip their overflow-y (per the CSS
   overflow spec, you can't have one axis clipped/auto and the other fully
   visible), which was cutting the dropdowns off before they could render -
   that's why they stopped opening. Keeping the fix scoped to html/body
   avoids that regression entirely. */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: 'Mukta', Arial, sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23C9971A' stroke-opacity='0.22' stroke-width='1.3'%3E%3Cpath d='M100,50 C124,50 136,70 132,92 C129,110 114,125 98,127 C89,127 83,121 84,112 C85,104 93,100 99,103 C103,105 106,100 102,97 C90,88 78,91 73,105 C66,126 80,145 103,143 C130,141 148,117 143,90 C138,62 116,45 100,50 Z' fill='%23C9971A' fill-opacity='0.045'/%3E%3C/g%3E%3Cg fill='none' stroke='%23002C72' stroke-opacity='0.13' stroke-width='1'%3E%3Cpath d='M100,10 L100,18 M78,30 Q100,8 122,30 L122,38 L78,38 Z'/%3E%3C/g%3E%3Cg fill='%23C9971A' fill-opacity='0.16'%3E%3Ccircle cx='15' cy='15' r='1.8'/%3E%3Ccircle cx='185' cy='15' r='1.8'/%3E%3Ccircle cx='15' cy='185' r='1.8'/%3E%3Ccircle cx='185' cy='185' r='1.8'/%3E%3C/g%3E%3C/svg%3E"), repeating-linear-gradient(45deg, rgba(201, 151, 26, .035) 0px, rgba(201, 151, 26, .035) 1px, transparent 1px, transparent 4px), radial-gradient(ellipse 1000px 550px at 50% -80px, rgba(242, 183, 5, .16) 0%, transparent 70%), linear-gradient(180deg, rgba(0, 44, 114, .09) 0%, rgba(0, 44, 114, 0) 720px), radial-gradient(ellipse 1400px 900px at 50% 40%, #FBF6EA 0%, var(--bg) 100%);
    background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
    background-size: 200px 200px, 6px 6px, 100% 100%, 100% 100%, 100% 100%;
}

@media (min-width: 901px) {
    body {
        background-attachment: fixed, fixed, scroll, scroll, scroll;
    }
}

h1,
h2,
h3,
.brand {
    font-family: 'Poppins', Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.warli-divider {
    height: 14px;
    background-image: radial-gradient(circle at 6px 7px, var(--turmeric) 2px, transparent 2.4px);
    background-size: 24px 14px;
    background-repeat: repeat-x;
    background-color: var(--forest-dark);
    background-position: center;
}

body.mode-grayscale {
    filter: grayscale(1);
}

body.mode-contrast {
    background: #000 !important;
    color: #FFF200 !important;
}

body.mode-contrast .panel,
body.mode-contrast .news-panel,
body.mode-contrast .link-card,
body.mode-contrast .forms-table,
body.mode-contrast .banner-helpline {
    background: #000 !important;
    color: #FFF200 !important;
    border-color: #FFF200 !important;
}

body.mode-contrast a {
    color: #4DB8FF !important;
}

body.mode-contrast header.site-header,
body.mode-contrast footer,
body.mode-contrast .mainnav-outer {
    background: #000 !important;
    border-color: #FFF200 !important;
}

body.font-step-1 {
    font-size: 112%;
}

body.font-step-2 {
    font-size: 126%;
}

body.font-step--1 {
    font-size: 90%;
}

.skip-link {
    color: #fff;
    opacity: .9;
    font-weight: 600;
}

.skip-link:focus,
.skip-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.utility-bar {
    background: var(--forest-dark);
    color: #fff;
    font-size: 12.5px;
    padding: 2px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.utility-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.utility-right {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
}

.utility-right>* {
    flex-shrink: 0;
}

.utility-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, .25);
}

.contrast-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.contrast-btn.active {
    border-color: var(--turmeric);
}

.dot-icon {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: block;
}

.icon-default {
    background: #fff;
}

.icon-grayscale {
    background: #9aa1ab;
}

.icon-contrast {
    background: #D6362B;
}

.font-btn {
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    padding: 2px 6px;
    border-radius: 5px;
    border: 2px solid transparent;
}

.font-btn.active {
    border-color: var(--turmeric);
    color: var(--turmeric);
}

.screen-reader-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    opacity: .9;
    font-weight: 500;
}

.lang-toggle {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 3px 4px;
    gap: 2px;
}

.lang-toggle .lang-btn {
    color: #fff;
    opacity: .75;
    padding: 3px 10px;
    border-radius: 14px;
    font-weight: 600;
}

.lang-toggle .lang-btn.active {
    background: #fff;
    color: var(--forest-dark);
    opacity: 1;
}

header.site-header {
    background-color: var(--panel);
    background-image: linear-gradient(180deg, rgba(0, 44, 114, .035) 0%, rgba(0, 44, 114, 0) 60%);
    padding: 16px 32px 10px;
    width: 100%;
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 44, 114, .06);
    position: relative;
    z-index: 1;
}

header.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--forest), #1E9FE0, var(--turmeric));
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 30, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
}

.popup-overlay.hidden {
    display: none;
}

.popup-close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--alert, #C1272D);
    color: #fff;
    border: 3px solid #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}

.popup-box-img {
    position: relative;
    width: min(360px, 90vw);
    cursor: pointer;
}

.popup-full-img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: block;
}

.banner-strip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
}

.banner-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
}

.banner-emblem {
    flex: 0 0 auto;
}

.banner-emblem .emblem {
    width: 90px;
    height: 132px;
    object-fit: contain;
}

.banner-center {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.govt-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--ink-soft);
    text-transform: uppercase;
}

.dept-title-ta {
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 800;
    color: var(--forest);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dept-tagline {
    font-size: 15px;
    font-style: italic;
    color: var(--ink-soft);
    margin-top: 4px;
}

.banner-cm {
    flex: 0 0 auto;
}

.banner-cm .photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--turmeric);
}

.banner-helpline {
    flex: 1 1 auto;
    max-width: 650px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 22px;
}

.helpline-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--alert);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 10px;
}

.helpline-icon {
    font-size: 14px;
}

.helpline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.helpline-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 0 0 auto;
}

.hl-label {
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

.hl-icon {
    font-size: 10.5px;
}

.hl-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

.item-scholarship .hl-label {
    color: var(--scholarship-blue);
}

.item-atrocity .hl-label {
    color: var(--alert);
}

.item-atrocity .hl-number {
    color: var(--alert);
}

.item-police .hl-label {
    color: var(--forest);
}

.item-child .hl-label {
    color: #2FA96B;
}

@media (max-width: 1300px) {
    .banner-strip {
        flex-wrap: wrap;
    }

    .banner-identity {
        order: 0;
        flex: 1 1 100%;
    }

    .banner-helpline {
        order: 1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .helpline-row {
        flex-direction: column;
        gap: 8px;
    }
}

.mainnav-outer {
    background: linear-gradient(90deg, var(--forest-dark) 0%, var(--forest) 50%, var(--forest-dark) 100%);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 3px solid var(--turmeric);
    box-shadow: 0 4px 14px rgba(0, 26, 71, .25);
}

.mainnav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0 2px;
    background: transparent;
    width: 100%;
}

.mainnav li {
    position: relative;
    list-style: none;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

body.lang-en .nav-static-item {
    padding: 15px clamp(4px, 0.45vw, 8px) !important;
    color: #fff !important;
    font-size: clamp(12px, 0.93vw, 14px) !important;
    font-weight: 600;
    font-family: 'Mukta', Arial, sans-serif;
    letter-spacing: 0;
    white-space: nowrap;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background .2s ease, color .2s ease;
}

body.lang-ta .nav-static-item {
    padding: 8px 10px !important;
    color: #fff !important;
    font-size: 12.5px !important;
    font-weight: 600;
    font-family: 'Mukta', Arial, sans-serif;
    letter-spacing: 0;
    white-space: normal;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    max-width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background .2s ease, color .2s ease;
}

.nav-static-item,
.nav-static-item:link,
.nav-static-item:visited {
    color: #fff !important;
}

.nav-static-item::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--turmeric);
    transform: translateX(-50%);
    transition: width .2s ease;
}

.nav-hover,
li.submenu-open>.nav-static-item {
    background: rgba(255, 255, 255, .08) !important;
    color: var(--turmeric) !important;
}

.nav-hover::before,
li.submenu-open>.nav-static-item::before {
    width: 22px;
}

.nav-selected {
    background: rgba(255, 255, 255, .08) !important;
    color: var(--turmeric) !important;
}

.nav-selected::before {
    width: 22px;
}

.nav-dropdown {
    display: none !important;
    position: absolute !important;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 250px;
    box-shadow: 0 14px 30px rgba(0, 26, 71, .2);
    border-top: 3px solid var(--turmeric);
    border-radius: 0 0 8px 8px;
    padding: 6px 0;
    white-space: normal;
    z-index: 60;
    list-style: none;
    margin: 0;
}

.nav-dropdown:not(:has(.nav-dropdown)) {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.mainnav li.submenu-open>.nav-dropdown {
    display: block !important;
}

.nav-dynamic-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 18px !important;
    font-size: 14px !important;
    color: var(--ink) !important;
    white-space: nowrap;
    font-family: 'Mukta', Arial, sans-serif;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background .15s ease, border-color .15s ease;
}

.nav-dynamic-item,
.nav-dynamic-item:link,
.nav-dynamic-item:visited {
    color: var(--ink) !important;
}

.nav-dynamic-hover,
li.submenu-open>.nav-dynamic-item {
    background: #F3F0E3 !important;
    color: var(--forest-dark) !important;
    border-left-color: var(--turmeric);
}

.nav-dropdown .nav-dropdown {
    top: 0 !important;
    left: 100% !important;
    margin-left: 2px;
    border-radius: 8px;
}

/* FIX: desktop only - last 3 menus (Media, Contact Us, Important Documents area)
   open towards the LEFT so their dropdowns/submenus stay inside the screen */
@media (min-width: 1301px) {
    .mainnav>li:nth-last-child(-n+3)>.nav-dropdown {
        left: auto;
        right: 0;
    }

    .mainnav>li:nth-last-child(-n+3) .nav-dropdown .nav-dropdown {
        left: auto !important;
        right: 100% !important;
        margin-left: 0;
        margin-right: 2px;
    }
}

.nav-dropdown a[href$="PolicyNote.aspx"] {
    white-space: pre-line;
    line-height: 1.5;
}

.mainnav>li:has(> .nav-dropdown)>.nav-static-item::after {
    content: "\25BE";
    margin-left: 2px;
    font-size: 9px;
    opacity: .8;
}

.nav-dropdown li:has(> .nav-dropdown)>.nav-dynamic-item::after {
    content: "\25B8";
    margin-left: 6px;
    font-size: 10px;
    opacity: .7;
}

.nav-toggle-btn {
    display: none;
    width: 100%;
    align-items: center;
    gap: 10px;
    background: var(--forest-dark);
    color: #fff;
    border: none;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Mukta', Arial, sans-serif;
    cursor: pointer;
    text-align: left;
}

.nav-toggle-btn .hamburger-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.nav-toggle-btn .hamburger-icon span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

@media (max-width: 1300px) {
    .nav-toggle-btn {
        display: flex;
    }

    .mainnav-outer .mainnav {
        display: none;
        flex-direction: column;
        width: 100%;
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--turmeric) var(--forest-dark);
    }

    .mainnav-outer .mainnav::-webkit-scrollbar-track {
        background: var(--forest-dark);
    }

    .mainnav-outer .mainnav::-webkit-scrollbar-thumb {
        background: var(--turmeric);
        border-radius: 4px;
    }

    .mainnav-outer.nav-open .mainnav {
        display: flex;
    }

    .mainnav li {
        flex: 1 1 100% !important;
    }

    .nav-static-item {
        justify-content: flex-start;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        left: auto;
        top: auto;
        width: 100%;
        max-height: none;
    }

    .nav-dropdown .nav-dropdown {
        padding-left: 14px;
    }
}

.hero-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1.6fr 5px 1fr;
    gap: 0;
}

.hero-divider {
    background: linear-gradient(180deg, var(--forest) 0%, #1E9FE0 50%, var(--turmeric) 100%);
    box-shadow: 0 0 16px rgba(30, 159, 224, .35);
}

@media (max-width: 900px) {
    .hero-wrap {
        grid-template-columns: 1fr;
    }

    .hero-divider {
        display: none;
    }
}

.slider {
    position: relative;
    height: 540px;
    overflow: hidden;
}

.slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
}

.slider .slide.active {
    opacity: 1;
}

.slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider .slide img.slide-contain {
    object-fit: contain;
    background: linear-gradient(90deg, var(--forest-dark), var(--forest), var(--forest-dark));
}

.slider .dots {
    position: absolute;
    bottom: 14px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.slider .dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
}

.slider .dots span.active {
    background: var(--turmeric);
}

.news-panel {
    background-color: var(--panel);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23C9971A' stroke-opacity='0.22' stroke-width='1.3'%3E%3Cpath d='M100,50 C124,50 136,70 132,92 C129,110 114,125 98,127 C89,127 83,121 84,112 C85,104 93,100 99,103 C103,105 106,100 102,97 C90,88 78,91 73,105 C66,126 80,145 103,143 C130,141 148,117 143,90 C138,62 116,45 100,50 Z' fill='%23C9971A' fill-opacity='0.045'/%3E%3C/g%3E%3Cg fill='none' stroke='%23002C72' stroke-opacity='0.13' stroke-width='1'%3E%3Cpath d='M100,10 L100,18 M78,30 Q100,8 122,30 L122,38 L78,38 Z'/%3E%3C/g%3E%3Cg fill='%23C9971A' fill-opacity='0.16'%3E%3Ccircle cx='15' cy='15' r='1.8'/%3E%3Ccircle cx='185' cy='15' r='1.8'/%3E%3Ccircle cx='15' cy='185' r='1.8'/%3E%3Ccircle cx='185' cy='185' r='1.8'/%3E%3C/g%3E%3C/svg%3E"), repeating-linear-gradient(45deg, rgba(201, 151, 26, .03) 0px, rgba(201, 151, 26, .03) 1px, transparent 1px, transparent 4px), radial-gradient(ellipse 500px 260px at 50% 0px, rgba(242, 183, 5, .12) 0%, transparent 75%);
    background-repeat: repeat, repeat, no-repeat;
    background-size: 160px 160px, 6px 6px, 100% 100%;
    border-left: none;
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(0, 44, 114, .08);
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 540px;
    overflow: hidden;
    position: relative;
}

.news-panel::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--forest), #1E9FE0, var(--turmeric));
    flex: 0 0 auto;
}

.news-panel-head {
    padding: 22px 26px 14px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.news-panel h3 {
    margin: 0;
    font-size: 19px;
    color: var(--forest-dark);
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: -.01em;
}

.news-panel h3::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--turmeric);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(242, 183, 5, .18);
}

.news-panel .sub {
    font-size: 12px;
    color: var(--ink-soft);
    margin: 3px 0 0 18px;
}

.news-live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--alert);
    text-transform: uppercase;
    letter-spacing: .05em;
    background: #FDEDEC;
    padding: 4px 10px;
    border-radius: 20px;
    flex: 0 0 auto;
}

.news-live-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--alert);
    animation: news-pulse 1.6s ease-in-out infinite;
}

.news-list li>a {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.news-title {
    flex: 1 1 auto;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    color: var(--ink);
}

.news-extension {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--alert, #C1272D);
    background: #FDECEC;
    border: 1px solid #F4C6C6;
    font-size: 11.5px;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: .01em;
}

.news-text-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.news-text-col .news-extension {
    align-self: flex-start;
}

@keyframes news-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(1.3);
    }
}

.news-scroll {
    overflow: hidden;
    flex: 1;
    position: relative;
    padding: 10px 22px;
}

.news-list li {
    padding: 13px 14px;
    margin-bottom: 8px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 44, 114, .05);
    font-size: 14.5px;
    line-height: 1.5;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: var(--ink);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.news-scroll .news-list {
    animation: news-scroll-up 36s linear infinite;
}

.news-scroll:hover .news-list {
    animation-play-state: paused;
    /* lets someone actually read an item by hovering */
}

.news-list li:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 44, 114, .12);
    border-color: #BFDCEC;
}

.news-list li:last-child {
    margin-bottom: 0;
}

.news-list .date {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 60px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 44, 114, .12);
    overflow: hidden;
    text-align: center;
    font-weight: 800;
    color: var(--alert);
    font-size: 10.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding-top: 20px;
    line-height: 1.25;
    transition: transform .15s ease, box-shadow .15s ease;
}

.news-list .date::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 14px;
    background: linear-gradient(90deg, var(--forest), #1E9FE0, var(--turmeric));
}

.news-list .date::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    opacity: .9;
    box-shadow: -13px 0 0 #fff, 13px 0 0 #fff;
    transform: translateX(-50%);
}

.news-list .date::first-line {
    font-size: 17px;
    line-height: 1.15;
    color: var(--forest-dark);
    letter-spacing: 0;
}

.news-panel .more {
    flex: 0 0 auto;
    margin: 0;
    padding: 14px 26px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--forest);
    text-align: right;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    transition: gap .15s ease, color .15s ease;
}

.news-panel .more:hover {
    gap: 8px;
    color: var(--forest-dark);
}

@keyframes news-scroll-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 26px 24px;
}

.section-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.section-title h2 {
    font-size: 19px;
    margin: 0;
    color: var(--forest-dark);
}

.section-title .rule {
    flex: 1;
    height: 2px;
    background: var(--line);
}

.section-title a.viewall {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--alert);
    white-space: nowrap;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.link-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    color: var(--forest-dark);
    transition: transform .15s ease, box-shadow .15s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.link-card .card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #EEF3EE;
}

.link-card .card-label {
    padding: 12px;
    text-align: center;
}

.role-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}

.role-card {
    background: #FAFAF8;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 26px 18px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.role-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .07);
    border-color: #D8D2BE;
}

.role-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.role-card-icon svg {
    width: 100%;
    height: 100%;
}

.role-card-title {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
}

.role-card-subtitle {
    font-size: 11.5px;
    color: var(--ink-soft);
    margin-top: -4px;
    margin-bottom: 4px;
}

.role-card-login {
    margin-top: 10px;
    display: inline-block;
    background: #1E9FE0;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 26px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background .15s ease;
}

.role-card-login:hover {
    background: #1683BD;
    color: #fff;
}

.role-card-icon.icon-purple {
    color: #7C4FE0;
}

.role-card-icon.icon-blue {
    color: #2C8CD9;
}

.role-card-icon.icon-green {
    color: #2FA96B;
}

.role-card-icon.icon-amber {
    color: #E0A429;
}

.role-card-icon.icon-pink {
    color: #D9689A;
}

.quicklink-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}

.quicklink-card {
    background: var(--panel);
    border: 1px solid #E7E2D2;
    border-radius: 14px;
    padding: 0 0 18px;
    text-align: center;
    display: block;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(20, 30, 50, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.quicklink-card::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--forest), #1E9FE0, var(--turmeric));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.quicklink-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 44, 114, .13);
    border-color: #BFDCEC;
}

.quicklink-card:hover::before {
    transform: scaleX(1);
}

.quicklink-img-wrap {
    background: linear-gradient(160deg, #EAF3F9 0%, #F5F8FB 100%);
    padding: 22px 16px 14px;
    margin-bottom: 14px;
}

.quicklink-img {
    width: 100%;
    max-width: 190px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto;
    transition: transform .2s ease;
}

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

.quicklink-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--forest-dark);
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color .18s ease;
}

.quicklink-label::after {
    content: "\2192";
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease;
    color: #1E9FE0;
    font-weight: 700;
}

.quicklink-card:hover .quicklink-label {
    color: #1E9FE0;
}

.quicklink-card:hover .quicklink-label::after {
    opacity: 1;
    transform: translateX(0);
}

.forms-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.forms-table th {
    background: var(--forest);
    color: #fff;
    text-align: left;
    font-size: 12.5px;
    padding: 10px 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.forms-table td {
    padding: 10px 14px;
    font-size: 13.5px;
    border-top: 1px solid var(--line);
}

.forms-table tr.alt td {
    background: #FAF8F1;
}

.forms-table .dl {
    color: var(--alert);
    font-weight: 600;
    font-size: 12.5px;
}

.apply-panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 44, 114, .08);
    padding: 0 28px 26px;
    overflow: hidden;
}

.apply-panel::before {
    content: "";
    display: block;
    height: 4px;
    margin: 0 -28px 22px;
    background: linear-gradient(90deg, var(--forest), #1E9FE0, var(--turmeric));
}

.apply-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    color: var(--forest-dark);
    font-family: 'Poppins', Arial, sans-serif;
    margin-bottom: 18px;
    letter-spacing: -.01em;
}

.apply-panel-head::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--turmeric);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(242, 183, 5, .18);
    flex: 0 0 auto;
}

.apply-arrow {
    color: #1E9FE0;
    font-weight: 700;
    margin-left: -2px;
}

.apply-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.apply-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--forest), var(--forest-dark));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 24px 13px 20px;
    border-radius: 30px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 44, 114, .18);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.apply-pill::before {
    content: "\2192";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, .18);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    transition: background .18s ease, transform .18s ease;
}

.apply-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 44, 114, .28);
    background: linear-gradient(135deg, #1E9FE0, var(--forest));
    color: #fff;
}

.apply-pill:hover::before {
    background: rgba(255, 255, 255, .32);
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .apply-pills {
        flex-direction: column;
    }

    .apply-pill {
        justify-content: center;
        text-align: center;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.gallery-card {
    position: relative;
    display: block;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 44, 114, .06);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.gallery-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--forest), #1E9FE0, var(--turmeric));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    z-index: 2;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 44, 114, .14);
    border-color: #BFDCEC;
}

.gallery-card:hover::before {
    transform: scaleX(1);
}

.gallery-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    background: #EEF3EE;
    transition: transform .3s ease;
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-card-caption {
    display: block;
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--forest-dark);
    line-height: 1.4;
}

.gallery-pdf-thumb {
    width: 100%;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--alert), #8f1c21);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
}

.gallery-card-thumb-wrap {
    position: relative;
}

.gallery-video-thumb-placeholder {
    width: 100%;
    height: 170px;
    background: linear-gradient(135deg, var(--forest), var(--forest-dark));
}

.gallery-card .play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 44, 114, .72);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    transition: transform .2s ease, background .2s ease;
}

.gallery-card .play-badge svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    margin-left: 3px;
}

.gallery-card:hover .play-badge {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--turmeric);
}

.gallery-empty {
    background: #FAF8F1;
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 14.5px;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 30, .88);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
    padding: 30px;
}

.lightbox-overlay.open {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox-caption {
    color: #fff;
    margin-top: 14px;
    font-size: 14.5px;
    text-align: center;
    max-width: 80vw;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    opacity: .85;
}

.lightbox-close:hover {
    opacity: 1;
}

.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 30, .88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 30px;
}

.video-modal-overlay.open {
    display: flex;
}

.video-modal-box {
    width: min(880px, 92vw);
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    position: relative;
}

.video-modal-frame-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.video-modal-frame-wrap iframe,
.video-modal-frame-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-caption {
    padding: 12px 16px;
    background: #111;
    color: #fff;
    font-size: 14px;
}

.video-modal-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.gallery-album {
    margin-bottom: 34px;
}

.gallery-album:last-child {
    margin-bottom: 0;
}

.gallery-album-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--forest-dark);
    margin: 0 0 14px;
    padding-bottom: 8px;
    font-family: 'Poppins', Arial, sans-serif;
}

.gallery-album-title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--turmeric);
    box-shadow: 0 0 0 4px rgba(242, 183, 5, .18);
    flex: 0 0 auto;
}

.gallery-album-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 220px;
    height: 2px;
    background: linear-gradient(90deg, var(--forest), transparent);
}

.folder-card {
    position: relative;
}

.gallery-card-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 10, 30, .72);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: .01em;
}

.gallery-card-count-badge svg {
    width: 13px;
    height: 13px;
    fill: #fff;
}

.gallery-detail-header {
    margin-bottom: 6px;
}

.gallery-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 14px;
    transition: gap .15s ease, color .15s ease;
}

.gallery-back-link:hover {
    gap: 10px;
    color: var(--forest-dark);
}

footer {
    background: linear-gradient(180deg, var(--forest-dark) 0%, #000E28 100%);
    color: #EDE9DA;
    margin-top: 30px;
    position: relative;
}

footer::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--turmeric), #1E9FE0, var(--forest), #1E9FE0, var(--turmeric));
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 20px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 24px;
}

.footer-grid>div {
    min-width: 0;
}

.footer-grid h4 {
    position: relative;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--turmeric);
    margin: 0 0 12px;
    padding-bottom: 8px;
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.footer-grid h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--turmeric), transparent);
}

.footer-grid p,
.footer-grid li {
    font-size: 13px;
    line-height: 1.65;
    color: #C7C2AF;
}

.footer-grid ul li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 4px;
    transition: padding-left .18s ease;
}

.footer-grid ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1E9FE0;
    transition: background .18s ease;
}

.footer-grid ul li:hover {
    padding-left: 18px;
}

.footer-grid ul li:hover::before {
    background: var(--turmeric);
}

.footer-grid li a {
    color: #C7C2AF;
    transition: color .18s ease;
}

.footer-grid li a:hover {
    color: var(--turmeric);
}

.footer-grid>div:first-child h4 {
    color: #fff;
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0;
}

.footer-grid>div:first-child h4::after {
    background: linear-gradient(90deg, #1E9FE0, transparent);
}

/* ===== Footer "Tribal Welfare Department" contact card ===== */
.footer-brand {
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .09);
    border-left: 3px solid var(--turmeric);
    border-radius: 12px;
    padding: 16px 18px 14px;
    transition: background .2s ease, border-left-color .2s ease, transform .2s ease;
}

.footer-brand:hover {
    background: rgba(255, 255, 255, .055);
    border-left-color: #1E9FE0;
    transform: translateY(-2px);
}

.footer-contact-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 14px;
}

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(242, 183, 5, .12);
    border: 1px solid rgba(242, 183, 5, .32);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    margin-top: 1px;
}

.footer-address-text {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: #D8D3C1;
}

.footer-contact-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #C7C2AF;
}

.footer-contact-lines span[data-en] {
    color: #8891A6;
    font-weight: 700;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.footer-contact-lines .fc-value {
    color: #EDE9DA;
    font-weight: 600;
    white-space: nowrap;
}

.footer-brand .footer-social {
    max-width: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 12px;
    flex-wrap: wrap;
}

.footer-brand .footer-social::before {
    width: 100%;
    margin-bottom: 2px;
}

.footer-social {
    max-width: 1280px;
    margin: 4px auto 0;
    padding: 0 24px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social::before {
    content: "Follow Us";
    font-size: 11.5px;
    font-weight: 700;
    color: #8891A6;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-right: 4px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #EDE9DA;
    transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}

.social-icon svg {
    width: 14px;
    height: 14px;
}

.social-icon:hover {
    background: var(--turmeric);
    border-color: var(--turmeric);
    color: var(--forest-dark);
    transform: translateY(-3px);
}

.social-icon.social-disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}

.social-icon.social-disabled:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    color: #EDE9DA;
    transform: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .15);
    padding: 12px 24px;
    font-size: 12px;
    color: #8891A6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-bottom>span:first-child {
    color: #B7B19C;
}

.footer-clock {
    font-size: 12.5px;
    color: #B7B19C;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
}

@media (max-width: 640px) {
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-clock {
        margin-left: 0;
    }
}

@media (max-width:768px) {
    .banner-strip {
        flex-wrap: wrap;
    }

    .banner-helpline {
        width: 100%;
        max-width: none;
    }

    .hero-wrap {
        grid-template-columns: 1fr;
    }

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

    .slider,
    .news-panel {
        height: 400px;
    }
}

@media (max-width: 768px) {
    header.site-header {
        padding: 16px 18px;
    }

    .banner-identity {
        gap: 16px;
    }

    .banner-emblem .emblem,
    .banner-cm .photo {
        width: 84px;
        height: 84px;
    }

    .govt-label {
        font-size: 11px;
    }

    .dept-tagline {
        font-size: 13px;
    }

    .helpline-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .section {
        padding: 20px 16px;
    }

    .quicklink-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 14px;
    }

    .apply-panel {
        padding: 18px 16px;
    }

    .slider,
    .news-panel {
        height: 300px;
    }

    .news-panel {
        padding: 18px 18px;
    }
}

.news-icon-wrap {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 44, 114, .18), inset 0 0 0 3px rgba(255, 255, 255, .14);
    flex-shrink: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
}

.news-list li:hover .news-icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 6px 16px rgba(0, 44, 114, .28), inset 0 0 0 3px rgba(255, 255, 255, .22);
}

.icon-exam {
    background: linear-gradient(135deg, #2196F3, #1565C0);
}

.icon-certificate {
    background: linear-gradient(135deg, #14508F, var(--forest-dark));
}

.icon-result {
    background: linear-gradient(135deg, #3FCB8C, #1E7E4E);
}

.news-list li {
    position: relative;
    padding: 15px 18px 15px 16px;
    margin-bottom: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 4px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 44, 114, .05);
    font-size: 14.5px;
    line-height: 1.5;
    display: flex;
    gap: 14px;
    align-items: center;
    color: var(--ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.news-list li:has(.icon-exam) {
    border-left-color: #1E88E5;
}

.news-list li:has(.icon-certificate) {
    border-left-color: var(--forest);
}

.news-list li:has(.icon-result) {
    border-left-color: #2FA96B;
}

.news-list li:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0, 44, 114, .13);
    border-color: #BFDCEC;
}

.news-list li>a {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.news-list li span:not(.news-icon-wrap):not(.news-icon):not(.news-title):not(.news-extension) {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.005em;
}

@media (max-width: 480px) {
    .utility-bar {
        flex-wrap: wrap;
        justify-content: center;
        padding: 6px 12px;
        gap: 8px 14px;
    }

    .utility-right {
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 8px;
    }

    .banner-strip {
        justify-content: center;
    }

    .banner-identity {
        flex-direction: column;
        text-align: center;
    }

    .banner-center {
        order: 2;
        text-align: center;
    }

    .banner-emblem {
        order: 1;
    }

    .banner-cm {
        order: 3;
    }

    .dept-title-ta {
        font-size: 20px;
    }

    .quicklink-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 10px;
    }

    .quicklink-img-wrap {
        padding: 16px 12px 10px;
    }

    .quicklink-img {
        height: 90px;
    }

    .quicklink-label {
        font-size: 13px;
    }

    .apply-pill {
        padding: 12px 20px;
        font-size: 13.5px;
    }

    .slider,
    .news-panel {
        height: 240px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding: 26px 18px 16px;
    }

    .footer-bottom {
        padding: 12px 16px;
        font-size: 11px;
    }
}

.visitor-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #D8D3C1;
    font-weight: 600;
    white-space: nowrap;
}

.counter-digits {
    background: #000;
    color: #39FF6A;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, .15);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.video-frame iframe,
.video-frame video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    padding: 12px 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--forest-dark);
}
/* ===== FINAL FIX: menu sizing on ALL pages (desktop) ===== */
@media (min-width: 1301px) {
    .mainnav-outer .mainnav {
        padding: 0 2px !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
    }

    .mainnav-outer .mainnav > li {
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }

    body.lang-en .mainnav-outer .mainnav > li > .nav-static-item {
        padding: 16px 7px !important;
        font-size: clamp(13px, 1.02vw, 15px) !important;   /* ~14px at 1366px */
        font-weight: 600;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    /* dropdown items */
    .nav-dynamic-item {
        font-size: 15px !important;
        padding: 11px 18px !important;
    }
}