/* ===== HERO ===== */
.hero {
  background: linear-gradient(165deg, #ecfdf5 0%, #d1fae5 40%, #a7f3d0 100%);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 48px;
  background: var(--bg);
  border-radius: 48px 48px 0 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}
.hero h1 span { color: var(--primary); }
.hero-desc {
  font-size: 21px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  flex-shrink: 0;
  width: 420px;
  position: relative;
}
.hero-visual img {
  width: 100%;
  border-radius: 24px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-dark);
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== COURSE CARDS ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.course-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.course-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.course-img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  color: #fff;
}
.course-body { padding: 20px; }
.course-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.tag-paid { background: #fef3c7; color: #92400e; }
.tag-free { background: #d1fae5; color: #065f46; }
.course-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}
.course-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}
.course-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.course-meta span { display: flex; align-items: center; gap: 4px; }
.course-price {
  text-align: center;
  margin-top: 4px;
}
.price-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-dark);
  display: block;
  margin-bottom: 12px;
}
.price-free {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}
.course-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  transition: all 0.2s;
  text-align: center;
  line-height: 1.3;
}
.course-btn-primary {
  background: var(--primary);
  color: #fff;
}
.course-btn-primary:hover { background: var(--primary-dark); }
.course-btn-outline {
  background: none;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.course-btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== BANNER ===== */
.banner-section { padding: 40px 0; }
.banner-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.banner-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.banner-link img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.banner-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ===== ABOUT AUTHOR ===== */
.author-inner {
  display: flex;
  gap: 48px;
  align-items: stretch;
}
.author-photo-wrap {
  flex-shrink: 0;
  width: 360px;
}
.author-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}
.author-text { flex: 1; }
.author-text h2 {
  font-family: 'Merriweather', serif;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
}
.author-role {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
}
.author-text p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}
.author-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.credential {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--accent-bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}
.credential-icon { font-size: 20px; }

/* ===== METHOD ===== */
.devices-inner {
  display: flex;
  gap: 48px;
  align-items: center;
}
.devices-text { flex: 1; }
.devices-text h2 {
  font-family: 'Merriweather', serif;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 16px;
}
.devices-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.devices-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.devices-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.devices-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
  font-size: 18px;
}
.devices-visual {
  flex-shrink: 0;
  width: 440px;
}
.devices-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  border: 2px dashed var(--border);
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}
.review-stars {
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.review-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
}
.review-name { font-size: 14px; font-weight: 700; }
.review-course { font-size: 12px; color: var(--text-muted); }

/* ===== BLOG on HOME ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: block;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
  text-decoration: none;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.blog-body { padding: 20px; }
.blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.blog-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.blog-read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ===== FINAL CTA ===== */
.final-cta {
  background: linear-gradient(165deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
  padding: 80px 0;
  text-align: center;
}
.final-cta h2 {
  font-family: 'Merriweather', serif;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 16px;
}
.final-cta p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { width: 320px; }
  .hero-stats { justify-content: center; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .author-inner { flex-direction: column; text-align: center; }
  .author-photo-wrap { width: 280px; }
  .author-credentials { grid-template-columns: 1fr; }
  .banner-placeholder { height: 200px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .devices-inner { flex-direction: column; text-align: center; }
  .devices-visual { width: 100%; max-width: 480px; }
  .devices-list { align-items: center; }
}

@media (max-width: 640px) {
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 17px; }
  .hero-visual { display: none; }
  .hero-stat-num { font-size: 22px; }
  .courses-grid { grid-template-columns: 1fr; }
  .banner-placeholder { height: 160px; font-size: 15px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .directions-pills { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .author-photo-wrap { width: 100%; max-width: 240px; margin: 0 auto; }
  .final-cta h2 { font-size: 26px; }
  .final-cta p { font-size: 15px; }
}
