
/* EBTA Revamp - Shared Styles */
:root{
  --primary: #2e7d32;
  --primary-light: #60ad5e;
  --primary-dark: #005005;
  --accent: #ffeb3b;
  --bg: #f6f8fb;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.5);
  --radius: 16px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.12);
  --transition: all .35s ease;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* Nav */
nav.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; }
.brand { display:flex; align-items:center; gap:.75rem; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand .title { font-weight: 700; color: var(--primary); letter-spacing: -.2px; }
.nav-links { display:flex; align-items:center; gap:.5rem; }
.nav-links a { color: var(--text); font-weight: 600; padding: .6rem .9rem; border-radius: 8px; position: relative; }
.nav-links a:hover { color: var(--primary); background: rgba(46,125,50,.08); }
.nav-links a.active { color: var(--primary); background: rgba(46,125,50,.12); }
.nav-cta { margin-left: .5rem; }
.btn { display:inline-block; border:0; cursor:pointer; border-radius: 999px; padding: .8rem 1.2rem; font-weight:700; }
.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border:2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color:#fff; }

.hamburger { display:none; font-size: 1.6rem; cursor: pointer; }

/* Sections */
.section { padding: 72px 0; }
.section-title { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); color: var(--primary); text-align:center; margin: 0 0 28px; position:relative; }
.section-title:after {
  content: ""; width: 72px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent));
  position:absolute; left:50%; transform: translateX(-50%); bottom:-12px;
}
.lead { color: var(--muted); text-align:center; max-width: 820px; margin: 0 auto 36px; }

/* Hero */
.hero { position: relative; overflow:hidden; }
.hero .wrap {
  background:
    radial-gradient(1200px 300px at 10% -50%, rgba(46,125,50,.12), transparent 60%),
    radial-gradient(1200px 300px at 90% 0%, rgba(255,235,59,.12), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fafcfe 100%);
  padding: clamp(72px, 8vw, 120px) 0;
}
.hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3rem); color: var(--primary); margin: 0 0 12px; line-height:1.15; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.hero .actions { margin-top: 24px; display:flex; flex-wrap:wrap; gap: .75rem; }

/* Cards */
.grid { display:grid; gap: 22px; }
@media (min-width: 700px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.05);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .icon { width:56px; height:56px; border-radius:14px; display:grid; place-items:center; background: rgba(46,125,50,.1); color: var(--primary); font-size:1.4rem; margin-bottom: 10px; }

/* Pricing */
.pricing .price { font-size: 2rem; color: var(--primary); font-weight: 800; }
.pricing ul { list-style: none; padding:0; margin: 14px 0 0; }
.pricing li { display:flex; gap:.5rem; align-items:flex-start; padding: 6px 0; border-bottom: 1px dashed rgba(0,0,0,.06); }
.badge { display:inline-block; padding:.25rem .5rem; border-radius: 999px; font-size:.8rem; background: rgba(46,125,50,.1); color: var(--primary); font-weight: 700; }

/* Testimonials */
.testimonial { position:relative; }
.quote { font-style: italic; color: #111827; background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%); border:1px solid rgba(0,0,0,.05); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Team */
.team .avatar { width: 100%; height: 400px; object-fit: cover; border-radius: 12px; }
.role { color: var(--primary-light); font-weight: 700; }
/* Portrait headshots for Tutor Managers */
.avatar--portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;           /* portrait-friendly frame */
  object-fit: cover;
  object-position: top center;   /* keep faces visible */
  border-radius: 12px;
}

/* Optional tweaks per person */
.avatar--portrait.tladi { object-position: 50% 30%; }
.avatar--portrait.kganya { object-position: 80% 0%; }

