/* ============================================================================
   UCCDC Online Training Institute - Unified Stylesheet
   ============================================================================ */

/* ============================================================================
   CSS VARIABLES - Single Source of Truth
   ============================================================================ */
:root {
  /* Colors */
  --accent-color: #000000;
  --surface-color: #ffffff;
  --heading-color: #2c3e50;
  --default-color: #333333;
  --contrast-color: #ffffff;
  
  /* Typography */
  --heading-font: 'Poppins', sans-serif;
  --default-font: 'Roboto', sans-serif;
  --nav-font: 'Raleway', sans-serif;
  
  /* Spacing System */
  --spacing-xs: 8px;
  --spacing-sm: 15px;
  --spacing-md: 25px;
  --spacing-lg: 60px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 50px;
  
  /* Shadows */
  --shadow-sm: 0px 2px 15px rgba(0, 0, 0, 0.1);
  --shadow-md: 0px 5px 25px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* Hide Trix file attachment button */
trix-toolbar .trix-button--icon-attach {
  display: none !important;
}


/* ============================================================================
   PAGE HERO SECTIONS
   ============================================================================ */
.page-hero {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: var(--default-color);
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Course-specific hero styling */
.course-hero {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.course-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.course-hero .lead {
  font-size: 1.2rem;
  color: var(--default-color);
}

.course-hero .rating-stars {
  color: #f5c518;
  font-size: 1.1rem;
}

/* ============================================================================
   UNIFIED CONTENT CARD COMPONENT
   Replaces: .pricing-section, .cart-card, .checkout-card, .course-card
   ============================================================================ */
.content-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Card with hover effect */
.content-card--hoverable:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Card with accent header */
.content-card--accent-header .card-header {
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  border-bottom: 2px solid var(--accent-color);
  padding: 20px var(--spacing-md);
}

.content-card--accent-header .card-header h2,
.content-card--accent-header .card-header h4 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

/* Card body padding */
.content-card .card-body {
  padding: var(--spacing-md);
}

/* Card section content (for pricing sections) */
.content-card .section-content {
  padding: var(--spacing-md);
}

/* Card headings */
.content-card h5 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.content-card h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}

.content-card p {
  color: var(--default-color);
  font-family: var(--default-font);
  margin-bottom: 10px;
}

.content-card .text-muted {
  color: color-mix(in srgb, var(--default-color), transparent 40%) !important;
  font-size: 0.9rem;
}

/* ============================================================================
   ITEM ROWS (Cart items, pricing items, etc.)
   Replaces: .cart-item
   ============================================================================ */
.item-row {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.item-row:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-hover);
}

.item-row .text-muted {
  color: color-mix(in srgb, var(--default-color), transparent 40%) !important;
}

.item-row .text-primary {
  color: var(--accent-color) !important;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================================================
   PRICING & OPTION CARDS
   ============================================================================ */
.pricing-info {
  margin-bottom: 15px;
}

.text-decoration-line-through {
  color: color-mix(in srgb, var(--default-color), transparent 40%) !important;
  margin-right: 10px;
}

.h4.text-primary {
  color: var(--accent-color) !important;
  font-weight: 700;
  font-family: var(--heading-font);
}

.badge.bg-danger {
  background-color: var(--accent-color) !important;
  padding: 4px 8px;
  font-size: 0.75rem;
  margin-left: 8px;
}

/* Registration/Option Cards */
.option-card {
  background: var(--surface-color);
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.option-card:hover {
  border-color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 97%);
}

.option-card.selected {
  border-color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.option-card input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.2);
  accent-color: var(--accent-color);
  cursor: pointer;
}

.option-card label {
  cursor: pointer;
  margin: 0;
  font-family: var(--default-font);
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.option-title {
  font-weight: 600;
  color: var(--heading-color);
  font-size: 1.1rem;
}

.option-description {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* ============================================================================
   FORM ELEMENTS
   ============================================================================ */
.form-label {
  font-weight: 600;
  color: var(--heading-color);
  font-family: var(--default-font);
  margin-bottom: 8px;
}

.form-control {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-family: var(--default-font);
  transition: border-color 0.3s ease;
  color: var(--default-color);
  background-color: var(--surface-color);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: none;
}

.form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.form-text {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 0.875rem;
}

/* Form Checkboxes and Radio Buttons */
.form-check {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.form-check-input {
  margin-right: 10px;
  transform: scale(1.2);
  accent-color: var(--accent-color);
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.form-check-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--accent-color), transparent 75%);
}

.form-check-label {
  cursor: pointer;
  margin: 0;
  font-weight: 600;
  font-family: var(--default-font);
  color: var(--default-color);
}

/* Checkout-specific form checks (with borders) */
.checkout-page .form-check {
  padding: 15px;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.checkout-page .form-check:hover {
  border-color: var(--accent-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 97%);
}

.checkout-page .form-check-label strong {
  color: var(--heading-color);
  font-weight: 600;
}

.checkout-page .form-check-label small {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn-primary {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 15px 35px;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  font-family: var(--nav-font);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover:not(:disabled) {
  background: #333333;
  transform: translateY(-1px);
  color: var(--contrast-color);
}

.btn-primary:disabled {
  background: #666666;
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.btn-outline-secondary {
  color: var(--default-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 70%);
  background-color: transparent;
  font-weight: 600;
  font-family: var(--nav-font);
  transition: all 0.3s ease;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  text-decoration: none;
}

.btn-outline-secondary:hover {
  background-color: var(--default-color);
  border-color: var(--default-color);
  color: white;
}

.btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
  background-color: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

/* ============================================================================
   PRICING SUMMARY & ORDER SUMMARY
   ============================================================================ */
.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 0;
  color: var(--default-color);
  font-family: var(--default-font);
}

.summary-total {
  font-weight: 700;
  margin-top: 10px;
}

.pricing-summary {
  padding: 15px 0;
}

.pricing-summary .d-flex {
  padding: 8px 0;
  color: var(--default-color);
  font-family: var(--default-font);
}

.pricing-summary .h5 {
  font-weight: 700;
  color: var(--heading-color);
  font-family: var(--heading-font);
  margin-top: 10px;
}

/* Order items in checkout */
.order-items .d-flex {
  padding: 8px 0;
  color: var(--default-color);
  font-family: var(--default-font);
  font-size: 0.9rem;
}

.order-items .text-truncate {
  max-width: 200px;
}

/* Cart items display */
#cart-items .text-muted {
  color: color-mix(in srgb, var(--default-color), transparent 40%) !important;
  text-align: center;
  padding: 20px 0;
}

#cart-items .d-flex {
  padding: 8px 0;
  color: var(--default-color);
  font-family: var(--default-font);
}

/* ============================================================================
   COURSE CARDS (Homepage specific)
   ============================================================================ */
.course-card {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.course-card .course-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.course-card .course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

.course-card .course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.course-card .course-badge.bestseller {
  background: #ff6b6b;
  color: white;
}

.course-card .course-badge.popular {
  background: #4ecdc4;
  color: white;
}

.course-card .course-badge.new {
  background: #ffd93d;
  color: #333;
}

/* ============================================================================
   UCCDC ADMIN PORTAL
   ============================================================================ */
.uccdc-admin-portal {
}

.uccdc-admin-portal main {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.uccdc-admin-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.uccdc-admin-header,
.uccdc-admin-record-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.uccdc-admin-header--tight {
  margin-bottom: 0;
}

.uccdc-admin-eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #269940;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uccdc-admin-title {
  margin: 0;
  color: #1f2a1f;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  font-weight: 700;
}

.uccdc-admin-subtitle {
  max-width: 52rem;
  color: #64706a;
  font-size: 0.98rem;
  line-height: 1.65;
}

.uccdc-admin-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.uccdc-admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.uccdc-admin-header-actions .button_to {
  display: inline-flex;
  margin: 0;
}

.uccdc-admin-header-actions .badge {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.uccdc-admin-header-actions .btn {
  display: inline-flex;
  align-items: center;
}

/* Keep action controls visually consistent across admin pages. */
.uccdc-admin-page .btn:not(.btn-lg):not(.btn-link) {
  --bs-btn-padding-y: 0.25rem;
  --bs-btn-padding-x: 0.5rem;
  --bs-btn-font-size: 0.875rem;
  --bs-btn-border-radius: 0.25rem;
}

.uccdc-admin-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #e8f4eb;
  color: #246e37;
  font-size: 0.82rem;
  font-weight: 600;
}

.uccdc-admin-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.uccdc-admin-intake-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.4fr);
  gap: 1.25rem;
  align-items: start;
}

.uccdc-admin-section-card,
.uccdc-admin-table-card,
.uccdc-admin-filter-card {
  background: #fff;
  border: 1px solid #e5e7e4;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(18, 26, 18, 0.06);
}

.uccdc-admin-section-card {
  padding: 1.5rem;
}

.uccdc-admin-section-card--subtle {
  border-style: dashed;
  background: #fbfcfb;
}

.uccdc-admin-section-card__header {
  margin-bottom: 1rem;
}

.uccdc-admin-section-card__header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.uccdc-admin-section-card__header p {
  margin: 0;
  color: #64706a;
  line-height: 1.6;
}

.uccdc-admin-section-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: #eff6f1;
  color: #2a6a39;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.uccdc-admin-section-tag--lms {
  background: #eef3f9;
  color: #305b8e;
}

.uccdc-admin-type-badge {
  background: #e8f4eb !important;
  color: #246e37 !important;
}

.uccdc-admin-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.uccdc-admin-status-chip--neutral {
  background: #f4f5f6;
  color: #4b5563;
  border-color: #e5e7eb;
}

.uccdc-admin-status-chip--info {
  background: #eff6ff;
  color: #1d4f91;
  border-color: #dbeafe;
}

.uccdc-admin-status-chip--success {
  background: #edf7ef;
  color: #21683a;
  border-color: #d7eddc;
}

.uccdc-admin-status-chip--dark {
  background: #eef0f2;
  color: #27303a;
  border-color: #dde1e6;
}

.uccdc-admin-status-chip--danger {
  background: #fef2f2;
  color: #9f1f1f;
  border-color: #fde2e2;
}

.uccdc-admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.uccdc-admin-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid #e4e8e4;
  border-radius: 16px;
  background: #fbfcfb;
  color: inherit;
}

