/* ==========================================================================
   Home page only — hero slider, stats, banners, about, categories, features
   ========================================================================== */

/* ── HERO SLIDER ─────────────────────────────────────────────────────── */
.hero-slider {
  position: relative; width: 100%; height: calc(100vh - var(--chrome-h));
  min-height: 560px; margin-top: var(--chrome-h); overflow: hidden;
}
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-repeat: no-repeat; display: flex; align-items: center;
  opacity: 0; transform: scale(1.04); pointer-events: none; z-index: 1;
  transition: opacity 1s ease, transform 1s ease;
}
.slide.active { opacity: 1; transform: scale(1); pointer-events: all; z-index: 2; }
.slide.exit   { opacity: 0; transform: scale(.97); z-index: 1; }

.slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(10,12,0,.78) 0%, rgba(10,12,0,.55) 45%, rgba(10,12,0,.18) 100%);
}
.slide-accent { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.slide-accent::after {
  content: ''; position: absolute; top: 0; right: -15%; width: 42%; height: 100%;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%); opacity: .15;
}
.slide-1 .slide-accent::after, .slide-3 .slide-accent::after { background: var(--gold); }
.slide-2 .slide-accent::after { background: var(--lime); }
.slide-4 .slide-accent::after { background: var(--red); }

.slide-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; z-index: 3; }
.slide-1 .slide-bar, .slide-3 .slide-bar { background: var(--gold); }
.slide-2 .slide-bar { background: var(--lime); }
.slide-4 .slide-bar { background: var(--red); }

.slide-content {
  position: relative; z-index: 4; max-width: 1200px; width: 100%; margin: 0 auto;
  padding: 0 5%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem;
}
.slide-left { display: flex; flex-direction: column; }
.slide-h1 {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: clamp(2.3rem, 4.5vw, 3.8rem); line-height: 1.08; color: #fff;
  letter-spacing: -1px; margin-bottom: 1.3rem; text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.slide-sub {
  font-size: 1.05rem; color: rgba(255,255,255,.72); line-height: 1.75;
  max-width: 430px; margin-bottom: 2.4rem; text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.slide-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.slide-btns .btn-gold { animation: glowGold 2.5s 1s infinite; }
.slide-btns .btn-lime { animation: glowLime 2.5s 1s infinite; }
.slide-btns .btn-gold:hover, .slide-btns .btn-lime:hover { animation: none; }
@keyframes glowGold { 0%,100% { box-shadow: 0 0 0 0 rgba(255,188,0,.5) } 50% { box-shadow: 0 0 0 14px rgba(255,188,0,0) } }
@keyframes glowLime { 0%,100% { box-shadow: 0 0 0 0 rgba(200,212,0,.5) } 50% { box-shadow: 0 0 0 14px rgba(200,212,0,0) } }

.slide-card {
  background: rgba(10,12,0,.52); border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px; padding: 2rem;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.slide-card-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 1.6rem; }
.slide-card-logo img { height: 44px; width: auto; filter: brightness(1.15); }
.slide-card-logo-text { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--gold); font-size: .9rem; line-height: 1.3; }
.slide-card-logo-text span { display: block; font-size: .72rem; color: rgba(255,255,255,.38); font-weight: 400; }
.card-section-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: .9rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.2rem; }
.chip { display: inline-block; padding: 6px 13px; border-radius: 8px; font-size: .8rem; font-weight: 600; animation: chipPop .45s both; }
@keyframes chipPop { from { opacity: 0; transform: scale(.85) } to { opacity: 1; transform: scale(1) } }
.chip-g { background: var(--gold); color: var(--dark); }
.chip-l { background: var(--lime); color: var(--dark); }
.chip-r { background: var(--red);  color: #fff; }
.chip-o { background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.15); }
.card-divider { height: 1px; background: rgba(255,255,255,.08); margin: 1.2rem 0; }
.card-contacts { display: flex; flex-direction: column; gap: 8px; }
.card-contacts a { font-size: .83rem; color: rgba(255,255,255,.42); text-decoration: none; transition: color .2s; }
.card-contacts a:hover { color: var(--gold); }
.slide-stat-row { display: flex; gap: 1.5rem; }
.slide-stat { text-align: center; }
.slide-stat-num { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--gold); line-height: 1; }
.slide-stat-label { font-size: .7rem; color: rgba(255,255,255,.38); font-weight: 500; margin-top: 3px; }

