:root {
  --navy:    #0B1E3D;
  --cobalt:  #1A3F7A;
  --gold:    #F5A623;
  --amber:   #FFCA5A;
  --sky:     #E8F2FF;
  --white:   #FFFFFF;
  --slate:   #4A5568;
  --light:   #F7F9FC;
  --green:   #1DB954;
  --red:     #E53E3E;
  --purple:  #6B46C1;
  --teal:    #0D9488;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(11,30,61,0.12);
  --shadow-lg: 0 20px 60px rgba(11,30,61,0.18);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--navy); background: var(--white); overflow-x: hidden; }

/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  padding: 8px 0;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.topbar-info {
  display: flex; gap: 18px; flex-wrap: nowrap;
  overflow: hidden; min-width: 0;
}
.topbar-info span {
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; flex-shrink: 0;
}
.topbar-social { display: flex; gap: 8px; flex-shrink: 0; }
.topbar-social a {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: white; text-decoration: none;
  transition: background .2s, color .2s;
}
.topbar-social svg {
  width: 14px; height: 14px; flex-shrink: 0;
}
.topbar-social a:hover { background: var(--gold); color: var(--navy); }

/* ── NAV ── */
nav {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(11,30,61,0.08);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cobalt), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.logo-text { line-height: 1.2; min-width: 0; }
/* Brand logo image (replaces the emoji badge) */
img.bma-brand-logo {
  width: 52px; height: 52px; border-radius: 50%; background: #fff;
  object-fit: contain; padding: 0; box-shadow: 0 2px 8px rgba(13, 31, 78, 0.15);
}
.footer-logo img.bma-brand-logo { width: 48px; height: 48px; }
.logo-name {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: var(--navy); white-space: nowrap;
}
.logo-tag {
  font-size: 11px; color: var(--gold); font-weight: 600;
  letter-spacing: .3px; white-space: nowrap;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
  flex: 1; justify-content: center;
  min-width: 0;
}
.nav-links > li { flex-shrink: 0; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 11px; border-radius: 8px;
  text-decoration: none; font-size: 13.5px; font-weight: 500;
  color: var(--slate); white-space: nowrap;
  transition: color .2s, background .2s;
  line-height: 1.2;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cobalt); background: var(--sky);
}
.nav-caret {
  font-size: 10px; line-height: 1; opacity: 0.7;
}
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: white; border-radius: 12px; box-shadow: var(--shadow-lg);
  min-width: 240px; padding: 8px; z-index: 200;
  border: 1px solid rgba(11,30,61,0.06);
  /* Invisible bridge so the hover gap does not close the menu */
  margin-top: 0;
}
.nav-links .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-links .dropdown:hover .dropdown-menu,
.nav-links .dropdown:focus-within .dropdown-menu,
.nav-links .dropdown.open .dropdown-menu { display: block; }
.nav-links .dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; color: var(--navy); white-space: nowrap;
}
.nav-links .dropdown-menu a:hover {
  background: var(--sky); color: var(--cobalt);
}
.nav-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nav-faculty-link {
  font-size: 13px; font-weight: 600; color: var(--slate);
  text-decoration: none; white-space: nowrap;
  padding: 8px 10px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-faculty-link:hover { color: var(--cobalt); background: var(--sky); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--cobalt), var(--navy));
  color: white; border: none; padding: 10px 18px;
  border-radius: 10px; font-family: var(--font-body);
  font-size: 13.5px; font-weight: 600; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(26,63,122,0.3);
  flex-shrink: 0;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,63,122,0.4);
  color: white;
}
.nav-cta-arrow { font-size: 14px; line-height: 1; }
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); margin: 5px 0;
  border-radius: 2px; transition: .3s;
}

