/* =====================================================
   Footer
   ===================================================== */
.site-footer {
    background: #1a2233;
    color: #e6eaf3;
    padding: 0 0 0 0;
    font-size: 1rem;
    margin-top: 0;
}

.site-footer .container {
    padding-top: 48px;
    padding-bottom: 18px;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 32px;
    justify-content: space-between;
    border-bottom: 1.5px solid #2c3447;
    padding-bottom: 32px;
}

.footer-col {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 340px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    margin-bottom: 6px;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px 0;
}

.footer-desc {
    font-size: 1rem;
    color: #b6c2d6;
    margin-bottom: 0;
}

.footer-col-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-link-list a {
    color: #e6eaf3;
    text-decoration: none;
    transition: color 0.18s;
}

.footer-link-list a:hover {
    color: #4fc3f7;
    text-decoration: underline;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-contact-list i {
    color: #4fc3f7;
    margin-right: 8px;
    font-size: 1.1em;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 18px;
}

.footer-copyright {
    font-size: 0.98rem;
    color: #b6c2d6;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: #e6eaf3;
    font-size: 1.25rem;
    transition: color 0.18s;
}

.footer-social a:hover {
    color: #4fc3f7;
}

@media (max-width: 991.98px) {
    .footer-main {
        flex-direction: column;
        gap: 28px;
        align-items: flex-start;
    }

    .footer-col {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .site-footer .container {
        padding-top: 18px;
        padding-bottom: 6px;
    }

    .footer-main {
        padding-bottom: 10px;
        gap: 16px;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-col-title {
        font-size: 0.95rem;
    }

    .footer-desc {
        font-size: 0.88rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        padding-top: 6px;
        align-items: flex-start;
    }

    .footer-col {
        min-width: 0;
        max-width: 100%;
    }

    .footer-logo {
        width: 40px;
        height: 40px;
    }

    .footer-social a {
        font-size: 1.1rem;
    }
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact-section {
    background: #f8fafc;
    padding: 0 0 48px 0;
    margin-top: 0;
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact-section {
    background: #f8fafc;
    padding: 0 0 48px 0;
    margin-top: 0;
}

.contact-map-wrap {
    width: 100%;
    background: #e5eaf2;
    border-bottom: 1px solid #e2e6ea;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    max-height: 400px;
    overflow: hidden;
}

.contact-map-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.contact-info-bar {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 32px;
    background: #fff;
    box-shadow: 0 4px 32px rgba(20, 127, 209, 0.08);
    border-radius: 12px;
    margin: -60px auto 0 auto;
    padding: 32px 40px;
    max-width: 1100px;
    position: relative;
    z-index: 2;
}

.contact-info-box {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 220px;
    border-right: 1px solid #e7eaf0;
    padding: 0 18px;
}

.contact-info-box:last-child {
    border-right: none;
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: #f7fafd;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(20, 127, 209, 0.10);
    font-size: 2rem;
}

.contact-info-label {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.contact-info-text {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .contact-info-bar {
        flex-direction: column;
        gap: 18px;
        padding: 24px 10px;
    }

    .contact-info-box {
        border-right: none;
        border-bottom: 1px solid #e7eaf0;
        min-width: 0;
        padding: 12px 0;
    }

    .contact-info-box:last-child {
        border-bottom: none;
    }

    .footer-main {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }

    .footer-col {
        max-width: 100%;
    }
}

/* General fix: prevent horizontal scroll on mobile */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Responsive: fix grid/flex for teachers, committee, stats, gallery */
@media (max-width: 767.98px) {
    .teachers-grid {
        grid-template-columns: 1fr;
    }

    .committee-section-head,
    .stats-section-head,
    .gallery-section-head,
    .best-students-head {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .stats-circles-wrap {
        gap: 12px;
    }

    .stat-circle {
        width: 110px;
        height: 110px;
    }

    .gallery-section-title,
    .committee-section-title,
    .stats-section-title {
        font-size: 1.1rem;
    }

    .gallery-item,
    .student-item {
        padding: 0 2px;
    }

    .gallery-caption p {
        font-size: 0.8rem;
    }

    .committee-card {
        padding: 16px 8px 12px;
    }

    .committee-photo-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .student-photo-wrap {
        width: 90%;
        margin-top: 8px;
    }

    .student-card {
        border-radius: 10px;
    }

    .student-info {
        padding: 10px 4px 8px;
    }

    .student-name {
        font-size: 0.92rem;
    }

    .student-class {
        font-size: 0.75rem;
    }

    .student-meta {
        font-size: 0.72rem;
        gap: 6px;
    }
}

@media (max-width: 400px) {
    .footer-main {
        gap: 8px;
    }

    .footer-title {
        font-size: 0.92rem;
    }

    .footer-col-title {
        font-size: 0.85rem;
    }

    .footer-desc {
        font-size: 0.8rem;
    }

    .footer-logo {
        width: 32px;
        height: 32px;
    }

    .footer-social a {
        font-size: 1rem;
    }


    .contact-info-label {
        font-size: 0.98rem;
    }

    .contact-info-text {
        font-size: 0.92rem;
    }
}

.contact-map-wrap {
    width: 100%;
    background: #e5eaf2;
    border-bottom: 1px solid #e2e6ea;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    max-height: 400px;
    overflow: hidden;
}

.contact-map-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.contact-info-bar {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 32px;
    background: #fff;
    box-shadow: 0 4px 32px rgba(20, 127, 209, 0.08);
    border-radius: 12px;
    margin: -60px auto 0 auto;
    padding: 32px 40px;
    max-width: 1100px;
    position: relative;
    z-index: 2;
}

.contact-info-box {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 220px;
    border-right: 1px solid #e7eaf0;
    padding: 0 18px;
}

.contact-info-box:last-child {
    border-right: none;
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: #f7fafd;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(20, 127, 209, 0.10);
    font-size: 2rem;
}

.contact-info-label {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.contact-info-text {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .contact-info-bar {
        flex-direction: column;
        gap: 18px;
        padding: 24px 10px;
    }

    .contact-info-box {
        border-right: none;
        border-bottom: 1px solid #e7eaf0;
        min-width: 0;
        padding: 12px 0;
    }

    .contact-info-box:last-child {
        border-bottom: none;
    }
}

@media (max-width: 575.98px) {
    .contact-section {
        padding-bottom: 24px;
    }

    .contact-info-bar {
        padding: 12px 2px;
        border-radius: 8px;
    }

    .contact-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .contact-info-label {
        font-size: 0.98rem;
    }

    .contact-info-text {
        font-size: 0.92rem;
    }
}

:root {
    --header-bg: #f2f4f5;
    --brand-green: #147fd1;
    --brand-green-dark: #106ab0;
    --muted-gray: #6f7580;
    --ink: #21252f;
    --panel: #ffffff;
}

body {
    font-family: "Noto Sans Bengali", sans-serif;
    background: radial-gradient(circle at top right, #f7faf8 0%, #eff1f3 45%, #ebedef 100%);
    color: var(--ink);
}

@media (min-width: 1200px) {
    .container {
        max-width: 1260px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1380px;
    }
}

.header-shell {
    background: var(--header-bg);
    border-bottom: 1px solid #e2e6ea;
}

.top-strip {
    min-height: 48px;
    border-bottom: 1px solid #e1e6ee;
    background: transparent;
    padding: 8px 2px;
    margin-top: 0;
}

.meta-item {
    font-size: 1.2rem;
}

.main-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--header-bg, #fff);
    /* fallback to white */
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e6ea;
    transition: box-shadow 0.25s, background 0.25s, transform 0.25s, padding 0.25s;
}

.main-nav-wrap.navbar-open {
    box-shadow: 0 10px 24px rgba(18, 31, 49, 0.14);
}

.main-nav-wrap.navbar-open .school-nav {
    box-shadow: none;
}

.school-nav {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #ffffff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #e0e7f0;
}

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

.brand-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: -2px;
    line-height: 1.1;
}

.school-nav #mainNav {
    min-width: 0;
}

.school-nav #mainNav .navbar-nav {
    gap: 0.2rem;
}

.school-nav #mainNav .nav-link {
    color: #2a3039;
    font-weight: 500;
    font-size: 0.98rem;
    padding: 0.6rem 0.68rem;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}

.school-nav #mainNav .nav-link:hover,
.school-nav #mainNav .nav-link:focus {
    color: var(--brand-green-dark);
    background: #eaf4ff;
    border-color: #d4e8fb;
}

.school-nav #mainNav .nav-link.active {
    color: #fff;
    background: var(--brand-green);
    border-color: var(--brand-green);
    box-shadow: 0 8px 16px rgba(20, 127, 209, 0.24);
}

.school-nav #mainNav .dropdown-menu {
    border: 1px solid #e4e9ef;
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(31, 39, 55, 0.12);
    padding: 0.45rem;
    margin-top: 0.55rem;
}

.school-nav #mainNav .dropdown-item {
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
}