/* slider controls */
.slider-controls {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; align-items: center; gap: 1.2rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); border: 0; cursor: pointer; padding: 0; transition: all .35s; }
.dot.active { background: var(--gold); width: 30px; border-radius: 4px; }
.slider-arrow {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: all .25s; backdrop-filter: blur(6px);
}
.slider-arrow:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); transform: scale(1.08); }
.slide-counter {
  position: absolute; top: 1.5rem; right: 5%; z-index: 10;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .85rem;
  color: rgba(255,255,255,.45); letter-spacing: .05em;
}
.slide-counter span { color: var(--gold); }
.slide-progress { position: absolute; top: 0; left: 0; height: 3px; background: var(--gold); z-index: 20; width: 0; }
.slide-progress.running { animation: progressAnim 5s linear forwards; }
@keyframes progressAnim { from { width: 0 } to { width: 100% } }

/* ── STATS ───────────────────────────────────────────────────────────── */
.stats-bar { background: var(--gold); padding: 3rem 5%; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 10%; height: 80%; width: 1px; background: rgba(0,0,0,.1); }
.stat-num { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); color: var(--dark); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: .82rem; color: rgba(29,32,0,.52); font-weight: 600; }

/* ── NEW COURSES BANNERS ─────────────────────────────────────────────── */
.new-courses { background: var(--dark); padding: 5rem 5%; }
.new-courses-inner { max-width: 1300px; margin: 0 auto; }
.new-courses-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.new-courses-header .section-tag { background: rgba(255,188,0,.13); color: var(--gold); }
.new-courses-header .section-h2 { color: var(--white); margin-bottom: 0; }
.btn-view-all { background: var(--gold); color: var(--dark); padding: 10px 22px; border-radius: 8px; font-size: .88rem; white-space: nowrap; }
.btn-view-all:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,188,0,.35); }
.banners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.banner-card {
  border-radius: 14px; overflow: hidden; position: relative; cursor: pointer;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.banner-card img { width: 100%; height: 420px; object-fit: contain; object-position: center; display: block; transition: transform .4s ease; }
.banner-card:hover img { transform: scale(1.02); }
.banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .3s; display: flex; align-items: flex-end; padding: 1rem; }
.banner-card:hover .banner-overlay { background: rgba(0,0,0,.35); }
.banner-tag {
  background: var(--gold); color: var(--dark); font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .07em;
  opacity: 0; transform: translateY(8px); transition: all .3s;
}
.banner-card:hover .banner-tag { opacity: 1; transform: translateY(0); }
.view-all-row { display: flex; justify-content: center; margin-top: 2rem; }
.btn-view-more { background: transparent; color: var(--gold); border: 2px solid var(--gold); padding: 12px 32px; }
.btn-view-more:hover { background: var(--gold); color: var(--dark); transform: translateY(-2px); }

