/* =====================================================================
   ALTEC EDUCATIONAL INSTITUTE — DESIGN SYSTEM
   Modern, clean, professional theme built from the ALTEC logo palette
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  /* ---- Brand palette (from logo) ---- */
  --gold: #a48f3e;
  --gold-dark: #8a7530;
  --gold-darker: #6f5e26;
  --gold-light: #cdbf8c;
  --gold-pale: #f6f1e2;
  --ink: #1c1a18;
  --ink-soft: #3a3633;
  --gray: #6b6660;
  --gray-light: #99938c;
  --bg: #faf8f4;
  --white: #ffffff;
  --border: #ece6da;
  --success: #2e7d4f;
  --success-bg: #eaf5ee;
  --error: #c0392b;
  --error-bg: #fdecea;

  /* ---- Typography ---- */
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* ---- Radii ---- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 2px 12px rgba(28, 26, 24, .06);
  --shadow-md: 0 12px 32px rgba(28, 26, 24, .09);
  --shadow-lg: 0 24px 60px rgba(28, 26, 24, .16);

  /* ---- Motion ---- */
  --transition: .35s cubic-bezier(.4, 0, .2, 1);

  /* ---- Layout ---- */
  --header-height: 104px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--gold-light);
  color: var(--ink);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* =====================================================================
   TYPOGRAPHY
   ===================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); }

/* =====================================================================
   LAYOUT / UTILITIES
   ===================================================================== */
.container {
  width: 92%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 15px;
}

.my-2 { margin-top: .5rem; margin-bottom: .5rem; }
.rounded-0 { border-radius: var(--radius-pill) !important; }
.text-center { text-align: center; }

/* Eyebrow / section tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .75rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-pill);
}

.hero .eyebrow,
.cta-banner .eyebrow {
  color: var(--gold-light);
}

.section-title {
  text-align: center;
  margin-bottom: .6rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--ink);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head .eyebrow::before { display: none; }

.section-head p {
  color: var(--gray);
  font-size: 1.05rem;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--gold);
  background-image: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  padding: .9rem 1.9rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  letter-spacing: .01em;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), background-position var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.btn-readmore {
  background: var(--gold);
  background-image: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border: 1px solid transparent;
}

.btn-readmore:hover {
  background-image: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-darker) 100%);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  background-image: none;
  color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-pale);
  box-shadow: none;
}

.btn-light {
  background: var(--white);
  background-image: none;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--gold-pale);
  color: var(--ink);
}

.btn-block { width: 100%; }

/* =====================================================================
   HEADER & NAVIGATION
   ===================================================================== */

/* Top utility bar */
.topbar {
  background: var(--ink);
  color: #cfc9c1;
  font-size: .82rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #cfc9c1;
  transition: color var(--transition);
}

.topbar-contact a:hover { color: var(--gold-light); }
.topbar-contact svg { width: 14px; height: 14px; flex-shrink: 0; }

.topbar-social {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #cfc9c1;
  transition: var(--transition);
}

.topbar-social a:hover {
  background: var(--gold);
  color: var(--ink);
}

.topbar-social svg { width: 13px; height: 13px; }

/* Main header */
header {
  background-color: var(--ink);
  color: var(--white);
  position: fixed;
  width: 100%;
  top: 38px;
  z-index: 1000;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  transition: top var(--transition);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  height: 66px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  margin-left: .85rem;
  font-family: var(--font-head);
  line-height: 1.15;
}

.logo-text .logo-text-main {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--white);
}

.logo-text .logo-text-sub {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  width: 26px;
  height: 20px;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle span { top: 9px; }
.menu-toggle span::before { top: -8px; }
.menu-toggle span::after { top: 8px; }

.menu-toggle.active span { background: transparent; }
.menu-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--gold);
}
.menu-toggle.active span::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--gold);
}

/* Nav */
nav ul {
  display: flex;
  align-items: center;
}

nav ul li {
  margin-left: .35rem;
}

nav ul li > a,
nav ul li > strong {
  position: relative;
  color: #e9e6e0;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: .6rem .85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  font-family: var(--font-body);
}

nav ul li > a svg,
nav ul li > strong + svg,
nav ul li i {
  display: none; /* icon glyphs replaced by clean typography */
}