/* ── HERO ── */
#home {
  background: linear-gradient(135deg, var(--navy) 0%, var(--cobalt) 50%, #1e5fa8 100%);
  min-height: 92vh; display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-bg-pattern {
  position: absolute; inset: 0; opacity: .04;
  background-image: radial-gradient(circle at 25% 25%, white 1px, transparent 1px),
                    radial-gradient(circle at 75% 75%, white 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.15) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.3);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 24px;
  font-size: 13px; color: var(--amber); font-weight: 600; letter-spacing: .5px;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 58px);
  font-weight: 900; color: white; line-height: 1.1; margin-bottom: 24px;
}
.hero-title .accent { color: var(--amber); }
.hero-subtitle { font-size: 17px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 36px; max-width: 480px; }
.hero-badges { display: flex; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 8px; }
.hero-badge-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.hero-badge-text { font-size: 13px; color: rgba(255,255,255,0.8); }
.hero-badge-text strong { display: block; color: white; font-size: 14px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #e8950e);
  color: var(--navy); padding: 14px 28px; border-radius: 12px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(245,166,35,0.4); transition: all .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245,166,35,0.5); }
.btn-secondary {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  color: white; padding: 14px 28px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: all .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); }
.hero-visual { position: relative; }
.hero-card-main {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 24px; padding: 32px;
  color: white;
}
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.hero-stat { text-align: center; padding: 16px; background: rgba(255,255,255,0.06); border-radius: 12px; }
.hero-stat-num { font-family: var(--font-display); font-size: 32px; font-weight: 900; color: var(--amber); }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 4px; }
.hero-pill {
  position: absolute; background: white; border-radius: 100px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px;
  animation: float 3s ease-in-out infinite;
}
.hero-pill:nth-child(2) { top: -20px; right: -20px; animation-delay: 0s; }
.hero-pill:nth-child(3) { bottom: -20px; left: -20px; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.online-badge { background: var(--green); width: 8px; height: 8px; border-radius: 50%; }

/* ── STATS BAR ── */
.stats-bar { background: var(--navy); padding: 24px 0; }
.stats-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px;
}
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 900; color: var(--gold); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ── SECTION COMMON ── */
section { padding: 90px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 900; color: var(--navy); margin-bottom: 16px; line-height: 1.2; }
.section-sub { font-size: 16px; color: var(--slate); max-width: 560px; line-height: 1.7; }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── COURSES GRID ── */
#courses { background: var(--light); }
.course-tabs { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }
.tab-btn {
  padding: 10px 22px; border-radius: 100px; border: 2px solid #e2e8f0;
  background: white; font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--slate); cursor: pointer; transition: all .2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--navy); border-color: var(--navy); color: white;
}
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.course-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(11,30,61,0.06); transition: all .3s;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-card-header { padding: 24px 24px 0; display: flex; align-items: flex-start; gap: 14px; }
.course-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.course-card-body { padding: 16px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.course-category { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.course-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.course-desc { font-size: 14px; color: var(--slate); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px;
  background: var(--sky); color: var(--cobalt);
}
.course-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--cobalt); text-decoration: none;
  transition: gap .2s;
}
.course-link:hover { gap: 10px; }
.powered-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--teal);
  background: rgba(13,148,136,0.08); border: 1px solid rgba(13,148,136,0.2);
  border-radius: 100px; padding: 3px 10px; margin-bottom: 8px;
}

