/*
Theme Name: Znach Academy
Theme URI: https://znachacademy.com
Author: Znach Academy
Author URI: https://znachacademy.com
Description: A premium, modern, education-focused WordPress theme built for Znach Academy, a Russian language academy. Includes custom Courses and Scholarships post types, an FAQ manager, admin-editable homepage content, an enquiry form, and Phase-2-ready student portal placeholders.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: znach-academy
Tags: education, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   0. CSS CUSTOM PROPERTIES / DESIGN TOKENS
   ========================================================= */
:root{
  --z-navy:        #0B1F3A;
  --z-navy-dark:   #071525;
  --z-blue:        #163B68;
  --z-white:       #FFFFFF;
  --z-bg-light:    #F5F7FA;
  --z-bg-soft:     #EEF1F6;
  --z-accent:      #C0964A;
  --z-accent-dark: #A67C34;
  --z-text:        #17202E;
  --z-text-light:  #5B6472;
  --z-border:      #E3E7ED;
  --z-success:     #1E7B4D;
  --z-error:       #B3261E;

  --z-radius-sm: 6px;
  --z-radius-md: 10px;
  --z-radius-lg: 16px;

  --z-shadow-sm: 0 1px 2px rgba(11,31,58,0.06), 0 1px 3px rgba(11,31,58,0.08);
  --z-shadow-md: 0 4px 10px rgba(11,31,58,0.08), 0 2px 4px rgba(11,31,58,0.06);
  --z-shadow-lg: 0 20px 40px rgba(11,31,58,0.12);

  --z-container: 1200px;
  --z-font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --z-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --z-transition: 200ms ease;
}

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  font-family: var(--z-font-body);
  color: var(--z-text);
  background: var(--z-white);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ padding: 0; margin: 0; list-style: none; }
