/* TerraformGuru — Custom Styles */
/* Brand colors matching StackSimplify design system */
/* Navy #0F2B46 | Blue #1B4F72 | Orange #FF6B35 | Light #E8F4FD */

/* ============================================================
   LIGHT MODE — StackSimplify Brand Colors
   ============================================================ */
:root,
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #0F2B46;          /* Navy — header, nav */
  --md-primary-fg-color--light: #1B4F72;   /* Blue */
  --md-primary-fg-color--dark: #0A1929;    /* Dark Navy */
  --md-primary-bg-color: #ffffff;           /* White */
  --md-primary-bg-color--light: #E8F4FD;   /* Light Blue */
  --md-accent-fg-color: #FF6B35;           /* Orange — links, CTAs */
  --md-accent-fg-color--transparent: #FF6B3520;
  --md-accent-bg-color: #FF6B35;
  --md-accent-bg-color--light: #FF6B3520;
}

/* ============================================================
   DARK MODE (Slate) — Navy tones with orange accent
   ============================================================ */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #0F2B46;          /* Keep navy header in dark mode too */
  --md-primary-fg-color--light: #1B4F72;
  --md-primary-fg-color--dark: #0A1929;
  --md-primary-bg-color: #0d1117;          /* GitHub-style dark bg */
  --md-primary-bg-color--light: #161b22;
  --md-default-bg-color: #0d1117;          /* Page background */
  --md-default-bg-color--light: #161b22;
  --md-accent-fg-color: #FF8C5A;           /* Slightly lighter orange for dark bg readability */
  --md-accent-fg-color--transparent: #FF8C5A20;
  --md-accent-bg-color: #FF6B35;
  --md-accent-bg-color--light: #FF6B3520;
  --md-typeset-a-color: #FF8C5A;           /* Links in dark mode */
}

/* Dark mode: header tabs text should be white */
[data-md-color-scheme="slate"] .md-header {
  background-color: #0F2B46;
}

