/* ============================================
   Warren Mak - Personal Authority Engine
   Trade Wizard Speaker Page
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1a2332;
  --primary-light: #243447;
  --accent: #e8740c;
  --accent-light: #f5a623;
  --accent-glow: rgba(232, 116, 12, 0.15);
  --gold: #d4a843;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --mid-gray: #6c757d;
  --dark-gray: #343a40;
  --text: #2d3436;
  --text-light: #636e72;
  --success: #27ae60;
  --font-heading: 'Inter', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--off-white);
}

.section--dark {
  background: var(--primary);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 12px auto 0;
}

.section--dark .section__header p {
  color: rgba(255,255,255,0.7);
}

.tag {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 35, 50, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  flex-shrink: 0;
}

.navbar__logo img {
  height: 28px;
  width: auto;
}

.navbar__logo span {
  color: var(--accent);
}

.navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.navbar__menu a {
  color: rgba(255,255,255,0.75);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.navbar__menu a:hover,
.navbar__menu a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.navbar__cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 7px 16px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
}

.navbar__cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1a3a4a 100%);
  color: var(--white);
  padding-top: 64px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232, 116, 12, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__tag {
  display: inline-block;
  background: rgba(232, 116, 12, 0.15);
  color: var(--accent-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
  border: 1px solid rgba(232, 116, 12, 0.3);
}

.hero__title {
  color: var(--white);
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.hero__title span {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  font-weight: 400;
}

.hero__credentials {
  list-style: none;
  margin-bottom: 32px;
}

.hero__credentials li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.hero__credentials li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero__image img {
  max-height: 600px;
  object-fit: contain;
  border-radius: var(--radius);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232, 116, 12, 0.3);
}

.btn--primary:hover {
  background: var(--accent-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 116, 12, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn--dark {
  background: var(--primary);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--white);
  padding: 32px 0;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat {
  padding: 12px;
}

.stat__number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card__title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.card__text {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- About / Bio Section --- */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.bio__image {
  position: sticky;
  top: 100px;
}

.bio__image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.bio__name-cn {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: -8px;
  margin-bottom: 16px;
}

.bio__roles {
  list-style: none;
  margin-bottom: 24px;
}

.bio__roles li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
}

.bio__roles li:last-child {
  border-bottom: none;
}

.bio__role-icon {
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  padding-bottom: 36px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.timeline__year {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.timeline__content {
  font-size: 0.95rem;
  color: var(--text-light);
}

.timeline__content ul {
  list-style: none;
  margin-top: 8px;
}

.timeline__content ul li {
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.timeline__content ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.testimonial:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.testimonial__stars {
  color: var(--accent-light);
  font-size: 1rem;
  margin-bottom: 12px;
}

.testimonial__text {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
  line-height: 1.7;
}

.testimonial__author {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

/* --- Video Section --- */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: var(--primary);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
}

.video-placeholder .play-icon {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.video-placeholder .play-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 32px rgba(232, 116, 12, 0.4);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Social Links --- */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Media Grid --- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.media-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.media-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.media-card__body {
  padding: 24px;
}

.media-card__source {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.media-card__title {
  font-size: 1.1rem;
  margin-top: 8px;
  margin-bottom: 8px;
}

.media-card__date {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- Achievement Badges --- */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: var(--transition);
}

.badge:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.badge__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.badge__text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

.badge__text strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
}

/* --- Course Page --- */
.course-hero {
  padding-top: 112px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.course-hero h1 {
  color: var(--white);
}

.course-hero p {
  color: rgba(255,255,255,0.7);
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--light-gray);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list__icon {
  width: 32px;
  height: 32px;
  background: var(--accent-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.feature-list__text strong {
  display: block;
  color: var(--primary);
  margin-bottom: 2px;
}

.feature-list__text span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

/* --- Footer --- */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s, color 0.2s;
}

.footer__social a:hover {
  color: var(--white);
  background: var(--accent);
}

.footer__social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    order: 2;
  }

  .hero__image {
    order: 1;
  }

  .hero__image img {
    max-height: 400px;
  }

  .hero__credentials li {
    justify-content: center;
  }

  .hero__buttons {
    justify-content: center;
  }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .bio-grid {
    grid-template-columns: 1fr;
  }

  .bio__image {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col--reverse {
    direction: ltr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .navbar__menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .navbar__menu.active {
    display: flex;
  }

  .navbar__menu a {
    font-size: 0.9rem;
    padding: 10px 16px;
  }

  .navbar__toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat__number {
    font-size: 1.8rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }

  .badge-grid {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* --- Scroll Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Misc --- */
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* --- Bilingual text --- */
.cn-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 400;
}