nav ul li > a:hover,
nav ul li.has-submenu:hover > strong,
nav ul li > a.active {
  color: var(--ink);
  background: var(--gold);
}

.dropdown-icon {
  margin-left: -2px;
  font-size: .7em;
  transition: transform var(--transition);
  display: inline-block !important;
}

.has-submenu:hover .dropdown-icon {
  transform: rotate(180deg);
}

.nav-cta { margin-left: .6rem; }
.nav-cta a.btn { padding: .65rem 1.4rem; font-size: .9rem; }

/* Submenus */
.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 230px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: .4rem .5rem .5rem;
}

/* Invisible bridge — mouse can travel from nav link to submenu without breaking hover */
.submenu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.has-submenu:hover .submenu {
  display: block;
  animation: dropFade .2s ease;
}

@keyframes dropFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.submenu li { margin: 0; }

.submenu a {
  padding: .65rem .9rem;
  color: var(--ink-soft);
  display: block;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .9rem;
  transition: background-color var(--transition), color var(--transition);
}

.submenu a:hover {
  background-color: var(--gold-pale);
  color: var(--gold-darker);
}

/* =====================================================================
   HERO / SLIDER
   ===================================================================== */
.slider {
  margin-top: var(--header-height);
  position: relative;
  height: 86vh;
  min-height: 520px;
  max-height: 760px;
  overflow: hidden;
  background: var(--ink);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,26,24,.35) 0%, rgba(28,26,24,.55) 55%, rgba(28,26,24,.92) 100%);
}

.slide.active { opacity: 1; }

.slide-content {
  position: absolute;
  bottom: 12%;
  left: 0;
  right: 0;
  z-index: 2;
  color: var(--white);
  max-width: 760px;
  margin: 0 auto;
  padding: 0 6%;
  text-align: center;
}

.slide-content .eyebrow {
  color: var(--gold-light);
  justify-content: center;
}

.slide-content .eyebrow::before { display: none; }

.slide-content h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: .75rem;
  font-weight: 800;
  text-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.slide-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #f1efe9;
  margin-bottom: 1.6rem;
}

.slide-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.slider-nav {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-nav button {
  width: 34px;
  height: 5px;
  border-radius: var(--radius-pill);
  border: none;
  background-color: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: var(--transition);
}

.slider-nav button.active {
  background-color: var(--gold);
  width: 46px;
}

/* =====================================================================
   PAGE BANNER (sub-pages)
   ===================================================================== */
.page-banner {
  background: linear-gradient(120deg, var(--ink) 0%, #2d2925 55%, #463b22 100%);
  color: var(--white);
  padding: 3.2rem 0 2.6rem;
  margin-top: var(--header-height);
  border: none;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(164,143,62,.35) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}

.page-banner-content {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: .4rem;
}

.page-banner p {
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
  margin: 0;
}

/* =====================================================================
   ABOUT / HOME SECTIONS
   ===================================================================== */
.about {
  padding: 5rem 0;
  background-color: var(--bg);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-text, .about-image, .courses2-image, .hero-image {
  flex: 1 1 320px;
  min-width: 300px;
}

.about-image,
.courses2-image,
.hero-image {
  height: 380px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  order: 1;
  box-shadow: var(--shadow-md);
  position: relative;
}

.about-image::after,
.courses2-image::after,
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.18);
}

.about-image { background-image: url('../assets/images/about_img2.png'); }
.courses2-image { background-image: url('../assets/images/courses2.jpg'); order: 2; }
.hero-image { background-image: url('../assets/images/courses.jpg'); }

.about-text { order: 2; }

.about h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 1rem;
  color: var(--ink);
}

.about-text p {
  color: var(--gray);
  font-size: 1.04rem;
}

/* =====================================================================
   FEATURES
   ===================================================================== */
.features {
  padding: 5rem 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-image {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,26,24,0) 40%, rgba(28,26,24,.45) 100%);
}

.feature-text {
  padding: 1.6rem 1.4rem;
}

.feature-card h3 {
  margin: 0 0 .4rem;
  color: var(--ink);
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--gray);
  font-size: .95rem;
  margin: 0;
}

/* =====================================================================
   PROGRAMS / "HERO" SECTION (course highlights)
   ===================================================================== */