.school-nav #mainNav .dropdown-item:hover,
.school-nav #mainNav .dropdown-item:focus {
    background: #eaf4ff;
    color: var(--brand-green-dark);
}

.btn-login {
    background: transparent;
    color: var(--brand-green);
    border: 2px solid var(--brand-green);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.48rem 1rem;
}

.btn-login:hover {
    background: var(--brand-green);
    color: #fff;
}

/*
 * Header fit. The full menu is shown from 1200px (navbar-expand-xl).
 * Where it would not fit on one line it is tightened: by width on the
 * common 1280-1366px laptops, and by app.js (.nav-tight) wherever it
 * measures an overflow. If even that does not fit (a long institute
 * name), app.js shows the ☰ menu instead (.nav-compact).
 */
@media (min-width: 1200px) {
    /* A long name wraps onto a second line instead of pushing the menu out. */
    .school-nav .navbar-brand {
        white-space: normal;
        max-width: 34%;
    }

    .school-nav .brand-title {
        line-height: 1.15;
    }
}

@media (min-width: 1200px) and (max-width: 1439.98px) {
    .school-nav .navbar-brand {
        margin-right: 0.75rem !important;
        gap: 0.65rem !important;
    }

    .school-nav .brand-mark {
        width: 46px;
        height: 46px;
    }

    .school-nav .brand-title {
        font-size: 1.15rem;
    }

    .school-nav .brand-sub {
        font-size: 0.8rem;
    }

    .school-nav #mainNav .navbar-nav {
        gap: 0.1rem;
    }

    .school-nav #mainNav .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.5rem;
    }

    .school-nav .btn-login {
        padding: 0.4rem 0.8rem;
        font-size: 0.92rem;
    }
}

.main-nav-wrap.nav-tight .navbar-brand {
    margin-right: 0.75rem !important;
    gap: 0.65rem !important;
}

.main-nav-wrap.nav-tight .brand-mark {
    width: 46px;
    height: 46px;
}

.main-nav-wrap.nav-tight .brand-title {
    font-size: 1.15rem;
}

.main-nav-wrap.nav-tight .brand-sub {
    font-size: 0.8rem;
}

.main-nav-wrap.nav-tight #mainNav .navbar-nav {
    gap: 0.1rem;
}

.main-nav-wrap.nav-tight #mainNav .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.5rem;
}

.main-nav-wrap.nav-tight .btn-login {
    padding: 0.4rem 0.8rem;
    font-size: 0.92rem;
}

@media (max-width: 1199.98px) {
    .school-nav .navbar-brand {
        max-width: calc(100% - 72px);
        white-space: normal;
    }
}

/* While app.js measures the header: no animation between the sizes it tries. */
.main-nav-wrap.nav-measuring,
.main-nav-wrap.nav-measuring * {
    transition: none !important;
}

.main-nav-wrap.nav-compact #mainNav {
    display: none !important;
}

.main-nav-wrap.nav-compact .mobile-menu-trigger {
    display: inline-flex !important;
    margin-left: auto;
}

.main-nav-wrap.nav-compact .navbar-brand {
    max-width: calc(100% - 72px);
    white-space: normal;
}

.mobile-menu-trigger {
    border: 1px solid #d6dde5;
    border-radius: 12px;
    width: 52px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f9fbfd;
}

.mobile-menu-trigger:focus {
    box-shadow: 0 0 0 0.2rem rgba(20, 127, 209, 0.2);
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #5f6772;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.menu-bars {
    position: relative;
}

.menu-bars::before {
    position: absolute;
    top: -6px;
}

.menu-bars::after {
    position: absolute;
    top: 6px;
}

.mobile-nav {
    width: min(90vw, 360px);
    border-left: 1px solid #e4e9ef;
}

.mobile-nav-head {
    background: #eef6ff;
    border-bottom: 1px solid #dbe8f7;
    padding: 1rem;
}

.mobile-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    font-size: 1.1rem;
}

.mobile-brand-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.mobile-brand-sub {
    color: #66707a;
}

.custom-close {
    border: 1px solid var(--brand-green);
    border-radius: 999px;
    width: 36px;
    height: 36px;
}

.mobile-menu-list {
    padding: 0.5rem 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 0.25rem;
    color: #17212b;
    text-decoration: none;
    border-bottom: 1px solid #e6ebf0;
    font-size: 1.2rem;
    font-weight: 500;
}

.mobile-menu-link:hover {
    color: var(--brand-green-dark);
}

.mobile-menu-link.active {
    color: var(--brand-green-dark);
    font-weight: 700;
}

