:root {
    --dark: #0c3a26;
    --dark1: #154b34;
    --dark-2: #0a2f1f;
    --dark-3: #0f4a30;
    --green-line: #1c5a3a;
    --gold: #d9a83c;
    --gold-deep: #b98a1f;
    --cream: #faf8f2;
    --paper: #f3f1ea;
    --ink: #132a1e;
    --muted: #5c6b62;
    --line: #e6e2d6;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px -14px rgba(12, 58, 38, .25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Hind Siliguri', 'Noto Sans', sans-serif;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Noto Serif Bengali', serif;
    margin: 0;
    color: var(--dark);
    line-height: 1.25;
}

p {
    margin: 0;
}

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

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

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

button {
    font-family: inherit;
    cursor: pointer;
}

.wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}


.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--gold-deep);
    margin-bottom: 10px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--gold-deep);
    display: inline-block;
}

.section {
    padding: 72px 0;
}

.sectionGallery {
    padding: 0px 0;
}

.section.alt {
    background: var(--paper);
}

.section-head {
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-head h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.section-head p {
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.7;
}

.row-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.row-head h2 {
    font-size: 28px;
}

.link-arrow {
    color: var(--dark-3);
    font-weight: 600;
    font-size: 14.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-arrow svg {
    transition: transform .2s;
}

.link-arrow:hover svg {
    transform: translateX(3px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 14.5px;
    border: 1.5px solid transparent;
    transition: .2s ease;
    white-space: nowrap;
}

.btn-gold {
    background: var(--gold);
    color: #26210a;
}

.btn-gold:hover {
    background: #c99a2f;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .12);
}

.btn-outline-dark {
    border-color: rgba(12, 58, 38, .3);
    color: var(--dark);
}

.btn-outline-dark:hover {
    background: rgba(12, 58, 38, .06);
}

.btn-solid-dark {
    background: var(--dark);
    color: #fff;
}

.btn-solid-dark:hover {
    background: var(--dark-3);
}

.btn-white {
    background: #fff;
    color: var(--dark);
}

.btn-white:hover {
    background: #eef4f0;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 13.5px;
}

/* ===== Top bar ===== */
.topbar {
    background: var(--dark-2);
    color: #cfe3d7;
    font-size: 12.5px;
}

.topbar .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 38px;
}

.topbar .left {
    display: flex;
    gap: 22px;
    align-items: center;
}

.topbar .left span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar svg {
    width: 13px;
    height: 13px;
    opacity: .85;
}

/* ===== Header ===== */
header.site {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .12);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.brand .mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--gold), #a67c1f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.brand .name {
    font-family: 'Noto Serif Bengali', serif;
    font-weight: 700;
    font-size: 16.5px;
    line-height: 1.3;
}

.brand .sub {
    font-size: 11.5px;
    color: #a9c7b7;
    font-weight: 400;
}

nav.main-menu {
    display: flex;
    gap: 26px;
    align-items: center;
}

nav.main-menu a {
    color: #dfeee5;
    font-size: 14.5px;
    font-weight: 500;
    transition: color .2s;
}

nav.main-menu a:hover {
    color: var(--gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav.main-menu a.active {
    color: var(--gold);
    font-weight: 700;
}

/* optional: underline indicator */
nav.main-menu a.active {
    position: relative;
}

nav.main-menu a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #167741; 
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
}
.portal-dropdown {
    position: relative;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background .2s, border-color .2s;
}

.portal-btn:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .5);
}

.portal-btn svg {
    flex-shrink: 0;
    transition: transform .15s ease;
}

.portal-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.portal-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    padding: 6px;
    z-index: 60;
}

.portal-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 7px;
    color: var(--ink);
    text-decoration: none;
    transition: background .15s;
}

.portal-dropdown-item svg {
    flex-shrink: 0;
    color: var(--dark-3);
}

.portal-dropdown-item:hover {
    background: var(--paper);
}