h1,h2,h3,h4,h5,h6{ font-family: var(--z-font-heading); color: var(--z-navy); line-height: 1.18; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; }
h1{ font-size: clamp(2.3rem, 4vw, 3.6rem); }
h2{ font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3{ font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em; }
p{ margin: 0 0 16px; color: var(--z-text-light); }
button{ font-family: inherit; cursor: pointer; }
input, textarea, select{ font-family: inherit; font-size: 1rem; }

.container{ max-width: var(--z-container); margin: 0 auto; padding: 0 24px; }
.section{ padding: 88px 0; }
.section-tight{ padding: 56px 0; }
.section-navy{ background: var(--z-navy); color: var(--z-white); }
.section-navy h2, .section-navy h3{ color: var(--z-white); }
.section-navy p{ color: rgba(255,255,255,0.78); }
.section-light{ background: var(--z-bg-light); }

.eyebrow{
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--z-accent-dark);
  margin-bottom: 14px;
}
.section-navy .eyebrow{ color: var(--z-accent); }
.section-head{ max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.align-left{ margin: 0 0 48px; text-align: left; }

/* Screen-reader only */
.screen-reader-text{
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--z-navy);
  color: var(--z-white);
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus{ left: 0; }

/* Focus states */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible{
  outline: 3px solid var(--z-accent);
  outline-offset: 2px;
}

/* =========================================================
   2. BUTTONS
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--z-radius-sm);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: -0.005em;
  border: 2px solid transparent;
  transition: all var(--z-transition);
  min-height: 44px;
  line-height: 1;
  font-family: var(--z-font-heading);
}
.btn-primary{ background: var(--z-navy); color: var(--z-white); border-color: var(--z-navy); }
.btn-primary:hover{ background: var(--z-navy-dark); border-color: var(--z-navy-dark); color: var(--z-white); }
.btn-accent{ background: var(--z-accent); color: var(--z-navy-dark); border-color: var(--z-accent); }
.btn-accent:hover{ background: var(--z-accent-dark); border-color: var(--z-accent-dark); color: var(--z-white); }
.btn-outline{ background: transparent; color: var(--z-accent-dark); border-color: var(--z-accent); }
.btn-outline:hover{ background: var(--z-accent); color: var(--z-navy-dark); border-color: var(--z-accent); }
.section-navy .btn-outline, .hero .btn-outline{ color: var(--z-accent); border-color: var(--z-accent); }
.section-navy .btn-outline:hover, .hero .btn-outline:hover{ background: var(--z-accent); color: var(--z-navy-dark); border-color: var(--z-accent); }
.btn-block{ width: 100%; }
.btn-sm{ padding: 10px 18px; font-size: 0.88rem; min-height: 38px; }
.btn-group{ display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-group.text-center{ justify-content: center; }

/* =========================================================
   3. HEADER
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--z-white);
  border-bottom: 1px solid var(--z-border);
  box-shadow: 0 1px 0 rgba(11,31,58,0.02);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--z-container);
  margin: 0 auto;
}
.site-branding{ display: flex; align-items: center; gap: 12px; }
.site-branding img{ max-height: 46px; width: auto; }
.site-logo-link{ display: flex; align-items: center; }
.site-logo-link img.default-logo{ height: 38px; width: auto; max-width: 220px; display: block; }
@media (max-width: 480px){
  .site-logo-link img.default-logo{ height: 30px; }
}
.brand-mark{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--z-font-heading);
}
.brand-mark .brand-top{ font-weight: 800; letter-spacing: 0.08em; color: var(--z-navy); font-size: 1.15rem; }
.brand-mark .brand-bottom{ font-weight: 500; letter-spacing: 0.24em; color: var(--z-accent-dark); font-size: 0.68rem; text-transform: uppercase; }

.main-navigation{ display: flex; align-items: center; gap: 6px; }
.main-navigation ul{ display: flex; align-items: center; gap: 4px; }
.main-navigation a{
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--z-radius-sm);
  color: var(--z-navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--z-transition), color var(--z-transition);
}
.main-navigation a:hover, .main-navigation .current-menu-item > a{ background: var(--z-bg-soft); color: var(--z-navy); }

.header-actions{ display: flex; align-items: center; gap: 10px; }
.header-actions .student-login-link{
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--z-navy);
  padding: 10px 12px;
  border-radius: var(--z-radius-sm);
}
.header-actions .student-login-link:hover{ background: var(--z-bg-soft); }

.menu-toggle{
  display: none;
  background: transparent;
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius-sm);
  padding: 9px 11px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after{
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--z-navy);
  position: relative;
  transition: transform var(--z-transition), opacity var(--z-transition);
}
.menu-toggle span::before{ position: absolute; top: -6px; }
.menu-toggle span::after{ position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] span{ background: transparent; }
.menu-toggle[aria-expanded="true"] span::before{ transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after{ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px){
  .main-navigation{
    position: fixed;
    inset: 0 0 0 auto;
    top: 0;
    width: min(340px, 84vw);
    height: 100vh;
    background: var(--z-white);
    flex-direction: column;
    align-items: stretch;
    padding: 90px 24px 24px;
    transform: translateX(100%);
    transition: transform 260ms ease;
    box-shadow: var(--z-shadow-lg);
    overflow-y: auto;
    z-index: 999;
  }
  .main-navigation.is-open{ transform: translateX(0); }
  .main-navigation ul{ flex-direction: column; align-items: stretch; gap: 2px; }
  .main-navigation a{ padding: 14px 12px; font-size: 1.05rem; }
  .header-actions{ display: none; }
  .main-navigation .mobile-header-actions{ display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--z-border); }
  .menu-toggle{ display: inline-flex; }
  .nav-overlay{ position: fixed; inset: 0; background: rgba(7,21,37,0.5); opacity: 0; visibility: hidden; transition: opacity var(--z-transition); z-index: 998; }
  .nav-overlay.is-visible{ opacity: 1; visibility: visible; }
}
@media (min-width: 961px){
  .mobile-header-actions{ display: none; }
}

/* =========================================================
   4. HERO
   ========================================================= */
.hero{
  position: relative;
  background: linear-gradient(160deg, var(--z-navy) 0%, var(--z-blue) 60%, var(--z-navy) 100%);
  color: var(--z-white);
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(192,150,74,0.18), transparent 45%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 60px);
  pointer-events: none;
}
.hero-inner{
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
  padding: 96px 24px 88px;
  max-width: var(--z-container);
  margin: 0 auto;
}
.hero-copy h1{ color: var(--z-white); }
.hero-copy p.lead{ font-size: 1.15rem; color: rgba(255,255,255,0.82); max-width: 540px; }
.hero-cta{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-poster-col{ position: relative; max-width: 340px; margin: 0 auto; width: 100%; }
.hero-visual{
  position: relative;
  border-radius: var(--z-radius-lg);
  overflow: hidden;
  box-shadow: var(--z-shadow-lg);
  aspect-ratio: 10/12;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-visual img{ width: 100%; height: 100%; object-fit: cover; }
.hero-visual-placeholder{
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  color: rgba(255,255,255,0.55);
  text-align: center; padding: 24px;
}
.hero-visual-placeholder svg{ width: 64px; height: 64px; opacity: 0.7; flex-shrink: 0; }
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; padding: 150px 20px 56px; }
  .hero-poster-col{ margin-top: 100px; }
}

