/* ===== BAARTALAAP SCHOOL — MAIN STYLESHEET ===== */
:root {
  --primary: #1a3a2e;
  --primary-mid: #2c5445;
  --secondary: #c47a2e;
  --secondary-light: #e8a24a;
  --gold: #d4a843;
  --light-bg: #faf8f3;
  --dark: #141e1b;
  --text-muted: #6b7c74;
  --border: #e8e2d6;
  --white: #ffffff;
  --card-shadow: 0 4px 24px rgba(26,58,46,.10);
  --card-shadow-hover: 0 12px 40px rgba(26,58,46,.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; background: var(--light-bg); color: var(--dark); overflow-x: hidden; }

/* ── PAGE HERO BANNER (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0e2519 100%);
  color: white;
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(212,168,67,.08); pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -40px; left: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(212,168,67,.05); pointer-events: none;
}
.page-hero-eyebrow {
  font-size: .75rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; font-weight: 600;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif; font-size: 2.8rem;
  font-weight: 700; margin-bottom: 14px;
}
.page-hero p { color: rgba(255,255,255,.7); font-size: .98rem; max-width: 560px; margin: 0 auto; }
.breadcrumb-bar {
  background: rgba(255,255,255,.07); border-top: 1px solid rgba(255,255,255,.1);
  padding: 10px 24px; display: flex; justify-content: center; gap: 8px;
  font-size: .8rem; color: rgba(255,255,255,.6); flex-wrap: wrap;
}
.breadcrumb-bar a { color: var(--gold); text-decoration: none; }
.breadcrumb-bar span { opacity: .5; }

/* ── SECTION HELPERS ── */
.section-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-block { padding: 64px 24px; }
.section-label { font-size: .75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--secondary); margin-bottom: 8px; font-weight: 600; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.section-sub { color: var(--text-muted); font-size: .94rem; margin-bottom: 40px; }
.section-title-white { color: white; }
.section-sub-white { color: rgba(255,255,255,.65); }

/* ── CARDS ── */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.bs-card {
  background: var(--white); border-radius: 18px;
  box-shadow: var(--card-shadow); border: 1px solid var(--border);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.bs-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.bs-card-img { width: 100%; height: 200px; object-fit: cover; }
.bs-card-body { padding: 22px; }
.bs-card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--primary); margin-bottom: 8px; }
.bs-card-body p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