.hero {
  background: var(--ink);
  background-image: linear-gradient(120deg, var(--ink) 0%, #2c2722 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(164,143,62,.25) 0%, transparent 70%);
}

.hero h1, .hero h2 { color: var(--white); }

.hero .about-text p {
  color: #d9d4cc;
  font-size: 1.08rem;
  max-width: 540px;
}

.hero .course-list {
  margin-top: 1.5rem;
}

.hero .course-list li {
  color: #f1efe9;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.hero .course-list li::before {
  color: var(--gold-light);
}

/* Generic course list */
.course-list {
  list-style-type: none;
  padding: 0;
  text-align: left;
}

.course-list li {
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  font-weight: 500;
}

.course-list li::before {
  content: "—";
  color: var(--gold);
  font-weight: 700;
  display: inline-block;
  width: 1.6em;
}

/* =====================================================================
   ACADEMY CONTENT CONTAINER (used across most inner pages)
   ===================================================================== */
.syllabus-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 3.5rem 20px;
}

.academy-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin: 0 0 2rem;
  border: 1px solid var(--border);
}

.academy-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.academy-title {
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: .6rem;
  position: relative;
  display: inline-block;
  font-family: var(--font-head);
}

.academy-title::after {
  content: '';
  position: absolute;
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  bottom: -14px;
  left: calc(50% - 32px);
  border-radius: var(--radius-pill);
}

.academy-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 700px;
  margin: 1rem auto 0;
  font-family: var(--font-body);
}