/* ── ACADEMICS DEEP DIVE ── */
#academics { background: white; }
.academics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.academic-card {
  border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(11,30,61,0.08);
  transition: all .3s; cursor: pointer;
}
.academic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.academic-card-top { padding: 28px; color: white; position: relative; overflow: hidden; }
.academic-card-top::after {
  content: attr(data-icon); font-size: 80px; position: absolute;
  right: -10px; bottom: -15px; opacity: .15;
}
.academic-card-body { padding: 22px 24px; background: white; }
.academic-subject { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.academic-tagline { font-size: 13px; opacity: .85; }
.board-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.board-chip {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  border: 1.5px solid currentColor;
}
.topics-list { list-style: none; }
.topics-list li {
  font-size: 13px; color: var(--slate); padding: 5px 0;
  border-bottom: 1px solid #f0f4f8; display: flex; align-items: center; gap: 8px;
}
.topics-list li::before { content: '→'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.topics-list li:last-child { border-bottom: none; }

/* ── COMPUTER SECTION ── */
#computer { background: linear-gradient(160deg, var(--navy) 0%, #1a3a6e 100%); }
#computer .section-title { color: white; }
#computer .section-sub { color: rgba(255,255,255,0.7); }
#computer .section-eyebrow { color: var(--amber); }
.computer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.comp-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 24px; transition: all .3s;
  backdrop-filter: blur(10px);
}
.comp-card:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(245,166,35,0.4);
  transform: translateY(-4px);
}
.comp-card-icon { font-size: 32px; margin-bottom: 14px; }
.comp-card-title { font-size: 15px; font-weight: 700; color: white; margin-bottom: 8px; }
.comp-card-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 14px; }
.comp-card-level {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  background: rgba(245,166,35,0.15); color: var(--amber); border: 1px solid rgba(245,166,35,0.3);
}
.ardent-banner {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(245,166,35,0.25);
  border-radius: 16px; padding: 20px 28px; margin-bottom: 40px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.ardent-banner-text { flex: 1; }
.ardent-banner-title { font-size: 16px; font-weight: 700; color: white; margin-bottom: 4px; }
.ardent-banner-sub { font-size: 13px; color: rgba(255,255,255,0.6); }
.ardent-logo-badge {
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: 14px;
  padding: 8px 20px; border-radius: 10px; white-space: nowrap;
}

/* ── CHESS & PERSONAL DEV ── */
#speciality { background: var(--light); }
.speciality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.speciality-card {
  background: white; border-radius: 24px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(11,30,61,0.08);
}
.speciality-card-top { padding: 36px; color: white; }
.speciality-card-body { padding: 28px; }
.speciality-title { font-family: var(--font-display); font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.speciality-sub { font-size: 14px; opacity: .85; line-height: 1.6; }
.feature-list { list-style: none; margin-top: 16px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--slate); padding: 9px 0;
  border-bottom: 1px solid #f0f4f8;
}
.feature-list li:last-child { border-bottom: none; }
.feat-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ── WHY CHOOSE US ── */
#why { background: white; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.why-card {
  border-radius: 20px; padding: 28px; text-align: center;
  transition: all .3s; border: 2px solid transparent;
}
.why-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.why-icon { font-size: 40px; margin-bottom: 16px; }
.why-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.why-desc { font-size: 13px; color: var(--slate); line-height: 1.6; }

/* ── MODES ── */
.modes-strip {
  background: linear-gradient(135deg, var(--cobalt), var(--navy));
  border-radius: 24px; padding: 40px 48px;
  display: flex; gap: 40px; align-items: center; flex-wrap: wrap;
  margin-top: 60px;
}
.mode-item { flex: 1; min-width: 200px; }
.mode-icon { font-size: 40px; margin-bottom: 12px; }
.mode-title { font-size: 20px; font-weight: 800; color: white; margin-bottom: 6px; }
.mode-desc { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.mode-divider { width: 1px; height: 80px; background: rgba(255,255,255,0.15); }

/* ── ADMISSION ── */
#admissions { background: var(--sky); }
.admission-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-bottom: 48px; }
.step-card {
  background: white; border-radius: 20px; padding: 28px;
  text-align: center; box-shadow: 0 4px 16px rgba(11,30,61,0.06);
  position: relative;
}
.step-number {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: white; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.step-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--slate); line-height: 1.6; }
.admission-form-card {
  background: white; border-radius: 28px; padding: 40px 44px;
  box-shadow: 0 16px 48px rgba(11,30,61,0.10);
  max-width: 760px; margin: 0 auto;
  border: 1px solid rgba(11,30,61,0.04);
}
.admission-form-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 900;
  color: var(--navy); margin-bottom: 28px; text-align: center;
  letter-spacing: -0.02em;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form-group label .req { color: var(--red); margin-left: 2px; }
