/*
Theme Name: Genetics Learning Hub
Theme URI: https://www.23andmeresearchinstitute.org/
Description: Custom child theme for 23andMe Research Institute Genetics Learning Hub - an educational platform for genetics education built on LearnDash LMS.
Author: 23andMe Research Institute
Author URI: https://www.23andmeresearchinstitute.org/
Template: kadence
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: genetics-learning-hub
*/

/* ==========================================================================
   Design Tokens - 23andMe Research Institute Brand
   Easily customizable via CSS variables
   ========================================================================== */

:root {
  /* Colors - Primary */
  --glh-color-primary: #00B5B5;
  --glh-color-secondary: #0081A5;
  --glh-color-accent: #92C746;

  /* Colors - Gradients */
  --glh-gradient-primary: linear-gradient(135deg, #00B5B5 0%, #0081A5 50%, #92C746 100%);
  --glh-gradient-secondary: linear-gradient(135deg, #FF6D19 0%, #D50F67 50%, #6F3598 100%);

  /* Colors - Neutral (matches ri-site) */
  --glh-color-text: #333435;
  --glh-color-text-light: #6B6B6B;
  --glh-color-background: #ffffff;
  --glh-color-background-alt: #f8f9fa;
  --glh-color-border: #e5e7eb;

  /* Colors - Feedback */
  --glh-color-success: #10b981;
  --glh-color-warning: #f59e0b;
  --glh-color-error: #ef4444;

  /* Typography */
  --glh-font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --glh-font-size-base: 16px;
  --glh-font-size-sm: 14px;
  --glh-font-size-lg: 18px;
  --glh-font-size-xl: 24px;
  --glh-font-size-2xl: 32px;
  --glh-font-size-3xl: 40px;
  --glh-font-size-4xl: 48px;
  --glh-line-height: 1.5;
  --glh-line-height-tight: 1.25;

  /* Spacing */
  --glh-spacing-xs: 4px;
  --glh-spacing-sm: 8px;
  --glh-spacing-md: 16px;
  --glh-spacing-lg: 24px;
  --glh-spacing-xl: 32px;
  --glh-spacing-2xl: 48px;
  --glh-spacing-3xl: 64px;

  /* Layout */
  --glh-max-width: 1440px;
  --glh-content-width: 1200px;
  --glh-container-padding: 24px;

  /* Border Radius */
  --glh-radius-sm: 4px;
  --glh-radius-md: 8px;
  --glh-radius-lg: 16px;
  --glh-radius-full: 9999px;

  /* Shadows */
  --glh-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --glh-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --glh-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --glh-transition-fast: 150ms ease;
  --glh-transition-normal: 300ms ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
  font-family: var(--glh-font-family);
  font-size: var(--glh-font-size-base);
  line-height: var(--glh-line-height);
  color: var(--glh-color-text);
  background-color: var(--glh-color-background);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--glh-font-family);
  font-weight: 600;
  line-height: var(--glh-line-height-tight);
  color: var(--glh-color-text);
}

h1 { font-size: var(--glh-font-size-4xl); }
h2 { font-size: var(--glh-font-size-3xl); }
h3 { font-size: var(--glh-font-size-2xl); }
h4 { font-size: var(--glh-font-size-xl); }
h5 { font-size: var(--glh-font-size-lg); }
h6 { font-size: var(--glh-font-size-base); }

@media (max-width: 768px) {
  h1 { font-size: var(--glh-font-size-2xl); }
  h2 { font-size: var(--glh-font-size-xl); }
  h3 { font-size: var(--glh-font-size-lg); }
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.glh-container {
  max-width: var(--glh-max-width);
  margin: 0 auto;
  padding: 0 var(--glh-container-padding);
}

.glh-content {
  max-width: var(--glh-content-width);
  margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.glh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--glh-spacing-sm) var(--glh-spacing-lg);
  font-family: var(--glh-font-family);
  font-size: var(--glh-font-size-base);
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--glh-radius-md);
  cursor: pointer;
  transition: all var(--glh-transition-fast);
}