.academy-section {
  margin-bottom: 1.6rem;
  padding: 1.6rem 1.8rem;
  border-left: 4px solid var(--gold);
  background-color: var(--bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.academy-section:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.academy-section .section-title,
.directors-section .section-title,
.reading-section .section-title {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: left;
  font-family: var(--font-head);
}

.academy-section p,
.directors-section p,
.reading-section p,
.academy-section ul,
.directors-section ul {
  color: var(--ink-soft);
}

.academy-section ul,
.directors-section ul {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}

.academy-section li,
.directors-section li {
  margin-bottom: .4rem;
}

.directors-section {
  margin-bottom: 1.6rem;
  padding: 1.6rem 1.8rem;
  border-left: 0;
  background-color: var(--bg);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.directors-section:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.directors-section .section-title {
  text-align: center;
}

.reading-section {
  margin-bottom: 1.6rem;
  padding: 1.6rem 1.8rem;
  border-left: 0;
  background-color: var(--bg);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.reading-section:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.reading-festival-image1,
.reading-festival-image2,
.reading-festival-image3 {
  height: 560px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  order: 1;
  box-shadow: var(--shadow-sm);
}

.reading-festival-image1 { background-image: url('../assets/images/reading_festival_poster_2024.jpg'); }
.reading-festival-image2 { background-image: url('../assets/images/reading_festival_poster_2023.jpg'); }
.reading-festival-image3 { background-image: url('../assets/images/reading_festival_poster_&_details.jpg'); }

.highlight {
  background: linear-gradient(120deg, var(--gold-pale) 0%, #fffdf6 100%);
  padding: .15em .35em;
  border-radius: 4px;
  font-weight: 600;
  color: var(--gold-darker);
}

.highlight-box {
  background-color: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 1.05rem;
}

.footer-quote {
  text-align: center;
  font-style: italic;
  color: var(--gray);
  margin-top: 1rem;
}

.checklist {
  list-style-type: none;
  padding-left: 0;
}

.checklist li {
  padding: .35rem 0;
}

.checklist li:before {
  content: "✅ ";
}

.academy-footer {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--gray);
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
}

/* =====================================================================
   COURSE CATEGORIES (Syllabus page)
   ===================================================================== */
.syllabus-intro {
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.course-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.course-category {
  flex: 1;
  min-width: 280px;
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.course-category h3 {
  color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--gold);
  font-family: var(--font-head);
}

.course-category .course-list li::before {
  content: "•";
  color: var(--gold);
  width: 1em;
}

.certificate-note {
  background: var(--gold-pale);
  padding: 1.5rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 2rem;
}

/* =====================================================================
   DIRECTOR'S MESSAGE
   ===================================================================== */
.director-message-header {
  padding: 1.25rem 0 .5rem;
  text-align: center;
}

.director-header {
  background-color: var(--gold-pale);
  padding: 3.5rem 0;
  text-align: center;
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
}

.director-header h1 { font-weight: 800; color: var(--ink); }

.director-img {
  max-width: 200px;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
  display: block;
  margin: 0 auto 1rem;
}

.director-message {
  text-align: left;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.director-name {
  color: var(--ink);
  font-weight: 700;
}

.director-title {
  color: var(--gray);
  font-style: italic;
}

.message-content { padding: 1.25rem 0; }
.message-content p { margin-bottom: 1.1rem; }

.signature {
  margin-top: 2.5rem;
  font-style: italic;
}

.signature-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  font-style: normal;
  font-family: var(--font-head);
}

/* =====================================================================
   INFO BOOKLET / PDF VIEWER
   ===================================================================== */
.info-booklet {
  font-family: var(--font-body);
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px 4rem;
}

.info-booklet__title {
  color: var(--ink);
  text-align: center;
  margin-bottom: 1.5rem;
}

.info-booklet__download {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 700;
  background: var(--gold-pale);
  padding: .85rem 1.6rem;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.info-booklet__download:hover {
  background: var(--gold-light);
  color: var(--ink);
}

.info-booklet__pdf-container {
  width: 100%;
  height: 0;
  padding-bottom: 141.42%;
  position: relative;
  margin: 1.25rem 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.info-booklet__pdf-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (min-width: 768px) {
  .info-booklet__pdf-container { padding-bottom: 56.25%; }
}

/* =====================================================================
   FORMS — inquiry / order / registration
   ===================================================================== */
.contact-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

.contact-box {
  flex: 1 1 280px;
  border: 1px solid var(--border);
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.contact-heading {
  color: var(--ink);
  font-size: 1.2rem;
  font-family: var(--font-head);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

.contact-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: .6rem;
  display: inline-flex;
}

.contact-content { color: var(--gray); line-height: 1.7; }
.contact-address, .contact-phone, .contact-email { margin-top: .6rem; }

.inquiry-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0;
}

.inquiry-map-section,
.inquiry-form-section {
  flex: 1;
  min-width: 300px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.inquiry-map-section { display: flex; flex-direction: column; }

.inquiry-section-header { margin-bottom: 1.25rem; }

.inquiry-business-name {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--ink);
  margin-bottom: .25rem;
}

.inquiry-address { color: var(--gray); margin-bottom: .6rem; }
.inquiry-rating { color: var(--gold); margin-bottom: 1rem; }

.inquiry-map-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.inquiry-map-iframe { width: 100%; height: 360px; border: 0; display: block; }

.inquiry-map-links { margin-bottom: 1.25rem; }
.inquiry-map-link {
  color: var(--gold-dark);
  text-decoration: none;
  margin-right: 1rem;
  font-weight: 600;
}
.inquiry-map-link:hover { text-decoration: underline; }

.inquiry-nearby-places {
  font-size: .92rem;
  color: var(--gray);
  line-height: 1.7;
  flex-grow: 1;
}

.inquiry-map-footer {
  font-size: .78rem;
  color: var(--gray-light);
  margin-top: 1rem;
}

.inquiry-contact-info {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--gold-pale);
  border-radius: var(--radius-md);
}

.inquiry-contact-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--ink);
  font-family: var(--font-head);
}

.inquiry-contact-item { margin-bottom: .65rem; }
.inquiry-contact-label { font-weight: 600; color: var(--ink-soft); margin-bottom: .15rem; }
.inquiry-contact-value { color: var(--gray); }

/* Form fields — shared across inquiry / order / registration forms */
.inquiry-form-group,
.order-form-group {
  margin-bottom: 1.1rem;
}

.inquiry-form-label,
.order-label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: .92rem;
}

.inquiry-form-input,
.inquiry-form-textarea,
.order-input,
.order-select,
.order-textarea,
.order-date {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.inquiry-form-textarea,
.order-textarea {
  min-height: 110px;
  resize: vertical;
}

.inquiry-form-input:focus,
.inquiry-form-textarea:focus,
.order-input:focus,
.order-select:focus,
.order-textarea:focus,
.order-date:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--gold-pale);
}

.inquiry-form-submit,
.order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-image: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border: none;
  padding: .95rem 1.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-head);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-top: .25rem;
}

