@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Hind+Siliguri:wght@400;500;600;700&family=Nunito:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #1B5E20;
    --green-mid: #2E7D32;
    --green-light: #4CAF50;
    --green-pale: #E8F5E9;
    --gold: #F9A825;
    --gold-dark: #E65100;
    --white: #fff;
    --offwhite: #F7FBF7;
    --text: #1a2e1a;
    --muted: #4e6e4e;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--offwhite);
    color: var(--text);
    overflow-x: hidden;
}

.bn {
    font-family: 'Hind Siliguri', sans-serif;
}

/* ===== LANGUAGE TOGGLE ===== */
body.bn-mode .en-text { display: none; }
body.bn-mode .bn-text { display: block; }
body:not(.bn-mode) .en-text { display: block; }
body:not(.bn-mode) .bn-text { display: none; }

/* ===== NAVIGATION ===== */
nav {
    background: var(--green);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.nav-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: var(--green);
    font-family: 'Playfair Display', serif;
    flex-shrink: 0;
}

.nav-title { color: #fff; }
.nav-title h1 { font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: .3px; }
.nav-title p { font-size: 11px; opacity: .75; font-family: 'Hind Siliguri', sans-serif; }

.nav-links {
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all .2s;
    cursor: pointer;
}

.nav-links a:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-lang {
    display: flex;
    gap: 6px;
    margin-left: 16px;
    border-left: 1px solid rgba(255,255,255,.2);
    padding-left: 16px;
}

.lang-btn {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Nunito', sans-serif;
}

.lang-btn.active {
    background: var(--gold);
    color: var(--green);
    border-color: var(--gold);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 520px;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: .07;
}

.hero-bg svg { width: 100%; height: 100%; }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.hero-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 46px);
    color: #fff;
    line-height: 1.2;
    margin-bottom: .8rem;
}

.hero-text .bn-title {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: clamp(18px, 2.5vw, 28px);
    color: rgba(255,255,255,.75);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.hero-text p {
    color: rgba(255,255,255,.8);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--green);
    padding: 11px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all .2s;
    font-family: 'Nunito', sans-serif;
}

.btn-primary:hover { background: #fff; transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: #fff;
    padding: 11px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,.5);
    transition: all .2s;
    font-family: 'Nunito', sans-serif;
}

.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

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

.stat-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    margin-top: 4px;
    font-family: 'Hind Siliguri', sans-serif;
}

.stat-label-en { font-size: 11px; color: rgba(255,255,255,.55); }

/* ===== TICKER ===== */
.ticker-wrap {
    background: var(--gold);
    padding: 8px 0;
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-inner:hover { animation-play-state: paused; }

.ticker-item {
    padding: 0 2rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    border-right: 2px solid rgba(30,100,30,.25);
    flex-shrink: 0;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== SECTIONS ===== */
.section-wrap { padding: 3.5rem 0; }
.section-wrap.alt { background: #fff; }
.section-wrap.dark { background: var(--green); }

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-head h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 3vw, 32px);
    color: var(--green);
    margin-bottom: .5rem;
}

.section-wrap.dark .section-head h3 { color: #fff; }

.section-head .bn-sub {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 16px;
    color: var(--muted);
    margin-bottom: .6rem;
}

.section-wrap.dark .section-head .bn-sub { color: rgba(255,255,255,.65); }

.divider {
    width: 56px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    margin: 0 auto;
}

/* ===== NOTICES ===== */
.notices-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.notice-list, .events-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #d4e8d4;
    overflow: hidden;
}

.notice-head {
    background: var(--green);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notice-head span { color: #fff; font-weight: 700; font-size: 14px; }
.notice-head .view-all { font-size: 12px; opacity: .8; cursor: pointer; font-weight: 500; }

.notice-item {
    display: flex;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--green-pale);
    align-items: flex-start;
    transition: background .15s;
    cursor: pointer;
}

.notice-item:hover { background: var(--green-pale); }
.notice-item:last-child { border-bottom: none; }

.notice-date {
    min-width: 48px;
    background: var(--green-pale);
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    border: 1px solid #c8e6c9;
}

.notice-date .day { font-size: 18px; font-weight: 700; color: var(--green); line-height: 1; }
.notice-date .mon { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; }

.notice-info h4 { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 5px; }

.tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.tag-exam     { background: #FFF3E0; color: #E65100; }
.tag-event    { background: #E3F2FD; color: #0D47A1; }
.tag-holiday  { background: #FCE4EC; color: #880E4F; }
.tag-notice   { background: #F3E5F5; color: #4A148C; }

.event-item {
    padding: 14px 18px;
    border-bottom: 1px solid var(--green-pale);
    cursor: pointer;
    transition: background .15s;
}

.event-item:hover { background: var(--green-pale); }
.event-item:last-child { border-bottom: none; }

.event-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green-light);
    display: inline-block;
    margin-right: 8px;
}

.event-item h4 { font-size: 13px; font-weight: 600; color: var(--text); display: inline; }
.event-item p  { font-size: 12px; color: var(--muted); font-family: 'Hind Siliguri', sans-serif; margin-top: 4px; }

/* ===== PROGRAMS ===== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.prog-card {
    background: #fff;
    border-radius: 14px;
    border: 2px solid #d4e8d4;
    padding: 1.5rem;
    text-align: center;
    transition: all .25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.prog-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--green-light);
    transform: scaleX(0);
    transition: transform .3s;
}

.prog-card:hover {
    border-color: var(--green-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(27,94,32,.12);
}

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

.prog-icon { font-size: 32px; margin-bottom: .8rem; display: block; }
.prog-card h4 { font-size: 14px; font-weight: 700; color: var(--green); margin-bottom: .4rem; }
.prog-card p  { font-size: 12px; color: var(--muted); font-family: 'Hind Siliguri', sans-serif; line-height: 1.5; }
.prog-card .en { font-size: 11px; color: #888; margin-top: 2px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.feature-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #d4e8d4;
    padding: 1.5rem;
    transition: all .25s;
    position: relative;
}

.feature-card:hover {
    border-color: var(--green-light);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(27,94,32,.12);
}

.feature-card .icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--green-pale);
    color: var(--green);
    font-size: 20px;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 15px;
    color: var(--green-mid);
    margin-bottom: .6rem;
}

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

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.success-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #d4e8d4;
    padding: 1.5rem;
    text-align: center;
}

.success-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    margin-bottom: .6rem;
}

.success-card h4 {
    font-size: 14px;
    color: var(--text);
}

.admission-steps {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.step-card {
    background: rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 1.4rem;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid rgba(255,255,255,.18);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.step-content h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: .5rem;
}

.step-content p {
    color: rgba(255,255,255,.8);
    font-size: 13px;
    line-height: 1.75;
}

.faq-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.faq-item {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #d4e8d4;
    padding: 1.4rem;
}

.faq-item h4 {
    font-size: 14px;
    color: var(--green);
    margin-bottom: .6rem;
}

.faq-item p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.75;
}

.nav-logo-icon {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.35);
    flex-shrink: 0;
}

.nav-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* ===== RESULTS ===== */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.res-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
}

.res-num  { font-size: 36px; font-weight: 700; color: var(--gold); font-family: 'Playfair Display', serif; }
.res-pct  { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 2px; }
.res-year { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: .3rem; }

/* ===== TEACHERS ===== */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.2rem;
}

.teacher-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #d4e8d4;
    padding: 1.2rem;
    text-align: center;
    transition: all .2s;
    cursor: pointer;
}

.teacher-card:hover {
    border-color: var(--green-light);
    transform: translateY(-3px);
}

.teacher-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green-pale);
    border: 3px solid var(--green-light);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--green);
    font-family: 'Playfair Display', serif;
}

