/*
Theme Name: Phamnhung
Theme URI: https://phamnhung.com
Author: Nguyen Khai My
Description: Trang chủ cho Dược sĩ / Nhà đào tạo Kinh doanh Spa Phạm Nhung
Version: 1.0
Text Domain: phamnhung
*/

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

:root {
  --red:    #3AACB8;
  --gold:   #3AACB8;
  --dark:   #0d0d0d;
  --dark2:  #111111;
  --white:  #ffffff;
  --gray:   #cccccc;
  --font:   'Montserrat', 'Be Vietnam Pro', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: #fff;
  color: #222;
  overflow-x: hidden;
}

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

/* ===================== HEADER / NAV ===================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img { height: 48px; width: auto; }

/* Nav wrapper */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

/* Each nav item (link or dropdown trigger) */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #111;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s;
}
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-item:hover,
.nav-item--active { color: #111; }
.nav-item:hover::after,
.nav-item--active::after { transform: scaleX(1); }

/* Dropdown trigger label */
.nav-item-label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-arrow {
  transition: transform .25s;
  margin-top: 1px;
}
.nav-item--has-mega:hover .nav-arrow { transform: rotate(180deg); }

/* ── MEGA MENU ── */
.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e5e5e5;
  border-top: 3px solid var(--red);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  min-width: 520px;
  z-index: 999;
  border-radius: 0 0 6px 6px;
  animation: megaFadeIn .18s ease;
}

@keyframes megaFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-item--has-mega:hover .mega-menu { display: block; }

.mega-menu-inner {
  display: flex;
  gap: 0;
  padding: 8px 0;
}

.mega-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.mega-divider {
  width: 1px;
  background: #eee;
  margin: 8px 0;
}

/* Mega menu links */
.mega-item {
  display: block;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.mega-item:hover { color: var(--red); background: #fafafa; }

/* 2-column auto grid for mega menu children */
.mega-col-auto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  width: 100%;
}
/* Divider between the two columns */
.mega-col-auto li:nth-child(odd)  { border-right: 1px solid #eee; }

/* First item always gets highlight */
.mega-col-auto li:first-child .mega-item { background: #3AACB8; color: #fff; font-weight: 700; }
.mega-col-auto li:first-child .mega-item:hover { background: #2e96a1; }

/* Highlighted/active item (gold background) */
.mega-item--highlight {
  background: #3AACB8;
  color: #fff !important;
  font-weight: 700;
  margin: 0;
}
.mega-item--highlight:hover { background: #2e96a1; color: #fff !important; }

/* Search button */
.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #111;
  display: flex;
  align-items: center;
  padding: 0 8px 0 16px;
  height: 100%;
  transition: color .2s;
}
.nav-search-btn:hover { color: var(--red); }

/* Search overlay */
#search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
#search-overlay.open { display: flex; }

.search-overlay-form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 660px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 20px;
}
.search-overlay-form input[type="search"] {
  flex: 1;
  padding: 16px 20px;
  font-size: 18px;
  border: none;
  outline: none;
  color: #111;
}
.search-overlay-form button {
  padding: 0 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
}
.search-overlay-form button:hover { color: var(--red); }
#search-close {
  position: absolute;
  top: 24px; right: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s;
}
#search-close:hover { opacity: 1; }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: .3s;
}

/* Mobile nav drawer */
#mobile-nav {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 998;
  overflow-y: auto;
}
#mobile-nav.open { display: block; }

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}
.mobile-nav-inner > a,
.mobile-dropdown summary {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: .3px;
  border-bottom: 1px solid #f0f0f0;
  display: block;
  text-decoration: none;
}
.mobile-nav-inner > a:hover,
.mobile-dropdown summary:hover { color: var(--red); }

.mobile-dropdown { border-bottom: 1px solid #f0f0f0; }
.mobile-dropdown summary { cursor: pointer; list-style: none; }
.mobile-dropdown summary::-webkit-details-marker { display: none; }
.mobile-dropdown a {
  padding: 10px 24px 10px 40px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  display: block;
  border-bottom: 1px solid #f8f8f8;
  text-decoration: none;
}
.mobile-dropdown a:hover { color: var(--red); }

/* Mobile nav – wp_nav_menu() output */
#mobile-nav .mobile-nav-inner { padding: 0; }
#mobile-nav .mobile-nav-list  { list-style: none; padding: 0; margin: 0; }

#mobile-nav .mobile-nav-list > li > a {
  display: block;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: .3px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
}
#mobile-nav .mobile-nav-list > li > a:hover { color: var(--red); }