.glh-btn-primary {
  background: linear-gradient(90deg, #6F3598 0%, #0081A5 100%);
  color: white;
  border-radius: 100px;
  padding: 14px 32px;
  font-weight: 500;
  font-size: 16px;
}

.glh-btn-primary:hover {
  background: linear-gradient(90deg, #5d2d80 0%, #006d8c 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(111, 53, 152, 0.3);
}

.glh-btn-secondary {
  background: transparent;
  color: var(--glh-color-primary);
  border: 2px solid var(--glh-color-primary);
}

.glh-btn-secondary:hover {
  background: var(--glh-color-primary);
  color: white;
}

.glh-btn-lg {
  padding: var(--glh-spacing-md) var(--glh-spacing-xl);
  font-size: var(--glh-font-size-lg);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.glh-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 13.79%, rgba(228, 228, 228, 0.5) 100%);
  border: 1px solid #CDCDCD;
  border-radius: 40px;
  box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.1);
  padding: var(--glh-spacing-2xl);
  transition: all var(--glh-transition-normal);
}

.glh-card:hover {
  box-shadow: 0px 8px 35px 0px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.glh-hero {
  background: var(--glh-gradient-primary);
  color: white;
  padding: var(--glh-spacing-3xl) 0;
  text-align: center;
}

.glh-hero h1 {
  color: white;
  margin-bottom: var(--glh-spacing-md);
}

.glh-hero p {
  font-size: var(--glh-font-size-lg);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto var(--glh-spacing-xl);
}

/* ==========================================================================
   Module Cards Grid
   ========================================================================== */

.glh-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--glh-spacing-xl);
  padding: var(--glh-spacing-3xl) 0;
}

.glh-module-card {
  text-align: center;
  padding: var(--glh-spacing-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.glh-module-card p {
  flex-grow: 1;
}

.glh-module-card .gradient-border-btn {
  margin-top: auto;
}

.glh-module-card .glh-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--glh-spacing-lg);
  background: var(--glh-color-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glh-module-card h3 {
  margin-bottom: var(--glh-spacing-sm);
}

.glh-module-card p {
  color: var(--glh-color-text-light);
  margin-bottom: var(--glh-spacing-lg);
}

/* ==========================================================================
   Video Embed
   ========================================================================== */

.glh-video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--glh-radius-lg);
  box-shadow: var(--glh-shadow-lg);
  overflow: hidden;
}

.glh-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Email Capture
   ========================================================================== */

.glh-email-capture {
  background: var(--glh-color-background-alt);
  padding: var(--glh-spacing-3xl) 0;
  text-align: center;
}

.glh-email-capture h3 {
  margin-bottom: var(--glh-spacing-sm);
}

.glh-email-capture p {
  color: var(--glh-color-text-light);
  margin-bottom: var(--glh-spacing-lg);
}

.glh-email-form {
  display: flex;
  gap: var(--glh-spacing-sm);
  max-width: 500px;
  margin: 0 auto;
}

.glh-email-form input[type="email"] {
  flex: 1;
  padding: var(--glh-spacing-sm) var(--glh-spacing-md);
  border: 1px solid var(--glh-color-border);
  border-radius: var(--glh-radius-md);
  font-size: var(--glh-font-size-base);
}

@media (max-width: 480px) {
  .glh-email-form {
    flex-direction: column;
  }
}

.glh-email-message {
  margin-top: var(--glh-spacing-md);
  padding: var(--glh-spacing-sm) var(--glh-spacing-md);
  border-radius: var(--glh-radius-md);
  font-size: var(--glh-font-size-sm);
}

.glh-email-message-success {
  background: rgba(146, 199, 70, 0.15);
  color: #5a7d2e;
  border: 1px solid rgba(146, 199, 70, 0.3);
}