.mobile-menu-link.has-children::after {
    content: "›";
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #e8f3ff;
    color: var(--brand-green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
}

.mobile-menu-bottom {
    border-top: 1px solid #e3e8ee;
    padding-top: 1rem;
}

.mobile-meta {
    color: #5d6571;
    font-size: 0.95rem;
}

.mobile-meta strong {
    color: #1d2430;
}

/* =====================================================
   About + Notice Section
   ===================================================== */
.about-notice-section {
    padding: 44px 0 52px;
    background: #f2f5f8;
}

.content-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.content-card-head {
    padding: 14px 22px;
    border-bottom: 1px solid #e8ecf2;
    background: #f8fafc;
    flex-shrink: 0;
}

.content-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2d44;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.content-card-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--brand-green);
    border-radius: 3px;
    flex-shrink: 0;
}

.content-card-body {
    padding: 22px;
    flex: 1;
}

/* About split-card — image left, floating text card overlaps from right */
.about-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 320px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.about-card-img {
    width: 58%;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.about-card-body {
    flex: 1;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    padding: 30px 34px;
    margin-left: -64px;
    position: relative;
    z-index: 2;
    align-self: center;
    margin-top: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-card-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #1a2d44;
    margin-bottom: 10px;
    line-height: 1.3;
}

.about-card-divider {
    width: 52px;
    height: 3px;
    background: var(--brand-green);
    border-radius: 2px;
    margin-bottom: 16px;
}

.about-text {
    font-size: 0.92rem;
    color: #445566;
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-more-btn {
    background: transparent;
    border: 1.5px solid var(--brand-green);
    color: var(--brand-green);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    text-decoration: none;
    align-self: flex-start;
    margin-top: 4px;
}

.about-more-btn:hover {
    background: var(--brand-green);
    color: #fff;
}

@media (max-width: 991.98px) {
    .about-card {
        flex-direction: column;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
        border-radius: 14px;
    }

    .about-card-img {
        width: 100%;
        height: 220px;
        border-radius: 0;
    }

    .about-card-body {
        margin-left: 0;
        margin-top: 0;
        margin-bottom: 0;
        box-shadow: none;
        border-radius: 0;
        padding: 22px;
    }

    .about-card-title {
        font-size: 1.25rem;
    }
}

/* Notice Board */
.notice-card-head {
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    border-bottom: none;
}

.notice-card-title {
    color: #fff;
    font-size: 1.05rem;
}

.notice-card-title::before {
    background: rgba(255, 255, 255, 0.55);
}

.notice-head-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #fff;
}

/* No flex-grow or inner scrolling: the board is as tall as its notices, so
   the card ends where the list ends instead of stretching down the column. */
.notice-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 20px;
    border-bottom: 1px solid #f0f3f6;
    transition: background 0.15s;
}

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

.notice-item:hover {
    background: #fff5f5;
}

.notice-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: #e53935;
    border-radius: 50%;
    margin-top: 5px;
}

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

.notice-text-wrap {
    display: block;
    font-size: 0.87rem;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 3px;
}

.notice-date {
    font-size: 0.76rem;
    color: #8a9bac;
    display: block;
}

.btn-notice-detail {
    flex-shrink: 0;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e53935;
    color: #e53935;
    background: transparent;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.5;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    display: inline-block;
    margin-top: 2px;
}

.btn-notice-detail:hover {
    background: #e53935;
    color: #fff;
}

.notice-footer {
    padding: 11px 20px;
    border-top: 1px solid #f0f3f6;
    text-align: right;
    flex-shrink: 0;
}

.notice-more-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--brand-green);
    text-decoration: none;
}

.notice-more-link:hover {
    text-decoration: underline;
}

/* ── Event board: same layout as the notice board, green accent ──────────
   Scoped to the variant class so the notice board keeps its red. The whole
   accent moves together — header, bullet, button and row hover — otherwise
   red buttons would sit under a green header. */
.post-board--event .notice-card-head {
    background: linear-gradient(135deg, #059669 0%, #046c4e 100%);
}

.post-board--event .notice-dot {
    background: #059669;
}

.post-board--event .notice-item:hover {
    background: #f0fdf8;
}

.post-board--event .btn-notice-detail {
    border-color: #059669;
    color: #059669;
}

.post-board--event .btn-notice-detail:hover {
    background: #059669;
    color: #fff;
}

.post-board--event a.notice-text-wrap:hover {
    color: #059669;
}

/* Notice titles are links now, so they must not pick up the default
   underline/blue. They keep .notice-text-wrap's colour and turn red on hover,
   matching the বিস্তারিত button beside them. */
a.notice-text-wrap {
    text-decoration: none;
    transition: color 0.15s;
}

a.notice-text-wrap:hover {
    color: #e53935;
}

/* Notice detail page */
.notice-detail-img {
    margin-bottom: 22px;
    padding: 10px;
    background: #f7f9fb;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    text-align: center;
}

/* max-width rather than width so a small image is not blown up, and a capped
   height so a tall portrait notice is still visible in one screen. object-fit
   is contain, so the whole image shows — never cropped. */
.notice-detail-img img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 78vh;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Images pasted into the notice body by the editor must not push the card
   wider than its column either. */
.rich-content img {
    max-width: 100%;
    height: auto;
}

.notice-detail-back {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid #f0f3f6;
}

.notice-pagination {
    padding: 16px 20px 4px;
    display: flex;
    justify-content: center;
}

.notice-pagination .pagination {
    margin-bottom: 0;
}

/* Message Slider Card */
.message-section-card {
    padding: 0;
    overflow: visible;
}

.message-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px 16px;
    border-bottom: 1px solid #e8ecf2;
}

.message-section-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #1a2d44;
    margin: 0;
    white-space: nowrap;
}

.message-section-line {
    flex: 1;
    height: 1px;
    background: #dde3ea;
}

.message-nav-btns {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.msg-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #ccd4db;
    background: #fff;
    font-size: 1.2rem;
    line-height: 1;
    color: #445566;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.msg-nav-btn:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
}

.message-slider {
    padding: 22px 24px 24px;
}

/* Hide default owl nav/dots for message slider */
.message-slider .owl-nav,
.message-slider .owl-dots {
    display: none !important;
}

.message-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 8px;
}

.message-person-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.message-photo-wrap {
    flex-shrink: 0;
    width: 110px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.message-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.message-person-info {
    flex: 1;
    padding-top: 4px;
}

.message-quote-icon {
    font-size: 3rem;
    line-height: 0.8;
    color: var(--brand-green);
    display: block;
    margin-bottom: 6px;
    font-family: Georgia, serif;
}

.message-role {
    font-size: 1.12rem;
    font-weight: 800;
    color: #1a2d44;
    margin: 0 0 8px 0;
}

.message-role-divider {
    width: 44px;
    height: 3px;
    background: var(--brand-green);
    border-radius: 2px;
    margin-bottom: 9px;
}

.message-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #445566;
    margin: 0;
}

.message-text {
    font-size: 0.9rem;
    color: #445566;
    line-height: 1.8;
    margin-bottom: 10px;
}

.message-item .about-more-btn {
    margin-top: 6px;
}