/* Sub-menu (dropdown) in mobile */
#mobile-nav .mobile-nav-list .sub-menu {
  list-style: none;
  padding: 0;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
}
#mobile-nav .mobile-nav-list .sub-menu a {
  display: block;
  padding: 10px 24px 10px 40px;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
}
#mobile-nav .mobile-nav-list .sub-menu a:hover { color: var(--red); }

/* Hamburger → X animation */
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO SECTION ===================== */
#hero {
  background: var(--dark);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 48px 60px 40px;
}

/* Tiêu đề duy nhất – căn giữa full width */
.hero-headline {
  width: 100%;
  max-width: 1400px;
  text-align: center;
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.25;
  margin-bottom: 36px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1400px;
  width: 100%;
}

/* Left col */
.hero-left { display: flex; flex-direction: column; gap: 22px; }

.hero-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #ddd;
}
.hero-desc strong { color: #fff; }

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-item {
  border: 2px solid #fff;
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}

.stat-item .stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 11px;
  color: #ccc;
  margin-top: 4px;
  line-height: 1.3;
}

.hero-logo-bottom { width: 140px; }

/* Center col – photo */
.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-photo img {
  width: 340px;
  max-width: 100%;
  object-fit: cover;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,.6));
}

/* Right col */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-tagline {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-features { display: flex; flex-direction: column; gap: 14px; }

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #ddd;
  padding-bottom: 14px;
  border-bottom: 1px solid #333;
}
.hero-feature-item:last-child { border-bottom: none; }

.hero-feature-item::before {
  content: '›';
  color: var(--red);
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  flex-shrink: 0;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
  margin-top: 10px;
  align-self: flex-start;
}
.btn-gold:hover { opacity: .85; }

/* ===================== COURSES SECTION ===================== */
#featured-courses {
  background: var(--dark2);
  padding: 60px 40px;
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 32px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  transition: color .2s;
}
.section-link:hover { color: var(--red); }

/* Horizontal scroll track */
.courses-track-wrapper {
  position: relative;
}

.courses-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) #222;
}
.courses-track::-webkit-scrollbar { height: 4px; }
.courses-track::-webkit-scrollbar-track { background: #222; }
.courses-track::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

.course-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/16;
  cursor: pointer;
  transition: transform .3s;
}
.course-card:hover { transform: scale(1.03); }

.course-card video,
.course-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 35%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 14px;
}

.course-card-logo {
  width: 48px;
  margin-bottom: 8px;
}

.course-card-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ===================== VIDEO CTA SECTION ===================== */
#video-cta {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#video-cta video.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#video-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 1;
}

.video-cta-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 40px 20px;
}

.video-cta-content h2 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.video-cta-content p {
  font-size: 15px;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 28px;
  color: #e0e0e0;
}

.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-red:hover { opacity: .85; }

/* ===================== MINDSET SECTION ===================== */
#mindset {
  background: #fff;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.mindset-left {}

.mindset-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.mindset-subtitle {
  font-size: 13px;
  color: #777;
  margin-bottom: 24px;
}

.mindset-items { display: flex; flex-direction: column; gap: 0; }

.mindset-item {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: color .2s;
}
.mindset-item:first-child { padding-top: 0; }
.mindset-item:hover { color: var(--red); }

.mindset-right img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
}

