/* =====================================================
   KANNADA PAATHA SHAALE — Premium Cultural Theme
   Karnataka Flag Colors: Red #C0000C · Gold #F7C200
   ===================================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --red:        #C0000C;
  --red-dark:   #8b0000;
  --red-deeper: #5a0004;
  --gold:       #F7C200;
  --gold-dark:  #d4a500;
  --gold-pale:  #fffbef;
  --cream:      #FFF8F2;
  --white:      #ffffff;
  --text-dark:  #1a1a1a;
  --text-mid:   #444;
  --text-light: #888;
  --shadow-sm:  0 2px 14px rgba(0,0,0,0.06);
  --shadow-md:  0 6px 28px rgba(0,0,0,0.10);
  --shadow-red: 0 8px 32px rgba(192,0,12,0.18);
  --shadow-gold:0 8px 28px rgba(247,194,0,0.28);
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes kenBurns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247,194,0,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(247,194,0,0); }
}

/* ===== LAYOUT ===== */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 55%, #9a0008 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,0.28);
  border-bottom: 2px solid rgba(247,194,0,0.3);
}
nav.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
}
main { max-width: 1200px; margin: 0 auto; }
footer {
  width: 100%;
  background: linear-gradient(160deg, var(--red-deeper) 0%, var(--red-dark) 45%, #6b0000 100%);
  color: #fff;
  padding: 4rem 2rem 2rem;
}

/* ===== NAVBAR ===== */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.navbar-logo img {
  height: 48px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.navbar-logo span {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
  font-family: 'Playfair Display', Georgia, serif;
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.navbar-menu a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  transition: color 0.25s, background 0.25s;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  position: relative;
}
.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: left 0.3s var(--ease), right 0.3s var(--ease);
}
.navbar-menu a:hover,
.navbar-menu a.nav-active { color: var(--gold); background: rgba(247,194,0,0.1); }
.navbar-menu a:hover::after,
.navbar-menu a.nav-active::after { left: 0.9rem; right: 0.9rem; }
.language-switcher {
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.84rem;
  transition: all 0.25s var(--ease);
  font-family: inherit;
  margin-left: 0.8rem;
  letter-spacing: 0.3px;
}
.language-switcher:hover {
  background: var(--gold);
  color: var(--red-dark);
  box-shadow: 0 4px 16px rgba(247,194,0,0.4);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  transform-origin: center center;
}
.hero-slide.active {
  opacity: 1;
  animation: kenBurns 9s ease-out forwards;
}
/* Dark vignette over entire hero for text readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,0,0,0.52);
  z-index: 1;
  pointer-events: none;
}
/* Bottom gradient for smooth section transition */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to top,
    rgba(60,0,4,0.85) 0%,
    rgba(60,0,4,0.4) 50%,
    transparent 100%);
  z-index: 2;
  pointer-events: none;
}
.slide-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(0,0,0,0.25);
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.35s var(--ease);
  border: none;
  padding: 0;
}
.slide-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(247,194,0,0.7);
}

/* ===== SECTIONS ===== */
/* scroll-margin-top fixes sticky-navbar overlapping section headings */
#about, #courses, #gallery, #contact {
  scroll-margin-top: 72px;
}
.section {
  background: var(--white);
  padding: 6rem 3rem;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--red);
  position: relative;
  padding-bottom: 1.3rem;
  letter-spacing: -0.3px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  border-radius: 3px;
}
.section-title-gap { margin-top: 4rem; }
/* Subtle top separator line between white sections */
#gallery { border-top: 1px solid rgba(192,0,12,0.07); }

/* ===== ABOUT ===== */
#about { background: var(--white); }
.about-intro {
  text-align: center;
  max-width: 700px;
  margin: 1.5rem auto 2.8rem;
  color: var(--text-mid);
  line-height: 2;
  font-size: 1.02rem;
}