.uccdc-admin-stat-card__label {
  color: #64706a;
  font-size: 0.8rem;
  font-weight: 600;
}

.uccdc-admin-stat-card__value {
  color: #1f2a1f;
  font-size: 1.5rem;
  font-weight: 700;
}

.uccdc-admin-stat-card__meta {
  color: #64706a;
  font-size: 0.84rem;
  line-height: 1.5;
}

.uccdc-admin-action-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.uccdc-admin-filter-card {
  padding: 1.25rem;
}

.uccdc-admin-table-card {
  overflow: hidden;
}

.uccdc-admin-table-card--compact .uccdc-admin-section-card__header {
  padding: 1.5rem 1.5rem 0;
}

.uccdc-admin-table-card .table {
  margin-bottom: 0;
}

.uccdc-admin-cohort-grading-table th:first-child,
.uccdc-admin-cohort-grading-table td:first-child {
  padding-left: 1.5rem;
}

.uccdc-admin-cohort-grading-table th:last-child,
.uccdc-admin-cohort-grading-table td:last-child {
  padding-right: 1.5rem;
}

.uccdc-admin-table-card__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #ecefec;
  background: #fff;
}

.uccdc-admin-page .table-light th {
  background: #fff;
}

.uccdc-admin-empty-state {
  padding: 3.25rem 1.5rem;
  text-align: center;
  color: #64706a;
}