.glh-email-message-error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* ==========================================================================
   Activity Cards
   ========================================================================== */

.glh-activity-card {
  border: 1px solid var(--glh-color-border);
  border-radius: var(--glh-radius-lg);
  padding: var(--glh-spacing-xl);
  margin-bottom: var(--glh-spacing-lg);
}

.glh-activity-header {
  display: flex;
  align-items: center;
  gap: var(--glh-spacing-md);
  margin-bottom: var(--glh-spacing-md);
}

.glh-activity-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--glh-color-primary);
  border-radius: var(--glh-radius-sm);
}

.glh-activity-checkbox.completed {
  background: var(--glh-color-primary);
}

.glh-activity-time {
  font-size: var(--glh-font-size-sm);
  color: var(--glh-color-text-light);
}

/* ==========================================================================
   Feedback Widget
   ========================================================================== */

.glh-feedback-widget {
  background: var(--glh-color-background-alt);
  border-radius: var(--glh-radius-md);
  padding: var(--glh-spacing-lg);
  margin-top: var(--glh-spacing-lg);
}

.glh-feedback-widget h4 {
  font-size: var(--glh-font-size-base);
  margin-bottom: var(--glh-spacing-md);
}

.glh-feedback-buttons {
  display: flex;
  gap: var(--glh-spacing-md);
  margin-bottom: var(--glh-spacing-md);
}

.glh-feedback-btn {
  padding: var(--glh-spacing-sm) var(--glh-spacing-lg);
  border: 1px solid var(--glh-color-border);
  border-radius: var(--glh-radius-md);
  background: white;
  cursor: pointer;
  transition: all var(--glh-transition-fast);
  font-size: 20px;
}

.glh-feedback-btn:hover,
.glh-feedback-btn.selected {
  border-color: var(--glh-color-primary);
  background: rgba(0, 181, 181, 0.1);
}

.glh-feedback-text {
  width: 100%;
  padding: var(--glh-spacing-sm);
  border: 1px solid var(--glh-color-border);
  border-radius: var(--glh-radius-md);
  resize: vertical;
  min-height: 80px;
  font-family: var(--glh-font-family);
}

/* ==========================================================================
   Quiz Styles
   ========================================================================== */

.glh-quiz-container {
  background: white;
  border: 1px solid var(--glh-color-border);
  border-radius: var(--glh-radius-lg);
  padding: var(--glh-spacing-xl);
  margin: var(--glh-spacing-xl) 0;
}

.glh-quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--glh-spacing-lg);
  padding-bottom: var(--glh-spacing-md);
  border-bottom: 1px solid var(--glh-color-border);
}

.glh-quiz-progress {
  font-size: var(--glh-font-size-sm);
  color: var(--glh-color-text-light);
}

.glh-quiz-question {
  font-size: var(--glh-font-size-lg);
  margin-bottom: var(--glh-spacing-lg);
}

.glh-quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--glh-spacing-sm);
}

.glh-quiz-option {
  display: flex;
  align-items: center;
  gap: var(--glh-spacing-md);
  padding: var(--glh-spacing-md);
  border: 1px solid var(--glh-color-border);
  border-radius: var(--glh-radius-md);
  cursor: pointer;
  transition: all var(--glh-transition-fast);
}

.glh-quiz-option:hover {
  border-color: var(--glh-color-primary);
  background: rgba(0, 181, 181, 0.05);
}

.glh-quiz-option.selected {
  border-color: var(--glh-color-primary);
  background: rgba(0, 181, 181, 0.1);
}

.glh-quiz-option input[type="radio"] {
  accent-color: var(--glh-color-primary);
}

/* ==========================================================================
   Text + Image Block (Two Column)
   ========================================================================== */

.glh-text-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--glh-spacing-xl);
  align-items: center;
  margin: var(--glh-spacing-xl) 0;
}