/* ── ABOUT ───────────────────────────────────────────────────────────── */
.about-wrap { background: var(--white); }
.about { padding: 7rem 5%; max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-visual { position: relative; }
.about-img-wrap { border-radius: 22px; overflow: hidden; box-shadow: 0 24px 64px rgba(29,32,0,.13); }
.about-img-wrap img { width: 100%; display: block; object-fit: cover; height: 420px; }
.about-badge {
  position: absolute; bottom: -20px; left: -20px; background: var(--gold);
  border-radius: 16px; padding: 1.2rem 1.6rem; box-shadow: 0 8px 28px rgba(255,188,0,.4);
  animation: badgeFloat 3s ease-in-out infinite;
}
@keyframes badgeFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
.about-badge-num { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.9rem; color: var(--dark); line-height: 1; }
.about-badge-text { font-size: .72rem; color: rgba(29,32,0,.55); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.about-badge2 {
  position: absolute; top: -16px; right: -16px; background: var(--lime);
  border-radius: 14px; padding: 1rem 1.4rem; box-shadow: 0 8px 24px rgba(200,212,0,.35);
  animation: badgeFloat 3s 1.5s ease-in-out infinite;
}
.about-badge2-num { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.5rem; color: var(--dark); line-height: 1; }
.about-badge2-text { font-size: .72rem; color: rgba(29,32,0,.55); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ── CATEGORIES ──────────────────────────────────────────────────────── */
.cat-sec { background: var(--light-gray); padding: 6rem 5%; }
.cat-inner { max-width: 1300px; margin: 0 auto; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3rem; }
.cat-card {
  text-decoration: none; border-radius: 20px; overflow: hidden; background: var(--white);
  border: 1px solid rgba(0,0,0,.05); display: flex; flex-direction: column;
  transition: transform .35s, box-shadow .35s; position: relative;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: 0 24px 56px rgba(0,0,0,.12); }
.cat-img-wrap { position: relative; overflow: hidden; height: 190px; }
.cat-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.cat-card:hover .cat-img-wrap img { transform: scale(1.07); }
.cat-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,.45) 100%); }
.cat-badge {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--dark);
  font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  letter-spacing: .04em; text-transform: uppercase;
}
.cat-body { display: flex; align-items: center; gap: 12px; padding: 1.2rem 1.4rem; border-top: 3px solid transparent; transition: border-color .3s; }
.cat-card:hover .cat-body { border-top-color: var(--gold); }
.cat-icon {
  font-size: 1.6rem; flex-shrink: 0; width: 42px; height: 42px; background: var(--gold-pale);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .3s;
}
.cat-card:hover .cat-icon { background: var(--gold); transform: scale(1.1) rotate(-6deg); }
.cat-text { flex: 1; min-width: 0; }
.cat-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem; color: var(--dark); margin-bottom: 2px; }
.cat-sub { font-size: .72rem; color: var(--gray); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-arrow { font-size: 1.2rem; color: var(--gold-deep); font-weight: 700; flex-shrink: 0; transition: transform .25s; }
.cat-card:hover .cat-arrow { transform: translateX(5px); }

/* ── WHY US ──────────────────────────────────────────────────────────── */
.why { padding: 7rem 5%; background: var(--dark); }
.why-inner { max-width: 1300px; margin: 0 auto; }
.why-header { text-align: center; margin-bottom: 4rem; }
.why-header .section-h2 { color: var(--white); }
.why-header .section-body { color: rgba(255,255,255,.42); max-width: 620px; margin: 0 auto; }
.why-header .section-tag { background: rgba(255,188,0,.13); color: var(--gold); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px; padding: 2.2rem; transition: all .3s; position: relative; overflow: hidden;
}
.feature-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--lime));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.feature-card:hover { border-color: rgba(255,188,0,.22); transform: translateY(-4px); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-num { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .75rem; color: var(--gold); letter-spacing: .1em; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 8px; }
.feature-num::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.06); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--white); margin-bottom: .6rem; }
.feature-desc { font-size: .88rem; color: rgba(255,255,255,.4); line-height: 1.7; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .slide-content { grid-template-columns: 1fr; gap: 0; }
  .slide-card { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .stat-item::after { display: none; }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { order: -1; }
  .cat-grid, .features-grid, .banners-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .slide-content { padding: 0 4%; }
  .slide-h1 { font-size: 2rem; }
  .cat-grid, .features-grid, .banners-grid { grid-template-columns: 1fr; }
  .banner-card img { height: 320px; }
  .stats-bar { padding: 2rem 4%; }
  .about, .why, .new-courses, .cat-sec { padding: 4rem 4%; }
}