.uccdc-admin-empty-state i {
  display: block;
  margin-bottom: 1rem;
  color: #269940;
  font-size: 2rem;
}

.uccdc-admin-empty-state h3 {
  margin-bottom: 0.5rem;
  color: #1f2a1f;
  font-size: 1.2rem;
}

.uccdc-admin-empty-state p {
  margin-bottom: 1rem;
}

.uccdc-admin-form-intro {
  padding: 1rem 1.1rem;
  border: 1px solid #dfe8e0;
  border-radius: 14px;
  background: #f9fbf9;
}

@media (max-width: 991px) {
  .uccdc-admin-split-grid {
    grid-template-columns: 1fr;
  }

  .uccdc-admin-intake-grid {
    grid-template-columns: 1fr;
  }

  .uccdc-admin-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .uccdc-admin-header,
  .uccdc-admin-record-header {
    flex-direction: column;
    align-items: stretch;
  }
}

.course-card .course-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.key-components {
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fa 100%);
}

.workforce-readiness-video {
  background: #ffffff;
}

.workforce-readiness-video__embed {
  position: relative;
  overflow: hidden;
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.workforce-readiness-video__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.key-component-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 1.5rem 1.35rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.key-component-card__title {
  display: block;
  width: auto;
  margin: 0 -1.5rem 1.35rem;
  padding: 1rem 1.4rem 0.95rem;
  border-radius: 22px 22px 0 0;
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.01em;
}

.key-component-card--training .key-component-card__title {
  background: #ef4444;
}

.key-component-card--coaching .key-component-card__title {
  background: #2f9e44;
}

.key-component-card--placement .key-component-card__title {
  background: #f4b400;
}

.key-component-card p {
  margin-bottom: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  line-height: 1.55;
}

.key-component-card > :not(.key-component-card__title) {
  padding-left: 0.1rem;
  padding-right: 0.1rem;
}

.key-component-card__link a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0 0.2rem;
  border-bottom: 1px solid rgba(44, 79, 112, 0.18);
  color: #2c4f70;
  font-weight: 700;
  word-break: break-word;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.key-component-card__link a::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  flex-shrink: 0;
}

