:root {
  --bg-color: #f2f2f7; 
  --card-bg: #ffffff;
  --text-primary: #000000;
  --text-secondary: #8e8e93;
  --border-color: #e5e5ea;
  
  /* Navigation Bar Variables */
  --nav-active: #007aff;
  --nav-inactive: #000000;
  --nav-bg: rgba(255, 255, 255, 0.95);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  margin: 0;
  padding: 20px;
  padding-bottom: 110px;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  max-width: 650px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* --- Top Navigation / Back Link --- */

.nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #e9ecef;
  
  /* Make the header fixed/sticky at the top */
  position: sticky;
  top: 0;
  background-color: var(--card-bg);
  z-index: 1000;
}

.nav-left {
  justify-self: start;
}

.nav-center {
  justify-self: center;
}

.nav-right {
  justify-self: end;
}

.back-link {
  text-decoration: none;
  color: #0066cc;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #004c99;
  text-decoration: underline;
}

/* --- Settings Dropdown & Header --- */
.header-actions {
  position: relative;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  width: 24px;
  height: 24px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 12px;
  width: 220px;
  z-index: 2000;
  padding: 8px 0;
  margin-top: 8px;
}

.dropdown-header {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.dropdown-item {
  padding: 12px 16px;
  font-size: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  user-select: none;
}

.dropdown-item:hover {
  background-color: var(--bg-color);
}

.check-icon {
  width: 24px;
  font-size: 15px;
  font-weight: 800;
  visibility: hidden;
  color: var(--text-primary);
}

.dropdown-item.checked .check-icon {
  visibility: visible;
}

.hidden {
  display: none !important;
}

/* --- Dynamic Column Visibility Utility Classes --- */
.hide-script .col-script { display: none; }
.hide-translit .col-translit { display: none; }
.hide-native .col-native { display: none; }
.hide-native-sentence .native-translation { display: none; }

/* --- Dialogue Rendering --- */
.dialogue-container table {
  width: 100%;
  table-layout: fixed; 
}

.dialogue-container td, 
.dialogue-container th {
  overflow-wrap: anywhere; 
  word-break: break-word;  
  hyphens: auto;           
}

.dialogue-header h2 {
  font-size: 26px;
  margin-bottom: 12px;
  color: #111;
}

.dialogue-header .summary {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 24px;
}

.audio-wrapper {
  margin-bottom: 12px;
}

audio {
  width: 100%;
  height: 40px;
}

.line-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.words-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.words-table th {
  text-align: left;
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
  padding-bottom: 8px;
}

.words-table td {
  padding: 6px 0;
  font-size: 18px;
  vertical-align: top;
}

.target-text {
  font-family: Arial, sans-serif;
}

.translit-text {
  color: #212529;
}

.native-text {
  color: #495057;
}

.native-translation {
  font-style: italic;
  font-size: 16px;
  color: #333;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.placeholder-text {
  text-align: center;
  color: #888;
  padding: 40px 0;
}

.error-msg {
  text-align: center;
  color: #dc3545;
  margin-top: 40px;
}

/* --- Playback Controls --- */

.play-all-btn {
  background-color: #28a745;
  color: #fff;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 8px 24px;
  border-radius: 20px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  height: 36px;
  white-space: nowrap;
}

/* On small screens, hide the word "to Library" so the header doesn't crowd */
@media (max-width: 480px) {
  .back-text {
    display: none;
  }
  .back-link::after {
    content: "Back";
  }
}

.play-all-btn:hover {
  background-color: #218838;
}

.play-all-btn.paused-state {
  background-color: #ffc107;
  color: #212529;
}

.play-all-btn.paused-state:hover {
  background-color: #e0a800;
}

.line-block {
  transition: background-color 0.4s ease, transform 0.4s ease;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid transparent; 
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.line-block.active-playing {
  background-color: #f0f7ff;
  border: 1px solid #cce5ff;
  transform: scale(1.02);
  border-bottom: 1px solid #cce5ff;
}

/* --- Library App specific UI --- */
#library-container {
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px 10px 16px;
}

.section-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-secondary);
}

.chevron-up {
  color: var(--text-secondary);
  font-size: 20px;
  font-weight: 600;
  transform: scaleX(1.5);
}

.section-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 0 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

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

.text-content {
  flex: 1;
  min-width: 0;
  padding-right: 16px;
}

.item-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-summary {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chevron-right {
  color: #c7c7cc;
  font-size: 24px;
  font-weight: 400;
}

/* --- Bottom/Sidebar Navigation Bar Styles --- */
#nav-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 85%;
  max-width: 400px;
  z-index: 1000;
  box-sizing: border-box;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--nav-inactive);
  font-size: 12px;
  font-weight: 500;
  gap: 4px;
  transition: color 0.2s ease;
}

