/* ============================================
   ADARSHA SCHOOL — MAIN STYLESHEET
   Fonts: SolaimanLipi (Bangla) | Times New Roman (English)
   Design: Elegant Green & Gold | Institutional
   ============================================ */

/* ---- FONT IMPORTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'SolaimanLipi';
  src: url('https://cdn.jsdelivr.net/npm/solaimanlipi@0.1.0/SolaimanLipi.ttf') format('truetype');
  font-display: swap;
}

/* ---- CSS VARIABLES ---- */
:root {
  --green-dark: #0d4a28;
  --green-main: #1a6b3a;
  --green-mid: #2d8a4e;
  --green-light: #e8f4ea;
  --green-pale: #f0faf2;
  --gold: #c8a820;
  --gold-light: #fff8e1;
  --red: #c41e3a;
  --red-light: #fce8e8;
  --blue: #0057a8;
  --blue-light: #e8f0fa;
  --purple: #7b2d8b;
  --text-dark: #1a1a2e;
  --text-mid: #3a3a4a;
  --text-light: #6b7280;
  --bg-white: #ffffff;
  --bg-soft: #f7f9fc;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(26,107,58,0.08);
  --shadow-md: 0 8px 24px rgba(26,107,58,0.12);
  --shadow-lg: 0 16px 48px rgba(26,107,58,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font-bn: 'SolaimanLipi', 'Noto Serif Bengali', serif;
  --font-en: 'Times New Roman', 'Georgia', serif;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-bn);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 16px;
}

body.lang-en {
  font-family: var(--font-en);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 80px 0; }
.bg-soft { background: var(--bg-soft); }
.mt-1 { margin-top: 16px; }
.hidden { display: none !important; }

/* ---- SECTION HEADERS ---- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  display: inline-block;
  color: var(--green-main);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--green-light);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 12px;
}

body.lang-en .section-eyebrow { letter-spacing: 1.5px; }

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(26,107,58,0.3);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,107,58,0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--green-main);
  color: var(--green-main);
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}

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

.btn-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  transition: var(--transition);
  margin-top: 12px;
}

.btn-pdf:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(220,38,38,0.35); }

.section-more { text-align: center; margin-top: 40px; }
.full-width { width: 100%; justify-content: center; }

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-left i { color: var(--gold); font-size: 11px; }

.topbar-right { display: flex; align-items: center; gap: 16px; }

.school-codes {
  display: flex;
  gap: 12px;
  font-size: 12px;
  opacity: 0.8;
  border-right: 1px solid rgba(255,255,255,0.2);
  padding-right: 12px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3px 8px;
}

.lang-btn {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  transition: var(--transition);
  font-family: inherit;
}

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

.lang-divider { color: rgba(255,255,255,0.3); font-size: 10px; }

.social-top { display: flex; gap: 10px; }
.social-top a { color: rgba(255,255,255,0.7); font-size: 13px; }
.social-top a:hover { color: var(--gold); }

/* ============================================
   TICKER
   ============================================ */
.ticker-wrap {
  background: var(--gold);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 38px;
}

.ticker-label {
  background: var(--green-dark);
  color: #fff;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 0 20px;
  align-items: center;
  height: 38px;
}

@keyframes ticker {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
}

/* Logo */
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-icon { flex-shrink: 0; }

.school-name-bn {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}

.school-sub {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

.school-address {
  font-size: 12px;
  color: var(--text-light);
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 8px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list > li { position: relative; }

.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-list > li > a:hover,
.nav-list > li.active > a {
  color: var(--green-main);
  background: var(--green-light);
}

.nav-list > li > a i { font-size: 10px; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--green-main);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-mid);
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { color: var(--green-main); background: var(--green-pale); padding-left: 24px; }

.btn-login {
  background: var(--green-main);
  color: #fff;
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-login:hover { background: var(--green-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--green-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  /* Base gradient fallback (shown if image doesn't load) */
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 60%, #2d8a4e 100%);
}

/* ── Background image layer ── */
.hero-bg-image {
  position: absolute;
  inset: 0;
  /* background-image set dynamically via inline style from admin settings */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
  z-index: 0;
}

/* ── Dark+green overlay so text stays readable ── */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  /* background gradient set dynamically via inline style from admin settings */
  z-index: 1;
}

/* All direct children sit above bg layers */
.hero > * { position: relative; z-index: 2; }

.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }

/* Subtle light shapes on top of overlay */
.shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent);
  top: -120px; right: -80px;
}

.shape-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(200,168,32,0.10), transparent);
  bottom: -80px; left: 8%;
}

.shape-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.04), transparent);
  top: 30%; left: 5%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 24px 100px;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 12px rgba(200,168,32,0.35);
}

.hero-title {
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
}