.glh-text-image.image-left {
  grid-template-columns: 1fr 1fr;
}

.glh-text-image.image-left .glh-text-image-content {
  order: 2;
}

.glh-text-image.image-left .glh-text-image-media {
  order: 1;
}

.glh-text-image-media img {
  width: 100%;
  height: auto;
  border-radius: var(--glh-radius-md);
}

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

  .glh-text-image.image-left .glh-text-image-content,
  .glh-text-image.image-left .glh-text-image-media {
    order: unset;
  }
}

/* ==========================================================================
   Collapsible Section
   ========================================================================== */

.glh-collapsible {
  border: 1px solid var(--glh-color-border);
  border-radius: var(--glh-radius-md);
  margin: var(--glh-spacing-md) 0;
  overflow: hidden;
}

.glh-collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--glh-spacing-md) var(--glh-spacing-lg);
  background: var(--glh-color-background-alt);
  cursor: pointer;
  transition: background var(--glh-transition-fast);
}

.glh-collapsible-header:hover {
  background: var(--glh-color-border);
}

.glh-collapsible-icon {
  transition: transform var(--glh-transition-normal);
}

.glh-collapsible.open .glh-collapsible-icon {
  transform: rotate(180deg);
}

.glh-collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--glh-transition-normal);
}

.glh-collapsible.open .glh-collapsible-content {
  max-height: 2000px; /* Adjust as needed */
}

.glh-collapsible-inner {
  padding: var(--glh-spacing-lg);
}

/* ==========================================================================
   Disclaimer
   ========================================================================== */

.glh-disclaimer-section {
  padding: var(--glh-spacing-xl) 0 var(--glh-spacing-3xl);
}

.glh-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--glh-spacing-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 13.79%, rgba(228, 228, 228, 0.5) 100%);
  border: 1px solid #CDCDCD;
  box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.1);
  padding: var(--glh-spacing-xl) var(--glh-spacing-2xl);
  border-radius: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.glh-disclaimer-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(54deg, #00B5B5 0%, #0081A5 50%, #92C746 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.glh-disclaimer-icon svg {
  width: 28px;
  height: 28px;
}

.glh-disclaimer-content {
  flex: 1;
  padding-top: 4px;
}

.glh-disclaimer-content h5 {
  margin: 0 0 var(--glh-spacing-sm);
  font-size: 18px;
  font-weight: 600;
  color: var(--glh-color-text);
  line-height: 125%;
}

.glh-disclaimer-content p {
  font-size: 16px;
  color: var(--glh-color-text-light);
  margin: 0;
  line-height: 150%;
}

@media (max-width: 600px) {
  .glh-disclaimer {
    flex-direction: column;
    gap: var(--glh-spacing-md);
    padding: var(--glh-spacing-lg);
    border-radius: 24px;
  }

  .glh-disclaimer-icon {
    width: 48px;
    height: 48px;
  }

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

  .glh-disclaimer-content h5 {
    font-size: 16px;
  }

  .glh-disclaimer-content p {
    font-size: 14px;
  }
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.glh-module-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--glh-spacing-xl) 0;
  border-top: 1px solid var(--glh-color-border);
  margin-top: var(--glh-spacing-xl);
}

@media (max-width: 480px) {
  .glh-module-nav {
    flex-direction: column;
    gap: var(--glh-spacing-md);
  }
}

/* ==========================================================================
   LearnDash Overrides
   ========================================================================== */

/* Course Grid */
.learndash-wrapper .ld-course-list-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--glh-spacing-xl);
}

/* Quiz Styling */
.learndash-wrapper .wpProQuiz_content {
  background: white;
  border-radius: var(--glh-radius-lg);
  padding: var(--glh-spacing-xl);
}

.learndash-wrapper .wpProQuiz_questionList {
  padding: var(--glh-spacing-md);
  margin: var(--glh-spacing-sm) 0;
  border: 1px solid var(--glh-color-border);
  border-radius: var(--glh-radius-md);
}

