/*
 Theme Name:   English With Alan Child
 Theme URI:    https://yourwebsite.com
 Description:  Child theme for English With Alan course website
 Author:       Your Name
 Template:     astra
 Version:      1.0.0
 Text Domain:  english-with-alan-child
*/

/* ============================================
   CSS VARIABLES
============================================ */
:root {
  --blue:        #1A35D4;
  --blue-dark:   #1228A8;
  --yellow:      #F5C518;
  --yellow-dark: #D4A800;
  --dark:        #0D1117;
  --gray:        #6B7280;
  --light-gray:  #F4F6FB;
  --white:       #FFFFFF;
  --font-head:   'Poppins', sans-serif;
  --font-body:   'Inter', sans-serif;
  --radius:      12px;
  --shadow:      0 8px 32px rgba(26,53,212,0.10);
  --transition:  0.3s cubic-bezier(.4,0,.2,1);
}

/* ============================================
   GLOBAL RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
}

.section-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--blue);
  margin-top: 4px;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 4px 18px rgba(245,197,24,0.35);
}
.btn-yellow:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,197,24,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

.btn-outline-yellow {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--gray);
}
.btn-outline-yellow:hover {
  border-color: var(--yellow);
  background: var(--yellow);
}

/* ============================================
   DECORATIVE SHAPES
============================================ */
.shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.shape-square {
  width: 18px; height: 18px;
  background: var(--yellow);
  border-radius: 3px;
  transform: rotate(15deg);
}
.shape-circle {
  width: 22px; height: 22px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: transparent;
}
.shape-circle-sm {
  width: 12px; height: 12px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
}
.shape-triangle {
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 16px solid var(--yellow);
}
.shape-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

/* ============================================
   HEADER / NAVBAR
============================================ */
.ewa-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26,53,212,0.07);
  transition: box-shadow var(--transition);
}
.ewa-header.scrolled {
  box-shadow: 0 4px 24px rgba(26,53,212,0.10);
}
.ewa-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.ewa-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ewa-logo__icon {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ewa-logo__icon svg { fill: var(--yellow); }
.ewa-logo__text { font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.ewa-logo__text span { display: block; font-size: 0.65rem; font-weight: 400; color: var(--gray); }

/* Nav links */
.ewa-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.ewa-nav a {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: color var(--transition);
  position: relative;
}
.ewa-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.ewa-nav a:hover { color: var(--blue); }
.ewa-nav a:hover::after { transform: scaleX(1); }

/* Phone */
.ewa-phone {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

/* Hamburger */
.ewa-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.ewa-hamburger span {
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
============================================ */
.ewa-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}

.ewa-hero__bg {
  position: absolute;
  right: 0; top: 0;
  width: 52%;
  height: 100%;
  background: var(--blue);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.ewa-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 70px);
}

/* Left side */
.ewa-hero__left { padding: 60px 0; }

.ewa-hero__tag {
  display: inline-block;
  background: rgba(245,197,24,0.18);
  color: var(--yellow-dark);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.ewa-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--dark);
  margin-bottom: 20px;
}

.ewa-hero__subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 380px;
  line-height: 1.7;
}

.ewa-hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ewa-hero__play {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}
.ewa-hero__play:hover { color: var(--blue); }
.ewa-hero__play-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.ewa-hero__play-btn svg { fill: var(--dark); margin-left: 3px; }
.ewa-hero__play:hover .ewa-hero__play-btn {
  background: var(--blue);
  border-color: var(--blue);
}
.ewa-hero__play:hover .ewa-hero__play-btn svg { fill: var(--white); }

/* Stats bar */
.ewa-hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.ewa-hero__stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.ewa-hero__stat-num span { color: var(--yellow-dark); }
.ewa-hero__stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 4px;
}

/* Right side — image */
.ewa-hero__right {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 520px;
}

.ewa-hero__img-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
}
.ewa-hero__img-wrap img {
  width: 100%;
  border-radius: 0;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.22));
}

/* Social icons (right side) */
.ewa-hero__social {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
}
.ewa-hero__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.25);
}
.ewa-hero__social a:hover {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow);
}

/* Scroll indicator */
.ewa-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--gray);
  animation: bounce 2s infinite;
  z-index: 2;
}
.ewa-scroll-hint svg { fill: var(--gray); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   ABOUT SECTION
============================================ */
.ewa-about {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.ewa-about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.ewa-about__img-wrap {
  position: relative;
}
.ewa-about__img-frame {
  position: absolute;
  top: -16px; left: -16px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  background: var(--blue);
  border-radius: var(--radius);
  z-index: 0;
}
.ewa-about__img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.ewa-about__badge {
  position: absolute;
  bottom: -20px; right: -20px;
  z-index: 2;
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(245,197,24,0.35);
  text-align: center;
}
.ewa-about__badge-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.ewa-about__badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  opacity: 0.7;
  margin-top: 2px;
}

.ewa-about__content { }
.ewa-about__content p {
  color: var(--gray);
  margin-top: 20px;
  line-height: 1.8;
  font-size: 0.97rem;
}
.ewa-about__features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ewa-about__feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ewa-about__feature-icon {
  width: 36px; height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: rgba(26,53,212,0.08);
  display: flex; align-items: center; justify-content: center;
}
.ewa-about__feature-icon svg { fill: var(--blue); }
.ewa-about__feature-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}
.ewa-about__feature-desc {
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 2px;
}