.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 28px; font-weight: 800; color: #ffffff; line-height: 1; }
.stat span { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Illustration */
.illustration-wrap { position: relative; }

.hero-svg { width: 100%; max-width: 480px; filter: drop-shadow(0 12px 32px rgba(26,107,58,0.15)); }

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}

.floating-card i { color: var(--gold); font-size: 18px; }
.card-1 { bottom: 60px; left: -20px; animation-delay: 0s; }
.card-2 { top: 40px; right: -20px; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}


/* ── Hero section scoped button overrides ── */
.hero .btn-outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.60);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.90);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Floating cards on hero — dark bg version */
.hero .floating-card {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* Hero wave fill matches next section */
.hero-wave svg path { fill: #f7f9fc; }

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
}

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

/* ============================================
   QUICK LINKS
   ============================================ */
.quick-links {
  background: #fff;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.ql-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.ql-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  transition: var(--transition);
}

.ql-card:hover {
  border-color: var(--green-main);
  color: var(--green-main);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ql-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition);
}

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

.about-img-wrap { position: relative; }

.about-img-placeholder {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-placeholder svg { width: 100%; }

.about-badge-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--green-main);
  color: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.about-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-badge-item .num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.about-badge-item span { font-size: 12px; opacity: 0.85; }

.about-content { padding-left: 20px; }
.about-content .section-eyebrow { margin-bottom: 16px; }
.about-content .section-title { text-align: left; margin-bottom: 20px; }
.about-content p { color: var(--text-mid); margin-bottom: 16px; font-size: 15px; line-height: 1.8; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.af-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mid);
}

.af-item i { color: var(--green-main); font-size: 16px; flex-shrink: 0; }

/* ============================================
   MESSAGES
   ============================================ */
.messages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.message-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.message-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.message-card.featured { border-top: 4px solid var(--gold); }

.msg-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.msg-avatar svg { display: block; }

.msg-role-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-main);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.msg-role-badge.gold { background: var(--gold-light); color: #8b7315; }
.msg-role-badge.red { background: var(--red-light); color: var(--red); }

.msg-meta h3 { font-size: 15px; font-weight: 700; color: var(--text-dark); }

.msg-quote { color: var(--green-light); font-size: 32px; margin-bottom: 12px; }
.message-card.featured .msg-quote { color: var(--gold-light); }

.message-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.msg-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-main);
}

.msg-more:hover { text-decoration: underline; }

/* ============================================
   TEACHERS
   ============================================ */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.teacher-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.teacher-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }

.tc-img {
  padding: 28px 28px 0;
  display: flex;
  justify-content: center;
}

.tc-img svg { display: block; }

.tc-body { padding: 16px 20px 24px; }
.tc-body h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.tc-role { font-size: 13px; color: var(--green-main); font-weight: 600; margin-bottom: 4px; }
.tc-qual { font-size: 12px; color: var(--text-light); margin-bottom: 14px; }

.tc-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.tc-socials a {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--green-light);
  color: var(--green-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--transition);
}

.tc-socials a:hover { background: var(--green-main); color: #fff; }

/* ============================================
   NOTICE + EVENTS (Two column)
   ============================================ */
.ne-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

/* Notice Board */
.ne-main .section-eyebrow { display: block; margin-bottom: 12px; }
.ne-main .section-title { text-align: left; margin-bottom: 28px; }

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

.notice-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.notice-item:last-child { border-bottom: none; }
.notice-item:hover { padding-left: 8px; }

.notice-date {
  flex-shrink: 0;
  width: 54px;
  text-align: center;
  padding: 10px 6px;
  background: var(--green-light);
  border-radius: 10px;
  border-top: 3px solid var(--green-main);
}

.notice-item.new .notice-date {
  background: var(--gold-light);
  border-top-color: var(--gold);
}

.nd-day { display: block; font-size: 20px; font-weight: 800; color: var(--green-main); line-height: 1; }
.nd-month { display: block; font-size: 11px; color: var(--text-light); font-weight: 600; margin-top: 2px; }
.notice-item.new .nd-day { color: var(--gold); }

.notice-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.notice-body h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.notice-body p { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 8px; }
.notice-link { font-size: 13px; font-weight: 600; color: var(--green-main); }

/* Sidebar */
.ne-sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.sc-header {
  background: var(--green-main);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-header i { font-size: 16px; }
.sc-header h3 { font-size: 15px; font-weight: 700; }

/* Events */
.event-list { padding: 12px; }

.event-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  transition: var(--transition);
  margin-bottom: 4px;
}

.event-item:hover { background: var(--green-pale); }

.event-date-box {
  flex-shrink: 0;
  width: 48px;
  text-align: center;
  background: var(--green-main);
  color: #fff;
  border-radius: 8px;
  padding: 6px;
}

.ed-day { display: block; font-size: 18px; font-weight: 800; line-height: 1; }
.ed-month { display: block; font-size: 10px; font-weight: 600; opacity: 0.85; }

.event-info h5 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; }
.event-info p { font-size: 12px; color: var(--text-light); }