/* Promotional poster slider — stacked deck with blurred side peeks */
.poster-slider{ position: relative; max-width: 320px; margin: 0 auto; padding: 0 26px 40px; }
.poster-stack{
  position: relative;
  aspect-ratio: 10/12;
  touch-action: pan-y;
}
.poster-slide{
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  transition: transform 420ms cubic-bezier(.4,0,.2,1), opacity 420ms ease, filter 420ms ease;
  will-change: transform, opacity, filter;
}
.poster-card{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--z-radius-lg);
  overflow: hidden;
  box-shadow: var(--z-shadow-lg);
  background: var(--z-navy);
  border: 1px solid rgba(255,255,255,0.15);
}
.poster-card-media{ position: relative; flex: 1 1 auto; overflow: hidden; background: var(--z-navy); }
.poster-card-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-card-action{
  flex: 0 0 auto;
  padding: 14px;
  display: flex;
  justify-content: center;
  background: var(--z-navy-dark);
}
.poster-nav{
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  color: var(--z-navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--z-shadow-md);
  z-index: 50;
  transition: background var(--z-transition), transform var(--z-transition);
}
.poster-nav svg{ width: 17px; height: 17px; }
.poster-nav:hover{ background: var(--z-accent); }
.poster-prev{ left: 0; }
.poster-next{ right: 0; }
.poster-dots{ position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 8px; }
.poster-dot{
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--z-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--z-transition);
}
.poster-dot.is-active{ background: var(--z-accent); width: 24px; }
@media (max-width: 420px){
  .poster-slider{ padding: 0 22px 40px; }
}
@media (max-width: 900px){
  .poster-prev{ left: 4px; }
  .poster-next{ right: 4px; }
}

/* =========================================================
   5. CARDS (generic)
   ========================================================= */
.card{
  background: var(--z-white);
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius-md);
  padding: 32px;
  box-shadow: var(--z-shadow-sm);
  transition: box-shadow var(--z-transition), transform var(--z-transition);
}
.card:hover{ box-shadow: var(--z-shadow-md); transform: translateY(-2px); }
.grid{ display: grid; gap: 28px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

/* Value / feature blocks */
.feature-icon{
  width: 52px; height: 52px;
  border-radius: var(--z-radius-sm);
  background: var(--z-bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--z-navy);
  margin-bottom: 18px;
  transition: background var(--z-transition), color var(--z-transition);
}
.feature-icon svg{ width: 26px; height: 26px; }

.approach-card{
  background: var(--z-white);
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius-md);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--z-shadow-sm);
  transition: box-shadow var(--z-transition), transform var(--z-transition);
}
.approach-card .feature-icon{ margin: 0 auto 18px; }
.approach-card h3{ font-size: 1.1rem; margin-bottom: 8px; }
.approach-card p{ font-size: 0.92rem; margin-bottom: 0; }
.approach-card:hover{
  box-shadow: var(--z-shadow-lg);
  transform: translateY(-4px);
}
.approach-card:hover .feature-icon{
  background: var(--z-navy);
  color: var(--z-white);
}