/* ===== MISSION BANNER ===== */
.mission-banner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  border-top: 4px solid var(--gold);
  border-radius: var(--r-md);
  padding: 2rem 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-red);
  position: relative;
  overflow: hidden;
}
.mission-banner::before {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(247,194,0,0.07);
  pointer-events: none;
}
.mission-icon { flex-shrink: 0; color: var(--gold); display: flex; }
.mission-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--gold);
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}
.mission-text { color: rgba(255,255,255,0.9); margin: 0; line-height: 1.75; font-size: 0.97rem; }

/* ===== TEAM LAYOUT ===== */
.team-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: stretch;
}
.team-col { display: flex; flex-direction: column; }
.team-col .section-title {
  text-align: left;
  padding-bottom: 1.1rem;
  margin-bottom: 1.5rem;
}
.team-col .section-title::after { left: 0; transform: none; }
.team-title { text-align: left; }
.team-title::after { left: 0; transform: none; }

/* ===== LEADER CARDS ===== */
.leadership-stack { display: flex; flex-direction: column; gap: 1.4rem; flex: 1; }
.leadership-stack .leader-card { width: 100%; }

.leader-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-left-color 0.25s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-left: 4px solid var(--red);
}
.leader-card:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 38px rgba(192,0,12,0.16);
  border-left-color: var(--gold);
}
.leader-card:hover .leader-img-wrap img { transform: scale(1.05); }

.leader-img-wrap {
  width: 150px;
  min-width: 150px;
  height: 185px;
  overflow: hidden;
  flex-shrink: 0;
}
.leader-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s var(--ease);
}
.leader-card-body {
  padding: 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}
.leader-card h3 {
  color: var(--red);
  margin: 0;
  font-size: 1.15rem;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.3;
}
.leader-role {
  color: var(--text-light);
  font-size: 0.7rem;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.bio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--red-dark);
  background: var(--gold);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 0.38rem 1rem;
  border-radius: 20px;
  transition: all 0.25s var(--ease);
  letter-spacing: 0.3px;
  margin-top: 0.5rem;
  width: fit-content;
}
.bio-link:hover {
  background: var(--red);
  color: var(--gold);
  transform: translateX(3px);
}

/* ===== TEACHERS GROUP ===== */
.teachers-group {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-red);
  border: 3px solid var(--gold);
  flex: 1;
  display: flex;
}
.teachers-group-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  min-height: 300px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  overflow: hidden;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  gap: 0.45rem;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: background 0.3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(247,194,0,0.12); }
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.82);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  text-align: center;
  font-weight: 500;
}

/* ===== COURSES ===== */
#courses {
  background-color: #FFF4E6;
  background-image: radial-gradient(circle, rgba(192,0,12,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--red);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 2.8rem;
}
.card {
  background: linear-gradient(155deg, var(--red-dark) 0%, var(--red) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 2.8rem 2.2rem;
  text-align: left;
  box-shadow: 0 10px 40px rgba(192,0,12,0.25);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
  border-top: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card::before {
  content: '';
  position: absolute;
  bottom: -50px; right: -50px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(247,194,0,0.07);
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute;
  top: -30px; left: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 56px rgba(192,0,12,0.32);
}
.course-icon {
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(247,194,0,0.13);
  width: 66px; height: 66px;
  border-radius: 16px;
  border: 1px solid rgba(247,194,0,0.25);
  flex-shrink: 0;
}
.card h3 {
  color: var(--gold);
  margin: 0 0 0.85rem;
  font-size: 1.22rem;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.3;
}
.card p {
  color: rgba(255,255,255,0.88);
  line-height: 1.9;
  margin: 0;
  font-size: 0.92rem;
  flex: 1;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--gold) 0%, #e6b000 50%, var(--gold) 100%);
  padding: 4.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -70px; right: -70px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(192,0,12,0.10);
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -90px; left: -50px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(192,0,12,0.07);
  pointer-events: none;
}
.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}
.cta-text { flex: 1; }
.cta-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--red-dark);
  margin: 0 0 0.6rem;
  line-height: 1.25;
}
.cta-sub {
  color: rgba(120,0,0,0.75);
  font-size: 1rem;
  margin: 0;
  line-height: 1.65;
}
.cta-btn {
  display: inline-block;
  background: var(--red);
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.6rem;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(192,0,12,0.35);
  transition: all 0.3s var(--ease);
  letter-spacing: 0.5px;
}
.cta-btn:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(192,0,12,0.45);
}