[data-md-color-scheme="slate"] .md-tabs {
  background-color: #0A1929;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Dark mode: tab text must be readable */
[data-md-color-scheme="slate"] .md-tabs__link {
  color: rgba(255, 255, 255, 0.7);
}

[data-md-color-scheme="slate"] .md-tabs__link--active,
[data-md-color-scheme="slate"] .md-tabs__link:hover {
  color: #FF8C5A;
}

/* Dark mode: ensure logo and header text are visible */
[data-md-color-scheme="slate"] .md-header__button.md-logo img {
  filter: brightness(1.1);
}

[data-md-color-scheme="slate"] .md-header__topic .md-ellipsis {
  color: rgba(255, 255, 255, 0.95);
}

/* Dark mode: search bar — placeholder text and icon visible */
[data-md-color-scheme="slate"] .md-search__input {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-search__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

[data-md-color-scheme="slate"] .md-search__icon {
  color: rgba(255, 255, 255, 0.6);
}

/* Dark mode: light/dark toggle button visible */
[data-md-color-scheme="slate"] .md-header__button:not(.md-logo) {
  color: rgba(255, 255, 255, 0.8);
}

[data-md-color-scheme="slate"] .md-header__button:not(.md-logo):hover {
  color: #FF8C5A;
}

/* Dark mode: course cards */
[data-md-color-scheme="slate"] .course-card {
  border-color: #30363d;
  background: #161b22;
}

[data-md-color-scheme="slate"] .course-card:hover {
  border-color: #FF8C5A;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-md-color-scheme="slate"] .course-card h3 {
  color: #e6edf3;
}

/* Dark mode: CTA banner */
[data-md-color-scheme="slate"] .cta-banner {
  background: linear-gradient(135deg, #0F2B46, #1B4F72);
}

/* Dark mode: badges */
[data-md-color-scheme="slate"] .badge-aws { background: #FF990030; color: #FFB347; }
[data-md-color-scheme="slate"] .badge-azure { background: #0078D430; color: #4DA6FF; }
[data-md-color-scheme="slate"] .badge-gcp { background: #4285F430; color: #6EA8FC; }
[data-md-color-scheme="slate"] .badge-cert { background: #7B42BC30; color: #B07CE8; }
[data-md-color-scheme="slate"] .badge-realworld { background: #10B98130; color: #34D399; }
[data-md-color-scheme="slate"] .badge-eks { background: #326CE530; color: #5A8FEF; }

/* ============================================================
   HEADER — Logo size and alignment
   ============================================================ */
.md-header__button.md-logo img {
  height: 1.6rem;
  width: auto;
  border-radius: 4px;
}

/* Site title next to logo */
.md-header__topic .md-ellipsis {
  font-weight: 700;
}

/* ============================================================
   NAVIGATION TABS — Clean styling
   ============================================================ */

/* Gradient fade + arrow on right edge to hint more tabs exist */
.md-tabs__list {
  position: relative;
}

.md-tabs {
  position: relative;
}

.md-tabs::after {
  content: '›';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to right, transparent 0%, #0F2B46 70%);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

[data-md-color-scheme="slate"] .md-tabs::after {
  background: linear-gradient(to right, transparent 0%, #0A1929 70%);
}

.md-tabs__link {
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.md-tabs__link--active {
  font-weight: 700;
}

/* ============================================================
   HOMEPAGE — Hero, Stats, Course Cards, CTA
   ============================================================ */

/* Hero section */
.tx-hero {
  margin: 0 -0.8rem;
  padding: 2rem 0.8rem;
}

.tx-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--md-primary-fg-color);
}

[data-md-color-scheme="slate"] .tx-hero h1 {
  color: #e6edf3;
}

.tx-hero__content {
  max-width: 40rem;
}

/* Course category cards */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.course-card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.6rem;
  padding: 0;
  transition: all 0.3s ease;
  background: var(--md-default-bg-color);
  overflow: hidden;
}

.course-card:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}

.course-card h3 {
  margin-top: 0 !important;
  font-size: 1rem;
  color: var(--md-primary-fg-color);
}

.course-card .card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.course-card .card-meta {
  font-size: 0.78rem;
  color: var(--md-default-fg-color--light);
  margin-top: 0.5rem;
}

.course-card .card-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 0.3rem;
}

/* Card banner — gradient header strip with text overlay */
.card-banner {
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1rem;
  text-align: center;
}

/* SVG cross-hatch pattern overlay (matches stacksimplify) */
.card-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Banner icon — large white centered icon */
.card-banner .twemoji svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: white !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  position: relative;
  z-index: 1;
  margin-bottom: 0.3rem;
}

.card-banner p {
  margin: 0;
  line-height: 1;
  position: relative;
  z-index: 1;
}

/* Banner text overlay */
.banner-title {
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.banner-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  margin-top: 0.25rem;
  position: relative;
  z-index: 1;
}

/* Banner corner badge (FREE, HIGHEST RATED, etc.) */
.banner-corner-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 1rem;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Gradient variants */
.banner-terraform { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.banner-cert { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.banner-kubernetes { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.banner-aws { background: linear-gradient(135deg, #ea580c, #fb923c); }
.banner-azure { background: linear-gradient(135deg, #0078D4, #4DA6FF); }
.banner-gcp { background: linear-gradient(135deg, #4285F4, #7BAAF7); }
.banner-eks { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.banner-realworld { background: linear-gradient(135deg, #16a34a, #4ade80); }
.banner-devops { background: linear-gradient(135deg, #16a34a, #4ade80); }
.banner-certred { background: linear-gradient(135deg, #dc2626, #f87171); }
.banner-mlops { background: linear-gradient(135deg, #0A1929, #1B4F72); }

/* Category section headers */
.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 1rem;
  padding: 0;
}

.category-header:first-of-type {
  margin-top: 1rem;
}

.category-header h2,
.category-header .category-title {
  margin: 0 !important;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: none !important;
}

[data-md-color-scheme="slate"] .category-header h2,
[data-md-color-scheme="slate"] .category-header .category-title {
  color: #e6edf3;
}

/* Category colored dot — simple visual marker */
.category-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-purple { background: #7c3aed; }
.dot-blue { background: #2563eb; }
.dot-orange { background: #ea580c; }
.dot-green { background: #16a34a; }
.dot-red { background: #dc2626; }
.dot-navy { background: #1B4F72; }

.category-count {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  white-space: nowrap;
}

.count-purple { background: #f3e8ff; color: #7c3aed; }
.count-blue { background: #dbeafe; color: #2563eb; }
.count-orange { background: #fff7ed; color: #ea580c; }
.count-green { background: #dcfce7; color: #16a34a; }
.count-red { background: #fee2e2; color: #dc2626; }
.count-navy { background: #FF6B3520; color: #FF6B35; }

[data-md-color-scheme="slate"] .count-purple { background: #7c3aed30; color: #a78bfa; }
[data-md-color-scheme="slate"] .count-blue { background: #2563eb30; color: #60a5fa; }
[data-md-color-scheme="slate"] .count-orange { background: #ea580c30; color: #fb923c; }
[data-md-color-scheme="slate"] .count-green { background: #16a34a30; color: #4ade80; }
[data-md-color-scheme="slate"] .count-red { background: #dc262630; color: #f87171; }
[data-md-color-scheme="slate"] .count-navy { background: #FF6B3530; color: #FF8C5A; }

/* Inline stat badges on course cards */
.card-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.card-badges .cbadge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 0.25rem;
}

.cbadge-students { background: #dbeafe; color: #1d4ed8; }
.cbadge-rating { background: #fef9c3; color: #a16207; }
.cbadge-count { background: #f3f4f6; color: #4b5563; }
.cbadge-bestseller { background: #fff7ed; color: #c2410c; }
.cbadge-free { background: #dcfce7; color: #15803d; }
.cbadge-hot { background: #fee2e2; color: #b91c1c; }
.cbadge-highest { background: #dcfce7; color: #15803d; }

[data-md-color-scheme="slate"] .cbadge-students { background: #1d4ed820; color: #60a5fa; }
[data-md-color-scheme="slate"] .cbadge-rating { background: #a1620720; color: #fbbf24; }
[data-md-color-scheme="slate"] .cbadge-count { background: #4b556320; color: #9ca3af; }
[data-md-color-scheme="slate"] .cbadge-bestseller { background: #c2410c20; color: #fb923c; }
[data-md-color-scheme="slate"] .cbadge-free { background: #15803d20; color: #4ade80; }
[data-md-color-scheme="slate"] .cbadge-hot { background: #b91c1c20; color: #f87171; }
[data-md-color-scheme="slate"] .cbadge-highest { background: #15803d20; color: #4ade80; }

/* Course card as clickable link */
a.course-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.6rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--md-default-bg-color);
}

a.course-card-link:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
  text-decoration: none !important;
}

[data-md-color-scheme="slate"] a.course-card-link {
  border-color: #30363d;
  background: #161b22;
}

[data-md-color-scheme="slate"] a.course-card-link:hover {
  border-color: #FF8C5A;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

a.course-card-link .card-content {
  padding: 1rem 1.2rem 1.2rem;
}

a.course-card-link .card-content h3,
a.course-card-link .card-content .card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

[data-md-color-scheme="slate"] a.course-card-link .card-content h3,
[data-md-color-scheme="slate"] a.course-card-link .card-content .card-title {
  color: #e6edf3;
}

a.course-card-link:hover .card-content h3,
a.course-card-link:hover .card-content .card-title {
  color: var(--md-accent-fg-color);
}

a.course-card-link .card-desc {
  font-size: 0.75rem;
  color: var(--md-default-fg-color--light);
  margin: 0;
  line-height: 1.4;
}

/* Coming soon banner */
.coming-soon-banner {
  background: linear-gradient(135deg, #0A1929, #1B4F72);
  border-radius: 0.6rem;
  padding: 1.5rem;
  border: 1px solid rgba(27, 79, 114, 0.3);
  margin: 1rem 0;
}

.coming-soon-banner h4,
.coming-soon-banner .coming-soon-title {
  color: white !important;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.3rem !important;
}

.coming-soon-banner p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  margin: 0;
}

.coming-soon-banner .cs-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  margin-top: 0.8rem;
}

/* Card body — content below banner */
.card-body {
  padding: 1.2rem 1.5rem 1.5rem;
}

.card-body h3 {
  margin-top: 0 !important;
}

/* Card buttons — side by side */
.card-body .md-button {
  display: inline-block;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
}

/* Light mode: secondary button (Enroll on Udemy) — orange border, orange text */
.course-card .md-button:not(.md-button--primary) {
  color: #FF6B35;
  border-color: #FF6B35;
}

/* Light mode: secondary button hover — orange bg with WHITE text */
.course-card .md-button:not(.md-button--primary):hover {
  background: #FF6B35;
  color: white !important;
  border-color: #FF6B35;
}

/* Light mode: primary button (View Docs) hover — keep white text */
.course-card .md-button--primary:hover {
  color: white !important;
}

.badge-aws { background: #FF990020; color: #FF9900; }
.badge-azure { background: #0078D420; color: #0078D4; }
.badge-gcp { background: #4285F420; color: #4285F4; }
.badge-cert { background: #7B42BC20; color: #7B42BC; }
.badge-realworld { background: #10B98120; color: #059669; }
.badge-eks { background: #326CE520; color: #326CE5; }

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  background: #E8F4FD;
  border: 1px solid #c8dff0;
  border-radius: 0.6rem;
}

[data-md-color-scheme="slate"] .stats-bar {
  background: #161b22;
  border-color: #30363d;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--md-accent-fg-color);
  display: block;
}

.stat-item .stat-label {
  font-size: 0.75rem;
  color: var(--md-default-fg-color--light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, #0F2B46, #1B4F72);
  color: white;
  border-radius: 0.8rem;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-banner h3 {
  color: white !important;
  margin-top: 0 !important;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.cta-banner a {
  display: inline-block;
  background: var(--md-accent-fg-color);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.8rem;
  transition: opacity 0.2s;
}

.cta-banner a:hover {
  opacity: 0.9;
}

/* Brand footer link */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--md-accent-fg-color);
  font-weight: 600;
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: underline;
}

/* ============================================================
   CONTENT — Tables, code blocks, admonitions
   ============================================================ */

/* Better table styling */
.md-typeset table:not([class]) {
  font-size: 0.82rem;
}

.md-typeset table:not([class]) th {
  background: var(--md-primary-fg-color);
  color: white;
  font-weight: 600;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background: #1B4F72;
}

/* Light mode: table links — clearly visible as links */
.md-typeset table:not([class]) a {
  color: #1B4F72;
  text-decoration: underline;
  text-decoration-color: rgba(27, 79, 114, 0.3);
  text-underline-offset: 2px;
}

.md-typeset table:not([class]) a:hover {
  color: #FF6B35;
  text-decoration-color: #FF6B35;
}

/* Dark mode: table links in orange */
[data-md-color-scheme="slate"] .md-typeset table:not([class]) a {
  color: #FF8C5A;
  text-decoration-color: rgba(255, 140, 90, 0.3);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) a:hover {
  color: #FFa87a;
  text-decoration-color: #FFa87a;
}

/* Dark mode: "Start Learning" / "Coming Soon" buttons in course cards */
[data-md-color-scheme="slate"] .course-card .md-button {
  color: #FF8C5A;
  border-color: #FF8C5A;
}
[data-md-color-scheme="slate"] .course-card .md-button:hover {
  background: #FF8C5A;
  color: #0d1117;
  border-color: #FF8C5A;
}
[data-md-color-scheme="slate"] .course-card .md-button--primary {
  background: #FF8C5A;
  color: #0d1117;
  border-color: #FF8C5A;
}
[data-md-color-scheme="slate"] .course-card .md-button--primary:hover {
  background: #FFa87a;
  border-color: #FFa87a;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  text-align: center;
  padding: 1.5rem 2rem;
  margin: 1rem 0;
  background: #E8F4FD;
  border: 1px solid #c8dff0;
  border-radius: 0.6rem;
}

.newsletter-section p {
  font-size: 0.9rem;
  color: var(--md-default-fg-color--light);
  max-width: 500px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.newsletter-section iframe {
  display: block;
  margin: 0 auto;
}

[data-md-color-scheme="slate"] .newsletter-section {
  background: #161b22;
  border-color: #30363d;
}

/* Footer newsletter bar */
.footer-newsletter {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
  background: linear-gradient(135deg, #0F2B46, #1B4F72);
  border-radius: 0.8rem;
  margin: 2rem 0 0;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

.footer-newsletter .footer-nl-title {
  font-size: 1rem;
  margin: 0 0 0.3rem;
}

.footer-newsletter strong {
  color: #FF6B35;
}

/* Beehiiv embed wrapper */
.nl-embed-wrap {
  display: flex;
  justify-content: center;
}

/* Custom newsletter form (fallback) */
.nl-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.nl-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-right: none;
  border-radius: 0.4rem 0 0 0.4rem;
  font-size: 0.85rem;
  color: #333;
  background: white;
  outline: none;
  font-family: inherit;
}

.nl-input:focus {
  border-color: #FF6B35;
}

.nl-input::placeholder {
  color: #999;
}

.nl-btn {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #FF6B35, #FF9900);
  color: white;
  border: none;
  border-radius: 0 0.4rem 0.4rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.nl-btn:hover {
  opacity: 0.9;
}

.nl-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.nl-msg {
  color: #4ade80 !important;
  font-size: 0.78rem !important;
  margin-top: 0.4rem !important;
}

/* Mobile: stack newsletter form */
@media (max-width: 480px) {
  .nl-form {
    flex-direction: column;
    gap: 0.5rem;
  }
  .nl-input {
    border-right: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.4rem;
  }
  .nl-btn {
    border-radius: 0.4rem;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
  .card-banner {
    height: 110px;
  }
  .card-banner .twemoji svg {
    width: 2.5rem;
    height: 2.5rem;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .stat-item .stat-number {
    font-size: 1.2rem;
  }
  .tx-hero h1 {
    font-size: 1.6rem;
  }
  .cta-banner {
    padding: 1.5rem 1rem;
  }
}