/* =========================================================
   6. COURSE CARDS
   ========================================================= */
.course-card{
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--z-white);
  border: 1.5px solid var(--z-accent);
  border-radius: var(--z-radius-lg);
  overflow: hidden;
  box-shadow: var(--z-shadow-sm);
  transition: box-shadow var(--z-transition), transform var(--z-transition);
}
.course-card:hover{ box-shadow: var(--z-shadow-lg); transform: translateY(-4px); }
.course-card.is-featured{ box-shadow: 0 0 0 2px var(--z-accent) inset, var(--z-shadow-md); }
.course-card-badge{
  position: absolute; top: 18px; right: 18px;
  background: var(--z-accent); color: var(--z-navy-dark);
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 999px;
}
.course-card-media{ aspect-ratio: 16/9; background: var(--z-bg-soft); overflow: hidden; }
.course-card-media img{ width: 100%; height: 100%; object-fit: cover; }
.course-card-body{ padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.course-card-body h3{ margin-bottom: 0; }
.course-card-mode{ font-size: 0.82rem; font-weight: 700; color: var(--z-accent-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.course-card-desc{ font-size: 0.95rem; margin-bottom: 0; }
.course-card-features{ display: flex; flex-direction: column; gap: 8px; margin: 4px 0; }
.course-card-features li{ display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--z-text); }
.course-card-features svg{ flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--z-accent-dark); }
.course-card-pricing{ display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--z-border); }
.course-price-block{ display: flex; flex-direction: column; gap: 2px; }
.course-card-price{ font-size: 2rem; font-weight: 800; color: var(--z-navy); font-family: var(--z-font-heading); letter-spacing: -0.02em; line-height: 1; }
.course-card-price-old{ font-size: 0.95rem; color: var(--z-text-light); text-decoration: line-through; }
.course-card-price-label{ font-size: 0.76rem; font-weight: 700; color: var(--z-accent-dark); text-transform: uppercase; letter-spacing: 0.08em; }
.course-card-cta{ margin-top: 16px; }

/* Course comparison table */
/* Classy feature checklist (used on course detail pages) */
.feature-checklist{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  margin: 0 0 8px;
}
@media (max-width: 620px){ .feature-checklist{ grid-template-columns: 1fr; } }
.feature-checklist li{
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--z-navy);
  padding: 6px 0;
}
.feature-checklist-icon{
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--z-accent);
  color: var(--z-navy-dark);
  display: flex; align-items: center; justify-content: center;
}
.feature-checklist-icon svg{ width: 16px; height: 16px; }

/* Classy numbered curriculum / syllabus list */
.curriculum-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  max-width: 980px;
}
@media (max-width: 700px){ .curriculum-list{ grid-template-columns: 1fr; } }
.curriculum-list li{
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--z-border);
}
.curriculum-num{
  font-family: var(--z-font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--z-accent);
  flex-shrink: 0;
  width: 32px;
}
.curriculum-title{
  font-weight: 600;
  color: var(--z-navy);
  font-size: 1.02rem;
}

.scholarship-layout{ grid-template-columns: 2fr 1fr; }
@media (max-width: 860px){
  .scholarship-layout{ grid-template-columns: 1fr; }
}

.compare-table-wrap{ overflow-x: auto; border-radius: var(--z-radius-md); border: 1px solid var(--z-border); }
table.compare-table{ width: 100%; border-collapse: collapse; min-width: 640px; background: var(--z-white); }
table.compare-table th, table.compare-table td{ padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--z-border); font-size: 0.95rem; }
table.compare-table thead th{ background: var(--z-navy); color: var(--z-white); font-family: var(--z-font-heading); }
table.compare-table tbody tr:last-child td{ border-bottom: none; }
table.compare-table tbody tr:nth-child(even){ background: var(--z-bg-light); }