[x-cloak] {
    display: none !important;
}
.apply-btn {
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--gold);
    color: #26210a;
    font-size: 13.5px;
    font-weight: 700;
}
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: transparent;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--dark1);
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 8px 24px 16px;
}

.mobile-nav a {
    color: #dfeee5;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a.active {
    color: var(--gold);
    font-weight: 700;
}

/* ===== Hero ===== */
.hero {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(255, 255, 255, .05), transparent 40%),
        radial-gradient(ellipse at 90% 90%, rgba(255, 255, 255, .04), transparent 45%),
        linear-gradient(180deg, var(--dark) 0%, #0e4229 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-inner { 
    padding: 14px 24px;
    position: relative;
    z-index: 2;
}

.dua-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 8px 18px 8px 16px;
    border-radius: 999px;
    margin-bottom: 26px;
}

.dua-badge .ar {
    font-family: 'Noto Naskh Arabic', serif;
    color: var(--gold);
    font-size: 17px;
    font-weight: 600;
}

.dua-badge .sep {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, .25);
}

.dua-badge .tr {
    font-size: 12.5px;
    color: #cfe3d7;
}

.hero h1 {
    font-size: 46px;
    color: #fff;
    font-weight: 700;
}

.hero h1 .accent {
    color: var(--gold);
}

.hero .meta-line {
    margin: 18px 0 14px;
    font-size: 14px;
    color: #b9d3c4;
}

.hero .desc {
    max-width: 600px;
    font-size: 16px;
    line-height: 1.85;
    color: #dcebe2;
    margin-bottom: 30px;
}

.hero .cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 46px;
}

