:root {
    --brand-green: #8cc63f;
    --brand-green-dark: #6ea82f;
    --brand-green-soft: #eff8e4;
    --brand-red: #c1272d;
    --brand-red-dark: #9e1f24;
    --brand-red-soft: #fbeaea;
    --brand-charcoal: #201f1e;
    --font-body: 'Poppins', 'Noto Sans Bengali', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Shippori Mincho', 'Noto Sans Bengali', 'Noto Sans JP', 'Poppins', serif;
}

html {
    scroll-padding-top: 5.5rem;
}

body {
    font-family: var(--font-body);
    color: var(--brand-charcoal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: .01em;
}

a {
    text-decoration: none;
}

.text-brand-green { color: var(--brand-green) !important; }
.text-brand-red { color: var(--brand-red) !important; }
.text-brand-charcoal { color: var(--brand-charcoal) !important; }

.bg-brand-green { background-color: var(--brand-green) !important; }
.bg-brand-red { background-color: var(--brand-red) !important; }
.bg-brand-charcoal { background-color: var(--brand-charcoal) !important; }
.bg-soft-green { background-color: var(--brand-green-soft) !important; }
.bg-soft-red { background-color: var(--brand-red-soft) !important; }

.section-eyebrow {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}
.section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 3px;
    background-color: currentColor;
    border-radius: 2px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin: 0 0 2.5rem;
    color: var(--brand-red);
}
.section-divider::before,
.section-divider::after {
    content: '';
    height: 1px;
    width: 48px;
    background-color: rgba(0, 0, 0, .12);
}
.section-divider i {
    font-size: .55rem;
    transform: rotate(45deg);
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--brand-red);
}

/* Buttons */
.btn-brand {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
}
.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
    color: #fff;
}

.btn-brand-outline {
    background-color: transparent;
    border: 1px solid var(--brand-green);
    color: var(--brand-green-dark);
}
.btn-brand-outline:hover {
    background-color: var(--brand-green);
    color: #fff;
}

.btn-accent {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}
.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--brand-red-dark);
    border-color: var(--brand-red-dark);
    color: #fff;
}

/* Site header (transparent overlay on the home page) */
.site-header-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header-overlay.is-solid {
    background-color: #fff;
    border-bottom-color: rgba(0, 0, 0, .1);
    box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .1);
}
.site-header-overlay .navbar-brand img {
    background-color: rgba(255, 255, 255, .92);
    border-radius: .75rem;
    padding: .3rem .55rem;
    transition: background-color .3s ease, padding .3s ease;
}
.site-header-overlay.is-solid .navbar-brand img {
    background-color: transparent;
    padding: 0;
}
.site-header-overlay .nav-link,
.site-header-overlay .navbar-brand {
    color: #fff;
}
.site-header-overlay .nav-link:hover,
.site-header-overlay .nav-link.active {
    color: var(--brand-green);
}
.site-header-overlay .navbar-toggler {
    border-color: rgba(255, 255, 255, .55);
}
.site-header-overlay .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(2);
}
.site-header-overlay .btn-outline-dark {
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}
.site-header-overlay .btn-outline-dark:hover,
.site-header-overlay .btn-outline-dark:focus {
    background-color: #fff;
    border-color: #fff;
    color: var(--brand-charcoal);
}
.site-header-overlay.is-solid .nav-link,
.site-header-overlay.is-solid .navbar-brand {
    color: var(--brand-charcoal);
}
.site-header-overlay.is-solid .nav-link:hover,
.site-header-overlay.is-solid .nav-link.active {
    color: var(--brand-green-dark);
}
.site-header-overlay.is-solid .navbar-toggler {
    border-color: rgba(0, 0, 0, .15);
}
.site-header-overlay.is-solid .navbar-toggler-icon {
    filter: none;
}
.site-header-overlay.is-solid .btn-outline-dark {
    border-color: rgba(0, 0, 0, .25);
    color: var(--brand-charcoal);
}