/* Important Links */
.imp-links { padding: 12px; }

.imp-links li { border-bottom: 1px solid var(--border); }
.imp-links li:last-child { border-bottom: none; }

.imp-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  font-size: 13px;
  color: var(--text-mid);
  transition: var(--transition);
}

.imp-links a i { color: var(--green-main); font-size: 11px; }
.imp-links a:hover { color: var(--green-main); padding-left: 14px; }

/* ============================================
   RESULTS
   ============================================ */
.results-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.rtab {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  font-family: inherit;
}

.rtab.active { color: var(--green-main); border-bottom-color: var(--green-main); }
.rtab:hover { color: var(--green-main); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.result-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.result-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.rc-top {
  padding: 28px 24px;
  text-align: center;
  color: #fff;
}

.rc-top.green { background: linear-gradient(135deg, var(--green-main), var(--green-dark)); }
.rc-top.blue { background: linear-gradient(135deg, var(--blue), #003f7f); }
.rc-top.gold { background: linear-gradient(135deg, var(--gold), #8b7315); }

.rc-top h4 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.rc-pass { font-size: 52px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.rc-top p { font-size: 13px; opacity: 0.85; }

.rc-body { padding: 20px 24px; }

.rc-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.rc-stat:last-child { border-bottom: none; }
.rc-stat span { color: var(--text-light); }
.rc-stat strong { font-weight: 700; color: var(--text-dark); }

/* ============================================
   STUDENTS
   ============================================ */
.stats-bars { margin-bottom: 48px; }

.stat-bar-item { margin-bottom: 20px; }

.sb-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.sb-bar {
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.sb-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1.5s ease;
}

.top-students h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  text-align: center;
}

.ts-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.ts-card {
  text-align: center;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  min-width: 160px;
  transition: var(--transition);
}

.ts-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.ts-card.gold-border { border-top: 3px solid var(--gold); }

.ts-rank { font-size: 28px; margin-bottom: 12px; }
.ts-avatar { display: flex; justify-content: center; margin-bottom: 12px; }
.ts-card h5 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.ts-card p { font-size: 12px; color: var(--text-light); }

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.bc-img { overflow: hidden; }
.bc-img svg { width: 100%; display: block; }

.bc-body { padding: 20px; }
.bc-meta { font-size: 12px; color: var(--text-light); margin-bottom: 10px; display: flex; gap: 8px; }
.bc-meta span:first-child { color: var(--green-main); font-weight: 600; }

.bc-body h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; line-height: 1.4; }
.bc-body p { font-size: 13px; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; }

.blog-more { font-size: 13px; font-weight: 600; color: var(--green-main); }
.blog-more:hover { text-decoration: underline; }

/* ============================================
   GALLERY
   ============================================ */
/* ============================================
   HOME GALLERY BENTO GRID
   ============================================ */

/* Separates the home-page preview grid from the full gallery page grid */
.home-gallery-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 12px;
}

/* Item 1 — large featured: spans 2 cols × 2 rows */
.home-gallery-bento .hg-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

/* Items 2–5 — normal single cells */
.home-gallery-bento .hg-item:nth-child(2),
.home-gallery-bento .hg-item:nth-child(3),
.home-gallery-bento .hg-item:nth-child(4),
.home-gallery-bento .hg-item:nth-child(5) {
  grid-column: span 1;
  grid-row: span 1;
}

/* Video item spans 2 cols so it has breathing room */
.home-gallery-bento .hg-item.is-video {
  grid-column: span 2;
  grid-row: span 1;
}

.hg-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  display: block;
  text-decoration: none;
  background: #e8f4ea;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hg-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(26,107,58,0.18);
}

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

.hg-item:hover img {
  transform: scale(1.04);
}

.hg-item .hg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,74,40,0.75) 0%, rgba(0,0,0,0) 55%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.hg-item:hover .hg-overlay {
  opacity: 1;
}

.hg-overlay-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  backdrop-filter: blur(4px);
  margin-bottom: 8px;
}

.hg-caption {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  padding: 0 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  max-width: 90%;
}

.hg-item .hg-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Disable pointer events on iframe so the <a> parent gets clicks/hover */
.hg-item .hg-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

/* Re-enable pointer-events on iframe only if user deliberately wants to play inline.
   For home preview, we redirect to YouTube. On the full gallery page, we enable. */
.gallery-page .hg-item .hg-video-wrap iframe {
  pointer-events: auto;
}

