/* ================================================================
   home.css — Homepage specific styles
   ================================================================ */

/* ── HERO SLIDER ─────────────────────────────────────────────── */
.hero {
  margin-top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  min-height: 560px; position: relative; overflow: hidden;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.1s ease;
  display: flex; align-items: center;
}
.slide.active { opacity: 1; z-index: 2; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06); transition: transform 8s var(--ease);
}
.slide.active .slide-bg { transform: scale(1); }

/* slide backgrounds — gradient fallbacks, swap with real images */
.s1 .slide-bg { background-image:url('../images/slide1.jpg'); background-color:#1a2a3a; }
.s2 .slide-bg { background-image:url('../images/slide2.jpg'); background-color:#0d1b2a; }
.s3 .slide-bg { background-image:url('../images/slide3.jpg'); background-color:#1a0a2e; }

.slide-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,.82) 0%, rgba(0,0,0,.48) 38%, rgba(0,0,0,.14) 100%);
}

/* slide SVG decoration */
.slide-svg {
  position: absolute; left: 4%; bottom: 0;
  width: 40%; max-width: 500px; opacity: .13; z-index: 1;
}

/* floating gold particles */
.particles { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.pt {
  position: absolute; border-radius: 50%;
  background: var(--gold); opacity: 0;
  animation: float-up 6s infinite;
}
@keyframes float-up {
  0%   { opacity: 0; transform: translateY(80px) scale(0); }
  20%  { opacity: .55; }
  80%  { opacity: .25; }
  100% { opacity: 0; transform: translateY(-220px) scale(1.6); }
}

.slide-body {
  position: relative; z-index: 3;
  width: 100%; max-width: 1480px;
  margin: 0 auto; padding: 0 3rem;
  display: flex; justify-content: flex-end;
}
.slide-text { max-width: 580px; text-align: right; }
.slide.active .slide-text { animation: s-up .9s ease forwards; }
@keyframes s-up {
  from { opacity: 0; transform: translateY(35px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-pill {
  display: inline-block; background: var(--gold); color: var(--dark);
  font-size: .76rem; font-weight: 700;
  padding: .3rem 1.1rem; border-radius: 20px; margin-bottom: 1.1rem; letter-spacing: .5px;
}
.slide-h1 {
  font-size: clamp(2.2rem,5.5vw,3.9rem); font-weight: 900;
  color: white; line-height: 1.12; margin-bottom: 1rem;
}
.slide-h1 em { font-style: normal; color: var(--gold); }
.slide-p {
  font-size: clamp(.95rem,1.8vw,1.12rem); color: rgba(255,255,255,.86);
  line-height: 1.78; margin-bottom: 2.2rem; max-width: 460px; margin-right: auto;
}
.slide-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold); color: var(--dark);
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: .9rem 2.4rem; border-radius: 10px; border: none;
  cursor: pointer; transition: all .28s;
  box-shadow: 0 6px 24px rgba(230,184,0,.3);
}
.slide-btn:hover { background: white; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.2); }

/* progress bar */
.slide-prog { position: absolute; bottom:0; left:0; right:0; height: 4px; background: rgba(255,255,255,.15); z-index: 5; }
.slide-prog-bar { height: 100%; width: 0; background: var(--gold); transition: width 5.5s linear; }

/* arrows */
.sarr {
  position: absolute; top: 50%; z-index: 10; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.35);
  color: white; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(10px); transition: all .28s;
}
.sarr:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); transform: translateY(-50%) scale(1.08); }
.sarr-p { right: 2rem; }
.sarr-n { left:  2rem; }

/* dots */
.sdots {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 8px; align-items: center;
}
.sdot { width: 10px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.35); cursor: pointer; transition: all .3s; }
.sdot.active { background: var(--gold); width: 30px; }

