* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans Pro', 'Lato', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #3a3a59;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 20px;
}

.main-content {
  padding: 0 0 60px 0;
}

.header-subtitle-text {
  text-align: center;
  font-size: 18px;
  color: #555;
  font-style: italic;
  margin-bottom: 30px;
  margin-top: 20px;
}

.header-banner {
  width: 100%;
  height: 90vh;
  color: white;
  position: relative;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.header-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.header-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.desktop-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.desktop-nav-link.active,
.desktop-nav-link:hover {
  background-color: #6a4d8a;
}

.col-10.offset-1.header-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  height: 100%;
  margin: 0 auto;
  width: 100%;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  width: 100%;
}

.header-banner h1 {
  font-size: 48px;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.header-banner p {
  font-size: 20px;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  opacity: 0.95;
  margin: 0 0 15px 0;
}

.cta-button {
  display: inline-block;
  background-color: #f1d204;
  color: #0a0707;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #6a4d8a;
  color: white;
}

.video-container video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Scoped to the topics section so these don't leak onto the courses page */
.section .course-grid,
.section .courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  margin: 40px 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section .courses-grid .course-card {
  max-width: 480px;
  margin: 0 auto;
}

.course-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.course-video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.course-content {
  padding: 25px;
}

.course-content h3 {
  margin-bottom: 15px;
}

.course-content p {
  margin-bottom: 15px;
}

.course-content .btn {
  display: inline-block;
  background: #f1d204;
  color: #0a0707;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.course-content .btn:hover {
  background: #6a4d8a;
  color: white;
  transform: translateY(-2px);
}

/* Override turbo link styling */
.turbo-link {
  text-decoration: none !important;
  color: inherit !important;
}

.turbo-link h3,
.turbo-link p {
  text-decoration: none !important;
}

/* Force black text in turbo links */
.turbo-link *,
.turbo-link [data-turbo-stop-propagation] {
  color: inherit !important;
}

.course-card[data-turbo] h3,
.course-card[data-turbo] p {
  pointer-events: none;
}

.btn-outline {
  border: 2px solid #6a4d8a;
  color: #6a4d8a;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #6a4d8a;
  color: white;
}

.benefits-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
  margin-bottom: 60px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.benefit-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.benefit-card h4 {
  color: #6a4d8a;
  font-weight: 600;
  margin-bottom: 10px;
}

.cta-large {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #6a4d8a 0%, #4a3570 100%);
  color: white;
}

.cta-large h2 {
  color: white;
  margin-bottom: 20px;
}

.cta-large p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-large .btn {
  display: inline-block;
  background: #f1d204;
  color: #0a0707;
  padding: 15px 40px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
}

.cta-large .btn:hover {
  background: white;
  color: #6a4d8a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.info-box {
  padding: 20px 25px;
  margin: 30px 0;
}

.info-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.info-box h4 {
  color: #1e7fd4;
  margin-bottom: 10px;
  font-size: 16px;
}

.features-list {
  list-style: none;
  margin: 20px 0;
}

.features-list li {
  padding: 10px 0 10px 30px;
  position: relative;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4CAF50;
  font-weight: bold;
  font-size: 18px;
}

.features-list strong {
  color: #6a4d8a;
}

.footer {
  background: #0a0707;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer .footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.footer .footer-links a:hover {
  color: #f1d204;
}

@media (min-width: 992px) {
  .desktop-header {
    display: block;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
  }

  .main-content {
    margin-top: 80px;
  }

  .header-banner {
    height: 100vh;
    min-height: 600px;
    color: white;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
  }

  .header-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
  }

  .header-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.6);
  }

  .col-10.offset-1.header-banner-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10;
    margin: 0 !important;
    padding: 100px 30px 80px 30px !important;
    width: 100%;
    box-sizing: border-box;
    max-width: 1000px;
  }

  .content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    padding: 0;
    margin-top: 0;
  }

  .header-banner-content h1 {
    font-size: 56px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0 0 15px 0;
  }

  .header-banner-content p {
    font-size: 22px;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
    text-align: center;
    margin: 0 0 25px 0;
    max-width: 700px;
  }

  .cta-button {
    margin: 30px 0 0 0;
    font-size: 18px;
    padding: 14px 35px;
  }

  .topics-header-banner {
    margin: 40px 0;
  }
}

@media (max-width: 992px) {
  .section h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }

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

  .cta-large {
    padding: 60px 0;
  }

  .cta-large .btn {
    padding: 12px 35px;
    font-size: 16px;
  }

  .header-banner {
    display: none;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