.inquiry-form-submit:hover,
.order-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.inquiry-form-submit:disabled,
.order-button:disabled {
  background-image: none;
  background-color: var(--gray-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.order-remove-btn,
.remove-student-btn {
  background-image: none !important;
  background-color: var(--error) !important;
  color: var(--white);
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1rem;
  right: 1rem;
  transition: var(--transition);
}

.order-remove-btn:hover,
.remove-student-btn:hover {
  background-color: #a4321f !important;
  transform: scale(1.08);
}

.add-student-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--gold-pale);
  color: var(--gold-darker);
  border: 1.5px dashed var(--gold);
  padding: .7rem 1.3rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .92rem;
  margin: .75rem 0 1.25rem;
  transition: var(--transition);
}

.add-student-btn:hover {
  background: var(--gold-light);
  color: var(--ink);
}

.student-entry {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.25rem 1.25rem;
  margin-bottom: 1.25rem;
}

.fee-section {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .25rem;
  flex-wrap: wrap;
}

.fee-input { flex: 1 1 45%; }

.file-requirements {
  display: block;
  color: var(--gray);
  font-size: .8rem;
  margin-top: .4rem;
}

.file-feedback { margin-top: .4rem; font-size: .85rem; font-weight: 600; }
.file-error { color: var(--error); }
.file-success { color: var(--success); }

.inquiry-success-message,
.inquiry-error-message {
  margin-bottom: 1rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  display: none;
  font-weight: 500;
}

.inquiry-success-message {
  color: var(--success);
  background-color: var(--success-bg);
  border: 1px solid rgba(46,125,79,.2);
}

.inquiry-error-message {
  color: var(--error);
  background-color: var(--error-bg);
  border: 1px solid rgba(192,57,43,.2);
}

.inquiry-honeypot { position: absolute; left: -9999px; }

.inquiry-radio-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.inquiry-radio-option {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.inquiry-radio-label { font-weight: 500; color: var(--ink-soft); }

/* Order form specific containers */
.order-body {
  font-family: var(--font-body);
  max-width: 900px;
  margin: 0 auto;
}

.order-form-container {
  background-color: var(--white);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.order-heading {
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: .75rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-family: var(--font-head);
}

.order-main-heading {
  color: var(--ink);
  text-align: center;
  margin-bottom: 1.75rem;
}

.order-teacher-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.order-item-container {
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  background-color: var(--bg);
  position: relative;
}

.order-required-field::after {
  content: " *";
  color: var(--error);
}

@media (max-width: 600px) {
  .order-teacher-info { grid-template-columns: 1fr; }
}

/* =====================================================================
   GALLERY
   ===================================================================== */
.gallery-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0;
}

.gallery-filter-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.5rem;
}

.gallery-filter-btn {
  padding: .55rem 1.3rem;
  background: var(--white);
  color: var(--ink-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 600;
  font-size: .88rem;
  transition: var(--transition);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.gallery-active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.gallery-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--ink);
}

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

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.06);
}

.gallery-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(28,26,24,.92) 90%);
  color: var(--white);
  padding: 2.5rem 1.25rem 1.1rem;
}

.gallery-card-title {
  font-size: 1.1rem;
  margin-bottom: .25rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
}

.gallery-card-description {
  font-size: .88rem;
  color: var(--white);
  opacity: .85;
}

.gallary-card-date {
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: .35rem;
  display: block;
}

.gallery-header {
  background-color: var(--ink);
  color: white;
  padding: 0;
  text-align: center;
}

.gallery-title { font-size: 2.5rem; margin-bottom: .5rem; }
.gallery-subtitle { font-size: 1.1rem; opacity: .85; }