@media (max-width: 767.98px) {
    .about-notice-section {
        padding: 30px 0 36px;
    }

    .message-photo-wrap {
        width: 80px;
        height: 90px;
    }

    .message-slider {
        padding: 16px;
    }

    .meta-item {
        font-size: 0.8rem;
    }
}

/* =====================================================
   Teachers Section
   ===================================================== */
.teachers-card {
    padding: 0;
}

.teachers-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px 14px;
    border-bottom: 1px solid #e8ecf2;
}

.teachers-card-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #1a2d44;
    margin: 0;
    white-space: nowrap;
}

.teachers-card-line {
    flex: 1;
    height: 1px;
    background: #dde3ea;
}

.teachers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.teacher-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f3f6;
    border-right: 1px solid #f0f3f6;
    transition: background 0.15s;
}

.teacher-item:nth-child(even) {
    border-right: none;
}

.teacher-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.teacher-item:hover {
    background: #f8fafc;
}

.teacher-photo-wrap {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
}

.teacher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.teacher-info {
    flex: 1;
    min-width: 0;
    padding-top: 20px;
}

.teacher-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2d44;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.teacher-desg {
    font-size: 0.97rem;
    color: #778899;
    margin: 0 0 18px 0;
    line-height: 1.3;
}

.teacher-social {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.t-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}

.t-social-btn:hover {
    opacity: 0.82;
    transform: translateY(-1px);
}

.t-social-btn i {
    font-size: 13px;
}

.t-phone {
    background: #2e7d32;
    color: #fff;
}

.t-email {
    background: #1565c0;
    color: #fff;
}

.t-fb {
    background: #1877f2;
    color: #fff;
}

.t-li {
    background: #0077b5;
    color: #fff;
}

.teacher-detail-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 13px;
    border-radius: 7px;
    border: 1.5px solid var(--brand-green);
    color: var(--brand-green);
    background: transparent;
    text-decoration: none;
    display: inline-block;
    transition: background 0.18s, color 0.18s;
}

.teacher-detail-btn:hover {
    background: var(--brand-green);
    color: #fff;
}

.teachers-footer {
    padding: 16px 22px;
    text-align: center;
    border-top: 1px solid #f0f3f6;
}

.teachers-all-btn {
    background: var(--brand-green);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 9px 28px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.teachers-all-btn:hover {
    background: var(--brand-green-dark);
    color: #fff;
}

/* ==============================
   Gallery Section
   ============================== */
.gallery-section {
    padding: 52px 0 58px;
    background: #ffffff;
}

.gallery-section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.gallery-section-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
    margin: 0;
}

.gallery-section-line {
    flex: 1;
    height: 1.5px;
    background: #dde3ea;
}

.gallery-nav-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.gallery-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #c8d0da;
    background: #fff;
    color: #495057;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-nav-btn:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
}

/* Gallery Slider */
.gallery-slider .owl-nav,
.gallery-slider .owl-dots {
    display: none !important;
}

.gallery-item {
    padding: 0 8px;
}

/* The whole tile is an <a> into the album, so it has to shed link styling. */
.gallery-img-wrap {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e8edf2;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

/* "১২ ছবি · ২ ভিডিও", top-left of a home tile. */
.gallery-count-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    gap: 10px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(9, 22, 37, 0.62);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.gallery-count-badge i {
    margin-right: 3px;
    opacity: 0.85;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-img-wrap:hover .gallery-img {
    transform: scale(1.04);
}

/* Dark gradient caption overlay */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.22) 65%, transparent 100%);
    padding: 36px 18px 18px;
    color: #fff;
}

.gallery-caption p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.55;
    text-align: center;
}

/* Eye / view icon overlay */
.gallery-view-btn-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-img-wrap:hover .gallery-view-btn-wrap {
    opacity: 1;
}

.gallery-view-btn {
    width: 50px;
    height: 50px;
    background: var(--brand-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.gallery-img-wrap:hover .gallery-view-btn {
    transform: scale(1.12);
}

/* ==============================
   Gallery Lightbox
   ============================== */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

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

.glb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: pointer;
}

.glb-content {
    position: relative;
    z-index: 1;
    max-width: 940px;
    width: 92vw;
    animation: glbFadeIn 0.25s ease;
}

.glb-stage {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    max-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* A video keeps a fixed 16:9 box; an image is free to size to itself. */
.glb-stage.is-video {
    aspect-ratio: 16 / 9;
    max-height: none;
}

.glb-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.glb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
}

.glb-counter {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* A single file has nothing to arrow to. */
.gallery-lightbox.is-single .glb-nav {
    display: none;
}

@keyframes glbFadeIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.glb-img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.glb-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glb-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.glb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glb-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.75);
}

.glb-prev {
    left: 24px;
}

.glb-next {
    right: 24px;
}

@media (max-width: 575.98px) {
    .glb-prev {
        left: 8px;
    }

    .glb-next {
        right: 8px;
    }
}

/* Gallery footer */
.gallery-footer {
    text-align: center;
    margin-top: 32px;
}

.gallery-more-btn {
    border: 1.5px solid var(--brand-green);
    color: var(--brand-green);
    background: transparent;
    padding: 9px 34px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.gallery-more-btn:hover {
    background: var(--brand-green);
    color: #fff;
}

/* ==============================
   School Committee Section
   ============================== */
.committee-section {
    padding: 52px 0 58px;
    background: #f2f5f8;
}

.committee-section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
}

.committee-section-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
    margin: 0;
}

.committee-section-line {
    flex: 1;
    height: 1.5px;
    background: #c8d0da;
}

/* Card */
.committee-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 28px 20px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}

.committee-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
}

/* Circular photo */
.committee-photo-wrap {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--brand-green);
    box-shadow: 0 4px 14px rgba(20, 127, 209, 0.22);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.committee-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info */
.committee-info {
    width: 100%;
}

.committee-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 4px;
}

.committee-role {
    font-size: 0.85rem;
    color: var(--muted-gray);
    margin: 0 0 12px;
}

.committee-meta {
    margin-bottom: 14px;
}

.committee-meta-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--muted-gray);
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.committee-meta-val {
    font-weight: 700;
    color: var(--ink);
}

.committee-social {
    display: flex;
    justify-content: center;
    gap: 6px;
}

/* Footer */
.committee-footer {
    text-align: center;
    margin-top: 36px;
}

.committee-more-btn {
    border: 1.5px solid var(--brand-green);
    color: var(--brand-green);
    background: transparent;
    padding: 9px 34px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.committee-more-btn:hover {
    background: var(--brand-green);
    color: #fff;
}

/* ==============================
   Student Statistics Section
   ============================== */
.student-stats-section {
    padding: 52px 0 58px;
    background: #ffffff;
}

.stats-section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
}

.stats-section-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
    margin: 0;
}

.stats-section-line {
    flex: 1;
    height: 1.5px;
    background: #c8d0da;
}