/* ── STATS STRIP ─────────────────────────────────────────────── */
.stats-strip { background: var(--dark); }
.stats-inner { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  padding: 2.6rem 2rem; text-align: center;
  border-left: 1px solid rgba(255,255,255,.07); transition: background .3s;
}
.stat-item:last-child { border-left: none; }
.stat-item:hover { background: rgba(230,184,0,.05); }
.stat-num { display: block; font-size: 2.8rem; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-lbl { display: block; color: rgba(255,255,255,.55); font-size: .88rem; margin-top: .4rem; }

/* ── SERVICES SECTION ────────────────────────────────────────── */
.services-sec { padding: 100px 0; background: var(--off); }
.srv-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5rem; margin-top: 3.5rem;
}
.srv-card {
  background: white; border-radius: var(--r);
  padding: 2.4rem; border: 1px solid rgba(0,0,0,.05);
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: block; /* makes <a> work as block */
}
.srv-card::before {
  content: ''; position: absolute; top:0; right:0; bottom:0; width: 3px;
  background: var(--gold); transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s var(--ease);
}
.srv-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.srv-card:hover::before { transform: scaleY(1); }
.srv-ico {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(230,184,0,.12), rgba(230,184,0,.03));
  border: 1px solid rgba(230,184,0,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; margin-bottom: 1.3rem;
}
.srv-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .6rem; color: var(--dark); }
.srv-card p  { font-size: .9rem; color: var(--muted); line-height: 1.8; }
.srv-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.3rem; color: var(--gold-d); font-size: .86rem; font-weight: 700; transition: gap .2s; }
.srv-card:hover .srv-more { gap: .65rem; }

/* ── EXAMS SECTION ────────────────────────────────────────────── */
.exams-sec { padding: 100px 0; background: white; }
.exam-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5rem; margin-top: 3.5rem;
}
.exam-card {
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 4/3; position: relative; cursor: pointer;
  transition: transform .35s var(--ease);
  display: block;
}
.exam-card:hover { transform: scale(1.03); box-shadow: var(--sh-lg); }
.exam-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .5s var(--ease);
}
.exam-card:hover .exam-bg { transform: scale(1.06); }