/* Progress Bar */
.learndash-wrapper .ld-progress-bar {
  background: var(--glh-color-background-alt);
  border-radius: var(--glh-radius-full);
}

.learndash-wrapper .ld-progress-bar-percentage {
  background: var(--glh-gradient-primary);
  border-radius: var(--glh-radius-full);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.glh-text-center { text-align: center; }
.glh-text-left { text-align: left; }
.glh-text-right { text-align: right; }

.glh-mt-0 { margin-top: 0; }
.glh-mt-md { margin-top: var(--glh-spacing-md); }
.glh-mt-lg { margin-top: var(--glh-spacing-lg); }
.glh-mt-xl { margin-top: var(--glh-spacing-xl); }

.glh-mb-0 { margin-bottom: 0; }
.glh-mb-md { margin-bottom: var(--glh-spacing-md); }
.glh-mb-lg { margin-bottom: var(--glh-spacing-lg); }
.glh-mb-xl { margin-bottom: var(--glh-spacing-xl); }

.glh-hidden { display: none; }

@media (max-width: 768px) {
  .glh-hidden-mobile { display: none; }
}

@media (min-width: 769px) {
  .glh-hidden-desktop { display: none; }
}

/* ==========================================================================
   Header - Fixed with Blur (ri-site pattern)
   ========================================================================== */

.glh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #D4D6D6;
}

.glh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.glh-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.glh-logo-img {
  width: 110px;
  height: auto;
}

@media (max-width: 768px) {
  .glh-header-inner {
    height: 72px;
  }

  .glh-logo-img {
    width: 90px;
  }
}

/* Desktop Navigation */
.glh-nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .glh-nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
  }
}

.glh-nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.glh-nav-menu li a {
  color: #9C9EA1;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.glh-nav-menu li a:hover,
.glh-nav-menu li.current-menu-item a {
  color: #333435;
}

/* Green CTA Button */
.glh-btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3BA510;
  color: white;
  font-family: var(--glh-font-family);
  font-weight: 500;
  font-size: 16px;
  border-radius: 9999px;
  padding: 12px 24px;
  text-decoration: none;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.glh-btn-green:hover {
  background: #2d8a0a;
  color: white;
}

/* Mobile Menu Toggle */
.glh-mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .glh-mobile-menu-toggle {
    display: none;
  }
}

.glh-hamburger-line {
  width: 24px;
  height: 2px;
  background: #333435;
  transition: all 0.3s ease;
}

/* Mobile Navigation */
.glh-nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #D4D6D6;
  padding: 16px 24px;
}

.glh-nav-mobile.is-open {
  display: block;
}

.glh-nav-menu-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
}