/* =========================================================
   7. SCHOLARSHIP CARDS
   ========================================================= */
.scholarship-card{
  background: var(--z-white);
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--z-shadow-sm);
}
.scholarship-card-top{ display: flex; align-items: center; gap: 14px; }
.scholarship-logo{ width: 52px; height: 52px; border-radius: 8px; background: var(--z-bg-soft); object-fit: cover; flex-shrink: 0; }
.scholarship-logo-placeholder{ width: 52px; height: 52px; border-radius: 8px; background: var(--z-navy); color: var(--z-white); display: flex; align-items: center; justify-content: center; font-family: var(--z-font-heading); font-weight: 700; flex-shrink: 0; }
.scholarship-meta{ display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip{
  display: inline-block;
  max-width: 100%;
  background: var(--z-bg-soft);
  color: var(--z-navy);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.chip-deadline{ background: rgba(192,150,74,0.14); color: var(--z-accent-dark); }
.scholarship-fields{ font-size: 0.86rem; color: var(--z-text-light); margin: 0 0 12px; }
.scholarship-fields strong{ color: var(--z-navy); }
.scholarship-disclaimer{
  background: var(--z-bg-light);
  border-left: 4px solid var(--z-accent);
  padding: 20px 24px;
  border-radius: var(--z-radius-sm);
  font-size: 0.92rem;
  color: var(--z-text-light);
}

/* Homepage featured scholarship cards (large photo, used for exactly 2) */
.feature-scholarship-grid{ max-width: 900px; margin: 0 auto; align-items: stretch; }
.feature-scholarship-card{
  background: var(--z-white);
  border-radius: var(--z-radius-lg);
  overflow: hidden;
  box-shadow: var(--z-shadow-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.feature-scholarship-media{ aspect-ratio: 4/3; background: var(--z-bg-soft); overflow: hidden; flex-shrink: 0; }
.feature-scholarship-media img{ width: 100%; height: 100%; object-fit: cover; }
.feature-scholarship-media .hero-visual-placeholder{ color: var(--z-text-light); }
.feature-scholarship-body{ padding: 28px; color: var(--z-text); display: flex; flex-direction: column; flex: 1; }
.feature-scholarship-body h3{ color: var(--z-navy); margin-bottom: 4px; }
.feature-scholarship-university{ font-size: 0.86rem; color: var(--z-text-light); margin-bottom: 0; }
.feature-scholarship-fill{ margin: 14px 0 20px; }
.feature-scholarship-desc{ font-size: 0.94rem; margin: 0 0 12px; }
.feature-scholarship-body .btn{ margin-top: auto; align-self: flex-start; }
/* These cards sit inside a .section-navy section but are white cards --
   override the inherited light paragraph color so text isn't invisible. */
.feature-scholarship-card .feature-scholarship-university,
.feature-scholarship-card .feature-scholarship-desc,
.feature-scholarship-card .scholarship-fields{ color: var(--z-text-light); }
.feature-scholarship-card .scholarship-fields strong{ color: var(--z-navy); }

/* =========================================================
   8. STUDENT TESTIMONIALS
   ========================================================= */
.section-testimonials{ background: var(--z-white); }

.testimonial-slider{ position: relative; overflow: hidden; padding-bottom: 8px; }

.testimonial-track{
  display: flex;
  gap: 24px;
  transition: transform 450ms ease;
  will-change: transform;
}

.testimonial-card{
  position: relative;
  flex: 0 0 calc(33.333% - 16px);
  display: flex;
  flex-direction: column;
  background: var(--z-white);
  border: 1px solid var(--z-border);
  border-radius: var(--z-radius-lg);
  padding: 36px 32px 28px;
  box-shadow: var(--z-shadow-sm);
  transition: box-shadow var(--z-transition), border-color var(--z-transition);
}
.testimonial-card:hover{ box-shadow: var(--z-shadow-md); border-color: var(--z-accent); }

.testimonial-quote-mark{
  position: absolute;
  top: 14px;
  right: 24px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--z-bg-soft);
  z-index: 0;
  user-select: none;
}

.testimonial-stars{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 16px;
}
.testimonial-stars .star{ font-size: 0.95rem; line-height: 1; }
.testimonial-stars .star-filled{ color: var(--z-accent-dark); }
.testimonial-stars .star-empty{ color: var(--z-border); }
.testimonial-rating-number{
  margin-left: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--z-text-light);
  font-family: var(--z-font-heading);
}

.testimonial-text{
  position: relative;
  z-index: 1;
  color: var(--z-text);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}
.testimonial-text p:last-child{ margin-bottom: 0; }

.testimonial-person{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--z-border);
}

.testimonial-photo{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--z-border);
}
.testimonial-photo-fallback{
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--z-navy);
  color: var(--z-white);
  font-family: var(--z-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.testimonial-person-info{ display: flex; flex-direction: column; }
.testimonial-name{ font-family: var(--z-font-heading); font-weight: 700; color: var(--z-navy); font-size: 0.94rem; }
.testimonial-course{ font-size: 0.8rem; color: var(--z-accent-dark); font-weight: 600; }
.testimonial-location{ font-size: 0.78rem; color: var(--z-text-light); }

.testimonials-empty{
  text-align: center;
  color: var(--z-text-light);
  border: 1px dashed var(--z-border);
  border-radius: var(--z-radius-md);
  padding: 32px;
  background: var(--z-bg-light);
}

.testimonials-disclaimer{
  text-align: center;
  font-size: 0.76rem;
  color: var(--z-text-light);
  margin: 24px 0 0;
}

.testimonial-controls{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}
.testimonial-nav{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--z-border);
  background: var(--z-white);
  color: var(--z-navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--z-transition), border-color var(--z-transition), color var(--z-transition);
}
.testimonial-nav svg{ width: 18px; height: 18px; }
.testimonial-nav:hover{ background: var(--z-navy); border-color: var(--z-navy); color: var(--z-white); }