.nav-item.active {
  color: var(--nav-active);
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  body {
    padding-left: 100px; 
    padding-bottom: 20px;
  }

  #nav-bar {
    bottom: 0;
    top: 0;
    left: 0;
    transform: none;
    width: 80px;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-radius: 0;
    padding: 40px 0;
    gap: 36px;
    box-shadow: 1px 0 5px rgba(0,0,0,0.05);
    border-right: 1px solid var(--border-color);
    max-width: none;
  }
}

/* --- Settings UI --- */
#settings-container {
  max-width: 600px;
  margin: 0 auto;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  margin: 20px 16px 24px 16px;
  color: var(--text-primary);
}

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

.settings-section-title {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 8px 16px;
  font-weight: 500;
}

.settings-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 0 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-primary);
  min-height: 48px;
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row.clickable {
  cursor: pointer;
}

.settings-row.action-row {
  justify-content: center;
  color: #ff3b30; /* iOS red */
  font-size: 17px;
}

.settings-label {
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-value {
  font-size: 17px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-value.blue {
  color: #007aff;
}

.settings-icon-right {
  font-size: 18px;
  color: #c7c7cc;
}

.btn-change {
  background-color: #e5f1ff;
  color: #007aff;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

/* Learning Path specific styles */
.learning-path-wrapper {
  display: flex;
  flex-direction: column;
}

.learning-path-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.learning-path-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Document Access Authorization --- */
.summary-item.locked-item {
  opacity: 0.5;
  cursor: default;
}

.summary-item.locked-item:active {
  background-color: transparent;
}

.lock-icon {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Activity Page (mirrors ActivityView.swift) --- */

#activity-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.hero-streak-card,
.goal-stepper-card,
.stat-card,
.chart-card,
.daily-section,
.monthly-section {
  background-color: var(--card-bg);
}

.hero-streak-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 25px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.streak-number {
  font-size: 60px;
  font-weight: 900;
  color: #ff9500;
  line-height: 1;
}

.streak-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.flame-icon svg {
  display: block;
}

.goal-stepper-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 15px;
  padding: 16px;
}

.goal-label {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 149, 0, 0.12);
  color: #ff9500;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.stepper-value {
  font-weight: 700;
  color: #ff9500;
  min-width: 56px;
  text-align: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.stat-card {
  border-radius: 15px;
  padding: 16px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.stat-blue {
  color: #007aff;
}

.stat-green {
  color: #34c759;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
}

.chart-card,
.daily-section,
.monthly-section {
  border-radius: 20px;
  padding: 16px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  padding-top: 8px;
}

.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.chart-bar {
  width: 100%;
  max-width: 28px;
  background: linear-gradient(180deg, #ffb340, #ff9500);
  border-radius: 4px 4px 0 0;
}

.chart-bar-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.empty-hint {
  color: var(--text-secondary);
  font-size: 14px;
}

.daily-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.today-btn {
  border: none;
  background-color: rgba(255, 149, 0, 0.1);
  color: #ff9500;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.date-dial {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 2px;
  scrollbar-width: none;
}

.date-dial::-webkit-scrollbar {
  display: none;
}

.date-chip {
  flex: 0 0 auto;
  width: 58px;
  height: 82px;
  border-radius: 15px;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.date-chip-month {
  font-size: 9px;
  font-weight: 900;
  color: #ff9500;
}

.date-chip-weekday {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.date-chip-day {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.date-chip.selected {
  background-color: #ff9500;
}

.date-chip.selected .date-chip-month {
  color: rgba(255, 255, 255, 0.8);
}

.date-chip.selected .date-chip-weekday,
.date-chip.selected .date-chip-day {
  color: #fff;
}

.daily-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-color);
  border-radius: 20px;
  padding: 16px;
  margin-top: 8px;
}

.daily-detail-date {
  font-weight: 700;
}

.daily-detail-total {
  color: #ff9500;
  font-weight: 700;
}

.monthly-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.year-select {
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.monthly-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 8px 0 4px;
}

.month-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.month-row-label {
  width: 40px;
  font-weight: 700;
  font-size: 14px;
}

.progress-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background-color: rgba(150, 150, 150, 0.15);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #ff9500;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.month-row-value {
  width: 80px;
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 600;
  font-size: 14px;
}

.month-row-value.muted {
  color: var(--text-secondary);
}

/* --- Subscriptions & Catalogue --- */
.subscription-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.subscription-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.subscription-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.subscription-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 2px 0;
}

.subscription-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-active {
  background-color: rgba(52, 199, 89, 0.15);
  color: #1a7a34;
}

.status-inactive {
  background-color: rgba(142, 142, 147, 0.15);
  color: #6c6c70;
}

.subscription-actions {
  margin-top: 12px;
}

.btn-secondary-pill,
.btn-danger-pill,
.btn-subscribe {
  border: none;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary-pill {
  background-color: #e5f1ff;
  color: #007aff;
}

.btn-danger-pill {
  background-color: #fff0ef;
  color: #ff3b30;
}

.btn-subscribe {
  background-color: #007aff;
  color: #fff;
}

.catalogue-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  gap: 12px;
}

.catalogue-option-row:first-of-type {
  border-top: none;
}

.catalogue-price-and-button {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalogue-price {
  font-weight: 700;
  color: var(--text-primary);
}

/* --- Library Modules Carousel (Matches iOS Card Design) --- */
.modules-section {
  margin: 24px 16px 32px 16px;
  position: relative;
}

.modules-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  gap: 16px;
  padding-bottom: 12px; /* Space for the drop shadow */
}

.modules-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* .module-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background-color: var(--card-bg);
  border-radius: 24px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.2s ease;
} */

.module-card {
  flex: 0 0 85%; /* Adjusted from 100% to reveal the next card */
  scroll-snap-align: center;
  background-color: var(--card-bg);
  border-radius: 24px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  /* box-shadow removed */
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

.module-card:active {
  transform: scale(0.98);
}

.module-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  flex-shrink: 0;
}

.module-icon-circle svg {
  width: 32px;
  height: 32px;
}

.module-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.module-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.module-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.3;
}

/* --- Typography & Spacing (Mirrors SwiftUI Modifiers) --- */
.module-container {
  padding: 0 16px;
}

.module-h1 { 
  font-size: 34px; 
  font-weight: 700; 
  margin: 0 0 20px 0; 
}

.module-h2 { 
  font-size: 22px; 
  font-weight: 700; 
  margin: 24px 0 12px 0; 
}

.module-h3 { 
  font-size: 17px; 
  font-weight: 600; 
  margin: 0 0 8px 0; 
}

.module-body { 
  font-size: 17px; 
  color: var(--text-secondary); 
  line-height: 1.5; 
  margin: 0 0 16px 0; 
}

/* --- Lists --- */
.module-list { 
  margin: 0 0 16px 0; 
  padding-left: 20px; 
  color: var(--text-secondary); 
  font-size: 17px; 
  line-height: 1.5; 
}

.module-list li { 
  margin-bottom: 8px; 
}

/* --- Tables --- */
.module-table { 
  width: 100%; 
  border-collapse: separate; 
  border-spacing: 0; 
  border-radius: 8px; 
  border: 1px solid rgba(0,0,0,0.1);
  margin: 16px 0;
  overflow: hidden;
}

.module-table th { 
  padding: 8px 12px; 
  font-size: 15px; 
  font-weight: bold; 
  text-align: left; 
}

.module-table td { 
  padding: 8px 12px; 
  font-size: 17px; 
}

/* --- Dynamic Theme Colors --- */
/* Green */
.text-green { color: #34c759; }
.border-green { border-color: rgba(52, 199, 89, 0.2); }
.bg-green-light { background-color: rgba(52, 199, 89, 0.2); }
.bg-green-ultralight { background-color: rgba(52, 199, 89, 0.05); }

/* Blue */
.text-blue { color: #007aff; }
.border-blue { border-color: rgba(0, 122, 255, 0.2); }
.bg-blue-light { background-color: rgba(0, 122, 255, 0.2); }
.bg-blue-ultralight { background-color: rgba(0, 122, 255, 0.05); }

/* Orange */
.text-orange { color: #ff9500; }
.border-orange { border-color: rgba(255, 149, 0, 0.2); }
.bg-orange-light { background-color: rgba(255, 149, 0, 0.2); }
.bg-orange-ultralight { background-color: rgba(255, 149, 0, 0.05); }

/* Purple */
.text-purple { color: #af52de; }
.border-purple { border-color: rgba(175, 82, 222, 0.2); }
.bg-purple-light { background-color: rgba(175, 82, 222, 0.2); }
.bg-purple-ultralight { background-color: rgba(175, 82, 222, 0.05); }

/* Teal */
.text-teal { color: #5ac8fa; }
.border-teal { border-color: rgba(90, 200, 250, 0.2); }
.bg-teal-light { background-color: rgba(90, 200, 250, 0.2); }
.bg-teal-ultralight { background-color: rgba(90, 200, 250, 0.05); }

/* Gray (Default Fallback) */
.text-gray { color: #8e8e93; }
.border-gray { border-color: rgba(142, 142, 147, 0.2); }
.bg-gray-light { background-color: rgba(142, 142, 147, 0.2); }
.bg-gray-ultralight { background-color: rgba(142, 142, 147, 0.05); }

/* --- Responsive YouTube Video Container --- */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  margin: 20px 0 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}