.glh-nav-menu-mobile li {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.glh-nav-menu-mobile li:last-child {
  border-bottom: none;
}

.glh-nav-menu-mobile li a {
  color: #333435;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

/* Body padding for fixed header */
body {
  padding-top: 100px;
}

@media (max-width: 768px) {
  body {
    padding-top: 72px;
  }
}

/* ==========================================================================
   Gradient Border Buttons (ri-site pattern)
   ========================================================================== */

.gradient-border-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 100px;
  padding: 14px 32px;
  font-family: var(--glh-font-family);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.gradient-border-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  padding: 2px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gradient-border-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Module 1: Genetic Foundations - Teal/Green gradient */
.gradient-border-btn-module1 {
  color: #00B5B5;
}

.gradient-border-btn-module1::before {
  background: linear-gradient(263.69deg, #92C746 6.56%, #0081A5 29.51%, #00B5B5 96.21%);
}

/* Module 2: Genetics & Health - Orange/Pink gradient */
.gradient-border-btn-module2 {
  color: #D50F67;
}

.gradient-border-btn-module2::before {
  background: linear-gradient(86.48deg, #FF6D19 4.94%, #D50F67 69.11%, #6F3598 96.61%);
}

/* Module 3: Family History - Purple/Blue gradient */
.gradient-border-btn-module3 {
  color: #6F3598;
}

.gradient-border-btn-module3::before {
  background: linear-gradient(86.48deg, #6F3598 4.94%, #3595D6 96.61%);
}

/* ==========================================================================
   Module Card Icon Gradients
   ========================================================================== */

.glh-module-card:nth-child(1) .glh-icon {
  background: linear-gradient(135deg, #00B5B5 0%, #92C746 100%);
}

.glh-module-card:nth-child(2) .glh-icon {
  background: linear-gradient(135deg, #D50F67 0%, #FF6119 100%);
}

.glh-module-card:nth-child(3) .glh-icon {
  background: linear-gradient(135deg, #6F3598 0%, #3595D6 100%);
}

/* ==========================================================================
   Footer (ri-site pattern)
   ========================================================================== */

.glh-footer {
  background: white;
  border-top: 1px solid #e5e7eb;
}

.glh-footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Logo and Links Row */
.glh-footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .glh-footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.glh-footer-logo-link {
  flex-shrink: 0;
}

.glh-footer-logo {
  width: 140px;
  height: auto;
}

/* Footer Links */
.glh-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .glh-footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
}

.glh-footer-links a {
  font-family: var(--glh-font-family);
  font-size: 10px;
  font-weight: 500;
  color: #333435;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.glh-footer-links a:hover {
  opacity: 0.7;
}

/* Copyright */
.glh-footer-copyright {
  font-family: var(--glh-font-family);
  font-size: 12px;
  color: #6B6B6B;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   About Section (Brought to you by...)
   ========================================================================== */

.glh-about-section {
  background: #f9fafb;
  padding: 80px 0;
}

.glh-about-section .glh-container {
  max-width: 900px;
}

.glh-about-section h3 {
  font-family: var(--glh-font-family);
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.glh-about-section p {
  font-family: var(--glh-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #6B6B6B;
  margin: 0;
}

@media (max-width: 768px) {
  .glh-about-section {
    padding: 60px 0;
  }

  .glh-about-section h3 {
    font-size: 24px;
  }
}

/* ==========================================================================
   DNA Deep-Dives Section Header
   ========================================================================== */

.glh-deep-dives {
  padding: var(--glh-spacing-3xl) 0;
}

.glh-section-header {
  text-align: center;
  margin-bottom: var(--glh-spacing-xl);
}

.glh-section-header h2 {
  font-family: var(--glh-font-family);
  font-size: 40px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.glh-section-header p {
  font-family: var(--glh-font-family);
  font-size: 18px;
  color: #6B6B6B;
  margin: 0;
}

/* Gradient Border Pill (inline text) */
.gradient-border-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  padding: 10px 28px;
  font-weight: 600;
  font-size: inherit;
  background: linear-gradient(90deg, #00A5A5 0%, #0090B0 50%, #60B030 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* White background layer */
.gradient-border-pill::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 100px;
  background: white;
  z-index: -1;
}

/* Gradient border */
.gradient-border-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, #00A5A5 0%, #0090B0 50%, #60B030 100%);
  z-index: -2;
}

@media (max-width: 768px) {
  .glh-section-header h2 {
    font-size: 28px;
  }

  .gradient-border-pill {
    padding: 6px 16px;
  }
}

/* ==========================================================================
   Tutor LMS Typography - Apply Poppins font
   ========================================================================== */

.tutor-wrap,
.tutor-wrap *,
.tutor-course-details-page,
.tutor-course-details-page * {
  font-family: var(--glh-font-family);
}

/* ==========================================================================
   Tutor LMS - Hide Uncategorized Label
   ========================================================================== */

/* Hide elements with "uncategorized" in URL */
a[href*="uncategorized"],
.tutor-meta-value a[href*="uncategorized"],
.tutor-course-categories a[href*="uncategorized"] {
  display: none !important;
}

/* Class added by JS to hide uncategorized parent containers */
.glh-hide-uncategorized {
  display: none !important;
}

/* ==========================================================================
   Tutor LMS - Start Learning Button (Gradient Border Style)
   ========================================================================== */

.tutor-course-single-btn-group .tutor-btn-primary,
.tutor-lead-info-btn-group .tutor-btn-primary,
.tutor-btn.tutor-btn-primary.tutor-btn-lg {
  position: relative;
  background: white !important;
  color: #00B5B5 !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 14px 32px !important;
  font-family: var(--glh-font-family);
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s ease;
}

.tutor-course-single-btn-group .tutor-btn-primary::before,
.tutor-lead-info-btn-group .tutor-btn-primary::before,
.tutor-btn.tutor-btn-primary.tutor-btn-lg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  padding: 2px;
  background: linear-gradient(263.69deg, #92C746 6.56%, #0081A5 29.51%, #00B5B5 96.21%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.tutor-course-single-btn-group .tutor-btn-primary:hover,
.tutor-lead-info-btn-group .tutor-btn-primary:hover,
.tutor-btn.tutor-btn-primary.tutor-btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hide "A course by" author section */
.tutor-course-details-instructors,
.tutor-course-instructors,
.tutor-single-course-author-meta {
  display: none !important;
}

/* Module Content title - brand Periwinkle blue */
.tutor-accordion-item-header-title {
  color: #3595D6 !important;
}

/* Quiz Submit & Next button - Blue/Purple gradient (from ri-site TogetherSection) */
.tutor-quiz-wrapper .tutor-btn-primary {
  background: linear-gradient(69.45deg, #4C79D2 0%, #7647CC 41.95%, #961FC7 96.96%) !important;
  color: white !important;
  border-radius: 9999px !important;
  padding: 16px 32px !important;
  font-family: var(--glh-font-family) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  transition: opacity 0.2s ease;
}

.tutor-quiz-wrapper .tutor-btn-primary:hover {
  opacity: 0.9;
}

/* Quiz Back button - Gradient border style like homepage "Learn more" */
.tutor-quiz-wrapper .tutor-btn-outline-primary,
.tutor-quiz-wrapper .tutor-btn:not(.tutor-btn-primary) {
  position: relative;
  background: white !important;
  color: #00B5B5 !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 16px 32px !important;
  font-family: var(--glh-font-family) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  transition: all 0.2s ease;
}

.tutor-quiz-wrapper .tutor-btn-outline-primary::before,
.tutor-quiz-wrapper .tutor-btn:not(.tutor-btn-primary)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  padding: 2px;
  background: linear-gradient(263.69deg, #92C746 6.56%, #0081A5 29.51%, #00B5B5 96.21%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.tutor-quiz-wrapper .tutor-btn-outline-primary:hover,
.tutor-quiz-wrapper .tutor-btn:not(.tutor-btn-primary):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Quiz/Lesson header bar - Purple from button gradient */
.tutor-course-topic-single-header,
.tutor-single-page-top-bar {
  background: #7647CC !important;
}

/* ==========================================================================
   Anonymous Progress Tracking - Visual Indicators
   ========================================================================== */

/* Completed item in course curriculum */
.glh-completed {
  position: relative;
}

.glh-completed::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #00B5B5 0%, #92C746 100%);
  border-radius: 2px;
}

/* Checkmark indicator */
.glh-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #00B5B5 0%, #92C746 100%);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Progress badge on homepage module cards */
.glh-progress-badge {
  display: inline-block;
  background: linear-gradient(135deg, #00B5B5 0%, #92C746 100%);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

/* Module card with progress */
.glh-module-card.has-progress .glh-icon {
  position: relative;
}

.glh-module-card.has-progress .glh-icon::after {
  content: '✓';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #3BA510;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