/* Stat circles row */
.stats-circles-wrap {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.stat-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid #dde4ee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.stat-circle:hover {
    box-shadow: 0 8px 28px rgba(20, 127, 209, 0.15);
    border-color: var(--brand-green);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--brand-green);
    line-height: 1;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--muted-gray);
    margin-top: 4px;
}

.stat-class {
    font-size: 0.88rem;
    color: var(--muted-gray);
    margin: 0;
    font-weight: 500;
}

/* Best students sub-header */
.best-students-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.best-students-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
    margin: 0;
}

.best-students-line {
    flex: 1;
    height: 1.5px;
    background: #dde3ea;
}

.best-students-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Student slider */
.student-slider .owl-nav,
.student-slider .owl-dots {
    display: none !important;
}

.student-item {
    padding: 0 10px;
}

.student-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.student-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.student-photo-wrap {
    overflow: visible;
    background: transparent;
    aspect-ratio: 1 / 1;
    width: 70%;
    margin: 0 auto;
    border: none;
    position: relative;
    padding: 0;
    margin-top: 18px;
}

.student-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: box-shadow 0.3s ease;
    filter: brightness(1);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.student-card:hover .student-photo {
    transform: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.student-info {
    text-align: center;
    padding: 18px 14px 16px;
    background: transparent;
}

.student-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1f2e;
    margin: 0 0 4px;
    letter-spacing: 0;
    text-transform: none;
}

.student-class {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 10px;
    font-weight: 500;
}

.student-meta {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    font-size: 0.80rem;
    color: #6b7280;
}

.student-meta span:first-child::after {
    content: " |";
    margin-left: 12px;
    color: #d1d5db;
}

.student-meta strong {
    color: #1a1f2e;
    font-weight: 600;
}

/* Best students footer */
.best-students-footer {
    text-align: center;
    margin-top: 32px;
}

.student-more-btn {
    border: 1.5px solid var(--brand-green);
    color: var(--brand-green);
    background: transparent;
    padding: 9px 34px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.student-more-btn:hover {
    background: var(--brand-green);
    color: #fff;
}

/* ===== Blog / News Section ===== */
.blog-section {
    background: #fff;
    padding: 60px 0 64px;
}

.blog-section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
}

.blog-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
    margin: 0;
}

.blog-section-line {
    flex: 1;
    height: 1.5px;
    background: #dde3ea;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.blog-img-wrap {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    width: 100%;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.04);
}

.blog-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.blog-meta strong {
    color: var(--ink);
}

.blog-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-green);
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

/* The card title and its image are links now — they keep the card's own
   colours rather than the browser's default underlined blue. */
.blog-title a {
    color: inherit;
    text-decoration: none;
}

.blog-title a:hover {
    text-decoration: underline;
}

.blog-img-wrap a {
    display: block;
}

.blog-more-btn {
    display: inline-block;
    border: 1.5px solid var(--brand-green);
    color: var(--brand-green);
    background: transparent;
    padding: 7px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    align-self: flex-start;
}

.blog-more-btn:hover {
    background: var(--brand-green);
    color: #fff;
}

.blog-footer {
    text-align: center;
    margin-top: 40px;
}

.blog-all-btn {
    border: 1.5px solid var(--brand-green);
    color: var(--brand-green);
    background: transparent;
    padding: 10px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-all-btn:hover {
    background: var(--brand-green);
    color: #fff;
}

@media (max-width: 767.98px) {
    .stats-section-title {
        font-size: 1.2rem;
    }

    .stat-circle {
        width: 120px;
        height: 120px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .teacher-photo-wrap {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 767.98px) {
    .committee-section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .gallery-section-title {
        font-size: 1.2rem;
    }

    .gallery-item {
        padding: 0 4px;
    }

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

    .teacher-item:nth-child(even) {
        border-right: none;
    }

    .teacher-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #f0f3f6;
    }

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

/* =====================================================
   Hero Slider
   ===================================================== */
.hero-slider-section {
    background: linear-gradient(180deg, #eef3f8 0%, #e9eef4 100%);
    border-top: 1px solid #e1e7ef;
    border-bottom: 1px solid #e1e7ef;
}

.hero-slider {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(24, 34, 48, 0.16);
}

.hero-slider .owl-stage-outer {
    border-radius: 16px;
}

.hero-slider .owl-item {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-slider .hero-slide-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.hero-slider .hero-slide-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 18, 26, 0) 40%, rgba(14, 18, 26, 0.55) 100%);
    pointer-events: none;
}

/*
 * Fixed 500px hero height. The slide box is therefore ~8:3 at desktop
 * container width (1320/500), which is the ratio the upload cropper enforces
 * so the admin sees what gets published.
 */
.hero-slider .hero-slide-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    left: 50%;
    bottom: 44px;
    transform: translateX(-50%);
    width: min(90%, 860px);
    text-align: center;
    z-index: 2;
}

.slide-title {
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 3.1rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 0.55rem;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.hero-slider .owl-dots {
    margin-top: 14px;
}

.hero-slider .owl-dots .owl-dot span {
    width: 24px;
    height: 8px;
    border-radius: 999px;
    background: #cad7e6;
    transition: all 0.2s ease;
}

.hero-slider .owl-dots .owl-dot.active span,
.hero-slider .owl-dots .owl-dot:hover span {
    width: 34px;
    background: var(--brand-green);
}

.hero-slider .owl-nav {
    position: absolute;
    right: 14px;
    bottom: 16px;
    display: flex;
    gap: 8px;
}

.hero-slider .owl-nav button.owl-prev,
.hero-slider .owl-nav button.owl-next {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: rgba(20, 127, 209, 0.9) !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

.hero-slider .owl-nav button.owl-prev:hover,
.hero-slider .owl-nav button.owl-next:hover {
    background: var(--brand-green-dark) !important;
}

@media (max-width: 991.98px) {
    .main-nav-wrap {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .brand-title {
        font-size: 0.8rem;
    }

    .brand-sub {
        font-size: 0.65rem;
    }

    .school-nav #mainNav .nav-link {
        margin-top: 0.2rem;
    }

    .top-strip {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        padding-left: 1rem;
    }

    .school-nav {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .navbar-brand {
        max-width: calc(100% - 72px);
        margin-right: 1rem !important;
    }

    .hero-slider .hero-slide-item img {
        height: 300px;
    }

    .slide-caption {
        bottom: 20px;
        width: 92%;
    }

    .slide-title {
        font-size: clamp(1.25rem, 5vw, 1.9rem);
        margin-bottom: 0.4rem;
    }

    .slide-subtitle {
        font-size: clamp(0.88rem, 3.3vw, 1.02rem);
    }

    /*
     * The 16:9 aspect-ratio rule above is already responsive, so no height
     * override is needed here. The old object-fit: contain / height: auto pair
     * let the raw image aspect through and broke the slide box on mobile.
     */
    .hero-slider-section .owl-carousel {
        min-height: 180px;
    }

    .hero-slider-section .slide-caption {
        padding: 10px 0 0 0;
        text-align: center;
    }
}

/* Sticky Navbar Animation */
.main-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--header-bg, #fff);
    /* fallback to white */
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e6ea;
    transition: box-shadow 0.25s, background 0.25s, transform 0.25s, padding 0.25s;
}

.main-nav-wrap.is-sticky {
    box-shadow: 0 8px 24px rgba(20, 60, 120, 0.13) !important;
    background: #e3f2fd !important;
    /* much lighter blue for demo */
    border-bottom: 2.5px solid #1976d2 !important;
    transform: translateY(-2px) scale(0.99);
    padding-top: 6px;
    padding-bottom: 6px;
}

/* DEBUG: If sticky still does not work, check that NO parent of .main-nav-wrap has overflow: hidden/auto except html/body. */

/* Sticky fix: ensure parent containers allow sticky */
body,
.container,
.main-nav-wrap,
.header-shell {
    overflow: visible !important;
}

/* =============================
   Notice Marquee Section
   ============================= */
.notice-marquee-section {
    background: #fff8e1;
    border-bottom: 1px solid #ffe082;
}

.notice-marquee-container {
    margin-top: 0;
    margin-bottom: 0;
}

.notice-marquee-label {
    font-weight: bold;
    color: #d84315;
}

.notice-marquee {
    flex: 1;
    color: #333;
    font-size: 1.05rem;
    background: transparent;
    border: none;
}

.notice-marquee-link {
    color: #333;
    text-decoration: none !important;
    transition: color 0.18s;
}

.notice-marquee-link:hover,
.notice-marquee-link:focus {
    color: #d84315;
    text-decoration: underline;
}

.mobile-menu-link.has-children.open {
    border-bottom: 1px solid #f3f3f3;
    padding-bottom: 5px;
    cursor: unset;
}

ul.children {
    display: none;
    border-bottom: 1px solid #e6ebf0;
    font-size: 1.2rem;
    padding-top: 10px;
    padding-bottom: 10px;
}

ul.children li {
    list-style: none;
    color: black;
    margin: 10px 0px;
}

ul.children li a {
    text-decoration: none;
    color: #17212b;
}

ul.children li a:hover {
    color: var(--brand-green-dark);
}
/* =====================================================
   Inner Page: Hero + Document Content (History etc.)
   ===================================================== */
.page-hero {
    background: linear-gradient(135deg, #147fd1 0%, #106ab0 55%, #0c5288 100%);
    padding: 34px 0 38px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    font-size: 0.86rem;
}

.page-breadcrumb li {
    color: rgba(255, 255, 255, 0.8);
}

.page-breadcrumb li+li::before {
    content: "\203A";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.page-breadcrumb li a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.page-breadcrumb li a:hover {
    text-decoration: underline;
}

.page-breadcrumb li.current span {
    color: #fff;
    font-weight: 600;
}

.page-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.page-hero-line {
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: #fff;
    opacity: 0.85;
    margin: 10px 0 10px;
}

.page-hero-sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.page-content-section {
    padding: 34px 0 46px;
}

.page-doc-card,
.page-side-card {
    padding: 26px 28px 30px;
}

.page-doc-head {
    margin-bottom: 18px;
}

.page-doc-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-green);
    margin: 0;
}

.page-side-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-green);
    margin: 0;
}

.page-doc-line {
    width: 52px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand-green);
    margin-top: 8px;
}