/* Navbar */
.nav-link {
    color: var(--brand-charcoal);
    font-weight: 500;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: .5rem;
    right: .5rem;
    bottom: 2px;
    height: 2px;
    background-color: var(--brand-green);
    transform: scaleX(0);
    transition: transform .2s ease;
}
.nav-link:hover,
.nav-link.active {
    color: var(--brand-green-dark);
}
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Hero slider */
.hero-slider {
    position: relative;
    background-color: var(--brand-charcoal);
}
.hero-slider .carousel-item {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 34rem;
}
.hero-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: hero-slide-zoom 9s ease-out both;
}
.hero-slider .carousel-item:not(.active) .hero-slide-image {
    animation: none;
}
@keyframes hero-slide-zoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(32, 31, 30, .88) 0%, rgba(32, 31, 30, .68) 45%, rgba(32, 31, 30, .15) 100%),
        linear-gradient(180deg, rgba(32, 31, 30, .35) 0%, rgba(32, 31, 30, .55) 100%);
}
.hero-slide-body {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    color: #fff;
    padding-top: 7rem;
    padding-bottom: 5rem;
}
.hero-slide-eyebrow {
    color: #fff;
    opacity: .9;
}
.hero-slide-eyebrow::before {
    background-color: var(--brand-green);
    width: 32px;
}
.hero-slide-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero-slide-title-ja {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    font-weight: 600;
    color: var(--brand-green);
}
.hero-slide-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, .85);
    max-width: 44rem;
}
.btn-hero-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, .7);
    color: #fff;
}
.btn-hero-outline:hover,
.btn-hero-outline:focus {
    background-color: #fff;
    border-color: #fff;
    color: var(--brand-charcoal);
}

.hero-slider-indicators {
    margin-bottom: 1.75rem;
    gap: .5rem;
}
.hero-slider-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    border-radius: 999px;
    border: 0;
    background-color: rgba(255, 255, 255, .45);
    opacity: 1;
    transition: background-color .3s ease, width .3s ease;
}
.hero-slider-indicators .active {
    width: 56px;
    background-color: var(--brand-green);
}

.hero-slider-control {
    top: auto;
    bottom: 1.35rem;
    left: auto;
    width: auto;
    opacity: 1;
}
.hero-slider .carousel-control-next {
    right: 1.5rem;
}
.hero-slider .carousel-control-prev {
    right: 4.75rem;
}
.hero-slider-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .45);
    background-color: rgba(32, 31, 30, .3);
    color: #fff;
    font-size: 1.35rem;
    transition: background-color .25s ease, border-color .25s ease;
}
.hero-slider-control:hover .hero-slider-control-icon,
.hero-slider-control:focus .hero-slider-control-icon {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
}

@media (max-width: 767.98px) {
    .hero-slide-overlay {
        background: linear-gradient(180deg, rgba(32, 31, 30, .55) 0%, rgba(32, 31, 30, .82) 100%);
    }
    .hero-slider-indicators {
        margin-bottom: 1.25rem;
    }
    .hero-slider-control-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .hero-slider .carousel-control-next {
        right: 1rem;
    }
    .hero-slider .carousel-control-prev {
        right: 3.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide-image {
        animation: none;
    }
}

.policy-banner {
    background-color: var(--brand-red);
    color: #fff;
    padding: .65rem 1.25rem;
    border-radius: 999px;
    font-size: .85rem;
}

/* Page header (inner pages) */
.page-header {
    position: relative;
    overflow: hidden;
    background-color: var(--brand-charcoal);
    background-size: cover;
    background-position: center;
    padding: 10rem 0 5rem;
    color: #fff;
}
.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(32, 31, 30, .72) 0%, rgba(32, 31, 30, .55) 45%, rgba(32, 31, 30, .78) 100%);
}
.page-header .container {
    position: relative;
}
.page-header-eyebrow {
    color: #fff;
    opacity: .9;
}
.page-header-eyebrow::before {
    background-color: var(--brand-green);
    width: 32px;
}
.page-header-title {
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.2;
    max-width: 52rem;
    margin-inline: auto;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.page-header-text {
    color: rgba(255, 255, 255, .82);
    max-width: 46rem;
    margin-inline: auto;
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 8rem 0 3.5rem;
    }
}

/* Cards */
.feature-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-top: 3px solid transparent;
    border-radius: .75rem;
    padding: 1.75rem;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .08);
    border-top-color: var(--brand-red);
}

.stat-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: .75rem;
    padding: 1.25rem;
    text-align: center;
}

.team-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: .75rem;
    padding: 1.75rem 1.25rem;
}
.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--brand-green-soft);
    color: var(--brand-green-dark);
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-avatar-photo {
    display: block;
    object-fit: cover;
}

.level-badge,
.activity-badge {
    background-color: var(--brand-green-soft);
    color: var(--brand-green-dark);
    font-weight: 500;
    font-size: .8rem;
    padding: .5rem 1rem;
    border-radius: 999px;
}

