* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #f7f7f7;
}

/* Layout */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 24px;
}

/* Navbar (Dark) */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: #0b0b0b;
  border-bottom: 1px solid #111;
}

.nav div {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 20px;
  font-weight: 500;
  color: #ddd;
}

.nav a:hover {
  color: #fff;
}

/* Brand */

.brand {
  font-weight: 800;
  font-size: 24px;
  color: #fff;
}

.brand span {
  color: #ff2b2b;
}

/* Typography */

h1 {
  font-size: 44px;
  margin-bottom: 10px;
  letter-spacing: -1px;
  max-width: 760px;
}

h2 {
  font-size: 28px;
  margin-top: 70px;
}

h3 {
  font-size: 20px;
  margin-top: 22px;
}

.muted {
  color: #666;
}

/* Labels */

.container > p.muted:first-of-type {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.container > p.muted {
  font-size: 16px;
}

/* Buttons */

.btn {
  display: inline-block;
  background: #e50914;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* Grid */

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}

/* Cards */

.card {
  width: 320px;
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  min-height: 360px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* Card Cover */

.card-cover {
  height: 150px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff1a1a, #a80000);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 14px;
}

/* Badge */

.badge {
  display: inline-block;
  background: #ffe8e8;
  color: #c40000;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Card Text */

.card p {
  min-height: 48px;
  line-height: 1.4;
}

/* Links */

a {
  text-decoration: none;
}
/* Dashboard split layout */

.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.dashboard-left {
  flex: 1;
}

.dashboard-right {
  width: 300px;
}

/* Subscription card */

.sub-card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.sub-card .dot {
  width: 10px;
  height: 10px;
  background: #16a34a;
  border-radius: 50%;
  margin-bottom: 10px;
}
/* Purchased course layout */

.purchased-list {
  margin-top: 20px;
}

.purchased-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  max-width: 700px;
}

.purchased-image {
  width: 200px;
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff1a1a, #a80000);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

.purchased-content h3 {
  margin: 8px 0;
}
.sales-cover {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 32%),
    linear-gradient(135deg, #ff1a1a, #7a0000);
  color: #fff;
}

.sales-cover div {
  text-align: left;
  width: 100%;
  padding: 22px;
}

.sales-cover span {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: 8px;
}

.sales-cover strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}
.sales-cover strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
  max-height: 60px;
  overflow: hidden;
}
/* =============================================================
   COURSES GRID & CARDS — single authoritative block
   ============================================================= */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.course-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: inherit;
  text-decoration: none;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.12);
}

/* ── Thumbnail: always 16:9, full image visible ── */
.course-thumb-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
  flex-shrink: 0;
}

.course-thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #111;
}

/* ── No-image fallback (gradient cover) ── */
.course-thumb.sales-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #ff2a2a, #b30000);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  flex-shrink: 0;
}

.course-thumb.sales-cover span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.75;
}

.course-thumb.sales-cover strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