.gallery-footer {
  background-color: var(--ink);
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

/* =====================================================================
   EXAMINERS
   ===================================================================== */
.examiner-container {
  font-family: var(--font-body);
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.examiner-header {
  text-align: center;
  color: var(--ink);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
}

.examiner-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.examiner-name {
  color: var(--gold-dark);
  font-size: 1.3em;
  margin-bottom: .5rem;
  font-weight: 700;
  font-family: var(--font-head);
}

.examiner-title {
  font-style: italic;
  color: var(--gray);
  margin-bottom: .9rem;
}

.examiner-qualifications { list-style-type: none; padding-left: 0; }

.examiner-qualification {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: .45rem;
  line-height: 1.55;
}

.examiner-qualification:before {
  content: "•";
  color: var(--gold);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.examiner-subqualification {
  padding-left: 1.2rem;
  color: var(--gray);
  font-size: .95em;
}

.examiner-subqualification:before {
  content: "◦";
  color: var(--gold-light);
  margin-right: .4rem;
}

/* =====================================================================
   BOOK PRICE TABLE
   ===================================================================== */
.book-price-container,
.book-price-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.book-price-container { padding: 2rem; }
.book-price-card { padding: 0; }

.book-price-header {
  color: var(--white);
  background-image: linear-gradient(135deg, var(--ink) 0%, var(--gold-darker) 100%);
  text-align: center;
  padding: 2.25rem 1.5rem;
  position: relative;
  margin: -2rem -2rem 2rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.book-price-card .book-price-header { margin: 0 0 0; border-radius: 0; }

.book-price-header h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--white);
}

.book-price-header p {
  margin: .5rem 0 0;
  opacity: .85;
  font-weight: 400;
  color: var(--gold-light);
}

.book-price-header:after { display: none; }

.book-price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1rem;
}

.book-price-table thead th {
  background-color: var(--gold-pale);
  color: var(--ink);
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  letter-spacing: .03em;
  font-family: var(--font-head);
  position: sticky;
  top: 0;
}

.book-price-table tbody tr { transition: background-color var(--transition); }

.book-price-table tbody tr:hover {
  background-color: var(--gold-pale);
}

.book-price-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.book-price-table .section-divider,
.category-divider {
  background-color: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .03em;
}

.category-divider td { padding: .75rem 1.25rem; border-bottom: none; }

.book-price,
.price-cell {
  text-align: right;
  font-weight: 700;
  color: var(--gold-darker);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
}

.price-amount { font-size: 1.05rem; }
.price-title { text-align: right; }
.currency { font-size: .85rem; opacity: .7; }

.book-price-badge,
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 700;
  margin-left: .5rem;
  vertical-align: middle;
  color: var(--white);
}

.book-price-badge,
.badge-new {
  background: var(--gold);
}

.badge-popular {
  background: var(--ink);
}

.book-price-footer {
  text-align: center;
  color: var(--gray);
  font-size: .9rem;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
}

.book-price-card .book-price-footer {
  padding: 1.5rem;
  background-color: var(--gold-pale);
  border-top: none;
}

/* Search & Filter (book price app) */
.search-filter {
  padding: 1rem 1.5rem;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-box { flex: 1; min-width: 200px; position: relative; }

.filter-controls { display: flex; gap: .5rem; align-items: center; }

.filter-controls select {
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background-color: var(--white);
  font-family: var(--font-body);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer-main {
  background-color: var(--ink);
  color: #cfc9c1;
  padding: 4.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.1rem;
}

.footer-brand img { height: 46px; }

.footer-brand-text {
  font-family: var(--font-head);
  line-height: 1.2;
}

.footer-brand-text .fb-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .05em;
}

.footer-brand-text .fb-sub {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.footer-about p {
  color: #b9b3aa;
  font-size: .92rem;
  max-width: 320px;
}

.footer-heading {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: .03em;
}

.footer-links { display: flex; flex-direction: column; gap: .65rem; }

.footer-links a {
  color: #b9b3aa;
  text-decoration: none;
  font-size: .92rem;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.footer-links a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  opacity: .6;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: .25rem;
}

.footer-links a:hover::before { opacity: 1; }

.footer-contact-list { display: flex; flex-direction: column; gap: .9rem; }

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: #b9b3aa;
  font-size: .92rem;
}

.footer-contact-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}

.social-icons {
  display: flex;
  justify-content: flex-start;
  gap: .75rem;
  margin-top: 1.4rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}

.social-icons a svg { width: 16px; height: 16px; }

.social-icons a:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.copyright {
  font-size: .85rem;
  color: #93897e;
}

.copyright a { color: var(--gold-light); text-decoration: none; }
.copyright a:hover { text-decoration: underline; }

