/* style.css */

/* THEME VARIABLES */
:root {
  --color-main: #1e2a4b;
  --color-accent: #bc333a;
  --color-bg: #f5f7fb;
  --color-card: #ffffff;
  --color-text: #1b2236;
  --color-muted: #6b7280;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 16px 40px rgba(12, 23, 52, 0.08);
  --shadow-light: 0 8px 24px rgba(12, 23, 52, 0.06);
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* UTILITIES */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo img {
  height: 77px;
  display: block;
}

.main-nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-main);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--color-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  text-decoration: none;
  color: var(--color-main);
  font-weight: 500;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease,
    color 0.1s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background-color: #9d2b33;
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--color-main);
  color: var(--color-main);
  background-color: #ffffff;
}

.btn-outline:hover {
  background-color: var(--color-main);
  color: #ffffff;
}

/* SECTIONS */
section {
  margin-bottom: 56px;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  color: var(--color-main);
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
}

/* HERO */
.hero {
  padding: 48px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
  gap: 32px;
  align-items: center;
}

.hero-media img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  display: block;
}

.hero-content {
  padding: 12px 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.tag-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background-color: #ffffff;
  border-radius: 999px;
  box-shadow: var(--shadow-light);
  font-size: 0.85rem;
  color: var(--color-main);
}

.tag-icon {
  font-size: 1rem;
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--color-main);
}

.hero-title .accent {
  color: var(--color-accent);
}

.hero-subtitle {
  margin: 0 0 20px;
  font-size: 0.98rem;
  color: var(--color-muted);
  max-width: 440px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.feature-image {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-main);
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
}


/* VIDEO SECTION */
.video-section {
  margin-bottom: 56px;
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3fr);
  gap: 40px;
  align-items: center;
}

/* left side: video */
.video-player {
  display: flex;
  flex-direction: column;
}

.video-frame {
  background-color: #111827;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}

.video-image {
  width: 100%;
  display: block;
}

/* red play icon centered on the video */
.play-button {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  cursor: pointer;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: var(--shadow-soft);
}

/* remove blue bubble below the video */
.video-caption {
  display: none;
}

/* right side: text + small video icon */
.video-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.video-text-icon {
  height: 40px;
  object-fit: cover;
}

/* heading and paragraph to match design */
.video-text h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.25;
  color: var(--color-main);
}

.video-text p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 420px;
}

/* responsive tweaks */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .video-text {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .video-text h2 {
    font-size: 1.5rem;
  }
}

/* HOW IT WORKS SECTION */
.steps {
  margin-bottom: 56px;
}

.steps h2 {
  margin: 0 0 24px;
  font-size: 1.6rem;
  color: var(--color-main);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* individual step cards */
.step-card {
  position: relative;
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-light);
  text-align: left;
}

/* icon at the top of each card */
.step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  object-fit: contain;
  display: block;
}

/* number + text */
.step-number {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--color-main);
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* simple connector line between steps (optional) */
.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  width: 24px;
  height: 1px;
  background-color: rgba(30, 42, 75, 0.18);
}

/* responsive layout */
@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-card:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* A1 COURSE SECTION */
.courses {
  margin-bottom: 56px;
}

.courses-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}

.courses-header h2 {
  margin-bottom: 8px;
}

.courses-controls {
  display: flex;
  align-items: center;
}

/* slider wrapper with arrows */
.courses-slider {
  position: relative;
  margin-top: 24px;
  display: block;
}

/* grid for the cards only */
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* arrows */
.courses-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-main);
  background-color: #ffffff;
  color: var(--color-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  font-size: 1.2rem;
}

.courses-arrow--prev {
  left: -24px;
}

.courses-arrow--next {
  right: -24px;
}

.courses-arrow:hover {
  background-color: var(--color-main);
  color: #ffffff;
}

/* individual lesson card */
.course-card {
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* top image: tighter padding, rounded corners */
.course-image {
  width: 100%;
  display: block;
  border-radius: 18px;
  margin-bottom: 12px;
}

/* A1 + Lesson tags under image */
.course-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.course-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
}

.course-lesson-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(30, 42, 75, 0.12);
  background-color: #ffffff;
  color: var(--color-main);
  font-size: 0.75rem;
  font-weight: 600;
}

/* title + description */
.course-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-main);
}

.course-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* tags row */
.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.course-tags span {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  background-color: #eef1fb;
  color: var(--color-main);
}

/* full-width CTA button at bottom */
.course-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 0;
  border-radius: 999px;
  border: 1px solid var(--color-main);
  background-color: #ffffff;
  color: var(--color-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.course-cta:hover {
  background-color: var(--color-main);
  color: #ffffff;
}

/* responsive adjustments */
@media (max-width: 1024px) {
  .courses-slider {
    position: static;
  }

  .courses-arrow {
    display: none;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .course-grid {
    grid-template-columns: 1fr;
  }

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

  .courses-controls {
    margin-top: 12px;
  }
}

/* CTA SECTION */
.cta {
  margin-bottom: 56px;
}

.cta-inner {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
  gap: 32px;
  align-items: center;
}

/* left image side */
.cta-media img {
  width: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

/* right text side */
.cta-content h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  color: var(--color-main);
}

.cta-subtitle {
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: var(--color-muted);
}

/* gradient CTA button centered */
.cta-button {
  margin-bottom: 14px;
  padding-inline: 32px;
  background-image: linear-gradient(90deg, #bc333a, #1e2a4b);
  border-color: transparent;
}

/* keep .btn styles but remove extra box-shadow to match design */
.cta-button {
  box-shadow: none;
}

/* tagline with heart */
.cta-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-main);
}

.cta-heart {
  margin-left: 4px;
  color: var(--color-accent);
}

/* FOOTER */
.site-footer {
  background-color: var(--color-main);
  color: #ffffff;
  padding: 18px 0;
  margin-top: 40px;
  position: relative;
  z-index: 1;    
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-left p {
  margin: 0;
}

.footer-links,
.footer-social {
  display: flex;
  gap: 14px;
}

.footer-links a,
.footer-social a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
}

.footer-links a:hover,
.footer-social a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* responsive */
@media (max-width: 1024px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-content {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .cta-inner {
    padding: 20px 20px;
  }

  .cta-content h2 {
    font-size: 1.4rem;
  }
}

/* RESPONSIVE */

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    order: -1;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .nav-container {
    padding-inline: 16px;
  }

  .main-nav {
    gap: 16px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.9rem;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
  }
}