/* ===================== FOOTER ===================== */
#site-footer {
  background: #3AACB8;
  color: rgba(255,255,255,.9);
  font-size: 13px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 40px 40px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-col p {
  font-size: 13px;
  color: rgba(255,255,255,.88);
  line-height: 1.8;
  margin-bottom: 4px;
}
.footer-col p strong { color: #fff; font-weight: 700; }
.footer-col a { color: rgba(255,255,255,.88); transition: opacity .2s; }
.footer-col a:hover { opacity: .7; text-decoration: underline; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.footer-links a:hover { opacity: .7; }

/* Social icons row */
.footer-social-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity .2s;
}
.footer-social-icon:hover { opacity: .8; }
.footer-social-x  { background: #000; }
.footer-social-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.footer-social-yt { background: #ff0000; }
.footer-social-fb { background: #1877f2; }

/* FB widget placeholder */
.footer-fb-widget {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.fb-page-mock {
  padding: 12px 16px;
  font-size: 12px;
  color: #555;
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Copyright bar */
.footer-copyright {
  border-top: 1px solid rgba(255,255,255,.25);
  text-align: center;
  padding: 16px 20px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}

/* ===================== ARCHIVE PAGE ===================== */

/* Breadcrumb */
.arc-breadcrumb {
  padding: 10px 30px;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
}
.arc-breadcrumb a { color: var(--red); font-weight: 500; }
.arc-breadcrumb a:hover { text-decoration: underline; }
.arc-bc-sep { color: #bbb; }
.arc-bc-current { color: #333; }

/* Archive title */
.arc-title-wrap {
  text-align: center;
  padding: 20px 20px 14px;
  background: #fff;
}
.arc-title {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--red);
}

/* ── Outer wrapper: dotted bg ── */
.arc-layout-outer {
  background-color: #f5f5f5;
  background-image: radial-gradient(circle, #d8d8d8 1px, transparent 1px);
  background-size: 22px 22px;
  padding: 24px 30px 50px;
}

/* ── Inner: sidebar 260px + main ── */
.arc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── SIDEBAR ── */
.arc-sidebar {
  background: #fff;
  padding: 0 0 16px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  align-self: start;
}

/* Featured video card */
.arc-feat {
  position: relative;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  margin-bottom: 0;
}
.arc-feat-link { display: block; position: relative; }
.arc-feat-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.arc-feat-placeholder {
  width: 100%;
  height: 180px;
  background: #222;
}
.arc-feat-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.3);
  transition: background .2s;
}
.arc-feat-link:hover .arc-feat-play { background: rgba(0,0,0,.45); }

.arc-feat-label {
  font-size: 11px;
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 14px 0;
  line-height: 1.4;
}

.arc-btn-info {
  display: block;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  padding: 11px 14px;
  margin: 10px 14px 0;
  border-radius: 3px;
  letter-spacing: .3px;
  transition: opacity .2s;
}
.arc-btn-info:hover { opacity: .85; }

.arc-sidebar-links {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}
.arc-sidebar-links li {
  border-bottom: 1px solid #f0f0f0;
}
.arc-sidebar-links a {
  display: block;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  transition: color .2s;
}
.arc-sidebar-links a:hover { color: var(--red); }

/* ── MAIN GRID ── */
.arc-main { min-width: 0; }

.arc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.arc-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.arc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.13);
}

.arc-card-img-wrap { display: block; overflow: hidden; flex-shrink: 0; }
.arc-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.arc-card:hover .arc-card-img { transform: scale(1.05); }
.arc-card-img-placeholder { width: 100%; height: 130px; background: #e0e0e0; }

.arc-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.arc-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  /* 3-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.arc-card-title a { color: inherit; }
.arc-card-title a:hover { color: var(--red); }

.arc-card-date { font-size: 11px; color: #999; }

.arc-card-excerpt {
  font-size: 12px;
  color: #666;
  line-height: 1.55;
  flex: 1;
  /* 3-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.arc-card-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 3px;
  margin-top: 6px;
  align-self: flex-start;
  transition: opacity .2s;
  white-space: nowrap;
}
.arc-card-btn:hover { opacity: .85; }

/* Load more */
.arc-loadmore { text-align: center; margin-top: 4px; padding-bottom: 10px; }
.arc-btn-more {
  display: inline-block;
  background: #8b1a1a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 44px;
  border-radius: 30px;
  transition: opacity .2s;
}
.arc-btn-more:hover { opacity: .85; }

.arc-empty {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 15px;
  grid-column: 1 / -1;
}

/* ===================== SINGLE POST ===================== */

/* Hero: meta only (category tag + title + date + share) */
.sp-hero {
  border-bottom: 1px solid #eee;
  padding: 48px 0 36px;
  background: #fafafa;
}
.sp-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Alias kept for back-compat */
.sp-hero-inner--meta-only { /* no extra styles needed – flex column is the default now */ }

.sp-cat-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.sp-cat-tag:hover { text-decoration: underline; }

.sp-title {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 800;
  color: #111;
  line-height: 1.25;
}

.sp-date { font-size: 13px; color: #777; }

/* Social share circles */
.sp-social-share { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity .2s;
}
.sp-share-btn:hover { opacity: .8; }
.sp-share-x  { background: #000; }
.sp-share-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.sp-share-yt { background: #ff0000; }
.sp-share-fb { background: #1877f2; }

/* Article body + TOC sidebar */
.sp-body-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  max-width: 1100px;
  margin: 36px auto 0;
  padding: 0 40px 60px;
  align-items: start;
}

/* Article content */
.sp-content {
  font-size: 16px;
  line-height: 1.9;
  color: #222;
}
.sp-content h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: #111;
  margin: 36px 0 12px;
}
.sp-content h3 {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  color: #111;
  margin: 24px 0 10px;
}
.sp-content p { margin-bottom: 18px; }
.sp-content img { max-width: 100%; border-radius: 6px; margin: 12px 0; }
.sp-content figure { margin: 24px 0; }
.sp-content figcaption {
  text-align: center;
  font-size: 13px;
  color: #888;
  font-style: italic;
  margin-top: 8px;
}
.sp-content a { color: var(--red); }
.sp-content a:hover { text-decoration: underline; }
.sp-content ul, .sp-content ol { padding-left: 24px; margin-bottom: 18px; }
.sp-content li { margin-bottom: 6px; }
.sp-content .wp-block-embed,
.sp-content .wp-block-video,
.sp-content iframe { max-width: 100%; border-radius: 8px; margin: 20px 0; }
.sp-content blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 20px;
  background: #fafafa;
  margin: 24px 0;
  font-style: italic;
  color: #555;
}

/* Tags */
.sp-tags {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sp-tags-label { font-weight: 700; color: #333; }
.sp-tag-link { color: var(--red); font-weight: 600; }
.sp-tag-link:hover { text-decoration: underline; }
.sp-tag-sep { color: #bbb; }

/* TOC Sidebar */
.sp-toc-sidebar { position: sticky; top: 80px; }
.sp-toc-box {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.sp-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  user-select: none;
}
.sp-toc-arrow { transition: transform .3s; }
.sp-toc-box.collapsed .sp-toc-arrow { transform: rotate(180deg); }
.sp-toc-body {
  padding: 12px 16px;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red) #eee;
}
.sp-toc-body::-webkit-scrollbar { width: 4px; }
.sp-toc-body::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }
.sp-toc-box.collapsed .sp-toc-body { display: none; }

/* TOC nav links (generated by JS) */
#sp-toc-nav ol { padding-left: 0; counter-reset: toc-h2; }
#sp-toc-nav > ol > li { counter-increment: toc-h2; margin-bottom: 6px; }
#sp-toc-nav a {
  font-size: 13px;
  color: var(--red);
  line-height: 1.5;
  display: block;
}
#sp-toc-nav a:hover { text-decoration: underline; }
#sp-toc-nav ol ol { padding-left: 16px; counter-reset: toc-h3; }
#sp-toc-nav ol ol li { counter-increment: toc-h3; }
#sp-toc-nav ol ol a { color: var(--red); font-size: 12px; }

/* Related posts */
.sp-related {
  background: #f2f2f2;
  padding: 50px 40px 60px;
}
.sp-related-inner { max-width: 1100px; margin: 0 auto; }
.sp-related-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 28px;
}
.sp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sp-related-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.sp-related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.sp-related-img-link { display: block; overflow: hidden; }
.sp-related-img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .3s; }
.sp-related-card:hover .sp-related-img { transform: scale(1.04); }
.sp-related-img-placeholder { width: 100%; height: 180px; background: #ddd; }
.sp-related-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sp-related-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
  line-height: 1.4;
}
.sp-related-card-title a { color: inherit; }
.sp-related-card-title a:hover { color: var(--red); }
.sp-related-excerpt { font-size: 13px; color: #555; line-height: 1.6; flex: 1; }
.sp-related-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 4px;
  align-self: flex-start;
  margin-top: auto;
  transition: opacity .2s;
}
.sp-related-btn:hover { opacity: .85; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
  .arc-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 1024px) {
  /* Homepage */
  #hero { padding: 50px 30px 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { width: 260px; }
  .hero-left, .hero-right { text-align: center; }
  .hero-stats { justify-content: center; }
  .btn-gold { align-self: center; }
  #mindset { grid-template-columns: 1fr; padding: 50px 30px; }

  /* Archive */
  .arc-layout { grid-template-columns: 200px 1fr; gap: 20px; }
  .arc-layout-outer { padding: 20px 16px 40px; }
  .arc-grid { grid-template-columns: repeat(3, 1fr); }

  /* Single post */
  .sp-hero-inner { padding: 0 24px; }
  .sp-body-wrap { grid-template-columns: 1fr; }
  .sp-toc-sidebar { position: static; }
  .sp-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Header */
  #site-header { padding: 0 20px; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }

  /* Homepage */
  #featured-courses { padding: 40px 20px; }
  .course-card { flex: 0 0 180px; }

  /* Archive */
  .arc-layout { grid-template-columns: 1fr; }
  .arc-layout-outer { padding: 16px 16px 40px; }
  .arc-sidebar { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; border-radius: 4px; }
  .arc-grid { grid-template-columns: repeat(2, 1fr); }

  /* Single */
  .sp-hero-inner { padding: 0 20px; }
  .sp-body-wrap { padding: 0 20px 40px; }
  .sp-related { padding: 36px 20px 40px; }
  .sp-related-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 36px 24px; gap: 24px; }
}

@media (max-width: 480px) {
  .arc-grid { grid-template-columns: 1fr; }
  .sp-related-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