/* Rich text (CKEditor/WYSIWYG) output */
.rich-content {
    font-size: 0.98rem;
    line-height: 1.95;
    color: #37465a;
    word-break: break-word;
}

.rich-content> :first-child {
    margin-top: 0;
}

.rich-content> :last-child {
    margin-bottom: 0;
}

.rich-content p {
    margin-bottom: 14px;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    color: #17212b;
    font-weight: 700;
    margin: 22px 0 10px;
    line-height: 1.5;
}

.rich-content h1 {
    font-size: 1.45rem;
}

.rich-content h2 {
    font-size: 1.3rem;
}

.rich-content h3 {
    font-size: 1.15rem;
}

.rich-content h4,
.rich-content h5,
.rich-content h6 {
    font-size: 1.03rem;
}

.rich-content ul,
.rich-content ol {
    padding-left: 22px;
    margin-bottom: 14px;
}

.rich-content li {
    margin-bottom: 6px;
}

.rich-content a {
    color: var(--brand-green);
    text-decoration: underline;
}

.rich-content a:hover {
    color: var(--brand-green-dark);
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 10px 0;
}

.rich-content blockquote {
    margin: 16px 0;
    padding: 12px 18px;
    border-left: 4px solid var(--brand-green);
    background: #f4f9ff;
    border-radius: 0 10px 10px 0;
    color: #445566;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.rich-content table th,
.rich-content table td {
    border: 1px solid #e2e8f0;
    padding: 9px 12px;
    text-align: left;
    vertical-align: top;
}

.rich-content table th {
    background: #f2f6fa;
    font-weight: 700;
    color: #17212b;
}

.rich-content figure {
    max-width: 100%;
    margin: 12px 0;
}

.rich-content iframe {
    max-width: 100%;
}

/* Side info list */
.page-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-info-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 0;
    border-bottom: 1px dashed #e6ebf0;
}

.page-info-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.page-info-label {
    font-size: 0.8rem;
    color: var(--muted-gray);
    font-weight: 600;
}

.page-info-val {
    font-size: 0.95rem;
    color: #17212b;
    font-weight: 600;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .page-hero {
        padding: 26px 0 30px;
    }

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

    .page-content-section {
        padding: 26px 0 34px;
    }

    .page-doc-card,
    .page-side-card {
        padding: 20px 18px 24px;
    }
}

.page-side-text {
    font-size: 0.92rem;
    line-height: 1.85;
    color: #445566;
    margin-bottom: 14px;
}

ul.children li a.active {
    color: var(--brand-green);
    font-weight: 600;
}

/* ==========================================================================
   Teacher profile / বাণী detail pages
   The photo, designation and social buttons reuse the home page teacher
   styles; only the profile header and the fact list are new here.
   ========================================================================== */

.teacher-profile-head {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 18px;
}

.teacher-profile-meta {
    flex: 1;
    min-width: 0;
    padding-top: 6px;
}

.teacher-profile-meta .page-doc-title {
    margin-bottom: 4px;
}

.teacher-profile-meta .teacher-desg {
    margin-bottom: 12px;
}

.teacher-fact-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 22px;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    overflow: hidden;
}

.teacher-fact-list li {
    display: flex;
    gap: 14px;
    padding: 10px 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f3f6;
}

.teacher-fact-list li:last-child {
    border-bottom: none;
}

.teacher-fact-list li:nth-child(odd) {
    background: #f8fafc;
}

.teacher-fact-list span {
    flex: 0 0 150px;
    color: #778899;
}