/* Fallback gradient backgrounds (replace with real images) */
.ex1 .exam-bg { background-image:url('../images/exam-ielts.jpg'); background-color:#0f3460; }
.ex2 .exam-bg { background-image:url('../images/exam-toefl.jpg'); background-color:#1a472a; }
.ex3 .exam-bg { background-image:url('../images/exam-sat.jpg');   background-color:#4a0e8f; }

.exam-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
  opacity: .78; transition: opacity .3s;
}
.exam-card:hover .exam-ov { opacity: 1; }
.exam-info { position: absolute; bottom:0; right:0; left:0; padding: 1.8rem; text-align: right; }
.exam-badge { display: inline-block; background: var(--gold); color: var(--dark); font-weight: 900; font-size: 1.5rem; padding: .2rem .9rem; border-radius: 8px; margin-bottom: .6rem; }
.exam-info h3 { color: white; font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.exam-info p  { color: rgba(255,255,255,.7); font-size: .82rem; }
.exam-cta {
  display: inline-block; margin-top: .8rem;
  background: rgba(255,255,255,.14); color: white;
  padding: .35rem 1.1rem; border-radius: 20px;
  font-size: .8rem; font-weight: 600; backdrop-filter: blur(8px);
  transition: background .25s, color .25s;
}
.exam-card:hover .exam-cta { background: var(--gold); color: var(--dark); }

/* exam feature boxes */
.exam-feats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; margin-top: 2.8rem; }
.ef {
  text-align: center; padding: 1.5rem 1rem;
  border: 1px solid var(--gray2); border-radius: var(--r);
  transition: box-shadow .28s, transform .28s;
}
.ef:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.ef .ico { font-size: 2rem; margin-bottom: .55rem; }
.ef h4   { font-size: .92rem; font-weight: 700; color: var(--dark); margin-bottom: .3rem; }
.ef p    { font-size: .8rem; color: var(--muted); line-height: 1.62; }

/* ── WHY US ──────────────────────────────────────────────────── */
.why-sec {
  padding: 100px 0; background: var(--dark); color: white;
  overflow: hidden; position: relative;
}
.why-sec::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(230,184,0,.06) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(230,184,0,.04) 0%, transparent 50%);
}
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; position: relative; z-index: 1; }
.why-badge { background: rgba(230,184,0,.15) !important; color: var(--gold) !important; border-color: rgba(230,184,0,.25) !important; }
.why-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.wf  { display: flex; align-items: flex-start; gap: 1.2rem; }
.wfi { width: 50px; height: 50px; flex-shrink: 0; background: rgba(230,184,0,.08); border: 1px solid rgba(230,184,0,.2); border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.wft h4 { color: var(--gold); font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.wft p  { color: rgba(255,255,255,.56); font-size: .9rem; line-height: 1.68; }

/* orbit visual */
.orbit-wrap { display: flex; align-items: center; justify-content: center; }
.orb1 { width: 400px; height: 400px; border-radius: 50%; border: 1px dashed rgba(230,184,0,.2); display: flex; align-items: center; justify-content: center; animation: spin 30s linear infinite; }
.orb2 { width: 290px; height: 290px; border-radius: 50%; background: rgba(230,184,0,.03); border: 1px solid rgba(230,184,0,.18); display: flex; align-items: center; justify-content: center; animation: spin 18s linear infinite reverse; }
.orb3 { width: 175px; height: 175px; border-radius: 50%; background: var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; box-shadow: 0 0 60px rgba(230,184,0,.35); }
.orb3 .big   { font-size: 2.5rem; font-weight: 900; color: var(--dark); line-height: 1; }
.orb3 .small { font-size: .7rem; font-weight: 700; color: rgba(0,0,0,.6); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TESTIMONIALS ─────────────────────────────────────────────── */
.testi-sec { padding: 100px 0; background: var(--off); }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3.5rem; }
.tc-card {
  background: white; border-radius: var(--r); padding: 2.2rem;
  border: 1px solid rgba(0,0,0,.05);
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tc-card::before { content: ''; position: absolute; top:0; left:0; right:0; height: 3px; background: linear-gradient(to left,var(--gold),var(--gold-l)); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.tc-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.tc-card:hover::before { transform: scaleX(1); }
.qm    { font-size: 4rem; color: var(--gold); font-family: Georgia,serif; line-height: .5; display: block; margin-bottom: 1rem; }
.stars { color: var(--gold); font-size: .85rem; margin-bottom: .6rem; }
.tc-card > p { font-size: .93rem; color: #555; line-height: 1.85; margin-bottom: 1.5rem; }
.ta { display: flex; align-items: center; gap: 1rem; }
.ta-av { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; color: white; flex-shrink: 0; }
.av1{background:linear-gradient(135deg,#e6b800,#c9a200);}
.av2{background:linear-gradient(135deg,#0f3460,#1a5276);}
.av3{background:linear-gradient(135deg,#1a472a,#27ae60);}
.ta-name { font-weight: 700; font-size: .93rem; color: var(--dark); }
.ta-role { font-size: .78rem; color: var(--muted); }

/* ── HOME RESPONSIVE ─────────────────────────────────────────── */
@media(max-width:1024px) {
  .srv-grid   { grid-template-columns: repeat(2,1fr); }
  .exam-grid  { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner{ grid-template-columns: repeat(2,1fr); }
  .why-grid   { gap: 3rem; }
  .orb1{width:310px;height:310px;} .orb2{width:225px;height:225px;} .orb3{width:145px;height:145px;}
  .exam-feats { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:768px) {
  .srv-grid   { grid-template-columns: 1fr; }
  .exam-grid  { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .why-grid   { grid-template-columns: 1fr; }
  .orbit-wrap { display: none; }
  .slide-body { justify-content: center; }
  .slide-text { text-align: center; max-width: 90%; }
  .slide-ov   { background: rgba(0,0,0,.6); }
  .exam-feats { grid-template-columns: 1fr 1fr; }
}
@media(max-width:480px) {
  .stats-inner{ grid-template-columns: 1fr 1fr; }
  .exam-feats { grid-template-columns: 1fr; }
}