/* legacy single-row footer fallback */
footer:not(.footer-main) {
  background-color: var(--ink);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

/* =====================================================================
   CTA BANNER (homepage)
   ===================================================================== */
.cta-banner {
  background: linear-gradient(120deg, var(--ink) 0%, #2d2722 100%);
  color: var(--white);
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(164,143,62,.22) 0%, transparent 70%);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: .75rem;
  position: relative;
}

.cta-banner p {
  color: #d9d4cc;
  max-width: 560px;
  margin: 0 auto 1.75rem;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* =====================================================================
   HIGHLIGHTS STRIP (homepage, below hero)
   ===================================================================== */
.highlights-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 3;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.highlight-item .hi-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gold-pale);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-item .hi-icon svg { width: 24px; height: 24px; }

.highlight-item h4 {
  font-size: 1rem;
  margin-bottom: .2rem;
  color: var(--ink);
}

.highlight-item p {
  font-size: .88rem;
  color: var(--gray);
  margin: 0;
}

/* =====================================================================
   POPUP
   ===================================================================== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(28, 26, 24, .65);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.popup-content {
  background-color: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.popup-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.close-btn:hover { background: var(--gold-dark); }

.popup-button {
  background-image: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border: none;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
  font-weight: 700;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slide-content { max-width: 90%; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .topbar { display: none; }

  header { top: 0; }

  .menu-toggle { display: block; }

  .header-content { height: 64px; }

  .logo-img { height: 40px; }
  .logo-text .logo-text-main { font-size: 1.05rem; }

  nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ink);
    width: 100%;
    max-height: 0;
    overflow: hidden auto;
    transition: max-height var(--transition);
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
  }

  nav.active { max-height: calc(100vh - 64px); }

  nav ul {
    flex-direction: column;
    width: 100%;
    padding: .75rem;
    align-items: stretch;
  }

  nav ul li { margin: 0; width: 100%; }

  nav ul li > a,
  nav ul li > strong {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
  }

  .has-submenu { position: static; }

  .nav-cta { margin: .75rem 0 .25rem; }
  .nav-cta a.btn { width: 100%; padding: .85rem 1rem; }

  .submenu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255,255,255,.04);
    margin-top: .25rem;
  }

  .has-submenu.active .submenu { display: block; }
  .has-submenu.active .dropdown-icon { transform: rotate(180deg); }

  .submenu a { color: #e9e6e0; }
  .submenu a:hover { background: rgba(255,255,255,.08); color: var(--gold-light); }

  .slider { height: 70vh; min-height: 420px; }

  .about-content, .hero .about-content { flex-direction: column; }

  .about-image, .courses2-image, .hero-image {
    width: 100%;
    order: 1;
    margin-bottom: 1.5rem;
    height: 280px;
  }

  .about-text { order: 2; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-main { padding-top: 3rem; }
}

@media (max-width: 576px) {
  .slider { height: 60vh; min-height: 380px; }

  .section-title { font-size: 1.6rem; }
  .about h2 { font-size: 1.5rem; }

  .courses2-image { width: 100%; order: 1; margin-bottom: 1.5rem; }

  .page-banner { padding: 2.25rem 0; }

  .academy-container { padding: 1.25rem; }
}

@media (max-width: 768px) {
  .inquiry-container { flex-direction: column; }
  .inquiry-map-section, .inquiry-form-section { width: 100%; min-width: auto; }
  .inquiry-map-iframe { height: 280px; }

  .contact-box { width: 100%; }

  .gallery-grid-container { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .gallery-title { font-size: 2rem; }

  .book-price-table thead { display: none; }

  .book-price-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .book-price-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
  }

  .book-price-table td:before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gold-dark);
    margin-right: 1rem;
  }

  .category-divider, .category-divider td { display: block; text-align: center; }

  .search-filter { flex-direction: column; gap: .5rem; }
  .filter-controls { flex-wrap: wrap; }

  .academy-title { font-size: 2rem; }
  .academy-subtitle { font-size: 1rem; }

  .course-category { min-width: 100%; }

  .reading-festival-image1, .reading-festival-image2, .reading-festival-image3 {
    height: 220px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .gallery-grid-container { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 1.8rem; }
  .syllabus-container { padding: 2rem 16px; }
  .cta-actions, .slide-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn, .slide-actions .btn { width: 100%; }
}