/* ── Card body ── */
.course-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-body h3 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
  margin: 8px 0 0;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ffeaea;
  color: #c40000;
}
.state-enrolled { background: #e8fff3; color: #07834f; }
.state-included { background: #eef4ff; color: #1d4ed8; }
.state-free     { background: #f0fff4; color: #15803d; }
.state-locked   { background: #ffeaea; color: #c40000; }

/* ── CTA button ── */
.card-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 18px;
  background: #ff2b2b;
  color: #fff !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease;
  align-self: flex-start;
}

.course-card:hover .card-cta {
  background: #cc0000;
}

.small { font-size: 13px; }
.course-meta {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* Course detail page */

.course-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.course-main h1 {
  font-size: 52px;
  line-height: 1.05;
  margin-top: 18px;
  margin-bottom: 12px;
}

.course-hero-cover {
  height: 320px;
  border-radius: 22px;
  margin-top: 32px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.course-hero-cover div {
  padding: 36px;
}

.course-hero-cover span {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.85;
  margin-bottom: 10px;
}

.course-hero-cover strong {
  display: block;
  font-size: 46px;
  line-height: 0.95;
  text-transform: uppercase;
}

.course-section {
  margin-top: 46px;
  max-width: 760px;
}

.course-section h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.course-section p {
  color: #444;
  line-height: 1.7;
  font-size: 16px;
}

.access-note {
  background: #fff;
  border-left: 4px solid #e50914;
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.access-note p {
  margin: 0 0 10px;
}

.access-note p:last-child {
  margin-bottom: 0;
}

.course-sidebar {
  position: sticky;
  top: 24px;
}

.course-action-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

.course-action-card h3 {
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 24px;
}

.course-main-cta {
  width: 100%;
  text-align: center;
  margin-top: 18px;
  margin-bottom: 22px;
}

.course-facts {
  border-top: 1px solid #eee;
  padding-top: 18px;
}

.course-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.course-facts span {
  color: #777;
  font-size: 14px;
}

.course-facts strong {
  font-size: 14px;
  text-align: right;
}

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

  .course-sidebar {
    position: static;
  }

  .course-main h1 {
    font-size: 40px;
  }

 /* FINAL course hero fix */

.course-hero-cover {
  height: 220px;
  border-radius: 22px;
  margin-top: 24px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.course-hero-cover div {
  padding: 28px;
}

.course-hero-cover strong {
  font-size: 30px;
  line-height: 1.05;
}
}
/* Dedicated course hero artwork */

.course-hero-art {
  height: 300px;
  border-radius: 22px;
  margin-top: 28px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.18), transparent 24%),
    linear-gradient(135deg, #ff1f1f, #990000);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.course-hero-text {
  padding: 34px;
}

.course-hero-text span {
  display: block;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  opacity: 0.9;
}

.course-hero-text h2 {
  color: #fff;
  font-size: 42px;
  line-height: 1;
  margin: 0;
  max-width: 600px;
}
.form-page {
    max-width: 900px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.form-group textarea {
    min-height: 120px;
}

.form-actions {
    grid-column: 1 / -1;
    margin-top: 10px;
}
.course-detail-thumbnail {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  margin-top: 28px;
  display: block;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
  .course-detail-thumbnail {
    height: 240px;
  }
}
/* .course-thumb-image rules consolidated into the COURSES GRID block above */

.course-card .sales-cover {
  height: 170px;
  overflow: hidden;
}


.course-card .sales-cover div {
  padding: 28px;
}

.course-card .sales-cover span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
  color: #fff;
}

.course-card .sales-cover strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1.05;
  max-height: 78px;
  overflow: hidden;
}
.homepage {
.membership-wrap p {
    color: #9d9d9d;
    font-size: 19px;
    line-height: 1.7;
    max-width: 700px;
}

.membership-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 36px;
    padding: 40px;
}

.membership-price {
    font-size: 56px;
    font-weight: bold;
}

.membership-price span {
    color: #999;
    font-size: 18px;
    margin-left: 8px;
}

.membership-card ul {
    margin: 30px 0;
    padding-left: 20px;
}

.membership-card li {
    margin-bottom: 16px;
    color: #d0d0d0;
}

.full-btn {
    display: block;
    width: 100%;
    text-align: center;
}

@media(max-width: 900px) {

    .hero-section {
        grid-template-columns: 1fr;
        padding: 40px 24px;
    }

    .hero-content h1 {
        font-size: 52px;
    }

    .hero-card-inner {
        padding: 40px;
    }

    .hero-card-inner h2 {
        font-size: 38px;
    }

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

    .membership-wrap {
        grid-template-columns: 1fr;
    }

    .membership-wrap h3 {
        font-size: 42px;
    }
}
.dashboard-course-description{
    color:#666;
    line-height:1.7;
    margin:14px 0 24px;
}