/* ===== CSS Variables ===== */
:root {
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-text-light: #555;
  --color-primary: #2d5016;
  --color-primary-dark: #1e3a0f;
  --color-primary-light: #4a7c2e;
  --color-accent: #d4a017;
  --color-accent-light: #f0d060;
  --color-cta: #e8491d;
  --color-cta-dark: #c93d15;
  --color-tag-bg: #eef5e8;
  --color-border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --container: 1100px;
  --header-height: 68px;
  --font-heading: 'Prompt', sans-serif;
  --font-body: 'Sarabun', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; }

/* ===== Container ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-primary);
  height: var(--header-height);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
}
.logo:hover { color: var(--color-primary-dark); }
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: white;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
}
.main-nav { display: flex; gap: 0.3rem; }
.nav-link {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  background: var(--color-tag-bg);
  color: var(--color-primary);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
.hero-text {
  text-align: left;
  flex: 1;
  max-width: 600px;
}
.hero-image {
  flex-shrink: 0;
}
.hero-image img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hero .tagline {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 2rem;
}
.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
}
.btn-cta {
  background: var(--color-cta);
  color: white;
  border-color: var(--color-cta);
}
.btn-cta:hover {
  background: var(--color-cta-dark);
  border-color: var(--color-cta-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232,73,29,0.3);
}
.btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}
.btn-outline:hover {
  background: white;
  color: var(--color-primary);
}
.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
}
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
a.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
}
.service-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border-top: 4px solid var(--color-primary);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.service-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  transition: color 0.2s;
}
.service-card:hover .service-link {
  color: var(--color-cta);
}
.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}
.service-card p {
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===== Blog Grid ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.5rem;
}
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.category-btn {
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
}
.category-btn:hover,
.category-btn.active {
  background: var(--color-primary);
  color: #fff;
}
.blog-card-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.blog-card-category {
  background: var(--color-primary);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.blog-card-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.blog-card-title a { color: var(--color-text); }
.blog-card-title a:hover { color: var(--color-primary); }
.blog-card-excerpt {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.read-more {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}
.read-more:hover { color: var(--color-cta); }

/* ===== Video Grid ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.video-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-card-body { padding: 1.25rem; }
.video-card-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.video-card-desc {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-text {
  font-style: italic;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-top: 1rem;
}
.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}
.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Single Post/Page ===== */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.page-header .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}
.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.page-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-tag-bg);
  padding-bottom: 0.5rem;
}
.page-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.page-content p {
  margin-bottom: 1.25rem;
  line-height: 1.85;
}
.page-content ul, .page-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.page-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.page-content blockquote {
  border-left: 4px solid var(--color-primary);
  background: var(--color-tag-bg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-light);
}
.page-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* ===== Blog Single ===== */
.blog-header {
  text-align: center;
  padding: 3.5rem 0 2rem;
}
.blog-header .meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.blog-header h1 {
  font-size: 2.2rem;
  max-width: 700px;
  margin: 0 auto 1rem;
}
.blog-featured-image {
  max-width: 800px;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.blog-featured-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.tag {
  background: var(--color-tag-bg);
  color: var(--color-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 500;
  transition: all 0.2s;
}
.tag:hover {
  background: var(--color-primary);
  color: white;
}

/* ===== Services Page ===== */
.service-detail {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.service-detail h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.service-detail .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-cta);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}
.service-features {
  list-style: none;
  padding: 0;
}
.service-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.service-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-info-card h3 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--color-tag-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.contact-item-text p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ===== Products Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.product-image {
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  padding: 1rem;
}
.product-image img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
}
.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.product-title a { color: var(--color-text); }
.product-title a:hover { color: var(--color-primary); }
.section-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-primary);
}
.product-original-author {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.25rem;
  font-style: italic;
}
.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-cta);
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
}
.product-page-title {
  font-size: 2.5rem;
  font-weight: 800;
  max-width: 700px;
  margin: 0 auto 1rem;
}
.product-price-large {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-cta);
  font-family: var(--font-heading);
  margin-top: 0.75rem;
}
.product-excerpt {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}
.product-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.product-actions .btn {
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
}
.btn-shopee {
  background: #ee4d2d;
  color: white;
  border-color: #ee4d2d;
}
.btn-shopee:hover {
  background: #d73211;
  border-color: #d73211;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(238,77,45,0.3);
}
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}
.product-hero-image {
  max-width: 600px;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f5f5f5;
  padding: 1rem;
}
.product-hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.product-buy-section {
  text-align: center;
  margin: 2rem 0;
}