.teacher-fact-list strong {
    color: #1a2d44;
    font-weight: 600;
    word-break: break-word;
}

.teacher-bio-short {
    font-size: 1rem;
    line-height: 1.9;
    color: #37465a;
    font-weight: 600;
    margin-bottom: 16px;
}

/* The বাণী page offers two ways onward, so that row wraps instead of stacking.
   Scoped, because notices and news keep the plain single-link footer. */
.notice-detail-back.teacher-back-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

@media (max-width: 575.98px) {
    .teacher-profile-head {
        flex-direction: column;
        gap: 14px;
    }

    .teacher-fact-list li {
        flex-direction: column;
        gap: 2px;
    }

    .teacher-fact-list span {
        flex: none;
        font-size: 0.88rem;
    }
}

/* =====================================================
   Gallery — album list + album detail pages
   ===================================================== */

/* --- Album card (সব গ্যালারি grid, and the row under an album) --- */
.album-card {
    background: var(--panel);
    border: 1px solid #e3e9f0;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(24, 44, 70, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.album-card:hover {
    transform: translateY(-4px);
    border-color: #cfe2f4;
    box-shadow: 0 16px 34px rgba(24, 44, 70, 0.13);
}

.album-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #e8edf2;
    overflow: hidden;
}

.album-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.album-count-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    gap: 10px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(9, 22, 37, 0.62);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.album-count-chip i {
    margin-right: 3px;
    opacity: 0.85;
}

.album-card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 32, 54, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.album-card:hover .album-card-hover {
    opacity: 1;
}

.album-card-hover-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transform: scale(0.85);
    transition: transform 0.25s ease;
}

.album-card:hover .album-card-hover-btn {
    transform: scale(1);
}

.album-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.album-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 8px;
}

.album-card-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s;
}

.album-card-title a:hover {
    color: var(--brand-green);
}

.album-card-desc {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #5b6675;
    margin: 0 0 14px;
}

.album-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
}

.album-card-date {
    font-size: 0.84rem;
    color: var(--muted-gray);
}

.album-card-date i {
    margin-right: 5px;
}

.album-card-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-green);
    text-decoration: none;
}

.album-card-link:hover {
    color: var(--brand-green-dark);
}

/* --- Album detail --- */
.album-detail-card {
    padding: 22px 24px 26px;
}

.album-detail-desc {
    font-size: 1rem;
    line-height: 1.95;
    color: #37465a;
    margin: 0 0 20px;
}

/* ছবি / ভিডিও chips — only rendered when an album holds both. */
.gfilter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.gfilter-chip {
    border: 1.5px solid #d9e1ea;
    background: #fff;
    color: #4a5666;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gfilter-chip span {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef3f8;
    font-size: 0.78rem;
    color: #56626f;
}

.gfilter-chip:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

.gfilter-chip.active {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
}

.gfilter-chip.active span {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.gfile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.gfile-tile {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e8edf2;
    cursor: pointer;
}

.gfile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gfile-tile:hover .gfile-img {
    transform: scale(1.06);
}

/* Shown when a video has no poster to fall back on. */
.gfile-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1c2836;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.4rem;
    text-decoration: none;
}

.gfile-fallback span {
    font-size: 0.85rem;
    font-weight: 600;
}

.gfile-play,
.gfile-zoom {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
}

/* A video says what it is at rest; an image only hints on hover. */
.gfile-play {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(20, 127, 209, 0.92);
    font-size: 1.05rem;
    padding-left: 3px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    transition: transform 0.2s ease;
}

.gfile-tile:hover .gfile-play {
    transform: translate(-50%, -50%) scale(1.12);
}

.gfile-zoom {
    inset: 0;
    background: rgba(11, 32, 54, 0.4);
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gfile-tile:hover .gfile-zoom {
    opacity: 1;
}

.album-more {
    margin-top: 34px;
}

.album-more-link {
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-green);
    text-decoration: none;
    white-space: nowrap;
}

.album-more-link:hover {
    color: var(--brand-green-dark);
}

@media (max-width: 575.98px) {
    .gfile-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .album-detail-card {
        padding: 18px 16px 20px;
    }

    .gfile-play {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }
}

/* =====================================================
   Committee page — one block per committee
   ===================================================== */
.committee-block+.committee-block {
    margin-top: 38px;
}

/* The section head is shared with the home row, which has no count to show. */
.committee-block-count {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-green);
    background: #eaf4fc;
    border-radius: 999px;
    padding: 5px 14px;
    white-space: nowrap;
}

/* =====================================================
   Online admission — circulars, the form, status, result
   ===================================================== */
.adm-circular-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adm-circular-item {
    border: 1px solid #e6ebf0;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.adm-circular-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2d44;
    text-decoration: none;
}

.adm-circular-title:hover {
    color: var(--brand-green);
}

.adm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 6px;
    font-size: 0.88rem;
    color: var(--muted-gray);
}

.adm-phase {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 12px;
    white-space: nowrap;
}

.adm-phase-open {
    background: #e7f7ee;
    color: #15803d;
}

.adm-phase-upcoming {
    background: #eaf4fc;
    color: var(--brand-green);
}

.adm-phase-ended {
    background: #f1f3f5;
    color: #6f7580;
}

/* Through Bootstrap's own button variables, so hover, focus, active and
   disabled all keep the colour instead of falling back to a blank button. */
.btn-adm {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand-green);
    --bs-btn-border-color: var(--brand-green);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-green-dark);
    --bs-btn-hover-border-color: var(--brand-green-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-green-dark);
    --bs-btn-active-border-color: var(--brand-green-dark);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--brand-green);
    --bs-btn-disabled-border-color: var(--brand-green);
    --bs-btn-focus-shadow-rgb: 20, 127, 209;
    font-weight: 600;
    border-radius: 8px;
}

.adm-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #1a2d44;
}

.adm-appno {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--brand-green);
}

.adm-status-badge {
    display: inline-block;
    font-weight: 700;
    border-radius: 8px;
    padding: 6px 14px;
}

.adm-status-pending {
    background: #fff7e6;
    color: #b45309;
}

.adm-status-selected,
.adm-status-admitted {
    background: #e7f7ee;
    color: #15803d;
}

.adm-status-waiting {
    background: #eaf4fc;
    color: var(--brand-green);
}

.adm-status-rejected,
.adm-status-cancelled {
    background: #fdecec;
    color: #b91c1c;
}

.adm-number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.adm-number-grid span {
    border: 1px solid #e6ebf0;
    border-radius: 8px;
    padding: 6px 8px;
    text-align: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* The form's spam trap: off-screen rather than display:none, which some bots skip. */
.adm-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- Admission form: the step-by-step wizard (frontend.pages.admission.apply) ---- */
.adm-wizard-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 28px rgba(16, 42, 70, 0.08);
    padding: 26px 30px 0;
}