.form-group label .optional { color: var(--slate); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px; border-radius: 12px; border: 1.5px solid #e2e8f0;
  background: #fafbfd;
  font-family: var(--font-body); font-size: 14px; color: var(--navy);
  transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
  appearance: none; -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234A5568' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 96px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--cobalt);
  background: white;
  box-shadow: 0 0 0 3px rgba(26,63,122,0.12);
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--red);
  background: #fff5f5;
}
.field-error {
  display: none;
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
  line-height: 1.3;
}
.form-group.has-error .field-error { display: block; }
.form-alert {
  grid-column: 1 / -1;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.form-alert.success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.form-alert.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.form-submit {
  grid-column: 1 / -1; margin-top: 6px;
  background: linear-gradient(135deg, var(--cobalt), var(--navy));
  color: white; border: none; padding: 16px 20px;
  border-radius: 14px; font-family: var(--font-body); font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all .2s; width: 100%;
  box-shadow: 0 8px 22px rgba(26,63,122,0.28);
}
.form-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(26,63,122,0.35);
}
.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
@media (max-width: 640px) {
  .admission-form-card { padding: 28px 18px; border-radius: 20px; }
  .admission-form-title { font-size: 22px; margin-bottom: 22px; }
}

/* ── GALLERY ── */
#gallery { background: white; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; gap: 16px; }
.gallery-item {
  border: none;
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--sky); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; cursor: pointer; transition: all .3s;
  padding: 0; font-family: inherit; color: inherit; width: 100%;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
.gallery-grid:has(.gallery-item:only-child) .gallery-item:nth-child(1),
.gallery-grid .gallery-item:only-child {
  grid-column: 1 / -1;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 16/9;
}
.gallery-item-emoji { line-height: 1; position: relative; z-index: 1; }
.gallery-item-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-item-video .gallery-item-play {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(11,30,61,0.72); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  box-shadow: 0 8px 24px rgba(11,30,61,0.25);
  transition: transform .2s, background .2s;
}
.gallery-item-video:hover .gallery-item-play {
  transform: scale(1.08);
  background: var(--navy);
}
.gallery-label {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 12px 16px; background: linear-gradient(transparent, rgba(11,30,61,0.8));
  color: white; font-size: 13px; font-weight: 600;
  text-align: left;
}