.icon-card {
  background: var(--white); border-radius: 18px; padding: 30px 24px;
  box-shadow: var(--card-shadow); border: 1px solid var(--border);
  text-align: center; transition: transform .3s, box-shadow .3s;
}
.icon-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.icon-card-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 1.6rem; color: var(--gold);
}
.icon-card h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--primary); margin-bottom: 8px; }
.icon-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ── HEADER ── */
.main-header { background: var(--white); box-shadow: 0 2px 20px rgba(26,58,46,.08); position: sticky; top: 0; z-index: 1000; }
.logo-area { padding: 14px 32px; background: linear-gradient(105deg, #fff 60%, #fef7ec 100%); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.school-logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-emblem { width: 54px; height: 54px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); border-radius: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(26,58,46,.25); flex-shrink: 0; }
.logo-emblem i { font-size: 1.6rem; color: var(--gold); }
.logo-emblem.sm { width: 40px; height: 40px; border-radius: 10px; }
.logo-emblem.sm i { font-size: 1.1rem; }
.school-name-header { font-family: 'Playfair Display', serif; font-size: 1.65rem; font-weight: 700; color: var(--primary); line-height: 1.1; letter-spacing: -.5px; }
.school-name-header span { color: var(--secondary); }
.school-tagline { font-size: .72rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 3px; font-weight: 500; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-badges-group { display: flex; gap: 18px; align-items: center; }
.header-badge-item { display: flex; align-items: center; gap: 7px; font-size: .79rem; color: var(--text-muted); }
.header-badge-item i { color: var(--secondary); font-size: .88rem; }

/* LOGIN DROPDOWN */
.login-dropdown-wrapper { position: relative; }
.login-main-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-weight: 600; font-size: .84rem; cursor: pointer; letter-spacing: .3px; transition: background .2s; font-family: 'DM Sans', sans-serif; }
.login-main-btn:hover { background: var(--primary-mid); }
.login-main-btn i.chevron { font-size: .62rem; transition: transform .25s; }
.login-dropdown-wrapper.open .login-main-btn i.chevron { transform: rotate(180deg); }
.login-dropdown-panel { position: absolute; top: calc(100% + 10px); right: 0; background: var(--white); min-width: 230px; border-radius: 14px; box-shadow: 0 16px 48px rgba(26,58,46,.2); border: 1px solid var(--border); border-top: 3px solid var(--secondary); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s cubic-bezier(.4,0,.2,1); z-index: 200; overflow: hidden; }
.login-dropdown-wrapper.open .login-dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.login-panel-label { padding: 10px 16px 6px; font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.login-option { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: var(--dark); transition: all .2s; border-bottom: 1px solid #f5f0e8; }
.login-option:last-child { border-bottom: none; }
.login-option-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .88rem; transition: all .2s; }
.login-option-icon.student-ico { background: #e8f5f0; color: #1a7a55; }
.login-option-icon.teacher-ico { background: #fff3e0; color: #b35c00; }
.login-option-icon.admin-ico { background: #ede8fa; color: #5c35c0; }
.login-option:hover { background: var(--light-bg); padding-left: 20px; }
.login-option:hover .student-ico { background: var(--primary); color: var(--gold); }
.login-option:hover .teacher-ico { background: var(--secondary); color: #fff; }
.login-option:hover .admin-ico { background: #5c35c0; color: #fff; }
.login-option-text strong { display: block; font-size: .86rem; font-weight: 600; line-height: 1.2; }
.login-option-text span { font-size: .74rem; color: var(--text-muted); }

/* NAV */
.nav-bar { background: var(--primary); }
.nav-menu { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 13px 17px; color: rgba(255,255,255,.88); text-decoration: none; font-weight: 500; font-size: .85rem; letter-spacing: .3px; transition: all .25s; border-bottom: 3px solid transparent; }
.nav-link:hover, .nav-link.active { color: var(--gold); border-bottom-color: var(--gold); background: rgba(255,255,255,.05); }
.nav-link i { font-size: .62rem; opacity: .7; }
.dropdown-content { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 210px; box-shadow: 0 12px 32px rgba(26,58,46,.18); border-radius: 0 0 12px 12px; border-top: 3px solid var(--secondary); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s cubic-bezier(.4,0,.2,1); z-index: 100; }
.nav-item:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-content a { display: flex; align-items: center; gap: 10px; padding: 11px 18px; color: var(--dark); text-decoration: none; font-size: .85rem; transition: all .2s; border-bottom: 1px solid #f3f0ea; }
.dropdown-content a i { color: var(--secondary); font-size: .78rem; width: 14px; }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background: var(--light-bg); color: var(--primary); padding-left: 22px; }

/* ── CTA STRIP ── */
.cta-strip { background: linear-gradient(105deg, var(--secondary) 0%, var(--secondary-light) 100%); padding: 40px 24px; }
.cta-strip-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.cta-strip h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: #fff; margin-bottom: 6px; }
.cta-strip p { color: rgba(255,255,255,.85); font-size: .9rem; }
.cta-strip-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-btn-white { background: #fff; color: var(--secondary); padding: 11px 26px; border-radius: 50px; font-weight: 700; font-size: .88rem; text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.cta-btn-white:hover { background: var(--primary); color: #fff; }
.cta-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); padding: 11px 26px; border-radius: 50px; font-weight: 600; font-size: .88rem; text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.cta-btn-outline:hover { background: rgba(255,255,255,.15); }

/* ── SITE FOOTER ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); }
.footer-main { max-width: 1200px; margin: 0 auto; padding: 52px 24px 36px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-school-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: #fff; }
.footer-school-name span { color: var(--secondary); }
.footer-tagline { font-size: .7rem; color: rgba(255,255,255,.45); letter-spacing: 1.5px; text-transform: uppercase; }
.footer-about { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 18px; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.65); font-size: .95rem; text-decoration: none; transition: all .25s; }
.social-btn:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; transform: translateY(-3px); }
.footer-col h4 { color: var(--gold); font-size: .88rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .86rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: .84rem; color: rgba(255,255,255,.55); }
.footer-contact-item i { color: var(--secondary); margin-top: 2px; font-size: .85rem; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.35); max-width: 1200px; margin: 0 auto; }

/* ── FLOATING APPLY BTN ── */
.admission-btn { position: fixed; bottom: 26px; right: 26px; background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%); color: #fff; padding: 12px 22px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: .86rem; box-shadow: 0 8px 24px rgba(196,122,46,.5); z-index: 999; display: flex; align-items: center; gap: 7px; animation: pulse 2.5s ease-in-out infinite; }
.admission-btn:hover { color: #fff; box-shadow: 0 12px 32px rgba(196,122,46,.7); animation: none; transform: scale(1.04); }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }

/* ── TABLES ── */
.bs-table { width: 100%; border-collapse: collapse; }
.bs-table th { background: var(--primary); color: white; padding: 13px 16px; font-size: .85rem; font-weight: 600; text-align: left; }
.bs-table td { padding: 12px 16px; font-size: .88rem; border-bottom: 1px solid var(--border); }
.bs-table tbody tr:hover { background: var(--light-bg); }
.bs-table-wrap { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--card-shadow); border: 1px solid var(--border); }

/* ── BADGES ── */
.badge-green { background: #e8f5f0; color: #1a7a55; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-gold { background: #fdf3de; color: #8a6500; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-red { background: #fde8e8; color: #9b1c1c; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-blue { background: #e8f0fd; color: #1a3a9b; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; }

/* ── ACCORDION ── */
.bs-accordion { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.bs-accordion-item { border-bottom: 1px solid var(--border); }
.bs-accordion-item:last-child { border-bottom: none; }
.bs-accordion-head { background: var(--white); padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--primary); transition: background .2s; }
.bs-accordion-head:hover { background: var(--light-bg); }
.bs-accordion-head i { transition: transform .3s; color: var(--secondary); }
.bs-accordion-body { display: none; padding: 0 22px 18px; font-size: .88rem; color: var(--text-muted); line-height: 1.7; background: var(--white); }
.bs-accordion-item.open .bs-accordion-head { background: var(--light-bg); color: var(--secondary); }
.bs-accordion-item.open .bs-accordion-head i { transform: rotate(180deg); }
.bs-accordion-item.open .bs-accordion-body { display: block; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-dot { position: absolute; left: -27px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--secondary); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--secondary); }
.timeline-year { font-size: .75rem; font-weight: 600; color: var(--secondary); letter-spacing: 1px; margin-bottom: 4px; }
.timeline-content h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--primary); margin-bottom: 5px; }
.timeline-content p { font-size: .86rem; color: var(--text-muted); line-height: 1.6; }

/* ── STAT CARDS (inner pages) ── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 18px; margin: 36px 0; }
.stat-card { background: var(--white); border-radius: 16px; padding: 22px 18px; text-align: center; box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.stat-card-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--primary); display: block; }
.stat-card-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ── TEACHER PROFILE CARD ── */
.teacher-card { background: var(--white); border-radius: 18px; box-shadow: var(--card-shadow); border: 1px solid var(--border); overflow: hidden; transition: transform .3s, box-shadow .3s; text-align: center; }
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.teacher-card-top { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); padding: 28px 20px 20px; }
.teacher-avatar { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.15); border: 3px solid rgba(212,168,67,.5); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 2.4rem; color: rgba(255,255,255,.9); }
.teacher-card-top h3 { font-family: 'Playfair Display', serif; font-size: 1rem; color: white; margin-bottom: 4px; }
.teacher-card-top p { font-size: .78rem; color: var(--gold); }
.teacher-card-body { padding: 18px 20px; }
.teacher-card-body p { font-size: .84rem; color: var(--text-muted); margin-bottom: 4px; }
.teacher-card-body p i { color: var(--secondary); margin-right: 6px; width: 14px; }

/* ── GALLERY GRID ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item-overlay { position: absolute; inset: 0; background: rgba(26,58,46,.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; color: white; font-size: 1.5rem; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ── FORM STYLES ── */
.bs-form-group { margin-bottom: 20px; }
.bs-form-group label { display: block; font-size: .86rem; font-weight: 600; color: var(--primary); margin-bottom: 7px; }
.bs-form-control { width: 100%; padding: 11px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: .9rem; color: var(--dark); background: var(--white); transition: border-color .2s; }
.bs-form-control:focus { outline: none; border-color: var(--primary-mid); box-shadow: 0 0 0 3px rgba(44,84,69,.1); }
.bs-btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); color: white; padding: 12px 28px; border: none; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.bs-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,58,46,.3); }

/* ── NOTICE PILL ── */
.notice-new { background: var(--secondary); color: #fff; font-size: .6rem; padding: 2px 7px; border-radius: 20px; font-weight: 700; letter-spacing: .5px; margin-left: 6px; vertical-align: middle; }

/* ── SCHEDULE TABLE ── */
.schedule-grid { display: grid; grid-template-columns: 80px repeat(5, 1fr); gap: 2px; }
.sch-cell { background: var(--white); padding: 10px 8px; font-size: .78rem; border-radius: 6px; text-align: center; border: 1px solid var(--border); }
.sch-cell.header { background: var(--primary); color: white; font-weight: 600; }
.sch-cell.time { background: var(--light-bg); font-weight: 600; color: var(--primary-mid); }
.sch-cell.break { background: #fef9ec; color: #8a6500; font-weight: 600; }

/* ── RESPONSIVE ── */
@media(max-width:1100px){ .footer-main { grid-template-columns: 1fr 1fr; } }
@media(max-width:900px){ .logo-area{padding:12px 18px} .header-badges-group{display:none} }
@media(max-width:768px){ .page-hero h1{font-size:1.9rem} .section-title{font-size:1.6rem} .nav-link{padding:11px 12px;font-size:.8rem} .footer-main{grid-template-columns:1fr} .footer-bottom{flex-direction:column;text-align:center} .admission-btn{bottom:14px;right:14px;padding:10px 18px;font-size:.82rem} }