/* ===== GALLERY ===== */
#gallery { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery-item:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 36px rgba(192,0,12,0.20);
  transform: translateY(-3px);
}
.gallery-item:hover .gallery-img { transform: scale(1.07); }
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

/* ===== VIDEOS ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.video-placeholder {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #111;
  border: 2px solid rgba(247,194,0,0.18);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.28s;
  display: flex;
  flex-direction: column;
}
.video-placeholder:hover {
  border-color: var(--gold);
  box-shadow: 0 14px 44px rgba(192,0,12,0.22);
  transform: translateY(-5px);
}
.video-placeholder video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  background: #000;
  flex-shrink: 0;
}
.video-caption {
  text-align: center;
  color: var(--red-dark);
  font-weight: 700;
  margin: 0;
  font-size: 0.82rem;
  background: linear-gradient(90deg, var(--gold-pale), #fff8e0, var(--gold-pale));
  padding: 0.75rem 1rem;
  border-top: 2px solid rgba(247,194,0,0.5);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ===== CONTACT ===== */
#contact { background: var(--gold-pale); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: start;
}
.contact-info {
  background: linear-gradient(155deg, var(--red-dark) 0%, var(--red) 100%);
  border-radius: var(--r-md);
  padding: 2.5rem 2rem;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-red);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.3rem;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-info-item span { flex: 1; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1.5px solid #ddd0a0;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
  resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  box-shadow: var(--shadow-sm);
}
.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #c9a840;
  background: #fffef9;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,0,12,0.08);
}
.contact-form button {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--gold);
  border: none;
  border-radius: var(--r-sm);
  padding: 1.1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-red);
  letter-spacing: 0.8px;
  width: 100%;
  margin-top: 0.2rem;
}
.contact-form button:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* ===== FOOTER ===== */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  text-align: left;
}
.footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.footer-tagline { color: rgba(255,255,255,0.55); font-size: 0.87rem; margin: 0; line-height: 1.75; }
.footer-col-title {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(247,194,0,0.22);
}
.footer-detail {
  color: rgba(255,255,255,0.70);
  font-size: 0.87rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.5;
}
.footer-detail svg { color: var(--gold); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 1.3rem;
  font-size: 0.81rem;
  color: rgba(255,255,255,0.40);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== SOCIAL ICONS ===== */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), filter 0.3s;
}
.social-icon svg { width: 38px; height: 38px; border-radius: 10px; display: block; }
.social-icon:hover {
  transform: translateY(-5px) scale(1.12);
  filter: drop-shadow(0 6px 16px rgba(247,194,0,0.55));
}

