@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* CSS: Theme Variables */
:root {
  --brand-dark: #344C36;
  --brand-amber: #FAAD1B;
  --brand-amber-soft: #fff3d2;
  --brand-cream: #f7faf4;
  --brand-text: #243426;
  --brand-muted: #5f6f62;
  --brand-line: rgba(52, 76, 54, 0.12);
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --shadow-soft: 0 16px 36px rgba(18, 29, 22, 0.08);
  --shadow-strong: 0 24px 52px rgba(18, 29, 22, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

/* CSS: Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--brand-text);
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(250, 173, 27, 0.16), transparent 24%),
    radial-gradient(circle at 100% 10%, rgba(52, 76, 54, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfdf8 48%, #f6faf4 100%);
}

h1,
h2,
h3,
strong {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.12;
}

p {
  margin: 0;
}

a,
button,
input,
textarea {
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

/* CSS: Layout */
.courses-page-shell {
  min-height: 100vh;
}

.courses-header,
.courses-hero,
.courses-section {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
}

.courses-section {
  padding-bottom: 88px;
}

/* CSS: Navigation */
.courses-header {
  padding-top: 14px;
}

.courses-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 20px;
  border-radius: 24px;
  border: 1px solid var(--brand-line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.courses-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
}

.courses-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.courses-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.courses-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.courses-nav-links a:hover {
  background: rgba(52, 76, 54, 0.06);
  border-color: rgba(52, 76, 54, 0.1);
  transform: translateY(-1px);
}

.courses-nav-status {
  background: linear-gradient(135deg, #faad1b, #ffd36a);
  color: #243426 !important;
  box-shadow: 0 12px 26px rgba(250, 173, 27, 0.2);
}

/* CSS: Shared UI */
.courses-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(250, 173, 27, 0.14);
  color: var(--brand-dark);
  border: 1px solid rgba(250, 173, 27, 0.26);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.courses-chip-light {
  color: #fff3d2;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.courses-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.courses-btn:hover {
  transform: translateY(-2px);
}

.courses-btn-primary {
  background: linear-gradient(135deg, #faad1b, #ffd36a);
  color: #223325;
  box-shadow: 0 16px 28px rgba(250, 173, 27, 0.22);
}

.courses-btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand-dark);
  border: 1px solid rgba(52, 76, 54, 0.14);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-top: 14px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-heading p {
  color: var(--brand-muted);
  line-height: 1.8;
}

/* CSS: Hero Section */
.courses-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  padding: 54px 0 88px;
}

.courses-hero-copy,
.hero-preview-card,
.essential-card,
.courses-cta-panel,
.launch-status-card {
  border: 1px solid var(--brand-line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.courses-hero-copy {
  padding: 34px;
  border-radius: var(--radius-xl);
}

.launch-inline-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--brand-amber-soft);
  color: #6f4e00;
  font-weight: 700;
}

.launch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #faad1b;
  box-shadow: 0 0 0 6px rgba(250, 173, 27, 0.16);
}

.courses-hero-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  max-width: 13ch;
}

.courses-hero-copy > p {
  max-width: 60ch;
  color: var(--brand-muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-mini-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-mini-points span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(52, 76, 54, 0.1);
  color: #314534;
  font-size: 0.92rem;
}

.hero-mini-points i {
  color: var(--brand-amber);
}

.hero-preview-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero-preview-card img {
  min-height: 620px;
  object-fit: cover;
}

.hero-preview-overlay {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(19, 30, 21, 0.8);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.preview-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ffd36a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-preview-overlay h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.hero-preview-overlay p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* CSS: Essentials Section */
.essentials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.essential-card {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.essential-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(250, 173, 27, 0.96), rgba(255, 221, 144, 0.9));
  color: #243426;
  font-size: 1.35rem;
  box-shadow: 0 14px 26px rgba(250, 173, 27, 0.18);
}

.essential-card h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.essential-card p {
  color: var(--brand-muted);
  line-height: 1.8;
}

/* CSS: Launch Panel */
.courses-launch-panel {
  padding: 44px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #344C36, #263629);
  box-shadow: var(--shadow-strong);
}

.footer {
  background-color: #1f2f26;
  color: #ffffff;
  padding: 80px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h3,
.footer-col h4 {
  color: #FAAD1B;
  margin-bottom: 15px;
}

.footer-col p,
.footer-col li {
  color: #d6d6d6;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.footer-col a {
  color: #d6d6d6;
  text-decoration: none;
}

.footer-col a:hover {
  color: #FAAD1B;
}

.newsletter input {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: none;
  margin-bottom: 10px;
}

.newsletter button {
  width: 100%;
  padding: 12px;
  background-color: #FAAD1B;
  color: #344C36;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FAAD1B;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #FAAD1B;
  color: #344C36;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #b5b5b5;
}

.launch-panel-copy h2 {
  margin-top: 14px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 3rem);
}

.launch-panel-copy p {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.launch-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.launch-status-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.launch-status-card strong {
  display: block;
  margin-bottom: 10px;
  color: #ffd36a;
  font-size: 1rem;
}

.launch-status-card span {
  color: #ffffff;
  line-height: 1.7;
}

/* CSS: CTA Section */
.courses-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: var(--radius-xl);
}

.courses-cta-panel h2 {
  margin-top: 14px;
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.courses-cta-panel p {
  color: var(--brand-muted);
  line-height: 1.8;
  max-width: 60ch;
}

.courses-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* CSS: Reveal Animation */
.reveal-course {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-course.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* CSS: Responsive */
@media (max-width: 1100px) {
  .courses-hero,
  .essentials-grid,
  .launch-status-grid {
    grid-template-columns: 1fr;
  }

  .courses-hero {
    padding-top: 38px;
  }

  .hero-preview-card img {
    min-height: auto;
    height: 500px;
  }

  .courses-cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .courses-header,
  .courses-hero,
  .courses-section {
    width: calc(100% - 20px);
  }

  .courses-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .courses-nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .courses-hero-copy,
  .courses-launch-panel,
  .courses-cta-panel {
    padding: 26px;
  }

  .courses-hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .courses-nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .courses-nav-links a,
  .courses-btn {
    width: 100%;
  }

  .hero-actions,
  .courses-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-preview-card img {
    height: 380px;
  }

  .hero-preview-overlay {
    right: 16px;
    left: 16px;
    bottom: 16px;
    padding: 18px;
  }

  .courses-section {
    padding-bottom: 72px;
  }
}