.course-level-chip {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    background-color: #fff;
    border: 2px solid var(--brand-green);
    color: var(--brand-green-dark);
    font-weight: 700;
    font-size: 1.5rem;
    padding: .75rem 1.85rem;
    border-radius: .75rem;
    box-shadow: 0 .5rem 1.25rem rgba(140, 198, 63, .18);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.course-level-chip i {
    font-size: 1.4rem;
    color: var(--brand-red);
    transition: color .15s ease;
}
.course-level-chip:hover {
    transform: translateY(-4px);
    background-color: var(--brand-green);
    color: #fff;
    box-shadow: 0 .75rem 1.75rem rgba(140, 198, 63, .35);
}
.course-level-chip:hover i {
    color: #fff;
}
@media (max-width: 576px) {
    .course-level-chip {
        font-size: 1.15rem;
        padding: .6rem 1.25rem;
    }
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--brand-red);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gallery */
.gallery-filter .nav-link {
    color: var(--brand-charcoal);
    font-weight: 500;
    font-size: .85rem;
    border-radius: 999px;
    padding: .45rem 1rem;
}
.gallery-filter .nav-link.active {
    background-color: var(--brand-green);
    color: #fff;
}

.gallery-grid {
    column-count: 4;
    column-gap: 1rem;
}
@media (max-width: 992px) {
    .gallery-grid { column-count: 3; }
}
@media (max-width: 768px) {
    .gallery-grid { column-count: 2; }
}
@media (max-width: 480px) {
    .gallery-grid { column-count: 1; }
}

.gallery-item {
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    background: none;
    border-radius: .5rem;
    overflow: hidden;
    break-inside: avoid;
    cursor: zoom-in;
}
.gallery-item img {
    width: 100%;
    height: auto;
    max-height: 320px;
    display: block;
    object-fit: cover;
    transition: transform .2s ease;
}
.gallery-item:hover img {
    transform: scale(1.04);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 15, 14, .92);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1080;
}
.lightbox.is-open {
    display: flex;
}
body.lightbox-open {
    overflow: hidden;
}

.lightbox-figure {
    margin: 0;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}
.lightbox-figure img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: .5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .4);
}
.lightbox-figure figcaption {
    color: #fff;
    font-size: .9rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, .25);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
@media (max-width: 576px) {
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.1rem; }
    .lightbox-close { top: .75rem; right: 1rem; }
}

/* Footer */
.site-footer {
    position: relative;
    overflow: hidden;
}
.footer-logo-badge {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    padding: .35rem .6rem;
    border-radius: .5rem;
    line-height: 0;
}
.footer-link {
    color: rgba(255, 255, 255, .7);
}
.footer-link:hover {
    color: var(--brand-green);
}
.footer-link-dark {
    color: var(--brand-charcoal);
    font-weight: 500;
}
.footer-link-dark:hover {
    color: var(--brand-green-dark);
}

/* Branch quick-link buttons (home page) */
.branch-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background-color: #fff;
    border: 2px solid var(--brand-red);
    color: var(--brand-red);
    font-weight: 700;
    font-size: 1.1rem;
    padding: .9rem 2rem;
    border-radius: .75rem;
    box-shadow: 0 .5rem 1.25rem rgba(193, 39, 45, .15);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.branch-cta-btn:hover {
    background-color: var(--brand-red);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 .75rem 1.75rem rgba(193, 39, 45, .35);
}

/* Admission sessions timeline */
.admission-timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}
.admission-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .9rem;
    position: relative;
    padding: 0 1.5rem;
}
.admission-timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 100%;
    width: 1.5rem;
    height: 2px;
    background-color: rgba(0, 0, 0, .15);
}
.admission-timeline-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid var(--brand-red);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

/* Branch page */
.branch-stat {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: .75rem;
    padding: 1.5rem 1rem;
}

.site-stat-card {
    width: 200px;
    max-width: 100%;
}

.branch-stat-value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--brand-charcoal);
}

.branch-quick-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--brand-charcoal);
    font-weight: 600;
}
.branch-quick-link:hover {
    color: var(--brand-green-dark);
}
.branch-quick-link i {
    color: var(--brand-red);
}

.branch-map-wrapper {
    position: relative;
    border-radius: .75rem;
    overflow: hidden;
    aspect-ratio: 16 / 7;
}
.branch-map-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Founder's message (About page) */
.founder-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .12);
}
.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.founder-photo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-green);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
}

.founder-quote {
    position: relative;
    background-color: #fff;
    border-radius: .75rem;
    padding: 2rem 2.25rem;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .06);
}
.founder-quote i {
    color: var(--brand-green);
    font-size: 2rem;
    display: block;
    margin-bottom: .5rem;
}
.founder-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--brand-charcoal);
}