.testimonial-dots{ display: flex; align-items: center; gap: 8px; }
.testimonial-dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  border: none;
  background: var(--z-border);
  cursor: pointer;
  padding: 0;
  transition: background var(--z-transition), width var(--z-transition);
}
.testimonial-dot.is-active{ background: var(--z-accent); width: 22px; }

@media (max-width: 900px){
  .testimonial-card{ flex-basis: calc(50% - 12px); }
}
@media (max-width: 620px){
  .testimonial-card{ flex-basis: 100%; padding: 30px 24px 24px; }
}

/* =========================================================
   9. FAQ ACCORDION
   ========================================================= */
.faq-list{ max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item{ border: 1px solid var(--z-border); border-radius: var(--z-radius-md); overflow: hidden; background: var(--z-white); }
.faq-question{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  background: transparent; border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--z-navy);
}
.faq-question .faq-icon{ flex-shrink: 0; width: 22px; height: 22px; transition: transform var(--z-transition); }
.faq-question[aria-expanded="true"] .faq-icon{ transform: rotate(45deg); }
.faq-answer{ max-height: 0; overflow: hidden; transition: max-height 260ms ease; }
.faq-answer-inner{ padding: 0 24px 22px; }
.faq-answer-inner p:last-child{ margin-bottom: 0; }

/* =========================================================
   10. FORMS
   ========================================================= */