/* ── FACULTY ── */
#faculty { background: var(--light); }
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.faculty-card {
  background: white; border-radius: 20px; padding: 28px; text-align: center;
  box-shadow: 0 4px 16px rgba(11,30,61,0.06); transition: all .3s;
}
.faculty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.faculty-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 36px;
  background: var(--sky);
}
.faculty-name { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.faculty-subject { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.faculty-exp { font-size: 12px; color: var(--slate); }

/* ── CONTACT ── */
#contact { background: var(--navy); }
#contact .section-title { color: white; }
#contact .section-eyebrow { color: var(--amber); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { color: rgba(255,255,255,0.8); }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-item:last-child { border-bottom: none; }
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.08); display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-item-label { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.contact-item-val { font-size: 15px; color: white; font-weight: 500; }
.contact-item-sub { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.contact-map {
  border-radius: 20px; overflow: hidden;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); gap: 12px;
}
.contact-map-icon { font-size: 48px; }
.contact-map-text { font-size: 15px; }
.contact-map a { color: var(--gold); text-decoration: none; font-weight: 600; }

/* ── FOOTER ── */
footer { background: #060f1f; padding: 60px 0 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--cobalt), var(--navy)); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.footer-logo-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: white; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: all .2s;
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-col h4 { font-size: 13px; font-weight: 700; color: white; letter-spacing: .5px; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-love { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-love span { color: var(--red); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--navy);
  z-index: 999; padding: 20px 24px; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu-close {
  background: rgba(255,255,255,0.1); border: none; color: white;
  font-size: 20px; cursor: pointer; width: 36px; height: 36px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.mobile-menu a {
  color: white; text-decoration: none; font-size: 16px; font-weight: 600;
  padding: 14px 16px; border-radius: 12px; transition: background .2s;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.08); }
.mobile-menu-cta {
  margin-top: 12px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu-cta a {
  background: linear-gradient(135deg, var(--gold), #e8950e);
  color: var(--navy); text-align: center; font-weight: 700;
}

/* ── HIDDEN / SHOWN tabs ── */
.tab-panel { display: none; }
.tab-panel.active { display: grid; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .nav-links a { padding: 8px 9px; font-size: 13px; }
  .nav-faculty-link { display: none; }
  .logo-name { font-size: 16px; }
}

@media (max-width: 992px) {
  .nav-links, .nav-cta, .nav-faculty-link { display: none; }
  .hamburger { display: block; }
  .nav-inner { min-height: 64px; }
  .topbar-info { gap: 12px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .speciality-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .modes-strip { flex-direction: column; }
  .mode-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-name { font-size: 15px; }
  .logo-icon { width: 42px; height: 42px; font-size: 20px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 1; }
  .topbar-info span:nth-child(3) { display: none; }
  .topbar-info span:nth-child(2) { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-social { display: none; }
  .nav-inner { padding: 0 14px; }
  .logo-tag { display: none; }
}

/* ── CHESS HERO ── */
.chess-hero {
  background: linear-gradient(135deg,#0d1117,#1a1a2e,#0f3460);
  border-radius: 28px; padding: 48px; display: grid;
  grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  margin-bottom: 16px; position: relative; overflow: hidden;
}
.chess-hero::before {
  content: '♟'; position: absolute; right: -20px; top: -20px;
  font-size: 280px; opacity: 0.04; color: white; line-height: 1;
}
.chess-hero-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--amber);
  text-transform: uppercase; margin-bottom: 14px;
  background: rgba(245,166,35,0.12); border: 1px solid rgba(245,166,35,0.3);
  display: inline-block; padding: 5px 14px; border-radius: 100px;
}
.chess-hero-title {
  font-family: var(--font-display); font-size: clamp(22px,3vw,36px);
  font-weight: 900; color: white; line-height: 1.2; margin-bottom: 16px;
}
.chess-name { color: var(--amber); }
.chess-hero-sub { font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.75; margin-bottom: 24px; }
.chess-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chess-badge {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: white; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 100px;
}
.chess-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), #e8950e);
  color: var(--navy); padding: 14px 28px; border-radius: 12px;
  font-weight: 800; font-size: 15px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(245,166,35,0.4); transition: all .2s;
}
.chess-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245,166,35,0.5); }
.chess-board {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 32px; text-align: center;
}
.chess-piece-display { font-size: 72px; margin-bottom: 20px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4)); }
.chess-quote { font-style: italic; font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 12px; }
.chess-quote-attr { font-size: 13px; font-weight: 700; color: var(--amber); }

/* ── FREE DEMO GRID ── */
.demo-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 20px;
}
.demo-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px; padding: 24px; text-align: center; transition: all .3s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.demo-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); transform: translateY(-4px); }
.demo-icon { font-size: 36px; }
.demo-title { font-size: 16px; font-weight: 800; color: white; }
.demo-sub { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.6; flex: 1; }
.demo-btn {
  display: inline-block; background: #25D366; color: white;
  padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 700;
  text-decoration: none; margin-top: 8px; transition: all .2s; width: 100%; text-align: center;
}
.demo-btn:hover { background: #1ebe5a; transform: translateY(-1px); }

/* ── FREE STUDY APPS ── */
.apps-grid { display: flex; flex-direction: column; gap: 16px; }
.app-card {
  background: white; border-radius: 16px; padding: 20px 24px;
  display: flex; align-items: flex-start; gap: 18px;
  box-shadow: 0 2px 12px rgba(11,30,61,0.06); transition: all .3s;
  position: relative;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.app-logo {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
}
.app-info { flex: 1; }
.app-name { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.app-tagline { font-size: 12px; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.app-desc { font-size: 13px; color: var(--slate); line-height: 1.6; }
.app-badge { padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.app-badge.free { background: #dcfce7; color: #166534; }

/* ── AI CERTIFICATION ── */
.ai-banner {
  background: linear-gradient(135deg, var(--navy), #1e4da0);
  border-radius: 24px; padding: 40px 48px; margin-bottom: 40px;
}
.ai-company-pill {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: white; font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: 100px;
}
.ai-certs-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px;
}
.ai-cert-card {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(11,30,61,0.08); transition: all .3s;
}
.ai-cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ai-cert-header {
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
}
.ai-cert-company { font-size: 16px; font-weight: 800; color: white; }
.ai-cert-badge {
  background: rgba(255,255,255,0.25); color: white;
  font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 100px;
  letter-spacing: 1px;
}
.ai-cert-body { background: white; padding: 22px 24px; }
.ai-cert-name { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.ai-cert-detail { font-size: 12px; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.ai-cert-desc { font-size: 13px; color: var(--slate); line-height: 1.6; margin-bottom: 14px; }
.ai-cert-courses { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.ai-mini-course { font-size: 12px; color: var(--slate); }
.ai-cert-platform { font-size: 11px; font-weight: 700; color: var(--cobalt); background: var(--sky); padding: 6px 12px; border-radius: 8px; }

@media (max-width: 768px) {
  .chess-hero { grid-template-columns: 1fr; }
  .chess-hero-right { display: none; }
  .ai-banner { padding: 28px 24px; }
}
.reveal { opacity: 0; transform: translateY(30px); transition: all .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
/* ── WHATSAPP FLOATING BUTTON ── */
#wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
#wa-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  cursor: pointer; border: none; transition: all .3s;
  animation: wa-pulse 2.5s ease-in-out infinite;
  text-decoration: none;
}
#wa-btn:hover { transform: scale(1.12); box-shadow: 0 10px 32px rgba(37,211,102,0.6); animation: none; }
#wa-btn svg { width: 32px; height: 32px; fill: white; }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 6px 24px rgba(37,211,102,0.5), 0 0 0 14px rgba(37,211,102,0); }
}
#wa-tooltip {
  background: white; border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15); max-width: 240px;
  font-family: var(--font-body); position: relative;
  animation: wa-slide 0.4s cubic-bezier(.22,1,.36,1);
}
@keyframes wa-slide { from { opacity:0; transform: translateY(10px) scale(.95); } to { opacity:1; transform: none; } }
#wa-tooltip::after {
  content: ''; position: absolute; bottom: -8px; right: 24px;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}
#wa-tooltip-title { font-size: 13px; font-weight: 700; color: #128C7E; margin-bottom: 3px; }
#wa-tooltip-msg { font-size: 12px; color: #555; line-height: 1.5; }
#wa-tooltip-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; font-size: 16px; color: #aaa;
  cursor: pointer; line-height: 1;
}
#wa-unread {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #E53E3E; color: white;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}

/* ── WELCOME POPUP ── */
#welcome-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(11,30,61,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fade-in .4s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
#welcome-box {
  background: white; border-radius: 24px;
  max-width: 440px; width: 100%;
  max-height: calc(100dvh - 24px);
  max-height: calc(100vh - 24px);
  box-shadow: 0 24px 80px rgba(11,30,61,0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: auto;
  position: relative;
  animation: pop-in .5s cubic-bezier(.22,1,.36,1);
}
@keyframes pop-in { from { opacity:0; transform: scale(.88) translateY(20px); } to { opacity:1; transform: none; } }
#welcome-top {
  background: linear-gradient(135deg, #0B1E3D, #1A3F7A);
  padding: 24px 28px 20px;
  text-align: center; position: relative;
  flex-shrink: 0;
}
#welcome-top .w-emoji { font-size: 40px; display: block; margin-bottom: 8px; }
#welcome-top h2 {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 900; color: white; margin-bottom: 6px; line-height: 1.2;
  padding: 0 28px;
}
#welcome-top p { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.5; }
#welcome-close-x {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  background: rgba(255,255,255,0.2); border: none; border-radius: 50%;
  width: 36px; height: 36px; color: white; font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#welcome-close-x:hover { background: rgba(255,255,255,0.35); }
#welcome-body {
  padding: 0;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#welcome-scroll {
  padding: 16px 24px 12px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
#welcome-actions {
  flex-shrink: 0;
  padding: 12px 24px 18px;
  background: #fff;
  border-top: 1px solid #eef2f7;
}
#welcome-greeting {
  background: #f0fdf4; border-left: 4px solid #25D366;
  border-radius: 0 12px 12px 0; padding: 12px 16px; margin-bottom: 14px;
  font-size: 14px; color: #166534; line-height: 1.55;
}
#welcome-greeting strong { display: block; font-size: 15px; margin-bottom: 4px; }
.w-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 0; }
.w-highlight {
  background: var(--sky); border-radius: 12px; padding: 10px;
  text-align: center; font-size: 12px; color: var(--navy);
}
.w-highlight span { font-size: 20px; display: block; margin-bottom: 4px; }
.w-highlight strong { display: block; font-weight: 700; }
#welcome-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px;
  background: #25D366; border: none; border-radius: 12px;
  color: white; font-family: var(--font-body); font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
  transition: all .2s; margin-bottom: 8px;
}
#welcome-wa-btn:hover { background: #1ebe5a; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(37,211,102,0.45); }
#welcome-wa-btn svg { width: 22px; height: 22px; fill: white; flex-shrink: 0; }
#welcome-skip {
  display: block; text-align: center; font-size: 13px; color: var(--slate);
  cursor: pointer; background: none; border: none; font-family: var(--font-body);
  width: 100%; padding: 6px; transition: color .2s;
}
#welcome-skip:hover { color: var(--navy); }