/* ============================================
   COURSES SECTION
============================================ */
.ewa-courses {
  padding: 100px 0;
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
}
.ewa-courses__header {
  text-align: center;
  margin-bottom: 56px;
}
.ewa-courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ewa-course-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.ewa-course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 56px rgba(26,53,212,0.15);
}

.ewa-course-card__img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.ewa-course-card__img-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ewa-course-card__img-bg.yellow { background: var(--yellow); }
.ewa-course-card__img-bg.blue   { background: var(--blue); }
.ewa-course-card__img-bg.navy   { background: #1a1a3e; }

.ewa-course-card__img {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  height: 210px;
  object-fit: cover;
  z-index: 1;
}
.ewa-course-card__play {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.ewa-course-card__play svg { fill: var(--white); opacity: 0.9; }

.ewa-course-card__body {
  padding: 24px;
}
.ewa-course-card__level {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.ewa-course-card__desc {
  font-size: 0.83rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
}
.ewa-course-card__spots {
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 20px;
}
.ewa-course-card__spots strong { color: var(--blue); }

.ewa-course-card--featured .ewa-course-card__body .btn-yellow {
  width: 100%;
  justify-content: center;
}

/* ============================================
   RESULTS SECTION
============================================ */
.ewa-results {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}
.ewa-results__header { margin-bottom: 56px; }
.ewa-results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
}

.ewa-result-item { }
.ewa-result-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--yellow-dark);
  line-height: 1;
  margin-bottom: 10px;
}
.ewa-result-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

/* ============================================
   TEACHERS SECTION
============================================ */
.ewa-teachers {
  padding: 100px 0;
  background: var(--blue);
  position: relative;
  overflow: hidden;
}
.ewa-teachers__header {
  text-align: center;
  margin-bottom: 56px;
}
.ewa-teachers__header .section-label { color: rgba(255,255,255,0.6); }
.ewa-teachers__header .section-title { color: var(--yellow); }

.ewa-teachers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ewa-teacher-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 24px;
  transition: var(--transition);
}
.ewa-teacher-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-6px);
}
.ewa-teacher-card__img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.ewa-teacher-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.ewa-teacher-card__name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 16px 16px 4px;
}
.ewa-teacher-card__role {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* ============================================
   TESTIMONIALS SECTION
============================================ */
.ewa-testimonials {
  padding: 100px 0;
  background: var(--light-gray);
  overflow: hidden;
}
.ewa-testimonials__header {
  text-align: center;
  margin-bottom: 56px;
}

.ewa-testimonials__slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ewa-testimonial-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.ewa-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26,53,212,0.12);
}
.ewa-testimonial-card__quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--yellow);
  font-family: Georgia, serif;
  margin-bottom: 12px;
}
.ewa-testimonial-card__text {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 24px;
}
.ewa-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ewa-testimonial-card__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--yellow);
}
.ewa-testimonial-card__name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
}
.ewa-testimonial-card__role {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 2px;
}

.ewa-testimonials__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.ewa-testimonials__nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.ewa-testimonials__nav button:hover {
  background: var(--blue);
  color: var(--white);
}

/* ============================================
   FOOTER
============================================ */
.ewa-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}
.ewa-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.ewa-footer__brand .ewa-logo__text { color: var(--white); }
.ewa-footer__brand .ewa-logo__text span { color: rgba(255,255,255,0.45); }
.ewa-footer__desc {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-top: 16px;
  color: rgba(255,255,255,0.5);
  max-width: 260px;
}
.ewa-footer__col-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.ewa-footer__links { display: flex; flex-direction: column; gap: 10px; }
.ewa-footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.ewa-footer__links a:hover { color: var(--yellow); }

.ewa-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   SCROLL ANIMATIONS
============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .ewa-teachers__grid { grid-template-columns: repeat(2, 1fr); }
  .ewa-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .ewa-nav, .ewa-phone { display: none; }
  .ewa-hamburger { display: flex; }

  .ewa-hero .container { grid-template-columns: 1fr; min-height: auto; padding: 60px 0; }
  .ewa-hero__bg { width: 100%; clip-path: none; top: auto; bottom: 0; height: 45%; }
  .ewa-hero__right { min-height: 320px; }

  .ewa-about .container { grid-template-columns: 1fr; gap: 48px; }
  .ewa-courses__grid { grid-template-columns: 1fr; }
  .ewa-results__grid { grid-template-columns: 1fr 1fr; }
  .ewa-teachers__grid { grid-template-columns: 1fr 1fr; }
  .ewa-testimonials__slider { grid-template-columns: 1fr; }
  .ewa-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .ewa-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .ewa-results__grid { grid-template-columns: 1fr; }
  .ewa-hero__stats { flex-wrap: wrap; gap: 20px; }
}