.key-component-card__link a:hover {
  color: var(--accent-color);
  border-bottom-color: rgba(38, 153, 64, 0.45);
}

.key-component-card h4 {
  margin: 0.35rem 0 0.75rem;
  color: var(--heading-color);
  font-size: 1rem;
  font-weight: 700;
}

.key-component-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.key-component-card li {
  margin-bottom: 0.35rem;
  color: #2f9e44;
  font-weight: 600;
}

.key-component-card__icon {
  margin-top: auto;
  padding-top: 1rem;
  text-align: center;
  color: #ef6b6b;
  font-size: 1.8rem;
}

.key-components__download {
  margin-top: 2.25rem;
  padding: 0;
  text-align: center;
}

.key-components__download-copy {
  margin: 0 0 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 12%);
  font-size: 1rem;
}

.key-components__download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f9e44, #238636);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(47, 158, 68, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.key-components__download-button:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(47, 158, 68, 0.3);
  filter: brightness(1.02);
}

.key-components__download-button i {
  font-size: 1.1rem;
}

.key-components__download-button--ebook {
  display: flex;
  width: min(100%, 560px);
  margin: 1rem auto 0;
  padding-inline: 1.55rem;
  background: linear-gradient(135deg, #111827, #2c4f70);
  box-shadow: 0 14px 28px rgba(44, 79, 112, 0.22);
}

.key-components__download-button--ebook:hover {
  box-shadow: 0 18px 34px rgba(44, 79, 112, 0.28);
}

.ebook-page {
  background: #f5f8fb;
}

.ebook-hero {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: 110px 0 70px;
  background:
    linear-gradient(135deg, rgba(38, 153, 64, 0.1), rgba(44, 79, 112, 0.08)),
    #f5f8fb;
}

.ebook-hero__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ebook-cover {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  overflow: visible;
  border-radius: 8px;
  box-shadow: 0 28px 65px rgba(15, 23, 42, 0.24);
}

.ebook-cover__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.ebook-access-panel {
  padding: clamp(1.5rem, 4vw, 2.3rem);
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.09);
}

.ebook-access-panel__eyebrow {
  margin: 0 0 0.65rem;
  color: #2f9e44;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ebook-access-panel h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 800;
}

.ebook-access-panel__copy {
  margin-bottom: 1.5rem;
  color: color-mix(in srgb, var(--default-color), transparent 16%);
  line-height: 1.65;
}

.ebook-form {
  display: grid;
  gap: 1rem;
}

.ebook-form__errors {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(223, 21, 41, 0.1);
  color: #a10f20;
}

.ebook-form__errors ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.ebook-form__field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--heading-color);
  font-weight: 700;
}

.ebook-form__field input {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(44, 73, 100, 0.18);
  border-radius: 8px;
  color: var(--default-color);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ebook-form__field input:focus {
  border-color: #2f9e44;
  box-shadow: 0 0 0 0.22rem rgba(47, 158, 68, 0.14);
  outline: none;
}

.ebook-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 54px;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f9e44, #238636);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(47, 158, 68, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ebook-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(47, 158, 68, 0.3);
  filter: brightness(1.02);
}

.ebook-form__download-link {
  text-decoration: none;
}

.ebook-form__download-link:hover {
  color: #ffffff;
}

.ebook-reader {
  padding: 0 0 70px;
  background: #f5f8fb;
}

.ebook-reader__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ebook-reader__header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
}

.ebook-reader__header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.ebook-reader__header a:hover {
  color: #ffffff;
  background: #2c4f70;
}