/* ===== BIO PAGE ===== */
.bio-page { max-width: 960px; margin: 3rem auto; }
.back-btn {
  background: none;
  border: 2px solid var(--red);
  color: var(--red);
  border-radius: 24px;
  padding: 0.5rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 2.5rem;
  transition: all 0.25s var(--ease);
}
.back-btn:hover { background: var(--red); color: var(--gold); }
.bio-content { display: flex; gap: 3rem; align-items: flex-start; }
.bio-img {
  width: 220px;
  height: 260px;
  border-radius: var(--r-md);
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  box-shadow: var(--shadow-red);
  border: 3px solid var(--gold);
}
.bio-text h2 {
  color: var(--red);
  margin: 0 0 0.3rem;
  font-size: 1.9rem;
  font-family: 'Playfair Display', Georgia, serif;
}
.bio-role {
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.bio-text p { line-height: 1.85; color: var(--text-mid); }
.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.profile-table th {
  text-align: left;
  color: var(--red);
  font-weight: 700;
  padding: 0.7rem 1rem 0.7rem 0;
  white-space: nowrap;
  vertical-align: top;
  width: 36%;
}
.profile-table td {
  padding: 0.7rem 0;
  color: var(--text-mid);
  line-height: 1.7;
  vertical-align: top;
}
.profile-table tr { border-bottom: 1px solid #fdf0c0; }
.profile-table tr:last-child { border-bottom: none; }
.service-list { margin: 0; padding-left: 1.2rem; line-height: 2.1; color: var(--text-mid); }
.bio-additional {
  margin-top: 1.6rem;
  line-height: 1.9;
  color: var(--text-mid);
  font-style: italic;
  border-left: 4px solid var(--gold);
  padding: 1rem 1.3rem;
  background: var(--gold-pale);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.32s var(--ease);
  pointer-events: none;
}
.lightbox.lb-active {
  opacity: 1;
  pointer-events: all;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,0,0,0.93);
  cursor: zoom-out;
}
.lb-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 5rem;
  max-width: 100vw;
}
.lb-img {
  max-width: min(88vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 24px 80px rgba(0,0,0,0.85);
  border: 2px solid rgba(247,194,0,0.3);
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: block;
}
.lb-counter {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  margin-top: 1rem;
  letter-spacing: 1.5px;
  font-weight: 500;
  text-align: center;
}
.lb-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 3;
  background: var(--red);
  color: var(--gold);
  border: none;
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}
.lb-close:hover {
  background: var(--red-dark);
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(247,194,0,0.4);
}
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(192,0,12,0.75);
  color: var(--gold);
  border: none;
  border-radius: 50%;
  width: 52px; height: 52px;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }
.lb-nav:hover {
  background: var(--red);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 28px rgba(192,0,12,0.5);
}
@media (max-width: 600px) {
  .lb-content { padding: 0 3.5rem; }
  .lb-img { max-width: 94vw; max-height: 75vh; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.8rem; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
  .lb-close { width: 40px; height: 40px; font-size: 1.3rem; top: 0.8rem; right: 0.8rem; }
}

/* ===== LEGACY CLASSES (safety) ===== */
.leadership-grid {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  justify-content: center; margin-top: 2.8rem;
}
.teachers-grid {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: center; margin-top: 2.5rem;
}
.teacher-card { text-align: center; width: 150px; }
.teacher-img-wrap {
  width: 120px; height: 120px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 0.8rem;
  border: 3px solid var(--gold); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.teacher-img-wrap:hover { transform: scale(1.06); box-shadow: var(--shadow-red); }
.teacher-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card p { color: var(--red); font-weight: 600; margin: 0; font-size: 0.93rem; }

/* ===== RESPONSIVE — Tablet landscape 1000px ===== */
@media (max-width: 1000px) {
  .section { padding: 5rem 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  #about, #courses, #gallery, #contact { scroll-margin-top: 68px; }
}

/* ===== RESPONSIVE — Tablet portrait 860px ===== */
@media (max-width: 860px) {
  .team-layout { grid-template-columns: 1fr; }
  .team-col .section-title { text-align: center !important; }
  .team-col .section-title::after { left: 50%; transform: translateX(-50%); }
  .leadership-stack { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .leadership-stack .leader-card { max-width: 400px; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .stat-number { font-size: 2.4rem; }
}

/* ===== RESPONSIVE — Large mobile 700px ===== */
@media (max-width: 700px) {
  .bio-content { flex-direction: column; align-items: center; text-align: center; }
  .bio-img { width: 180px; height: 220px; }
  .profile-table th { white-space: normal; width: 40%; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-heading { font-size: 1.5rem; }
  .cta-band { padding: 2.8rem 1.5rem; }
  .section-title { font-size: 1.9rem; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ===== RESPONSIVE — Mobile 600px ===== */
@media (max-width: 600px) {
  nav.navbar {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
  }
  .navbar-logo span { font-size: 0.93rem; }
  .navbar-menu { flex-wrap: wrap; justify-content: center; gap: 0.1rem; }
  .navbar-menu a { padding: 0.35rem 0.55rem; font-size: 0.8rem; }
  .language-switcher { padding: 0.25rem 0.8rem; font-size: 0.8rem; margin-left: 0.4rem; }

  .hero { min-height: 65vh; }
  #about, #courses, #gallery, #contact { scroll-margin-top: 110px; }

  .section { padding: 3.5rem 1.1rem; }
  .section-title { font-size: 1.65rem; }
  .about-intro { font-size: 0.96rem; }
  .mission-banner { flex-direction: column; gap: 1rem; padding: 1.5rem 1.4rem; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .video-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .team-layout { grid-template-columns: 1fr; }

  .stats-bar { flex-wrap: wrap; }
  .stat-item {
    flex: 1 1 45%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 1.5rem 0.8rem;
  }
  .stat-number { font-size: 2.1rem; }
  .stat-label { font-size: 0.72rem; }

  .leader-img-wrap { width: 110px; min-width: 110px; height: 150px; }
  .leader-card-body { padding: 1rem 1.1rem; }
  .leader-card h3 { font-size: 1rem; }

  .cta-band { padding: 2.4rem 1.2rem; }
  .cta-heading { font-size: 1.35rem; }

  .footer-grid { text-align: center; }
  .footer-detail { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-col-title { text-align: center; }

  .slide-dots { bottom: 1.2rem; padding: 0.35rem 0.65rem; }
}

/* ===== HERO CONTENT OVERLAY ===== */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 3.5rem 7rem;
  animation: fadeInUp 1.1s ease both;
}
.hero-badge {
  display: inline-block;
  background: rgba(247,194,0,0.18);
  border: 1px solid rgba(247,194,0,0.5);
  color: var(--gold);
  padding: 0.38rem 1.1rem;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  backdrop-filter: blur(6px);
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7), 0 0 40px rgba(0,0,0,0.4);
  letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  margin: 0 0 2.2rem;
  line-height: 1.7;
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  text-align: center;
}
.hero-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--red-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.6rem;
  border-radius: 50px;
  box-shadow: 0 8px 28px rgba(247,194,0,0.5);
  transition: all 0.3s var(--ease);
  letter-spacing: 0.5px;
}
.hero-cta:hover {
  background: #fff;
  color: var(--red-dark);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(247,194,0,0.6);
}
@media (max-width: 700px) {
  .hero-content { padding: 0 1.6rem 4.5rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.97rem; }
}
@media (max-width: 400px) {
  .hero-title { font-size: 1.8rem; }
  .hero-content { padding: 0 1.2rem 4rem; }
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== NAV OVERLAY (mobile drawer backdrop) ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 155;
  backdrop-filter: blur(2px);
}
.nav-overlay.active { display: block; }

/* ===== MOBILE DRAWER ===== */
@media (max-width: 600px) {
  nav.navbar {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.7rem 1.2rem !important;
    gap: 0 !important;
  }
  .hamburger { display: flex; }
  .navbar-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100dvh;
    background: linear-gradient(160deg, var(--red-deeper) 0%, var(--red-dark) 100%);
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 5.5rem 1.4rem 2rem !important;
    gap: 0.15rem !important;
    z-index: 160;
    transition: right 0.35s var(--ease);
    box-shadow: -8px 0 40px rgba(0,0,0,0.38);
    overflow-y: auto;
    flex-wrap: nowrap !important;
  }
  .navbar-menu.open { right: 0; }
  .navbar-menu a {
    width: 100%;
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;
    border-radius: 8px;
  }
  .navbar-menu a::after { display: none; }
  .language-switcher {
    margin-top: 1rem !important;
    margin-left: 0 !important;
    align-self: flex-start;
  }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.3rem 0.72rem 0.8rem;
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: pulse-wa 2.5s infinite;
}
.wa-float svg { width: 28px; height: 28px; flex-shrink: 0; }
.wa-label { white-space: nowrap; }
.wa-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(37,211,102,0.55);
  animation: none;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 8px 28px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 8px 28px rgba(37,211,102,0.45), 0 0 0 10px rgba(37,211,102,0.1); }
}
@media (max-width: 500px) {
  .wa-float { bottom: 1.2rem; right: 1.2rem; padding: 0.7rem; border-radius: 50%; }
  .wa-label { display: none; }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.6rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(192,0,12,0.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 24px rgba(192,0,12,0.55);
}
@media (max-width: 500px) {
  .scroll-top-btn { bottom: 5rem; right: 1.2rem; width: 40px; height: 40px; font-size: 1.3rem; }
}

/* ===== WAVE DIVIDERS ===== */
.wave-wrap {
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}
.wave-wrap svg {
  display: block;
  width: 100%;
  height: 56px;
}

/* ===== KANNADA MITHRARU UAE ORG IMAGE ===== */
.org-img-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-red);
  border: 3px solid var(--gold);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.org-img {
  width: 100%;
  flex: 1;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #fdf8e1;
  min-height: 220px;
  transition: transform 0.45s var(--ease);
}
.org-img-wrap:hover .org-img { transform: scale(1.03); }
.org-img-caption {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--gold);
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.55;
}

/* ===== TEACHERS FULL-WIDTH SECTION ===== */
.teachers-full-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px dashed rgba(192,0,12,0.15);
}
.teachers-group-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-red);
  border: 3px solid var(--gold);
  margin: 2rem 0 2.5rem;
}
.teachers-group-img-full {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  max-height: 500px;
}