/* ===== Shopee Stores Grid ===== */
.shopee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.shopee-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border-top: 4px solid #ee4d2d;
}
.shopee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.shopee-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.shopee-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.shopee-card p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ===== Lead Magnet Banner ===== */
.lead-magnet-banner {
  background: linear-gradient(135deg, #06c755 0%, #04a648 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius);
}
.lead-magnet-content h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}
.lead-magnet-content p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 0.5rem;
}
.lead-magnet-sub {
  font-size: 1rem !important;
  opacity: 0.85 !important;
  margin-bottom: 1.5rem !important;
}

/* ===== Channels Hub Grid ===== */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}
.channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  transition: all 0.3s;
  text-decoration: none;
  color: var(--color-text);
}
.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.channel-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}
.channel-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.channel-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.channel-line .channel-icon { background: #06c755; }
.channel-facebook .channel-icon { background: #1877f2; }
.channel-youtube .channel-icon { background: #ff0000; }
.channel-shopee .channel-icon { background: #ee4d2d; }

@media (max-width: 768px) {
  .shopee-grid { grid-template-columns: 1fr; }
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-magnet-content h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Courses Section ===== */
.course-list-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.course-item {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
}
.course-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}
.course-item-image {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-item-placeholder {
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
  line-height: 1.3;
}
.course-item-title {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}
.course-item-desc {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.course-item-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.course-meta-tag {
  background: var(--color-tag-bg);
  color: var(--color-primary);
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 500;
}
.course-item-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.course-price-original {
  text-decoration: line-through;
  color: var(--color-text-light);
  font-size: 0.95rem;
}
.course-price-current {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-cta);
}
.course-price-save {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
}
.course-btn {
  font-size: 0.85rem;
  padding: 0.6rem 1.5rem;
}

/* Course Sidebar */
.course-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}
.course-sidebar-box {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--color-primary);
}
.course-sidebar-box h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.course-sidebar-list {
  list-style: none;
  padding: 0;
}
.course-sidebar-list li {
  border-bottom: 1px solid var(--color-border);
}
.course-sidebar-list li:last-child { border-bottom: none; }
.course-sidebar-list a {
  display: block;
  padding: 0.6rem 0;
  color: var(--color-primary);
  font-size: 0.92rem;
  transition: color 0.2s;
}
.course-sidebar-list a:hover { color: var(--color-cta); }
.course-sidebar-features {
  list-style: none;
  padding: 0;
}
.course-sidebar-features li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.88rem;
  color: var(--color-text-light);
}
.course-sidebar-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.course-sidebar-cta {
  text-align: center;
  border-top-color: var(--color-accent);
}
.course-sidebar-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

/* Course Info Box (Single) */
.course-info-box {
  background: var(--color-tag-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-primary);
}
.course-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
}
.course-info-row:last-child { border-bottom: none; }
.course-info-label {
  font-weight: 600;
  color: var(--color-primary);
}

/* Course Responsive */
@media (max-width: 960px) {
  .course-list-layout { grid-template-columns: 1fr; }
  .course-sidebar { position: static; }
}
@media (max-width: 600px) {
  .course-item { flex-direction: column; gap: 1rem; }
  .course-item-image { width: 100%; height: 160px; }
}

/* ===== Ebook Landing Page ===== */
.eb-hero {
  background: var(--color-surface);
  padding: 3rem 0 4rem;
}
.eb-hero-layout {
  display: grid;
  grid-template-columns: 1fr auto 280px;
  gap: 2.5rem;
  align-items: start;
}
.eb-title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.eb-subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.eb-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.eb-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.eb-benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--color-tag-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eb-bonus {
  margin-top: 1.5rem;
  color: var(--color-cta);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Book Cover 3D */
.eb-book-cover {
  display: flex;
  align-items: center;
  justify-content: center;
}
.eb-book-3d {
  perspective: 600px;
}
.eb-book-front {
  width: 220px;
  height: 310px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 4px 12px 12px 4px;
  box-shadow: 8px 8px 30px rgba(0,0,0,0.25), -2px 0 8px rgba(0,0,0,0.1);
  transform: rotateY(-15deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.eb-book-front::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, rgba(0,0,0,0.15), transparent);
}
.eb-book-inner {
  text-align: center;
  color: white;
  padding: 2rem 1.5rem;
}
.eb-book-label {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.eb-book-inner h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: white;
  border: none;
  padding: 0;
}
.eb-book-inner h3 {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 1rem;
}
.eb-book-divider {
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 1rem;
}
.eb-book-inner p {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* CTA Card */
.eb-cta-card {
  background: white;
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.eb-cta-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.eb-cta-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.eb-cta-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
  text-align: left;
  line-height: 1.3;
}
.eb-download-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}
.eb-line-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
}
.eb-download-count {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.eb-count-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
}
.eb-count-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* About Coach Section */
.eb-about {
  background: var(--color-text);
  color: #ccc;
  padding: 4rem 0;
}
.eb-about-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
  align-items: center;
}
.eb-about-image img {
  width: 100%;
  max-width: 350px;
  border-radius: var(--radius);
  object-fit: cover;
}
.eb-about-text h2 {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  border: none;
  padding: 0;
}
.eb-about-text p {
  line-height: 1.85;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.eb-about-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.eb-about-sig {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-top: 1.5rem !important;
}

/* Contents Grid */
.eb-contents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.eb-content-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.eb-content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.eb-content-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.eb-content-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.eb-content-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Ebook Landing Responsive */
@media (max-width: 960px) {
  .eb-hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .eb-benefit-item { justify-content: center; }
  .eb-book-front { transform: none; }
  .eb-cta-card { max-width: 320px; margin: 0 auto; }
  .eb-cta-profile { justify-content: center; }
  .eb-about-layout { grid-template-columns: 1fr; text-align: center; }
  .eb-about-image img { max-width: 250px; margin: 0 auto; border-radius: 50%; }
  .eb-about-cta { justify-content: center; }
  .eb-about-text h2 { font-size: 1.5rem; }
}

/* ===== Ad Slot ===== */
.ad-slot { margin: 2rem 0; text-align: center; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-text);
  color: #ccc;
  padding: 3rem 0 0;
  margin-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
}
.footer-brand .logo-icon {
  margin-bottom: 1rem;
}
.footer-brand h3 {
  color: white;
  margin-bottom: 0.5rem;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}