.ebook-reader__frame {
  display: block;
  width: 100%;
  height: min(82vh, 920px);
  min-height: 620px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

.course-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.course-card .course-subtitle {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 15px;
}

.course-card .course-stats {
  margin-bottom: 15px;
}

.course-card .rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.course-card .stars {
  color: #f5c518;
  font-size: 1rem;
}

.course-card .rating-number {
  font-weight: 600;
  color: var(--default-color);
}

.course-card .rating-count {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 0.85rem;
}

.course-card .course-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.course-card .course-highlights {
  margin-bottom: 15px;
}

.course-card .course-highlights ul {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
}

.course-card .course-highlights li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--default-color);
}

.course-card .course-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-card .price-section {
  display: flex;
  flex-direction: column;
}

.course-card .current-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.course-card .original-price {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.course-card .btn-enroll {
  background: var(--accent-color);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.course-card .btn-enroll:hover {
  background: #333333;
  transform: translateY(-2px);
  color: white;
}

.course-card .btn-enroll.disabled-link {
  background: #cccccc;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================================
   COURSE DETAIL PAGE COMPONENTS
   ============================================================================ */
.course-preview-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 20px;
}

.course-preview-image {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.course-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.course-preview-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.course-preview-overlay:hover .play-button {
  transform: scale(1.1);
}

.price-highlight {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.discount-badge {
  background: #dc3545;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.course-content-item {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.course-content-item .section-header {
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  padding: 15px 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.course-content-item .section-header:hover {
  background: color-mix(in srgb, var(--default-color), transparent 94%);
}

.lecture-item {
  padding: 12px 20px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 95%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.lecture-item:hover {
  background: color-mix(in srgb, var(--default-color), transparent 98%);
}

/* ============================================================================
   BREADCRUMB NAVIGATION
   ============================================================================ */
.breadcrumb-nav {
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  padding: 15px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.breadcrumb {
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--accent-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/* ============================================================================
   TRUST & HELP CARDS
   ============================================================================ */
.trust-card,
.help-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
}

.trust-card .card-body,
.help-card .card-body {
  padding: 20px;
}

.trust-card {
  text-align: center;
}

.trust-card h6,
.help-card h6 {
  font-weight: 600;
  margin-bottom: 15px;
}

.trust-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-card li {
  padding: 5px 0;
  font-size: 0.9rem;
  text-align: left;
}

.trust-card .bi-check-circle {
  color: #28a745;
  margin-right: 8px;
}

.help-card p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.help-card a {
  color: var(--accent-color);
  text-decoration: none;
}

.help-card a:hover {
  text-decoration: underline;
}

.help-card i {
  margin-right: 8px;
  color: var(--accent-color);
}

/* ============================================================================
   SECURITY BADGE
   ============================================================================ */
.security-badge {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.security-badge small {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.security-badge i {
  color: #28a745;
  margin-right: 5px;
}

/* ============================================================================
   EMPTY STATES
   ============================================================================ */
.empty-cart {
  padding: 80px 20px;
  text-align: center;
}

.empty-cart i {
  font-size: 4rem;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.empty-cart h3 {
  margin-top: 20px;
  font-weight: 600;
}

.empty-cart p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/* ============================================================================
   ALERTS
   ============================================================================ */
.alert-danger {
  background-color: color-mix(in srgb, #dc3545, transparent 90%);
  border: 1px solid #dc3545;
  color: #721c24;
  border-radius: var(--radius-sm);
  padding: 15px;
  margin-bottom: 20px;
}

.alert-danger h6 {
  color: #721c24;
  margin-bottom: 10px;
}

.alert-danger ul {
  margin-bottom: 0;
  padding-left: 20px;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.hidden {
  display: none;
}

#contact-form-wrapper {
  display: none;
  margin-top: 20px;
}

#contact-form-wrapper.show {
  display: block;
}

#coupon-message {
  font-size: 0.9rem;
  font-family: var(--default-font);
}

/* ============================================================================
   PAGE-SPECIFIC SPACING
   ============================================================================ */
.cart-page,
.checkout-page {
  padding: var(--spacing-lg) 0;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
  .page-hero h1,
  .course-hero h1 {
    font-size: 2rem;
  }

  .content-card .section-content {
    padding: 20px;
  }

  .content-card .card-body {
    padding: 15px;
  }

  .item-row .text-end {
    text-align: left !important;
    margin-top: 15px;
  }

  .cart-item .text-end,
  .checkout-page .text-end {
    text-align: left !important;
    margin-top: 10px;
  }

  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 15px;
  }

  .btn-outline-secondary,
  .btn-primary {
    width: 100%;
    text-align: center;
  }

  .course-card .course-footer {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .course-card .btn-enroll {
    text-align: center;
  }

  .key-component-card {
    padding: 0 1.25rem 1.15rem;
  }

  .key-component-card__title {
    margin: 0 -1.25rem 1.15rem;
    margin-bottom: 1.15rem;
    padding: 0.9rem 1rem 0.85rem;
    border-radius: 22px 22px 0 0;
  }

  .key-components__download {
    padding: 0;
  }

  .key-components__download-button--ebook {
    border-radius: 8px;
  }

  .ebook-hero {
    padding: 90px 0 45px;
  }

  .ebook-hero__grid {
    grid-template-columns: 1fr;
  }

  .ebook-cover {
    width: min(100%, 360px);
  }

  .ebook-access-panel {
    padding: 1.35rem;
  }

  .ebook-reader__header {
    align-items: stretch;
    flex-direction: column;
  }

  .ebook-reader__header a {
    width: 100%;
  }

  .ebook-reader__frame {
    height: 72vh;
    min-height: 460px;
  }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */
@media print {
  .btn,
  .breadcrumb,
  .security-badge,
  .trust-card {
    display: none;
  }

  .content-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}


/* ============================================================================
   CONFIRMATION PAGE
   ============================================================================ */
.confirmation-page {
  padding: 60px 0;
}

.success-icon {
  animation: checkmark 0.6s ease-in-out;
  margin-bottom: 30px;
}

@keyframes checkmark {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.success-icon i {
  font-size: 4rem;
  color: var(--accent-color);
}

.confirmation-page h1 {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.confirmation-page .lead {
  color: var(--default-color);
  font-size: 1.2rem;
  margin-bottom: 40px;
}

/* Table styling */
.table {
  color: var(--default-color);
  margin-bottom: 0;
}

.table th {
  color: var(--heading-color);
  font-weight: 600;
  border-bottom: 2px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.table td {
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.table tfoot th {
  border-top: 2px solid color-mix(in srgb, var(--default-color), transparent 85%);
  padding-top: 15px;
}

.table-success {
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.badge.bg-primary {
  background: var(--accent-color) !important;
}

.badge.bg-info {
  background: var(--accent-color) !important;
}

.badge.bg-success {
  background: #28a745 !important;
}

.text-success {
  color: #28a745 !important;
}

/* Next steps section */
.step-item {
  padding: 20px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.step-item:last-child {
  border-bottom: none;
}

.step-number .badge {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
}

.step-content h6 {
  margin-bottom: 8px;
}

.step-content p {
  color: var(--default-color);
  margin-bottom: 0;
}

/* Outline button variant */
.btn-outline-primary {
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  background: transparent;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--nav-font);
  text-decoration: none;
  display: inline-block;
}

.btn-outline-primary:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.btn-outline-success {
  color: #28a745;
  border: 2px solid #28a745;
  background: transparent;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--nav-font);
  text-decoration: none;
  display: inline-block;
}

.btn-outline-success:hover {
  background: #28a745;
  color: white;
}

.alert-success {
  background: color-mix(in srgb, #28a745, transparent 90%);
  border: 2px solid #28a745;
  border-radius: var(--radius-md);
  padding: 25px;
  color: var(--default-color);
}

.alert-success .alert-heading {
  color: #28a745;
  font-weight: 700;
  margin-bottom: 10px;
}

.support-info i {
  color: var(--accent-color);
  margin-right: 8px;
}

.support-info a {
  color: var(--accent-color);
  text-decoration: none;
}

.support-info a:hover {
  text-decoration: underline;
}

.important-notes li {
  padding: 8px 0;
}

.important-notes i {
  margin-right: 8px;
}

.important-notes .text-info {
  color: #17a2b8 !important;
}

.important-notes .text-primary {
  color: var(--accent-color) !important;
}



/* ============================================================================
   REGISTRATION PAGE
   ============================================================================ */
.registration-page {
  padding: 60px 0;
  max-width: 900px;
  margin: 0 auto;
}

.registration-page .header {
  text-align: center;
  margin-bottom: 40px;
}

.registration-page .header h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.registration-page .header h5 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--heading-color);
}

.order-summary {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.order-summary h3 {
  color: var(--heading-color);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--accent-color);
}

.order-item {
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  color: var(--default-color);
  font-family: var(--default-font);
}

.order-item:last-child {
  border-bottom: none;
  padding-top: 15px;
  margin-top: 10px;
  border-top: 2px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.order-item.fw-bold {
  font-weight: 700;
  color: var(--heading-color);
  font-size: 1.1rem;
}

.registration-section {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
}

.registration-section h3 {
  color: var(--heading-color);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--accent-color);
}

.form-select {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-family: var(--default-font);
  transition: border-color 0.3s ease;
  color: var(--default-color);
  background-color: var(--surface-color);
  width: 100%;
}

.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 75%);
  outline: none;
}

textarea.form-control {
  resize: vertical;
}

label[for^="business-"],
label[for^="college-"] {
  margin-right: 20px;
  cursor: pointer;
  font-weight: normal;
  color: var(--default-color);
}

#business-details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.btn-success {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 15px 35px;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--nav-font);
  margin-top: 30px;
}

.btn-success:hover {
  background: #333333;
  transform: translateY(-1px);
  color: var(--contrast-color);
}

/* Responsive */
@media (max-width: 768px) {
  .registration-page {
    padding: 40px 15px;
  }

  .registration-page .header h3 {
    font-size: 2rem;
  }

  .registration-page .header h5 {
    font-size: 1.4rem;
  }

  .registration-section {
    padding: 20px;
  }
}

/* ============================================================================
   AUTH PAGES
   ============================================================================ */
.auth-shell {
  min-height: calc(100vh - 120px);
  padding: 56px 20px;
  background:
    radial-gradient(circle at top left, rgba(38, 153, 64, 0.12), transparent 24rem),
    linear-gradient(180deg, #f8fbf8 0%, #eef5ef 100%);
}

.auth-shell__panel {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 420px);
  gap: 28px;
  align-items: center;
}

.auth-shell__brand {
  padding: 12px 8px;
}

.auth-shell__brand img {
  display: block;
  margin-bottom: 1.4rem;
}

.auth-shell__eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: #1f7a33;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-shell__brand h1 {
  margin: 0 0 0.85rem;
  color: var(--heading-color);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
}

.auth-shell__brand p {
  max-width: 34rem;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 1.02rem;
  line-height: 1.75;
}

.auth-card {
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.1);
}

.auth-alert,
.auth-errors {
  margin-bottom: 1rem;
  border-radius: 16px;
}

.auth-errors {
  padding: 1rem 1.1rem;
  background: #fff5f5;
  border: 1px solid #ffd7d7;
  color: #8a1c1c;
}

.auth-errors__title {
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.auth-errors__list {
  margin: 0;
  padding-left: 1.15rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form__field {
  display: grid;
  gap: 0.45rem;
}

.auth-form__field label {
  margin: 0;
  color: var(--heading-color);
  font-size: 0.94rem;
  font-weight: 600;
}

.auth-form__hint {
  color: color-mix(in srgb, var(--default-color), transparent 28%);
  font-size: 0.82rem;
}

.auth-input {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: var(--default-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  border-color: rgba(38, 153, 64, 0.55);
  box-shadow: 0 0 0 4px rgba(38, 153, 64, 0.12);
  outline: none;
}

.auth-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: color-mix(in srgb, var(--default-color), transparent 12%);
  font-size: 0.92rem;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #269940 0%, #1f7a33 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(38, 153, 64, 0.18);
  filter: brightness(1.02);
}

.auth-links {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  display: grid;
  gap: 0.7rem;
}

.auth-links__item {
  color: #2c4f70;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-links__item:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .auth-shell {
    min-height: auto;
    padding: 32px 16px 40px;
  }

  .auth-shell__panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .auth-shell__brand {
    padding: 0 4px;
  }

  .auth-shell__brand img {
    display: none;
  }

  .auth-card {
    padding: 1.4rem;
    border-radius: 20px;
  }
}


.course-card .course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  /* Add these new properties */
  display: inline-block;
  width: auto;
  max-width: fit-content;
}

.course-card .course-badge.bestseller {
  background: #ff6b6b;
  color: white;
}

.course-card .course-badge.popular {
  background: #4ecdc4;
  color: white;
}

.course-card .course-badge.new {
  background: #ffd93d;
  color: #333;
}