/* Legacy gallery-grid (full gallery page) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.gallery-item svg { width: 100%; display: block; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,107,58,0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(26,107,58,0.62);
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .home-gallery-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .home-gallery-bento .hg-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .home-gallery-bento .hg-item.is-video {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .home-gallery-bento {
    grid-template-columns: 1fr;
  }
  .home-gallery-bento .hg-item:nth-child(1),
  .home-gallery-bento .hg-item.is-video {
    grid-column: span 1;
  }
}

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

.ci-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.ci-icon {
  width: 44px; height: 44px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-main);
  font-size: 18px;
  flex-shrink: 0;
}

.ci-item h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.ci-item p { font-size: 14px; color: var(--text-mid); }

.ci-socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.cs-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: var(--transition);
}

.cs-btn.fb { background: #1877f2; }
.cs-btn.yt { background: #ff0000; }
.cs-btn.wa { background: #25d366; }
.cs-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* Contact Form */
.contact-form-wrap h3 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 24px; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.cf-group { margin-bottom: 16px; }

.cf-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.cf-group input,
.cf-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  transition: var(--transition);
  resize: vertical;
}

.cf-group input:focus,
.cf-group textarea:focus {
  outline: none;
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(26,107,58,0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,0.85); }

.footer-top { padding: 60px 0 40px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}

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

.footer-logo h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }

.footer-socials { display: flex; gap: 12px; }

.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}

.footer-socials a:hover { background: var(--gold); color: var(--green-dark); }

.footer-links h4, .footer-contact h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links ul li { margin-bottom: 8px; }

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover { color: var(--gold); padding-left: 6px; }
.footer-links a::before { content: '›'; color: var(--gold); }

.fc-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.fc-item i { color: var(--gold); font-size: 14px; margin-top: 2px; flex-shrink: 0; }

.footer-ids {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  font-size: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--green-main);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-3px); }

/* ============================================
   LANGUAGE SWITCHING
   ============================================ */
body.lang-en [data-en] { display: unset; }
body.lang-en [data-bn] { display: none; }
body.lang-bn [data-bn] { display: unset; }
body.lang-bn [data-en] { display: none; }

/* For elements that need to switch text dynamically, the JS handles it */

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  .messages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ql-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-illustration { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-badge-box { position: relative; bottom: auto; right: auto; margin-top: 20px; }
  .about-content { padding-left: 0; }
  .ne-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .messages-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .header-inner { padding: 12px 16px; }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 100vw);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 20px 40px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    gap: 0;
    z-index: 999;
  }

  .main-nav.open { right: 0; }

  .nav-list { flex-direction: column; align-items: stretch; width: 100%; gap: 4px; }
  .nav-list > li > a { padding: 12px 16px; border-radius: 8px; }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--green-main);
    margin-left: 16px;
    border-radius: 0;
  }

  .btn-login { margin-top: 16px; text-align: center; display: block; }

  .hero-inner { padding: 48px 24px 80px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .ql-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  /* gallery responsive handled inside .home-gallery-bento media queries */
  .cf-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ts-grid { flex-direction: column; align-items: center; }
  .section-pad { padding: 56px 0; }
  .about-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ql-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .hero-actions a { text-align: center; justify-content: center; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ============================================
   PAGE HERO (Inner pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
  padding: 48px 0 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.page-hero h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: 10px; opacity: 0.5; }
.breadcrumb span { color: var(--gold); font-weight: 600; }

/* ============================================
   NOTICE PAGE GRID
   ============================================ */
.notice-page-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

/* ============================================
   MISSION VISION CARDS
   ============================================ */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mv-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.mv-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.mv-card.featured { border-top: 4px solid var(--gold); }

.mv-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--green-light);
  color: var(--green-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 20px;
}

.mv-icon.gold { background: var(--gold-light); color: var(--gold); }
.mv-icon.blue { background: var(--blue-light); color: var(--blue); }

.mv-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--text-dark); }
.mv-card p { font-size: 14px; color: var(--text-mid); line-height: 1.8; }

/* ============================================
   TEACHER DETAIL PAGE
   ============================================ */
.teacher-detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
}

.td-photo-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.td-photo-card h2 { font-size: 18px; font-weight: 700; margin: 16px 0 6px; }

.td-info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.td-info-card h4 { font-size: 14px; font-weight: 700; color: var(--green-main); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

.td-info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 13px;
}

.td-info-row i { color: var(--green-main); font-size: 14px; margin-top: 2px; flex-shrink: 0; width: 16px; }
.td-info-row span { color: var(--text-light); display: block; font-size: 11px; }
.td-info-row strong { color: var(--text-dark); display: block; font-size: 13px; }

.td-bio-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.td-bio-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); color: var(--text-dark); }

/* ============================================
   ADDITIONAL RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .notice-page-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .teacher-detail-grid { grid-template-columns: 1fr; }
}