.site-footer h4 {
  color: white;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}
.footer-links a {
  display: block;
  color: #ccc;
  padding: 0.3rem 0;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--color-accent); }
.footer-contact p, .footer-contact a {
  display: block;
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.footer-contact a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid #333;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-layout { flex-direction: column-reverse; gap: 1.5rem; }
  .hero-text { text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-image img { width: 180px; height: 180px; }
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1.1rem; }
  .page-header h1 { font-size: 1.75rem; }
  .section-title { font-size: 1.5rem; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 2px solid var(--color-primary);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .blog-header h1 { font-size: 1.6rem; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-qty { margin-left: auto; }
}

/* ===== Cart Icon (Header) ===== */
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
  border-radius: 8px;
  transition: all 0.2s;
  margin-left: 0.5rem;
}
.cart-icon:hover {
  background: var(--color-tag-bg);
  color: var(--color-primary);
}
.cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--color-cta);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-heading);
  min-width: 18px;
  height: 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ===== Add to Cart Button ===== */
.btn-cart {
  background: var(--color-accent);
  color: var(--color-text);
  border-color: var(--color-accent);
  font-weight: 700;
}
.btn-cart:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212,160,23,0.3);
}
.btn-cart.added {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* ===== Cart Page ===== */
.cart-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-light);
}
.cart-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.4;
}
.cart-empty p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}
.cart-item-price {
  color: var(--color-cta);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-item-qty button {
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: all 0.2s;
  font-family: var(--font-heading);
}
.cart-item-qty button:hover {
  background: var(--color-tag-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.cart-item-qty span {
  font-family: var(--font-heading);
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.2rem;
  transition: color 0.2s;
  line-height: 1;
}
.cart-item-remove:hover {
  color: var(--color-cta);
}
.cart-summary {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-primary);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-family: var(--font-heading);
}
.cart-summary-row.total {
  font-size: 1.3rem;
  font-weight: 700;
  border-top: 2px solid var(--color-border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}
.cart-summary-row.total .cart-total-price {
  color: var(--color-cta);
}
.cart-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.cart-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 180px;
}
.btn-line {
  background: #06c755;
  color: white;
  border-color: #06c755;
}
.btn-line:hover {
  background: #05b04c;
  border-color: #05b04c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6,199,85,0.3);
}
.btn-clear {
  background: transparent;
  color: var(--color-text-light);
  border-color: var(--color-border);
}
.btn-clear:hover {
  background: var(--color-bg);
  border-color: var(--color-text-light);
  color: var(--color-text);
}

@media (max-width: 480px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
  .services-grid { grid-template-columns: 1fr; }
}