@media (max-width: 480px) {
  #welcome-overlay { padding: 8px; align-items: center; }
  #welcome-box {
    max-height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 18px;
  }
  #welcome-top { padding: 16px 14px 12px; }
  #welcome-top .w-emoji { font-size: 28px; margin-bottom: 4px; }
  #welcome-top h2 { font-size: 17px; padding: 0 30px; }
  #welcome-top p { font-size: 12px; }
  #welcome-scroll { padding: 12px 14px 8px; }
  #welcome-actions { padding: 10px 14px 14px; }
  .w-highlights { gap: 8px; }
  .w-highlight { padding: 8px; }
  #welcome-close-x { top: 8px; right: 8px; width: 34px; height: 34px; }
  #welcome-wa-btn { padding: 12px; font-size: 14px; }
}

.gallery-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--slate);
  font-size: 15px;
  background: var(--light);
  border-radius: var(--radius);
}

/* ── Featured videos (DB) ── */
.video-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  margin: 0 24px 12px;
}
.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 2rem;
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(245,166,35,0.95);
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform .2s;
}
.video-play-overlay:hover { transform: scale(1.08); }
.video-empty {
  text-align: center;
  padding: 48px 24px;
  background: white;
  border-radius: var(--radius);
  border: 2px dashed #e2e8f0;
  color: var(--slate);
  font-size: 15px;
}

/* ── Video modal (Plyr) ── */
.bma-media-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.bma-media-modal[hidden] { display: none !important; }
.bma-media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,30,61,0.65);
  backdrop-filter: blur(4px);
}
.bma-media-modal-dialog {
  position: relative;
  width: min(900px, 100%);
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.bma-media-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.bma-media-modal-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.bma-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--slate);
  cursor: pointer;
}
.bma-media-modal-body { padding: 20px; }
.bma-modal-player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
}
.bma-modal-player-wrap .plyr,
.bma-modal-player-wrap video { width: 100%; height: 100%; }
.bma-modal-player-wrap .plyr__video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-bottom: 0 !important;
  aspect-ratio: unset !important;
}
.bma-modal-player-wrap .plyr__video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Hide download / extra menu actions in player */
.bma-modal-player-wrap .plyr__control[data-plyr="download"],
.bma-media-modal .plyr__control[data-plyr="download"] {
  display: none !important;
}
.bma-modal-player-wrap video::-webkit-media-controls-download-button {
  display: none !important;
}
.bma-modal-player-wrap video::-internal-media-controls-download-button {
  display: none !important;
}