.quicklinks {
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.quicklinks .wrap {
    display: flex;
    gap: 34px;
    padding: 16px 24px;
    flex-wrap: wrap;
}

.quicklinks a {
    font-size: 14px;
    font-weight: 600;
    color: #cfe3d7;
}

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

/* ===== Stats ===== */
.stats-strip {
    background: var(--dark-3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.stat-item {
    padding: 34px 12px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.stat-item:first-child {
    border-left: none;
}

.stat-item .ic {
    width: 34px;
    height: 34px;
    margin: 0 auto 10px;
    color: var(--gold);
}

.stat-item .num {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
}

.stat-item .lbl {
    font-size: 13px;
    color: #b9d3c4;
    margin-top: 4px;
}

/* ===== Notices ===== */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid var(--line);
    color: var(--muted);
    background: #fff;
}

.filter-chip.active {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notice {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: .2s;
}

.notice:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.notice .bell {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fbf3e0;
    color: var(--gold-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice .body {
    flex: 1;
    min-width: 0;
}

.notice .tags {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.tag.important {
    background: #fdece7;
    color: #c05a2c;
}

.tag.exam {
    background: #e8f4ec;
    color: #1c7a45;
}

.tag.admission {
    background: #eaf1fb;
    color: #2b62b8;
}

.tag.result {
    background: #f3ecfb;
    color: #7440b8;
}

.tag.event {
    background: #fef4de;
    color: #a97a12;
}

.tag.general {
    background: #eef1ee;
    color: #5c6b62;
}

.tag.holiday {
    background: #fdeaf0;
    color: #c23568;
}

.notice .date {
    font-size: 12.5px;
    color: var(--muted);
}

.notice h4 {
    font-size: 16.5px;
    color: var(--ink);
    margin-bottom: 6px;
    font-family: 'Hind Siliguri';
    font-weight: 700;
}

.notice p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.notice .side {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.pdf-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #c0392b;
}

.chev {
    color: #b7c2bb;
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.badge-float {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: var(--gold);
    color: #26210a;
    border-radius: 12px;
    padding: 14px 20px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.badge-float .n {
    font-family: 'Noto Serif Bengali';
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.badge-float .t {
    font-size: 11px;
    font-weight: 700;
    margin-top: 3px;
}

.about-copy h2 {
    font-size: 30px;
    margin-bottom: 16px;
}

.about-copy p {
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.85;
    margin-bottom: 20px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
}

.check-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14.5px;
    color: var(--ink);
    font-weight: 500;
}

.check-list svg {
    color: #1c7a45;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-copy .cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== Quote band ===== */
.quote-band {
    background: var(--dark);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 64px 0;
}

.quote-band .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 26px;
    color: var(--gold);
}

.quote-band .divider .ln {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, .25);
}

.quote-band .ar {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 42px;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 600;
}

.quote-band .tr {
    font-size: 19px;
    color: #eaf3ee;
    margin-bottom: 10px;
}

.quote-band .cite {
    font-size: 13.5px;
    color: #a9c7b7;
}

/* ===== Programs ===== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.prog-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transition: .2s;
}

.prog-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: transparent;
}

.prog-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.prog-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--ink);
    font-weight: 700;
}

.prog-tags {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.prog-tag {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
}

.prog-dur {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
}

.prog-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 16px;
    min-height: 70px;
}

.prog-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.center-btn {
    text-align: center;
    margin-top: 34px;
}

/* ===== Principal ===== */
.principal-card {
    background: var(--dark);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 340px 1fr;
    box-shadow: var(--shadow);
}

.principal-photo {
    background: linear-gradient(160deg, #123f2a, #0a2416);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.principal-photo img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    margin-bottom: 18px;
}

.principal-photo h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 4px;
}

.principal-photo .role {
    color: var(--gold);
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 6px;
}

.principal-photo .qual {
    color: #a9c7b7;
    font-size: 12.5px;
}

.principal-text {
    padding: 44px 48px;
    color: #fff;
}

.principal-text .quote-mark {
    font-size: 40px;
    color: var(--gold);
    opacity: .7;
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 8px;
}

.principal-text p.msg {
    font-size: 17px;
    line-height: 1.9;
    color: #e7f1eb;
    margin-bottom: 18px;
}

.principal-text .rd {
    color: var(--gold);
    font-weight: 700;
    font-size: 14.5px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

/* ===== Strength ===== */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.strength-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.strength-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eef4f0;
    color: var(--dark-3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.strength-card h4 {
    font-size: 16.5px;
    margin-bottom: 8px;
    color: var(--ink);
}

.strength-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
}

/* ===== Events ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 10px;
    padding-bottom: 18px;
}

.event-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .2s;
}

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

.event-img {
    position: relative;
    height: 150px;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--dark);
    color: #fff;
    border-radius: 8px;
    padding: 7px 12px;
    text-align: center;
    min-width: 52px;
}

.date-badge .d {
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.date-badge .m {
    font-size: 10.5px;
    color: var(--gold);
    margin-top: 2px;
}

.event-body {
    padding: 18px;
}

.event-body h4 {
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--ink);
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 6px;
}

.event-meta svg {
    flex-shrink: 0;
}

/* ===== Documents ===== */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.doc-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
}

.doc-ic {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #fdece9;
    color: #c0392b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-row .info {
    flex: 1;
    min-width: 0;
}

.doc-row h5 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 3px;
}

.doc-row .meta {
    font-size: 12px;
    color: var(--muted);
}

.dl-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef4f0;
    color: var(--dark-3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== Achievements ===== */
.ach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ach-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
}

.ach-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    color: var(--gold-deep);
    background: #fbf3e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ach-card .num {
    font-family: 'Noto Serif Bengali';
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}

.ach-card .lbl1 {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 4px;
}

.ach-card .lbl2 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    margin-top: 2px;
}

/* ===== Teachers ===== */
.teach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.teach-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    transition: .2s;
}

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

.teach-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.teach-body {
    padding: 18px;
}

.teach-body h4 {
    font-size: 15.5px;
    color: var(--ink);
    margin-bottom: 4px;
}

.teach-body .role {
    font-size: 13px;
    color: var(--gold-deep);
    font-weight: 700;
    margin-bottom: 3px;
}

.teach-body .dept {
    font-size: 12.5px;
    color: var(--muted);
}

/* ===== Portals ===== */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.portal-card {
    border-radius: var(--radius);
    padding: 32px;
    color: #fff;
    background: linear-gradient(165deg, #0f4a30, #0a2f1f);
}

.portal-card.mid {
    background: linear-gradient(165deg, #0c3a26, #082419);
}

.portal-card.dark {
    background: linear-gradient(165deg, #092718, #051710);
}

.portal-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.portal-card h4 {
    color: #fff;
    font-size: 19px;
    margin-bottom: 10px;
}

.portal-card p.desc {
    font-size: 14px;
    color: #cfe3d7;
    line-height: 1.75;
    margin-bottom: 16px;
}

.portal-list {
    margin-bottom: 22px;
}

.portal-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: #dcebe2;
    padding: 5px 0;
}

.portal-list li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

/* ===== Gallery ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.gallery-grid a {
    border-radius: 12px;
    overflow: hidden;
    display: block;
    height: 170px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

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

/* ===== Admission CTA ===== */
.cta-section {
    background: linear-gradient(135deg, #0c3a26, #0a2f1f);
    color: #fff;
    border-radius: 24px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1180px;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.cta-left {
    padding: 52px 48px;
}

.cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    color: var(--gold);
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.cta-left h2 {
    color: #fff;
    font-size: 30px;
    margin-bottom: 14px;
}

.cta-left p {
    color: #dcebe2;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
    max-width: 440px;
}

.cta-deadline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #b9d3c4;
    margin-bottom: 26px;
}

.cta-right {
    background: rgba(0, 0, 0, .18);
    padding: 44px 40px;
}

.cta-right h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: .02em;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
}

.fee-row:last-child {
    border-bottom: none;
}

.fee-row .name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #eaf3ee;
}

.fee-row .name svg {
    color: var(--gold);
    flex-shrink: 0;
}

.fee-row .meta {
    display: flex;
    gap: 16px;
    align-items: center;
    color: #b9d3c4;
    font-size: 13px;
}

.fee-row .price {
    color: var(--gold);
    font-weight: 700;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

    .contact-cards {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 24px;
    }

    .c-card {
      background: #fff;
      border: 1px solid #e6e2d6;
      border-radius: 12px;
      padding: 18px;
      display: flex;
      gap: 12px;
      align-items: flex-start;
      grid-column: span 1;
    }

    .c-card.full {
      grid-column: span 2;
    }

    .c-card .ic {
      width: 38px;
      height: 38px;
      border-radius: 9px;
      background: #eef4f0;
      color: #0f4a30;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 16px;
    }

    .c-card h5 {
      font-size: 14px;
      color: #132a1e;
      margin: 0 0 4px;
      font-weight: 700;
    }

    .c-card p {
      font-size: 13.5px;
      color: #5c6b62;
      line-height: 1.6;
      margin: 0;
    }

    .c-card>div:not(.ic) {
      font-size: 14px;
      color: #132a1e;
    }

    .btnfull {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 13px 24px;
      border-radius: 9px;
      font-weight: 700;
      font-size: 14.5px;
      background: #0c3a26;
      color: #fff;
      width: 100%;
    }

.map-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    min-height: 340px;
    box-shadow: var(--shadow);
}

.map-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 340px;
}
.map-wrap .map-iframe {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 340px;
}

.map-wrap .map-iframe iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}

.map-pin {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    gap: 8px;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

/* ===== Footer ===== */
footer {
    background: var(--dark-2);
    color: #cfe3d7;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 40px;
    padding-bottom: 44px;
}

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

.footer-brand .mark {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: linear-gradient(145deg, var(--gold), #a67c1f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.footer-brand .name {
    color: #fff;
    font-family: 'Noto Serif Bengali';
    font-weight: 700;
    font-size: 15.5px;
}

.footer-brand .est {
    font-size: 11.5px;
    color: #96b3a3;
}

footer p.about {
    font-size: 13.5px;
    line-height: 1.8;
    color: #a9c2b3;
    margin-bottom: 18px;
    max-width: 280px;
}

.foot-social {
    display: flex;
    gap: 10px;
}

.foot-social a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfe3d7;
}
.foot-social a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfe3d7;
    transition: color .2s, background .2s;
}

.foot-social a:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.foot-social a.fb:hover { color: #1877F2; }
.foot-social a.yt:hover { color: #ef4444; }
.foot-social a.ig:hover { color: #ec4899; }
.foot-social a.tw:hover { color: #38bdf8; }

footer h5 {
    color: #fff;
    font-size: 14.5px;
    margin-bottom: 18px;
    font-weight: 700;
}

footer .flinks {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

footer .flinks a {
    font-size: 13.5px;
    color: #a9c2b3;
}

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

.foot-contact li {
    display: flex;
    gap: 9px;
    font-size: 13.5px;
    color: #a9c2b3;
    margin-bottom: 13px;
    align-items: flex-start;
}

.foot-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: #8fab9b;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== Notice Modal ===== */
.notice {
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 17, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
    animation: overlayIn .2s ease;
}

.modal-box {
    background: #fff;
    border-radius: 18px;
    max-width: 640px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4);
    animation: boxIn .2s ease;
}

@keyframes overlayIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes boxIn {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

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

.modal-head {
    background: var(--dark);
    padding: 28px 32px 26px;
    border-radius: 18px 18px 0 0;
    position: relative;
}

.modal-head .tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.modal-head h3 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 12px;
    padding-right: 36px;
}

.modal-head .date {
    color: #a9c7b7;
    font-size: 14px;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
    cursor: pointer;
}

.modal-close:hover {
    background: rgba(255, 255, 255, .22);
}

.modal-body {
    padding: 30px 32px 32px;
}

.modal-body .desc {
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--ink);
    margin-bottom: 24px;
    white-space: pre-line;
}

.modal-file {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--paper);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.modal-file .doc-ic {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.modal-file .info {
    flex: 1;
    min-width: 0;
}

.modal-file h5 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 3px;
    word-break: break-word;
}

.modal-file .meta {
    font-size: 12.5px;
    color: var(--muted);
}

.modal-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark);
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    flex-shrink: 0;
    transition: .2s;
    text-decoration: none;
}

.modal-dl:hover {
    background: var(--dark-3);
}

.modal-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    object-fit: cover;
}

.modal-back {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-top: 8px;
}

.modal-back:hover {
    color: var(--dark);
}


/* ===== Responsive ===== */
@media (max-width:1000px) {
     nav.main-menu {
        display: none;
    }

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

    .mobile-nav[x-cloak] {
        display: none !important;
    }

    .mobile-nav {
        display: flex;
    }

    /* on tablet keep lang-btn/portal-btn hidden too so the bar doesn't overcrowd — only apply + hamburger remain */
    .lang-btn,
    .portal-dropdown {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-item:nth-child(4) {
        border-left: none;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        padding-top: 10px;
        padding-bottom: 10px;
    }

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

    .events-grid,
    .docs-grid,
    .ach-grid,
    .teach-grid,
    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .hero-inner {
        padding: 14px 24px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .dua-badge {
        margin-bottom: 20px;
    }

    .hero .cta-row {
        margin-bottom: 32px;
    }

    .quicklinks .wrap {
        gap: 20px;
        padding: 14px 24px;
    }
}

@media (max-width:640px) {
    .hero h1 {
        font-size: 32px;
    }

    .topbar .left span:last-child {
        display: none;
    }

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

    .stat-item {
        border-left: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .programs-grid,
    .strength-grid,
    .events-grid,
    .docs-grid,
    .ach-grid,
    .teach-grid,
    .portal-grid,
    .gallery-grid,
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .c-card.full {
        grid-column: span 1;
    }

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

    .cta-left,
    .cta-right {
        padding: 32px 24px;
    }

    .principal-text {
        padding: 32px 24px;
    }

    .section {
        padding: 52px 0;
    } 
    .map-wrap,
    .map-wrap img,
    .map-wrap .map-iframe {
        min-height: 220px;
    }
    .modal-head {
        padding: 24px 22px 22px;
    }

    .modal-head h3 {
        font-size: 21px;
    }

    .modal-body {
        padding: 24px 22px 28px;
    }

    .modal-file {
        flex-wrap: wrap;
    }

    .modal-dl {
        width: 100%;
        justify-content: center;
    }
}


.contact-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;

}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.form-input:focus {
    outline: none;
    border-color: #2b62b8;
    box-shadow: 0 0 0 3px rgba(43, 98, 184, .15);
}

.form-error {
    font-size: 12px;
    color: #dc2626;
}

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

/* ===== Success Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.modal-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
    width: 100%;
    max-width: 380px;
    padding: 32px 24px;
    text-align: center;
}

.modal-icon {
    width: 56px;
    height: 56px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}

.modal-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px;
}

.modal-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
}

.btn-block {
    width: 100%;
}

/* ===== Admission Form ===== */

/* Layout helpers */
.wrap-narrow {
    max-width: 1000px;
}

.mb-lg {
    margin-bottom: 24px;
}

.no-pad {
    padding: 0;
    overflow: hidden;
}

.adm-alerts {
    margin-bottom: 16px;
}

.adm-form-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.btn-lg {
    padding: 16px;
    font-size: 16px;
}

/* Success banner */
.adm-success {
    background: #e8f4ec;
    border: 1px solid #bfe3cb;
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.adm-success .title {
    color: #1c7a45;
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 4px;
}

.adm-success .sub {
    font-size: 12.5px;
    color: #2e7d4f;
}

.adm-success .mono {
    font-family: monospace;
    font-weight: 700;
}

/* Step titles */
.step-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.step-title-plain {
    margin: 0;
    border: none;
    padding: 0;
}

.exam-header {
    padding: 18px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.exam-body {
    padding: 24px;
}

.sub-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 12px;
    text-decoration: underline;
    text-decoration-color: rgba(217, 168, 60, .35);
    text-underline-offset: 4px;
}

/* Reuses .form-grid / .form-group / .form-input / .form-error already in org-frontend.css */
.form-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-group .opt {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
}

.form-group .req {
    color: #dc2626;
}

.form-select {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.form-select:disabled {
    background: #f9fafb;
    color: #9ca3af;
}

.form-select:focus {
    outline: none;
    border-color: var(--dark-3);
    box-shadow: 0 0 0 3px rgba(15, 74, 48, .12);
}

.form-file {
    width: 100%;
    font-size: 13.5px;
    color: var(--muted);
}

.form-file::file-selector-button {
    margin-right: 14px;
    padding: 9px 16px;
    border: none;
    border-radius: 8px;
    background: var(--dark-3);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.form-file::file-selector-button:hover {
    background: var(--dark);
}

/* Payment */
.payment-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
}

.payment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.fee-amount {
    font-size: 14px;
    color: var(--ink);
}

.fee-amount span {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-3);
}

.payment-note {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-note.info {
    background: #eaf1fb;
    border: 1px solid #cfe0f7;
    color: #2b62b8;
}

.payment-note.success {
    background: #e8f4ec;
    border: 1px solid #bfe3cb;
    color: #1c7a45;
    text-align: center;
    justify-content: center;
    font-weight: 600;
}

.payment-note .lbl {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* Exam info */
.exam-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.exam-info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.exam-info-card .ic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.exam-info-card .ic.blue {
    background: #eaf1fb;
    color: #2b62b8;
}

.exam-info-card .ic.green {
    background: #e8f4ec;
    color: #1c7a45;
}

.exam-info-card .ic.purple {
    background: #f3ecfb;
    color: #7440b8;
}

.exam-info-card .k {
    font-size: 11.5px;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.exam-info-card .v {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
}

.exam-notice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.notice-box {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 14px;
}

.notice-box.warn {
    background: #fef4de;
    border-left: 4px solid var(--gold);
}

.notice-box.plain {
    background: var(--paper);
    border-left: 4px solid var(--line);
}

.exam-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.exam-table th,
.exam-table td {
    border: 1px solid var(--line);
    padding: 8px 10px;
}

.exam-table th.center,
.exam-table td.center {
    text-align: center;
}

.exam-table thead th {
    background: var(--paper);
    text-align: left;
    font-weight: 700;
}

.exam-table .name {
    font-weight: 600;
}

.exam-table .pass {
    font-weight: 700;
    color: var(--dark-3);
}

@media (max-width: 800px) {
    .form-grid.cols-3 {
        grid-template-columns: 1fr;
    }

    .exam-info-grid {
        grid-template-columns: 1fr;
    }

    .exam-notice-grid {
        grid-template-columns: 1fr;
    }
}

.event-card {
    cursor: pointer;
}

.gallery-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: .2s;
}

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

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    height: 90px;
}

.gallery-tile {
    position: relative;
    overflow: hidden;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-more {
    position: absolute;
    inset: 0;
    background: rgba(12, 58, 38, .55);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card-body {
    padding: 14px 16px 16px;
}

.gallery-caption {
    font-size: 13.5px;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Gallery Detail Modal (reuses .modal-overlay / .modal-box / .modal-head / .modal-close / .modal-body) ===== */
.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.modal-gallery-grid a {
    border-radius: 10px;
    overflow: hidden;
    display: block;
    aspect-ratio: 1 / 1;
}

.modal-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.modal-gallery-grid a:hover img {
    transform: scale(1.06);
}

@media (max-width: 480px) {
    .modal-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Page Header (breadcrumb banner for inner pages) ===== */
.page-header {
    background: var(--dark1);
    padding: 46px 0 40px;
    position: relative;
    overflow: hidden;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #cfe3d7;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cfe3d7;
    transition: color .2s;
}

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

.breadcrumb .sep {
    display: inline-flex;
    color: rgba(255, 255, 255, .35);
}

.breadcrumb .current {
    color: #eaf3ee;
    font-weight: 700;
}

.page-header h1 {
    color: #fff;
    font-size: 34px;
    margin-bottom: 4px;
}

.page-header .desc {
    color: #cfe3d7;
    font-size: 15.5px;
    line-height: 1.7;
    max-width: 620px;
}

@media (max-width: 640px) {
    .page-header {
        padding: 36px 0 30px;
    }

    .page-header h1 {
        font-size: 28px;
    }
}

/* ===== Academic tabs: class routine grid ===== */
.routine-select {
    max-width: 380px;
    margin-bottom: 24px;
}

.routine-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.routine-grid {
    display: grid;
    min-width: max-content;
}

.rg-head {
    background: var(--dark);
    color: #eaf3ee;
    font-weight: 700;
    text-align: center;
    padding: 12px 8px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
}

.rg-head.rg-day-head {
    position: sticky;
    left: 0;
    z-index: 2;
}

.rg-head .b {
    font-size: 11px;
    color: var(--gold);
    margin-top: 2px;
}

.rg-break-head {
    background: #a9541f;
}

.rg-day {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
    text-align: center;
    padding: 16px 10px;
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
    font-size: 13.5px;
}

.rg-off {
    display: block;
    font-size: 11px;
    color: #c05a2c;
    font-weight: 600;
    margin-top: 2px;
}

.rg-cell {
    background: #fff;
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
    padding: 14px 10px;
    text-align: center;
}

.rg-cell .s {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
}

.rg-cell .tch {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.rg-empty {
    color: #c3ccc6;
    font-size: 13px;
}

.rg-break {
    background: #fef4de;
    color: #a97a12;
    font-weight: 700;
    font-size: 13.5px;
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #e8f4ec;
    color: #1c7a45;
}

.badge-danger {
    background: #fdece7;
    color: #c0392b;
}
.about-grid.reverse {
    flex-direction: row-reverse;
}
.about-grid.reverse .about-img {
    order: 2;
}
.about-grid.reverse .about-copy {
    order: 1;
}