/* ===== STAFF NAMES GRID ===== */
.staff-names-section { margin-top: 0.5rem; }
.staff-names-heading {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--red);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}
.staff-names-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  border-radius: 3px;
}
.staff-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-height: 130px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}
.staff-grid::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, #fff 30%, transparent);
  pointer-events: none;
  transition: opacity 0.3s;
}
.staff-grid.staff-expanded {
  max-height: 1200px;
}
.staff-grid.staff-expanded::after {
  opacity: 0;
}
.staff-chip {
  background: var(--white);
  border: 1.5px solid rgba(192,0,12,0.14);
  border-radius: 50px;
  padding: 0.55rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
  min-width: 140px;
}
.staff-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.staff-chip-lead {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-color: var(--gold);
  border-width: 2px;
}
.staff-chip-lead .staff-name { color: #fff; }
.staff-chip-lead .staff-role { color: var(--gold); }
.staff-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.3;
}
.staff-role {
  font-size: 0.68rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  text-align: center;
}

.staff-toggle-btn {
  display: block;
  margin: 1rem auto 0;
  background: none;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1.6rem;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: background 0.25s, color 0.25s;
}
.staff-toggle-btn:hover {
  background: var(--red);
  color: #fff;
}

/* ===== GALLERY YEAR TABS ===== */
.year-tabs {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.8rem 0 0.5rem;
}
.year-tab {
  background: var(--white);
  border: 2px solid rgba(192,0,12,0.2);
  color: var(--red);
  border-radius: 24px;
  padding: 0.42rem 1.3rem;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s var(--ease);
  letter-spacing: 0.3px;
}
.year-tab:hover {
  background: rgba(192,0,12,0.06);
  border-color: var(--red);
}
.year-tab.active {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--gold);
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}

/* ===== EXECUTIVE COMMITTEE SECTION ===== */
.committee-section-page {
  background: #f9f4ff;
}
.committee-card {
  margin: 2rem auto 0;
  max-width: 960px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-red);
  border: 3px solid var(--gold);
  background: #fff;
}
.committee-card-img {
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* ===== RESPONSIVE — Small mobile 400px ===== */
@media (max-width: 400px) {
  .section-title { font-size: 1.45rem; }
  .hero { min-height: 60vh; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stat-item { flex: 1 1 100%; }
  .leader-img-wrap { width: 100px; min-width: 100px; height: 135px; }
}
