/* Home page (modern redesign) styles.
   Scoped under .home-modern to avoid affecting other pages. */

.home-modern {
  --accent: #87653b; /* light */
  --accent-strong: #3a2c14; /* dark */
  --bg-soft: rgba(135, 101, 59, 0.08);
  --text-main: #1f1a14;
  --text-muted: #5f5649;
  --surface: #ffffff;
  --surface-alt: #fbf8f3;
  color: var(--text-main);
  background: linear-gradient(180deg, #fffdf9 0%, #f8f4ee 100%);
}

@media (prefers-color-scheme: dark) {
  .home-modern {
    --accent: #3a2c14;
    --accent-strong: #87653b;
    --bg-soft: rgba(58, 44, 20, 0.15);
  }
}

.home-modern a {
  text-decoration: none;
}

.hm-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(135, 101, 59, 0.14), transparent 35%),
    radial-gradient(circle at right center, rgba(58, 44, 20, 0.10), transparent 28%),
    linear-gradient(135deg, #fffdfa 0%, #f6efe4 52%, #f2e7d7 100%);
  border-bottom: 1px solid rgba(135, 101, 59, 0.12);
}

.hm-hero::before,
.hm-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hm-hero::before {
  width: 340px;
  height: 340px;
  right: -120px;
  top: -120px;
  background: rgba(135, 101, 59, 0.08);
}

.hm-hero::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -110px;
  background: rgba(58, 44, 20, 0.06);
}

.hm-hero-inner {
  position: relative;
  padding: 4.5rem 0 2.5rem;
}

.hm-hero-kicker {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  border: 1px solid rgba(135, 101, 59, 0.22);
  background: rgba(255, 255, 255, 0.78);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--accent-strong);
}

.hm-hero-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  margin-top: 1rem;
  color: var(--text-main);
}

.hm-hero-lead {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  font-weight: 600;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 700;
  transition: transform 0.12s ease, background 0.12s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.hm-btn:active {
  transform: translateY(1px);
}

.hm-btn-primary {
  background: var(--accent);
  color: #fff;
}

.hm-btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
}

.hm-btn-ghost {
  background: transparent;
  color: var(--accent-strong);
  border-color: rgba(135, 101, 59, 0.26);
}

.hm-btn-ghost:hover {
  background: rgba(135, 101, 59, 0.08);
  color: var(--accent-strong);
  border-color: rgba(135, 101, 59, 0.34);
}

.hm-section {
  padding: 4rem 0;
}

.hm-section-title small {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hm-section-title h2 {
  color: var(--text-main);
}

.hm-card {
  background: var(--surface);
  border: 1px solid rgba(135, 101, 59, 0.18);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
}

.hm-card-shadow {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.hm-statbar {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.hm-stat {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(135, 101, 59, 0.12);
  padding: 1.1rem 1rem;
}

.hm-stat h3 {
  font-weight: 900;
  font-size: 1.5rem;
  margin: 0;
}

.hm-stat p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-weight: 700;
}

.hm-course-media {
  position: relative;
  background: #f5eee3;
  min-height: 150px;
  overflow: hidden;
}

.hm-course-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.hm-course-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
}

.hm-course-body {
  padding: 1.05rem 1.05rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hm-course-teacher {
  font-weight: 700;
  color: var(--text-muted);
}

.hm-course-title {
  font-weight: 900;
  font-size: 1.12rem;
  margin: 0;
  line-height: 1.25;
}

.hm-course-title a {
  color: #141414;
}

.hm-course-title a:hover {
  color: var(--accent);
}

.hm-course-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--text-muted);
  font-weight: 700;
}

.hm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(135, 101, 59, 0.10);
  color: var(--accent-strong);
}

.hm-course-cta {
  margin-top: auto;
}

.hm-bullets {
  color: var(--text-muted);
  font-weight: 700;
}

.hm-bullets li {
  margin-bottom: 0.6rem;
}

.hm-grid-card {
  padding: 1.4rem;
}

.hm-grid-card h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-main);
}

.hm-grid-card p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.hm-grid-accent {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(135, 101, 59, 0.12);
  color: var(--accent-strong);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.hm-quote-card {
  background: linear-gradient(135deg, var(--accent-strong) 0%, #4b3919 100%);
  color: #fff;
}

.hm-quote-card p,
.hm-quote-card li,
.hm-quote-card h3,
.hm-quote-card h2,
.hm-quote-card small {
  color: #fff !important;
}

.hm-outline-card {
  background: var(--surface-alt);
}

.hm-footer-cta {
  padding: 2rem 0 3rem;
}

.hm-footer-box {
  background: var(--surface-alt);
  border: 1px solid rgba(135, 101, 59, 0.18);
  border-radius: 18px;
  padding: 1.5rem;
}

@media (max-width: 991px) {
  .hm-hero-inner {
    padding: 3.5rem 0 2rem;
  }

  .hm-statbar {
    grid-template-columns: 1fr;
  }
}