/* FAQ */
.faq-item { background: var(--card); border:1px solid rgba(0,0,0,.06); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q { padding: 16px 18px; font-weight:700; display:flex; align-items:center; justify-content: space-between; cursor:pointer; }
.faq-a { padding: 0 18px 16px; color: var(--muted); max-height:0; overflow:hidden; transition:max-height .35s ease; }

/* Contact */
.form { display:grid; gap:14px; }
.input, textarea { width:100%; padding: .9rem 1rem; border:1px solid #e5e7eb; border-radius: 10px; outline:none; background:#fff; font: inherit; transition: var(--transition); }
.input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(46,125,50,.12); }
textarea { min-height: 140px; resize: vertical; }

/* Footer */
.footer { background: linear-gradient(135deg, var(--primary-dark), #003300); color: #eaf2ea; margin-top: 56px; }
.footer .cols { display:grid; gap: 24px; padding: 48px 0; }
@media (min-width: 800px) { .footer .cols { grid-template-columns: repeat(4, 1fr); } }
.footer a { color: #d7f7d7; }
.footer a:hover { color: var(--accent); }
.footer .copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align:center; font-size:.95rem; color: #cfe6cf; }

/* Utilities */
.center { text-align:center; }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; }
.callout { background: rgba(46,125,50,.06); border:1px solid rgba(46,125,50,.15); border-radius:12px; padding: 14px 16px; }
.badge-accent { background: var(--accent); color: #1a1a1a; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.revealed { opacity:1; transform:none; }

/* Responsive nav */
@media (max-width: 900px) {
  .hamburger { display:block; }
  .nav-links { position: fixed; inset: 64px 0 auto 0; background: #ffffff; flex-direction: column; padding: 12px; gap: 4px; border-bottom:1px solid rgba(0,0,0,.06); transform: translateY(-120%); transition: var(--transition); }
  .nav-links.open { transform: translateY(0); }
}


/* === EBTA Enhancements (2025-08-26) === */

/* Utility spacers */
.mt-0{margin-top:0}.mt-1{margin-top:6px}.mt-2{margin-top:12px}.mt-3{margin-top:18px}.mt-4{margin-top:24px}.mt-5{margin-top:32px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:6px}.mb-2{margin-bottom:12px}.mb-3{margin-bottom:18px}.mb-4{margin-bottom:24px}.mb-5{margin-bottom:32px}
.center{ text-align:center; }

/* Tighter default vertical rhythm */
.section { padding: 56px 0; }
@media (min-width: 900px){ .section { padding: 64px 0; } }
.section.compact { padding: 40px 0; }

/* Feature strip (pills) */
.strip { background: linear-gradient(180deg,#ffffff,#f8fbf7); border-top:1px solid rgba(0,0,0,.05); border-bottom:1px solid rgba(0,0,0,.05); }
.pills { display:flex; gap:.5rem; flex-wrap:wrap; justify-content:center; }
.pill { background:#ffffff; border:1px solid rgba(0,0,0,.05); border-radius: 999px; padding:.55rem .9rem; box-shadow: var(--shadow-sm); font-weight:700; color:#126b17; display:inline-flex; align-items:center; gap:.45rem; }
.pill i { opacity:.85; }

/* Subjects grid */
.subjects { }
.subject-card { display:flex; align-items:flex-start; gap:.75rem; background:var(--card); border:1px solid rgba(0,0,0,.06); border-radius:12px; padding:16px; }
.subject-card i { font-size:1.25rem; color:var(--primary); margin-top:2px; }
.subject-card h4 { margin:0; }

/* Steps */
.steps .step { background:var(--card); border:1px solid rgba(0,0,0,.06); border-radius:12px; padding:18px; box-shadow: var(--shadow-sm); }
.step .num { width:36px; height:36px; border-radius:9px; display:grid; place-items:center; background: rgba(46,125,50,.12); color:var(--primary); font-weight:800; }
.step h3 { margin:10px 0 6px; }

/* Outcomes / focus area cards */
.focus .card { background: linear-gradient(180deg, #ffffff 0%, #f7faf9 100%); }
.focus .card .icon { background: rgba(255,235,59,.18); color:#795c00; }

/* Schedule table */
.table { width:100%; border-collapse: collapse; border:1px solid rgba(0,0,0,.06); border-radius:12px; overflow:hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding:12px 14px; border-bottom:1px dashed rgba(0,0,0,.06); text-align:left; }
.table th { background:#f7fbf7; color:#1b441c; }
.table tr:last-child td { border-bottom:0; }
.note { color: var(--muted); font-size:.95rem; }

/* FAQ preview cards */
.faq-preview .item { background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:12px; padding:16px; transition:var(--transition); }
.faq-preview .item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Ribbons / floating CTA */
.ribbon { background: linear-gradient(90deg,var(--primary), #0a7c2a); color:#fff; border-radius: 14px; padding: 18px; box-shadow: var(--shadow-md); display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.ribbon strong { font-size:1.1rem; }
.floating-cta { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 999; display:none; }
.floating-cta .btn { box-shadow: var(--shadow-lg); }
.floating-cta.show { display:block; }

/* Logo row placeholder */
.logo-row { display:flex; gap:18px; flex-wrap:wrap; align-items:center; justify-content:center; opacity:.85; }
.logo { background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:10px; padding:10px 14px; box-shadow: var(--shadow-sm); font-weight:700; color:#2f6a31; }

/* Minor polish */
.hero .actions { gap: 10px; }
.price { font-weight: 800; }

/* Testimonials extras */
.quote { position: relative; background:#fff; }
.quote p:first-child { font-size:1.05rem; }
.stars { margin-top:8px; color:#f6b400; letter-spacing:2px; }
.hidden { display:none; }

/* === Testimonials layout refinements === */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card.quote { display:flex; flex-direction:column; justify-content:space-between; height:100%; }

.stars { display:flex; align-items:center; gap:6px; margin-top:8px; color:#f6b400; }
.stars i { display:inline-block; font-size:1rem; }

/* Ensure icons don't stack vertically anywhere else */
.card i, .pill i, .subject-card i { display:inline-block; }

/* === Testimonial meta row (stars + author) === */
.card.quote { background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:12px; padding:16px; }
.card.quote .q { margin:0; font-style: normal; }
.card.quote .meta { display:flex; align-items:center; gap:12px; margin-top:10px; flex-wrap:wrap; }
.card.quote .author { color:#8c6a00; font-weight:700; }
.card.quote .stars { display:inline-flex; gap:6px; white-space:nowrap; transform:none !important; }
.card.quote .stars i { display:inline-block; font-size:1rem; line-height:1; transform:none !important; }
.card.quote * { transform:none !important; } /* hard stop for any accidental skew/rotate from elsewhere */

/* === Testimonial cards (example-style) === */
.t-area { background: #f8fafc; border-top:1px solid rgba(0,0,0,.04); border-bottom:1px solid rgba(0,0,0,.04); }
.t-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap:24px; }
.t-card { position:relative; background:#ffffff; border:1px solid rgba(0,0,0,.06); border-radius:20px; padding:22px 22px 20px; box-shadow: var(--shadow-md); }
.t-card::before { content:"\201C"; position:absolute; top:10px; left:18px; font-size:42px; line-height:1; color: rgba(0,0,0,.06); font-weight:900; font-family: Georgia, 'Times New Roman', serif; }
.t-badge { display:inline-block; padding:6px 12px; border-radius:999px; background: rgba(46,125,50,.12); color:#0a7a2a; font-weight:700; font-size:.86rem; }
.t-stars { display:flex; gap:6px; margin:12px 0 10px; color:#f6b400; }
.t-text { font-size:1.05rem; line-height:1.8; color: var(--text); margin: 0 0 14px; }
.t-author { display:flex; align-items:center; gap:12px; padding-top:8px; border-top:1px solid rgba(0,0,0,.05); }
.t-avatar { width:48px; height:48px; border-radius:50%; display:grid; place-items:center; font-weight:800; background: radial-gradient(circle at 30% 30%, #d3f6dc, #9fe3b0); color:#135b1f; }
.t-name { font-weight:800; }
.t-role { color: var(--muted); font-size:.95rem; }

/* === Testimonial identities === */
.t-photo { width:48px; height:48px; border-radius:50%; border:3px solid #ffffff; box-shadow: var(--shadow-sm); }
.t-badge--student { background: rgba(30,64,175,.12); color:#1e40af; }
.t-card.bad { border-color: rgba(220,38,38,.25); }
.t-card.bad .t-stars { color:#f59e0b; } /* keep amber stars, neutral tone */
.t-card.bad .t-badge { background: rgba(220,38,38,.08); color:#7a1d1d; }

/* More reviews toggle */
.hidden { display:none; }
.t-area-more .btn { min-width: 140px; }



/* === About page enrichments === */
.quote-box{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:18px 20px;box-shadow:var(--shadow-sm)}
.quote-box h3{margin:0 0 8px}
.hero-illustration{height:220px;border-radius:16px;background: radial-gradient(90% 60% at 20% 30%, #dff7e6, #bdebd0 60%, #e8f8ff);border:1px solid rgba(0,0,0,.06)}

/* Marquee effect for pills */
.pills-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.pills-track {
  display: flex;
  gap: .75rem;
  animation: scroll-left 20s linear infinite;
  width: max-content;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === NEWS SLIDER (UPDATED – FULL IMAGE VISIBILITY) === */

.news-slider{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.news-slide{
  display: none;
  position: relative;
  height: 520px; /* INCREASED HEIGHT */
  color: #fff;
}

.news-slide.active{
  display: block;
}

/* SHOW FULL IMAGE WITHOUT CROPPING */
.news-slide img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* KEY CHANGE */
  background: #0b3d2e; /* EBTA green background behind image */
}


.slide-content{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center; /* CENTER TEXT */
  max-width: 520px;
  padding: 40px;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.75),
    rgba(0,0,0,.45),
    transparent
  );
}


.slider-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:14px;
}

.slider-dots span{
  width:10px;
  height:10px;
  background:#ccc;
  border-radius:50%;
  cursor:pointer;
}

.slider-dots span.active{
  background: var(--primary);
}

.news-grid{
  display:grid;
  gap:24px;
}

@media (max-width: 768px){
  .news-slide{
    height: 420px;
  }

  .slide-content{
    max-width: 100%;
    justify-content: flex-end;
    padding: 24px;
  }
}


.news-link{ color:inherit; text-decoration:none; }

.news-card{
  background:#fff;
  border-radius:18px;
  padding:18px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
  display:flex;
  flex-direction:column;
  transition:.3s ease;
}

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

.news-card img{
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius:14px;
}

.news-body{ padding-top:14px; }

.news-cta{
  margin-top:10px;
  font-weight:700;
  color: var(--primary);
}