.teacher-card h4      { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.teacher-card .subject { font-size: 12px; color: var(--green-mid); font-weight: 600; }
.teacher-card .role   { font-size: 11px; color: var(--muted); font-family: 'Hind Siliguri', sans-serif; margin-top: 2px; }

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

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border-radius: 10px;
    transition: transform .3s;
}

.gallery-item.large .gallery-placeholder { height: 292px; }
.gallery-item:hover .gallery-placeholder  { transform: scale(1.05); }

.g1 { background: #C8E6C9; }
.g2 { background: #FFCCBC; }
.g3 { background: #BBDEFB; }
.g4 { background: #F8BBD9; }
.g5 { background: #DCEDC8; }
.g6 { background: #FFE0B2; }
.g7 { background: #E1BEE7; }

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info, .contact-form {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #d4e8d4;
    padding: 2rem;
}

.contact-info h4, .contact-form h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--green);
    margin-bottom: 1.2rem;
}

.info-row {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.info-icon {
    width: 36px;
    height: 36px;
    background: var(--green-pale);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid #c8e6c9;
}

.info-text h5 { font-size: 13px; font-weight: 700; color: var(--text); }
.info-text p  { font-size: 12px; color: var(--muted); font-family: 'Hind Siliguri', sans-serif; margin-top: 2px; line-height: 1.6; }

.school-code-box {
    margin-top: 1.2rem;
    padding: 12px;
    background: var(--green-pale);
    border-radius: 10px;
    border: 1px solid #c8e6c9;
}

.school-code-box p:first-child { font-size: 13px; color: var(--green); font-weight: 600; font-family: 'Hind Siliguri', sans-serif; }
.school-code-box p:last-child  { font-size: 12px; color: var(--muted); margin-top: 2px; }

.form-row { margin-bottom: 1rem; }

.form-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 5px;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d4e8d4;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: var(--offwhite);
    outline: none;
    transition: border .2s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { border-color: var(--green-light); }

.form-row textarea { height: 90px; resize: vertical; }

.submit-btn {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background .2s;
    font-family: 'Nunito', sans-serif;
}

.submit-btn:hover { background: var(--green-mid); }

/* ===== FOOTER ===== */
footer {
    background: #0d2e0d;
    color: rgba(255,255,255,.8);
    padding: 3rem 2rem 1.5rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 { font-family: 'Playfair Display', serif; color: #fff; font-size: 18px; margin-bottom: .5rem; }
.footer-brand .bn { font-family: 'Hind Siliguri', sans-serif; font-size: 14px; opacity: .7; margin-bottom: 1rem; }
.footer-brand p { font-size: 13px; line-height: 1.6; opacity: .7; }

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.footer-col a {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    margin-bottom: .4rem;
    cursor: pointer;
    transition: color .2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.2rem;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,.4);
    flex-wrap: wrap;
    gap: .5rem;
}

.footer-bottom .bn { font-family: 'Hind Siliguri', sans-serif; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-content      { grid-template-columns: 1fr; gap: 2rem; }
    .notices-grid      { grid-template-columns: 1fr; }
    .contact-grid      { grid-template-columns: 1fr; }
    .gallery-grid      { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.large { grid-column: span 1; grid-row: span 1; }
    .gallery-item.large .gallery-placeholder { height: 140px; }
    .nav-links         { display: none; }
    .footer-inner      { grid-template-columns: 1fr; }
    .footer-bottom     { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    nav                { padding: 0 1rem; }
    .hero-stats        { grid-template-columns: repeat(2, 1fr); }
    .section           { padding: 0 1rem; }
}