.cta-form-panel{
  max-width: 640px;
  margin: 0 auto;
  background: var(--z-white);
  border-radius: var(--z-radius-lg);
  padding: 32px;
  box-shadow: var(--z-shadow-lg);
}
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px){ .form-grid{ grid-template-columns: 1fr; } }
.form-field{ display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label{ font-weight: 700; font-size: 0.88rem; color: var(--z-navy); }
.form-field input, .form-field textarea, .form-field select{
  padding: 13px 14px;
  border: 1.5px solid var(--z-border);
  border-radius: var(--z-radius-sm);
  background: var(--z-white);
  color: var(--z-text);
  min-height: 46px;
}
.form-field textarea{ min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{ border-color: var(--z-navy); }
.form-note{ font-size: 0.82rem; color: var(--z-text-light); }
.form-message{ padding: 14px 18px; border-radius: var(--z-radius-sm); margin-bottom: 18px; font-size: 0.92rem; }
.form-message.success{ background: rgba(30,123,77,0.1); color: var(--z-success); border: 1px solid rgba(30,123,77,0.3); }
.form-message.error{ background: rgba(179,38,30,0.08); color: var(--z-error); border: 1px solid rgba(179,38,30,0.3); }
.hp-field{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   11. STUDENT PORTAL PLACEHOLDERS
   ========================================================= */
.portal-shell{ max-width: 480px; margin: 0 auto; text-align: center; }
.portal-badge{
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--z-bg-soft); color: var(--z-navy);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.dashboard-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 760px){ .dashboard-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px){ .dashboard-grid{ grid-template-columns: 1fr; } }
.dashboard-tile{
  border: 1px dashed var(--z-border);
  border-radius: var(--z-radius-md);
  padding: 26px 20px;
  text-align: center;
  background: var(--z-bg-light);
  color: var(--z-text-light);
}
.dashboard-tile .feature-icon{ margin: 0 auto 14px; }
.dashboard-tile h4{ color: var(--z-navy); font-size: 0.98rem; margin-bottom: 4px; }
.dashboard-tile span.soon{ font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--z-accent-dark); font-weight: 700; }

/* =========================================================
   12. FOOTER
   ========================================================= */
.site-footer{ background: var(--z-navy-dark); color: rgba(255,255,255,0.75); padding: 64px 0 28px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand .site-logo-link{ margin-bottom: 18px; }
.footer-logo{ height: 34px; width: auto; }
.site-footer h5{ color: var(--z-white); font-family: var(--z-font-body); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer-links li{ margin-bottom: 10px; }
.footer-links a:hover{ color: var(--z-accent); }
.footer-social{ display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.footer-social a{ width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover{ background: var(--z-accent); color: var(--z-navy-dark); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.84rem; }
.footer-bottom a:hover{ color: var(--z-accent); }
.footer-legal-links a{ margin: 0 2px; }

/* Floating WhatsApp chat button */
.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--z-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 900;
  transition: transform var(--z-transition), box-shadow var(--z-transition);
}
.whatsapp-float svg{ width: 30px; height: 30px; }
.whatsapp-float:hover{ transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 26px rgba(0,0,0,0.3); }
@media (max-width: 620px){
  .whatsapp-float{ right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg{ width: 26px; height: 26px; }
}

/* =========================================================
   13. UTILITIES
   ========================================================= */
.text-center{ text-align: center; }
.mt-0{ margin-top: 0; } .mb-0{ margin-bottom: 0; }
.small-note{ font-size: 0.84rem; color: var(--z-text-light); }
.badge-highlight{ color: var(--z-accent-dark); font-weight: 700; }
.divider{ height: 1px; background: var(--z-border); margin: 40px 0; }

/* Fade/slide-in animation, subtle */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity: 1; transform: none; } }

/* Page banner for interior pages */
.page-banner{ background: var(--z-navy); color: var(--z-white); padding: 64px 0; text-align: center; }
.page-banner h1{ color: var(--z-white); margin-bottom: 8px; }
.page-banner p{ color: rgba(255,255,255,0.75); max-width: 640px; margin: 0 auto; }

/* WYSIWYG content inside editor pages */
.entry-content{ max-width: 820px; margin: 0 auto; }
.entry-content h2{ margin-top: 40px; }
.entry-content ul{ list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.entry-content ul li{ margin-bottom: 8px; color: var(--z-text); }
.entry-content a{ color: var(--z-blue); text-decoration: underline; }