.adm-wizard-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.adm-deadline-chip {
    font-size: 0.85rem;
    font-weight: 600;
    color: #b45309;
    background: #fff7e6;
    border-radius: 999px;
    padding: 6px 14px;
}

.adm-stepper-wrap {
    display: none;
    margin-bottom: 8px;
}

.adm-stepper {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.adm-step {
    flex: 1;
    position: relative;
    text-align: center;
}

/* The line joining each step to the one before it. */
.adm-step+.adm-step::before {
    content: "";
    position: absolute;
    top: 21px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: #e3e9f0;
    z-index: 0;
}

.adm-step.is-done::before,
.adm-step.is-active::before,
.adm-step.has-error::before {
    background: var(--brand-green);
}

.adm-step-btn {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    padding: 0 4px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 100%;
}

.adm-step-btn:disabled {
    cursor: default;
}

.adm-step-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #dfe6ee;
    background: #fff;
    color: #9aa6b4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.adm-step-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #8a96a5;
    line-height: 1.25;
}

.adm-step.is-active .adm-step-dot {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(20, 127, 209, 0.15);
}

.adm-step.is-active .adm-step-label {
    color: var(--brand-green);
}

.adm-step.is-done .adm-step-dot {
    background: #e7f7ee;
    border-color: #22a35a;
    color: #15803d;
}

.adm-step.is-done .adm-step-dot i::before {
    content: "\f00c";
}

.adm-step.is-done .adm-step-label {
    color: #15803d;
}

.adm-step.has-error .adm-step-dot {
    border-color: #d93025;
    color: #d93025;
    background: #fdecec;
}

.adm-step.has-error .adm-step-label {
    color: #d93025;
}

.adm-step-btn:not(:disabled):hover .adm-step-dot {
    transform: translateY(-2px);
}

.adm-progress {
    display: none;
    height: 6px;
    border-radius: 999px;
    background: #e8eef4;
    overflow: hidden;
}

.adm-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brand-green), #35a2ee);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.adm-progress-text {
    display: none;
    margin-top: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a2d44;
}

.adm-alert {
    border-radius: 12px;
    margin-top: 16px;
}

.adm-final {
    padding-top: 6px;
}

.adm-review {
    border: 1px solid #dfe6ee;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
}

.adm-review-head {
    background: #f4f8fc;
    padding: 12px 16px;
    font-weight: 700;
    color: #1a2d44;
}

.adm-review-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.adm-review-group {
    padding: 14px 16px;
    border-top: 1px solid #eef2f6;
}

.adm-review-group-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--brand-green);
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.adm-review-edit {
    border: 0;
    background: transparent;
    color: #6b7686;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: underline;
    padding: 0;
}

.adm-review-row {
    display: flex;
    flex-direction: column;
    padding: 3px 0;
    font-size: 0.88rem;
}

.adm-review-row span {
    color: #6b7686;
    font-size: 0.78rem;
}

.adm-review-row strong {
    color: #1a2d44;
    font-weight: 600;
    word-break: break-word;
}

.adm-confirm {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 14px 12px 2.4rem;
}

.adm-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 0 24px;
    margin-top: 18px;
    border-top: 1px solid #eef2f6;
    background: #fff;
}

.adm-wizard-nav .btn {
    min-height: 48px;
    padding: 0 26px;
    border-radius: 12px;
    font-weight: 700;
}

.adm-btn-back {
    --bs-btn-color: #1a2d44;
    --bs-btn-bg: #f1f4f8;
    --bs-btn-border-color: #f1f4f8;
    --bs-btn-hover-color: #1a2d44;
    --bs-btn-hover-bg: #e4e9ef;
    --bs-btn-hover-border-color: #e4e9ef;
    --bs-btn-active-color: #1a2d44;
    --bs-btn-active-bg: #dde3ea;
    --bs-btn-active-border-color: #dde3ea;
}

.adm-btn-back,
.adm-btn-next {
    display: none;
}

.adm-btn-submit {
    margin-left: auto;
}

.adm-side {
    position: sticky;
    top: 110px;
}

.adm-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.adm-checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px dashed #e6ebf0;
    font-size: 0.92rem;
}

.adm-checklist li:last-child {
    border-bottom: 0;
}

.adm-checklist i {
    width: 22px;
    color: var(--brand-green);
    margin-top: 3px;
    text-align: center;
}

/* Wizard on: one step at a time. */
.adm-wizard-card.is-wizard .adm-stepper-wrap {
    display: block;
}

.adm-wizard-card.is-wizard .adm-section {
    display: none;
    border: 0;
    padding: 24px 0 0;
}

.adm-wizard-card.is-wizard .adm-section.is-active {
    display: block;
    animation: admStepIn 0.28s ease;
}

.adm-wizard-card.is-wizard .adm-step-eyebrow {
    display: block;
}

.adm-wizard-card.is-wizard .adm-section-no {
    display: none;
}

.adm-wizard-card.is-wizard .adm-section-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.adm-wizard-card.is-wizard .adm-final,
.adm-wizard-card.is-wizard .adm-btn-submit {
    display: none;
}

.adm-wizard-card.is-wizard .adm-btn-back,
.adm-wizard-card.is-wizard .adm-btn-next {
    display: inline-flex;
    align-items: center;
}

.adm-wizard-card.is-wizard.on-first .adm-btn-back {
    visibility: hidden;
}

.adm-wizard-card.is-wizard.on-last .adm-final {
    display: block;
}

.adm-wizard-card.is-wizard.on-last .adm-btn-next {
    display: none;
}

.adm-wizard-card.is-wizard.on-last .adm-btn-submit {
    display: inline-flex;
    align-items: center;
}

@keyframes admStepIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .adm-wizard-card {
        padding: 18px 16px 0;
        border-radius: 14px;
    }

    .adm-wizard-top {
        justify-content: flex-start;
    }

    /* Six labels do not fit a phone: dots only, the step named below the bar. */
    .adm-step-label {
        display: none;
    }

    .adm-step-dot {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .adm-step+.adm-step::before {
        top: 16px;
    }

    .adm-wizard-card.is-wizard .adm-progress,
    .adm-wizard-card.is-wizard .adm-progress-text {
        display: block;
    }

    .adm-progress {
        margin-top: 14px;
    }

    .adm-wizard-card.is-wizard .adm-section-title {
        font-size: 1.2rem;
    }

    /* The buttons stay under the thumb while the step scrolls. */
    .adm-wizard-nav {
        position: sticky;
        bottom: 0;
        z-index: 5;
        padding: 12px 0 14px;
        box-shadow: 0 -8px 16px -12px rgba(16, 42, 70, 0.25);
    }

    .adm-wizard-nav .btn {
        padding: 0 18px;
        flex: 1;
        justify-content: center;
    }

    /* On a phone the first step gives Next the whole row. */
    .adm-wizard-card.is-wizard.on-first .adm-btn-back {
        display: none;
    }
}
