/* ============================================
   GLOBAL SUCCESS TEACHING - Premium Enhancements
   Testimonials, Marquee, FAQ, Trust, Parallax
   ============================================ */

/* ---------- Animated Marquee Ticker ---------- */
.marquee-strip {
  background: var(--gold-gradient);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 2.5rem;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.marquee-item i {
  font-size: 0.5rem;
  opacity: 0.4;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .marquee-item {
    font-size: 0.8rem;
    padding: 0 1.5rem;
  }

  .marquee-strip {
    padding: 0.75rem 0;
  }
}

/* ---------- Trust / Credential Badges ---------- */
.trust-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 0.75rem;
  opacity: 0.85;
  transition: opacity var(--transition-base);
}

.trust-item:hover {
  opacity: 1;
}

.trust-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(232, 181, 71, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.trust-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.trust-text small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .trust-item {
    justify-content: center;
  }

  .trust-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .trust-text {
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  .trust-item {
    flex: 0 0 100%;
  }
}

/* ---------- How It Works ---------- */
.how-it-works {
  counter-reset: howStep;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.how-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--secondary), var(--secondary), transparent);
  opacity: 0.2;
  z-index: 0;
}

.how-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
  counter-increment: howStep;
}

.how-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  transition: all var(--transition-base);
}

.how-number span {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  transition: color var(--transition-base);
}

.how-card:hover .how-number {
  background: var(--gold-gradient);
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: var(--shadow-gold);
}

.how-card:hover .how-number span {
  color: var(--primary);
}

.how-card h4 {
  margin-bottom: 0.75rem;
}

.how-card p {
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .how-grid::before {
    display: none;
  }

  .how-card {
    display: flex;
    text-align: left;
    gap: 1.25rem;
    padding: 1.25rem 0;
    align-items: flex-start;
  }

  .how-number {
    margin: 0;
    flex-shrink: 0;
    width: 55px;
    height: 55px;
  }

  .how-number span {
    font-size: 1.4rem;
  }
}

/* ---------- Testimonials ---------- */
.testimonials-section {
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1.34rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
}

.testimonial-stars i {
  color: #F59E0B;
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-quote {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--secondary);
  opacity: 0.1;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.testimonial-info h5 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.testimonial-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.testimonial-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--white);
}

.testimonial-btn:hover {
  background: var(--gold-gradient);
  border-color: transparent;
  color: var(--primary);
  transform: scale(1.1);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
  cursor: pointer;
  transition: all var(--transition-base);
}

.testimonial-dot.active {
  background: var(--secondary);
  width: 30px;
  border-radius: 5px;
}

@media (max-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 100%;
    padding: 2rem 1.5rem;
  }

  .testimonial-controls {
    margin-top: 2rem;
  }

  .testimonial-btn {
    width: 42px;
    height: 42px;
  }
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition-base);
  background: var(--white);
}

.faq-item:hover {
  border-color: var(--border-gold);
}

.faq-item.active {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  gap: 1rem;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-question h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.faq-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(232, 181, 71, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq-toggle i {
  font-size: 0.8rem;
  color: var(--secondary);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-toggle {
  background: var(--gold-gradient);
}

.faq-item.active .faq-toggle i {
  color: var(--primary);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
}

.faq-answer-inner p {
  font-size: 0.95rem;
  line-height: 1.75;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

@media (max-width: 768px) {
  .faq-question {
    padding: 1rem 1.25rem;
  }

  .faq-question h4 {
    font-size: 0.92rem;
  }

  .faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
  }

  .faq-toggle {
    width: 32px;
    height: 32px;
  }
}

/* ---------- Parallax Divider ---------- */
.parallax-divider {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-bg {
  position: absolute;
  inset: -50px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.3);
}

@supports (-webkit-touch-callout: none) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 29, 58, 0.85) 0%, rgba(26, 58, 92, 0.75) 100%);
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 700px;
}

.parallax-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.parallax-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .parallax-divider {
    height: 320px;
  }

  .parallax-bg {
    background-attachment: scroll;
  }

  .parallax-content p {
    font-size: 1rem;
  }
}

/* ---------- Stats Counter Section ---------- */
.stats-section {
  background: var(--navy-gradient);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before,
.stats-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(232, 181, 71, 0.05);
}

.stats-section::before {
  top: -150px;
  left: -100px;
}

.stats-section::after {
  bottom: -150px;
  right: -100px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(232, 181, 71, 0.15);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-item + .stat-item::before {
    display: none;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stats-section {
    padding: 3rem 0;
  }
}

/* ---------- Profile Photo Styles ---------- */
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.lesson-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Enhanced Hero Gradient Mesh ---------- */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 600px at 10% 20%, rgba(232, 181, 71, 0.06) 0%, transparent 50%),
    radial-gradient(circle 400px at 80% 60%, rgba(26, 58, 92, 0.2) 0%, transparent 50%),
    radial-gradient(circle 500px at 40% 80%, rgba(19, 45, 84, 0.15) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Enhanced Service Cards ---------- */
.service-card .card-number {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(232, 181, 71, 0.06);
  line-height: 1;
}

/* ---------- Glow Border Effect ---------- */
.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 40%, rgba(232, 181, 71, 0.3) 50%, transparent 60%);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
  animation: glowMove 4s ease infinite;
}

.glow-border:hover::after {
  opacity: 1;
}

@keyframes glowMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Video / Intro Embed ---------- */
.video-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--primary);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.video-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.video-wrapper:hover img {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  box-shadow: 0 0 0 15px rgba(232, 181, 71, 0.15), var(--shadow-gold);
  transition: all var(--transition-base);
}

.video-wrapper:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 20px rgba(232, 181, 71, 0.2), var(--shadow-gold);
}

@media (max-width: 768px) {
  .video-play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    box-shadow: 0 0 0 10px rgba(232, 181, 71, 0.15), var(--shadow-gold);
  }
}

/* ---------- Feature Highlight Row ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature-item {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition-base);
}

.feature-item:last-child {
  border-right: none;
}

.feature-item:hover {
  background: rgba(232, 181, 71, 0.05);
}

.feature-item i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  display: block;
}

.feature-item h4 {
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .feature-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  .feature-item:nth-child(even) {
    border-right: none;
  }
}

@media (max-width: 400px) {
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-right: none;
  }
}

/* ============================================
   QUALIFICATION CARDS
   ============================================ */
.qualification-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white, #fff);
  border-radius: 16px;
  border: 1px solid var(--border-light, rgba(0,0,0,0.08));
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}
.qualification-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.qual-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy, #0B1D3A), var(--navy-light, #1a3a5c));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold, #d4af37);
  font-size: 1.4rem;
}
.qual-institution {
  color: var(--gold, #d4af37);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   APPROACH CARDS
   ============================================ */
.approach-card {
  padding: 2rem;
  background: var(--white, #fff);
  border-radius: 16px;
  border: 1px solid var(--border-light, rgba(0,0,0,0.08));
  text-align: center;
  transition: all 0.3s ease;
}
.approach-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.approach-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold, #d4af37), var(--gold-light, #e6c84d));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: var(--navy, #0B1D3A);
}
.approach-card h4 {
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .qualification-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1rem;
  }
  .qual-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.2rem;
  }
}
