.button {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: var(--margin-xs);
  background: var(--primary-color);
  border-radius: var(--border-radius-lg);
  padding: var(--padding-xs) var(--padding-sm);
  cursor: pointer;
  margin-top: var(--margin-xs);
}

.button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color, #224039);
  border-radius: 50%;
  margin-right: 0;
}

.button-icon img {
  width: 22px;
  height: 22px;
  display: block;
  filter: invert(100%);
}

.button-text {
  font-weight: 600;
  font-size: var(--font-size-sm);
  padding: var(--padding-xs) var(--padding-sm);
  color: var(--secondary-color);
}

.button-icon-only {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
}

.card {
    background-color: var(--accent-color);
    padding: var(--padding-md);
    margin-bottom: var(--margin-lg);
}

.divider {
  height: 1px;
  background-color: var(--primary-color);
  margin: var(--margin-md) 0;
}

.footer {
    padding-top: var(--padding-lg);
    background-color: var(--primary-color);
    padding: var(--padding-xxl) var(--padding-lg);
}

.footer-container {
    max-width: var(--max-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
} 

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

.footer-links {
    display: flex;
    color: var(--secondary-color);
    gap: var(--margin-md);
}

@media screen and (max-width: 512px) {

    .footer-container {
        flex-direction: column;
        gap: var(--margin-lg);
        align-items: flex-start;
        justify-content: flex-start;
    }
    .footer-logo {
        height: 32px;
    }
}

.h-paragraph {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  font-size: var(--font-size-md);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 65%;
}

@media screen and (max-width: 512px) {
  .h-paragraph {
    font-size: var(--font-size-sm);
    line-height: 1.4;
    max-width: 100%;
  }
}


.h1-section {
  background-color: var(--h1-bg-color, var(--primary-color));
  padding: var(--padding-xl) var(--padding-xl) ;
  margin: 0;
}

.h1-section-header {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.h1-section-title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xxxl);
  text-align: left;
  margin: 0;
  line-height: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

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

/* Star variant styles */
.h1-section-with-star {
  position: relative;
  overflow: visible; /* Allow star to overflow outside the section */
}

.h1-section-star {
  position: absolute;
  bottom: -70px; /* Position so half the star (64px) is outside the section */
  z-index: 1;
  pointer-events: none;
}

.h1-section-star-left {
  left: var(--padding-lg);
}

.h1-section-star-right {
  right: var(--padding-lg);
}

.star-icon {
  width: 128px; /* Much larger star */
  height: 128px;
  opacity: 1;
}

@media screen and (max-width: 512px) {
  .h1-section {
    padding: var(--padding-lg) var(--padding-lg);
  }
  
  .h1-section-title {
    font-size: var(--font-size-xl);
    line-height: 1.1;
    word-break: break-word;
  }
  
  .h1-section-star {
    display: none; /* Hide star decoration on mobile */
  }
}


.h2-section {
  background-color: var(--accent-color);
  padding: var(--padding-xl) var(--padding-xl) ;
  margin: 0;
}

.h2-section-header {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.h2-section-title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xxl);
  text-align: left;
  margin: 0;
  line-height: 1;
  margin-bottom: var(--padding-sm);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

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

/* Background Image variant */
.h2-section-bgimage {
  position: relative;
  background-repeat: no-repeat;
  background-position: center 10%;
  background-size: cover;
}

.h2-section-bgimage .h2-section-header,
.h2-section-bgimage .h2-section-content {
  position: relative;
  z-index: 1;
}

.h2-section-bgimage-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; /* expanded for better Safari support than inset */
  z-index: 0;
  pointer-events: none;
}

/* Hide mobile image on desktop */
.h2-section-mobile-image {
  display: none;
}

/* Video Right variant */
.h2-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--padding-xl);
  /* Align items to the start so the grid row height equals the tallest content,
     without adding extra vertical whitespace inside shorter cells */
  align-items: start;
}

.h2-section-grid-left {
  display: flex;
  flex-direction: column;
  justify-content: center; /* center the text stack within its grid cell */
  gap: var(--padding-md);
}

.h2-section-grid-right {
  display: flex;           /* allow centering of the video block in its cell */
  align-items: center;     /* vertical centering */
}

.h2-section-grid-right .video,
.h2-section-grid-right .video-container,
.h2-section-grid-right .video-iframe,
.h2-section-grid-right .video-player {
  width: 100%;
}

/* Ensure the container itself enforces a 16:9 box, and children fill it */
.h2-section-grid-right .video,
.h2-section-grid-right .video-container {
  height: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.h2-section-grid-right .video-iframe,
.h2-section-grid-right .video-player {
  aspect-ratio: 16 / 9;
  height: 100%;
}

/* Star variant styles */
.h2-section-with-star {
  position: relative;
  overflow: visible; /* Allow star to overflow outside the section */
}

.h2-section-star {
  position: absolute;
  bottom: -70px; /* Position so half the star (64px) is outside the section */
  z-index: 1;
  pointer-events: none;
}

.h2-section-star-left {
  left: var(--padding-lg);
}

.h2-section-star-right {
  right: var(--padding-lg);
}

.star-icon {
  width: 128px; /* Much larger star */
  height: 128px;
  opacity: 1;
}

@media screen and (max-width: 512px) {
  .h2-section {
    padding: var(--padding-lg) var(--padding-lg);
  }
  .h2-section-grid {
    grid-template-columns: 1fr;
  }
  
  .h2-section-title {
    font-size: var(--font-size-xl);
    line-height: 1.1;
    word-break: break-word;
  }
  
  .h2-section-star {
    display: none; /* Hide star decoration on mobile */
  }

  /* For backgroundImage variant: remove background image and show mobile image */
  .h2-section-bgimage {
    background-image: none !important;
  }
  
  .h2-section-bgimage-overlay {
    display: none;
  }
  
  .h2-section-mobile-image {
    display: block;
    margin-top: var(--padding-lg);
  }
}


.h2-video {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  padding-top: var(--padding-xl);
  margin: 0 auto;
  gap: var(--padding-xl);
}

.h2-video-left {
  display: flex;
  flex-direction: column;
  gap: var(--padding-md);
  flex: 1;
}

.h2-video-text {
  font-size: var(--font-size-lg);
  line-height: 1.2;
}

.h2-video-button {
  margin-top: var(--padding-sm);
}

.h2-video-right {
  flex: 1;
}

.h2-video-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}


@media screen and (max-width: 512px) {
  .h2-video {
    flex-direction: column;
    gap: var(--padding-md);
  }
  
  /* Default mobile order: text first, video second (bottom) */
  .h2-video-mobile-bottom .h2-video-left {
    order: 1;
  }
  
  .h2-video-mobile-bottom .h2-video-right {
    order: 2;
  }
  
  /* Alternative mobile order: video first (top), text second */
  .h2-video-mobile-top .h2-video-left {
    order: 2;
  }
  
  .h2-video-mobile-top .h2-video-right {
    order: 1;
  }
  
  .h2-video-text {
    font-size: var(--font-size-md);
    line-height: 1.4;
  }
  
  /* Ensure video takes full width in mobile */
  .h2-video-left,
  .h2-video-right {
    width: 100%;
    flex: none;
  }
  
  .h2-video-video {
    min-height: 200px; /* Ensure minimum height for mobile */
  }
}




.hbutton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 560px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: var(--border-radius-lg);
  padding: var(--padding-sm) var(--padding-lg);
  text-decoration: none;
}

.hbutton-content { display: flex; flex-direction: column; }
.hbutton-title { font-weight: var(--font-weight-bold); font-size: var(--font-size-lg); }
.hbutton-subtitle { font-weight: var(--font-weight-regular); font-size: var(--font-size-sm); opacity: 0.9; }

.hbutton-arrow { display: flex; align-items: center; color: var(--primary-color); }
.hbutton-arrow svg {
  width: 56px;
  height: 56px;
  stroke-width: 4;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
}

@media screen and (max-width: 512px) {
  .hbutton {
    padding: var(--padding-sm) var(--padding-md);
    max-width: 100%;
  }
  
  .hbutton-title {
    font-size: var(--font-size-md);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .hbutton-subtitle {
    font-size: var(--font-size-xs);
  }
  
  .hbutton-arrow svg {
    width: 40px;
    height: 40px;
  }
}

/* Variant: title + arrow only */
.hbutton--title-arrow .hbutton-content { flex-direction: row; align-items: center; gap: var(--spacing-sm); }
.hbutton--title-arrow .hbutton-title { font-size: var(--font-size-lg); }
.hbutton--title-arrow .hbutton-subtitle { display: none; }




.hcard-container {
  padding-bottom: var(--margin-lg);
  background: var(--primary-color);
}

.hcard {
  width: 100%;
}

.hcard-outer {
  display: grid;
  grid-template-columns: 1fr minmax(0, calc(var(--max-width) + var(--padding-xxl))) 1fr;
  align-items: stretch;
  min-height: 200px;
  width: 100%;
}

.hcard-side {
  background: var(--primary-color);
}

.hcard-center {
  background: var(--primary-color-light);
  color: var(--accent-color);
  padding: var(--padding-lg);
}

/* Inner two-column layout when a number is present */
.hcard-inner {
  display: grid;
  align-items: center;
  justify-content: center;
  height: 100%;
  grid-template-columns: auto 1fr auto;
  gap: var(--padding-lg);
}

.hcard-number {
  font-family: var(--font-display, inherit);
  font-weight: var(--font-weight-bold);
  font-size: 8rem;
  line-height: 1;
  color: var(--accent-color);
  align-self: center;
}

  .hcard-body {
    display: grid;
    gap: var(--padding-md);
    min-width: 0; /* Allow grid item to shrink below content size */
  }

.hcard-heading {
  margin: 0;
  font-size: var(--font-size-xxl);
  font-weight: var(--font-weight-bold);
  color: var(--hcard-heading-color, var(--accent-color));
}

.hcard-description {
  margin: 0;
  color: var(--accent-color);
  font-size: var(--font-size-md);
}

.hcard-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  padding: 0.75rem 1.25rem;
  background: var(--hcard-heading-color, var(--accent-color));
  color: var(--primary-color);
  border-radius: 10px;
  align-self: center;
  font-weight: var(--font-weight-bold);
}

.hcard-cta::after {
  content: "";
  display: inline-block;
  margin-left: 0.75rem;
  width: 2em;
  height: 2em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 5l7 7-7 7'/%3E%3C/svg%3E");
}

@media screen and (max-width: 640px) {
  .hcard-inner {
    grid-template-columns: auto 1fr;
  }
  .hcard-cta {
    justify-self: start;
    margin-top: var(--padding-md);
  }
}

/* Variants: colorize side rails */
/* New accent API classes controlled by JSON field `accent` */
.hcard-accent-left .hcard-left { background: var(--primary-color-light); }
.hcard-accent-right .hcard-right { background: var(--primary-color-light); }
.hcard-accent-both .hcard-left,
.hcard-accent-both .hcard-right { background: var(--primary-color-light); }

/* Ensure center column stays centered on small screens */
@media screen and (max-width: 900px) {
  .hcard-outer {
    grid-template-columns: 0 minmax(0, var(--max-width)) 0;
    min-height: 200px;
  }
  
  .hcard-center {
    padding: var(--padding-lg);
  }
  
  .hcard-inner {
    grid-template-columns: 1fr;
    gap: var(--padding-sm);
    text-align: left;
    min-width: 0; /* Allow grid to shrink below content size */
  }
  
  .hcard-number {
    font-size: 4rem;
    text-align: left;
  }
  
  .hcard-heading {
    font-size: var(--font-size-xl);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
    text-align: left;
    max-width: 100%;
    width: 100%;
    word-break: break-word;
  }
  
  .hcard-description {
    font-size: var(--font-size-sm);
    line-height: 1.4;
    text-align: left;
  }
  
  .hcard-cta {
    padding: var(--padding-sm) var(--padding-md);
    font-size: var(--font-size-sm);
    margin-top: var(--padding-sm);
  }
  
  .hcard-cta::after {
    margin-left: var(--padding-xs);
    width: 1.5em;
    height: 1.5em;
  }
}



.header {
    background-color: var(--primary-color);
    padding: var(--padding-lg);
}

.header-container {
    max-width: var(--max-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
} 

.header-logo {
    height: 36px;
    width: auto;
}

.header-menu {
    display: flex;
    align-items: center;
    gap: var(--padding-md);
}

.header-link {
    color: var(--secondary-color);
    text-decoration: none;
    padding: var(--padding-sm) var(--padding-md);
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
    font-weight: 600;
}

.header-link.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.header-menu-dropdown {
    position: relative;
    display: inline-block;
}

.header-menu-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    z-index: 101;
    border-radius: var(--border-radius);
    overflow: hidden;
    top: 100%;
    right: 0;
    min-width: 200px;
}

.header-menu-dropdown:hover .header-menu-dropdown-content {
    display: block;
}

.header-menu-dropdown-link {
    color: var(--text-color);
    padding: var(--padding-sm) var(--padding-md);
    text-decoration: none;
    display: block;
    font-weight: 600;
}

.header-menu-dropdown-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.header-menu-dropdown-link.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

@media screen and (max-width: 512px) {
    .header-logo {
        height: 24px;
    }
    
    .header-menu {
        gap: var(--padding-sm);
    }
    
    .header-link {
        padding: var(--padding-xs) var(--padding-sm);
        font-size: 0.9em;
    }
}

.home-header {
    padding: 0;
    margin: 0;
    width: 100vw;
}

.home-header-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.home-header-video-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.home-header-video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.75;
    z-index: 2;
    pointer-events: none;
}

/* .home-header-video-background iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; 
    height: auto;
    border: none;
    display: block;
    margin: 0;
    padding: 0;
} */

/* .home-header-video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color, #007bff);
    opacity: 0.25;
    z-index: 2;
} */

.home-header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 0;
    padding: var(--padding-lg) var(--padding-xl);
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: start;
    height: 65%;
}

.home-title {
    font-size: var(--font-size-xxxl);
    font-weight: var(--font-weight-bold);
    color: var(--accent-color-2);
    line-height: 1;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.home-subheading {
    font-size: var(--font-size-xxs);
    font-weight: var(--font-weight-regular);
    color: var(--primary-color);
    background-color: var(--secondary-color);
    padding: var(--padding-xxs) var(--padding-xs);
    text-align: left;
    margin-bottom: var(--padding-sm);
}

.home-description {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-regular);
    color: var(--accent-color-2);
    line-height: 1.6;
    text-align: left;
}

/* Mobile responsiveness for homepage */
@media screen and (max-width: 512px) {
    .home-header-container {
        aspect-ratio: 4 / 3;
    }
    
    .home-header-content {
        padding: var(--padding-md) var(--padding-lg);
        height: 120%;
    }
    
    .home-title {
        font-size: var(--font-size-xxl);
        line-height: 1.1;
        word-break: break-word;
    }
    
    .home-subheading {
        font-size: var(--font-size-xs);
        margin-bottom: var(--padding-xs);
    }
    
    .home-description {
        font-size: var(--font-size-sm);
        line-height: 1.4;
    }
}

.l1-section {
    margin-top: var(--margin-xl);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.l1-section + .l1-section {
    margin-top: var(--margin-xl);
}

.l1-section-header {
  background-color: var(--secondary-color);
  padding: var(--padding-xs) var(--padding-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--margin-sm);
}

.l1-section-header-emphasis {
  padding: var(--padding-sm) 0;
  display: flex;
  justify-content: space-between;
  gap: var(--margin-sm);
}

.l1-section-icon {
  width: var(--font-size-lg);
  height: var(--font-size-lg);
  filter: brightness(0) saturate(100%) invert(18%) sepia(37%) saturate(466%) hue-rotate(116deg) brightness(101%) contrast(92%);
}

.l1-section-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.l1-section-title {
  color: var(--primary-color);
  font-weight: var(--font-weight-black);
  font-size: var(--font-size-lg);
}

.l1-section-title-emphasis {
  color: var(--on-primary-color);
  font-weight: 900;
  font-size: var(--font-size-xl);
}

.l1-section-description {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    margin-top: var(--margin-xs);
    font-weight: 500;
}

.l1-section-description-emphasis {
    color: var(--on-primary-color);
    font-size: var(--font-size-md);
    margin-top: var(--margin-xs);
    font-weight: 500;
}

.l1-section-time {
    display: flex;
    align-items: center;
    gap: var(--margin-xxs);
}

.l1-section-content {
    margin-top: var(--margin-sm);
}

.l2-section-header {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-l2-title);
    margin-top: var(--margin-lg);
}

.l2-section-content {
    margin-top: var(--margin-sm);
    padding-left: var(--indentation-md);
}

/* Remove left padding on mobile devices */
@media (max-width: 768px) {
    .l2-section-content {
        padding-left: 0;
    }
}

.l3-section {
    margin-top: var(--margin-md);
    position: relative;
    z-index: 1;
}

.l3-section + .l3-section {
    margin-top: var(--margin-lg);
}

.l3-section-toggle-indicator {
    cursor: pointer;
}

.l3-section-toggle-indicator.rotated {
    transform: rotate(90deg);
}

.l3-section-header {
    display: flex;
    align-items: center;
    gap: var(--margin-xs);
}

.l3-section-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-l3-title);
}

.l3-section-content {
    max-height: 100%;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: var(--indentation-sm);
}

.l3-section-content.collapsed {
    max-height: 0;
}

.paragraph {
    margin: var(--margin-sm) 0;
    font-size: var(--font-size-sm);
}

.paragraph-margin-left {
    margin: var(--margin-sm) 0 0 var(--margin-xxl);
    font-size: var(--font-size-sm);
}

.paragraph-dot {
    display: flex;
    gap: var(--margin-sm);
    align-items: flex-start;
}

.dot-char {
    font-size: 1rem;
    color: var(--primary-color);
}

.quotation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--margin-md);
    margin-bottom: var(--margin-md); 
    page-break-inside: avoid; 
}

.quotation-mark-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--padding-xs) var(--padding-sm);
    background-color: var(--secondary-color);
    border-radius: var(--border-radius-lg);
}

.quotation-mark {
    height: var(--font-size-lg);
}

.quotation-content {
    flex: 1;
    word-wrap: break-word; 
    overflow-wrap: break-word;
    line-height: 1.5;
}

.quotation-lead {
    font-weight: 700;
    color: black;
    display: block;
    line-height: 1.2; /* Tighter line height for lead text */
}

.quotation-text {
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.5; /* Ensure proper line spacing */
    white-space: normal; /* Prevent text from running together */
}


@media screen and (max-width: 512px) {
    .quotation-content {
        padding: 0 var(--padding-md);
    }
}

.paragraph-nested-content {
    margin-top: var(--margin-sm);
}

.path-header {
  background-color: var(--primary-color);
  padding: 0 var(--padding-lg);
}
.path-header-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-bottom: var(--padding-lg);
    position: relative; /* Add this to contain the absolutely positioned decoration */
}

.path-title {
  color: var(--secondary-color);
  font-weight: 900;
  text-transform: uppercase;
  font-size: var(--font-size-xxl);
  margin-bottom: var(--margin-md);
}

.path-subheading {
  background: var(--secondary-color);
  color: var(--primary-color);
  display: inline-block;
  font-weight: 600;
  padding: var(--padding-xxs) var(--padding-xs);
  margin-top: 128px;
  margin-bottom: var(--margin-md);
  font-size: var(--font-size-sm);
  flex-shrink: 1;
}

.path-header-summary {
    background-color: var(--accent-color);
    color: black;
    padding: var(--padding-md);
    align-self: stretch;
}

.path-description {
  color: #2d3c34;
  font-size: 1.08rem;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.path-decoration {
  position: absolute;
  top: 128px;
  right: var(--padding-lg);
  width: 128px;
  height: auto;
  z-index: 1;
  pointer-events: none; /* Prevent interference with content */
}

@media screen and (max-width: 512px) {
  .path-decoration {
    width: 96px;
    top: -12px;
  }
}

.path-content {
  padding: 0 var(--padding-lg);
}

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

.scripture {
  display: flex;
  flex-direction: column;
}

.scripture-header {
  display: flex;
  align-items: baseline;
  gap: var(--margin-sm);
}

.scripture-toggle-indicator {
  cursor: pointer;
}

.scripture-toggle-indicator.rotated{
  transform: rotate(90deg);
}

.scripture-title {
  font-weight: 600;
}

.scripture-verses-group {
  display: flex;
  margin: var(--margin-sm) 0;
  max-height: 5000px;
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.scripture-verses-group.collapsed {
  max-height: 0;
}

.scripture-vertical-line {
  width: 3px;
  background-color: var(--text-color);
  margin: 0 var(--margin-sm) 0 var(--margin-xs);
  flex-shrink: 0;
}

.scripture-verse {
  display: flex;
  gap: var(--margin-xs);
}

.verse-index {
    color: var(--secondary-text-color);
    font-weight: 300;
    font-size: var(--font-size-xxs);
    gap: var(--margin-xxs);
}

.session-audio-player-container {
  align-self: stretch;
  background: var(--primary-color);
  margin-top: var(--margin-md);
  padding: var(--padding-lg);
  max-width: var(--max-width);
  border-radius: var(--border-radius-lg);
  position: relative;
  color: var(--secondary-color);
}

.audio-player-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--margin-md);
}

.audio-description {
  color: var(--secondary-color);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  margin: 0;
  flex: 1;
  margin-right: var(--margin-md);
}

.download-button-container {
  background: var(--accent-color);
  border-radius: var(--border-radius);
  padding: var(--padding-sm);
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-audio-player {
  display: flex;
  align-items: center;
  gap: var(--margin-md);
}

.custom-audio-player audio {
  display: none;
}

#audio-play-pause {
  background: var(--accent-color);
  color: var(--text-color);
  border: none;
  border-radius: var(--border-radius-lg);
  padding: var(--padding-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#audio-play-pause:hover,
#audio-play-pause:focus {
  background: var(--secondary-color);
  color: var(--text-color);
  outline: none;
  transform: translateY(-1px);
}

.progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--margin-xs);
}

.progress-bar-wrapper {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  align-self: stretch;
  height: 8px;
  overflow: hidden;
  cursor: pointer;
}

.progress-bar {
  background: var(--secondary-color);
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
  border-radius: var(--border-radius);
}

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

#audio-current-time,
#audio-duration {
  font-size: var(--font-size-xs);
  color: var(--secondary-color);
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-regular);
  white-space: nowrap;
}

.time-separator {
  color: var(--secondary-color);
  font-size: var(--font-size-md);
  margin: 0 var(--margin-xs);
}

@media screen and (max-width: 512px) {
  .session-audio-player-container {
    padding: var(--padding-md);
  }
  
  .audio-player-header {
    flex-direction: column;
    gap: var(--margin-md);
    align-items: stretch;
  }
  
  .audio-description {
    margin-right: 0;
    margin-bottom: var(--margin-sm);
  }
  
  .download-button-container {
    align-self: flex-end;
  }
  
  .custom-audio-player {
    gap: var(--margin-sm);
  }

}

.session-header {
  background-color: var(--primary-color);
  padding: 0 var(--padding-lg);
}

.session-header-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative; /* Add this to contain the absolutely positioned decoration */
}

.session-course {
  background: var(--secondary-color);
  color: var(--primary-color);
  display: inline-block;
  font-weight: 600;
  padding: var(--padding-xxs) var(--padding-xs);
  margin-top: 128px;
  margin-bottom: var(--margin-md);
  font-size: var(--font-size-sm);
  flex-shrink: 1;
}

.session-index {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.session-title {
  color: var(--secondary-color);
  font-weight: 900;
  text-transform: uppercase;
  font-size: var(--font-size-xxl);
  margin-bottom: var(--margin-md);
}

.session-decoration {
  position: absolute;
  top: 128px;
  right: var(--padding-lg);
  width: 128px;
  height: auto;
  z-index: 1;
  pointer-events: none; /* Prevent interference with content */
}

@media screen and (max-width: 512px) {
  .session-decoration {
    width: 96px;
    top: -12px;
  }
}

.session-header-summary {
  background-color: var(--accent-color);
  color: black;
  padding: var(--padding-md);
  align-self: stretch;
}

.session-scripture {
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: var(--margin-xs);
  margin-bottom: var(--margin-sm);
}

.session-main-point {
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--margin-sm);
  gap: var(--margin-xs);
}

.session-main-point::before {
  content: '\1F3AF';
  /* 🎯 */
  margin-right: 8px;
  font-size: 1rem;
}

.session-scripture::before {
  content: '\1F4D6';
  /* 📖 */
  margin-right: 8px;
  font-size: 1rem;
}

.session-description {
  color: #2d3c34;
  font-size: 1.08rem;
  margin: 0 0 var(--margin-md) 0;
  line-height: 1.6;
}

.session-audio {
  align-self: stretch;
  background: #fff;
  margin-top: var(--margin-md);
  padding: var(--padding-lg) var(--padding-md) var(--padding-sm) var(--padding-md);
  max-width: 700px;
}

.session-menu {
  padding: var(--padding-md) var(--padding-lg);
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.session-menu-container {
  margin: 0 auto;
  max-width: var(--max-width);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--margin-md);
  overflow-x: scroll;
}

.session-menu-item {
  display: flex;
  align-items: flex-start;
  gap: var(--margin-xxs);
  align-items: center;
}

.session-menu-item-icon {
  height: var(--font-size-sm);
  filter: brightness(0) saturate(100%) invert(100%);
}

.session-menu-item-label {
  color: white;
  font-weight: 500;
  font-size: var(--font-size-sm);
  text-decoration: none;
}

.session-menu-toggle {
  display: none;
}

@media screen and (max-width: 512px) {
  .session-menu-toggle {
    color: white;
    font-weight: 500;
    font-size: var(--font-size-sm);
    cursor: pointer;
    display: block;
    margin-bottom: var(--margin-xs);
    background: none;
    border: none;
    padding: 0;
  }

  .session-menu-container {
    flex-direction: column;
    margin-top: var(--margin-md);
    max-height: 300px;
    transition: max-height 0.3s ease;
    overflow: hidden;
  }

  .session-menu.collapsed .session-menu-container {
    max-height: 0;
  }

  .session-menu-item-container {
    align-self: flex-start;
  }

  .session-menu-item {
    flex-direction: row;
    margin-bottom: var(--margin-xs);
    align-self: flex-start;
  }
}


.session-content {
  padding: 0 var(--padding-lg);
}

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

.video-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: var(--margin-md);
    align-items: flex-start; /* Changed from center to flex-start to prevent overlap */
    width: 100%;
    margin: var(--margin-md) 0; /* Add margin to separate from text */
    clear: both; /* Ensure no floating issues */
}

/* Variant: remove vertical margins around the video block */
.video.video--no-margin .video-container {
    margin-top: 0;
    margin-bottom: 0;
}

/* Variant: full width video */
.video.video--full-width .video-container {
    width: 100%;
    padding: var(--margin-md) 0;
}

.video.video--full-width .video-player,
.video.video--full-width .video-iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    max-width: none;
    min-width: auto;
}

.video-player,
.video-iframe {
    width: 700px;
  max-width: 75vh;
  height: 400px;
  min-width: 300px; /* Ensure minimum width to prevent squashing */
}

.video-border img {
    height: 253px;
    margin-top: 7px;
}

.video-download-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--margin-xs);
  flex-shrink: 0;
  min-width: 200px;
  max-width: 30%;
}

.video-download-text {
  font-size: var(--font-size-sm);
  color: var(--text-color);
  text-align: center;
  margin: 0;
  max-width: 200px;
}

@media screen and (max-width: 512px) {
    .video-container {
        flex-direction: column; /* Stack vertically on mobile */
    }
    
    .video-player,
    .video-iframe {
        max-width: 100%; /* Full width on mobile */
        min-width: auto;
    }

    .video-border img {
        height: 150px;
    }

    .video-player {
        height: 150px;
    }

    .video-iframe {
        height: 100%;
    }
}

/* Form Page Styles */
.form-page {
    min-height: 100vh;
    background-color: var(--primary-color);
    padding: var(--padding-xl) 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-page-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--padding-md);
    display: flex;
    align-items: stretch;
    gap: var(--margin-xxl);
}

.form-header {
    flex: 1;
    color: white;
}

.form-title {
    font-size: var(--font-size-xxl);
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: var(--margin-lg);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.form-description {
    font-size: var(--font-size-md);
    color: white;
    line-height: 1.6;
    opacity: 0.9;
}

.form-container {
    flex: 1;
    max-width: 500px;
    background: white;
    padding: var(--padding-xxl);
    border-radius: var(--border-radius);
}

.form-logo {
    width: 60px;
    height: 60px;
    margin-bottom: var(--margin-lg);
}

.form-field {
    margin-bottom: var(--margin-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--margin-xs);
    font-size: var(--font-size-sm);
}

.form-control {
    width: 100%;
    padding: var(--padding-sm) var(--padding-md);
    font-size: var(--font-size-sm);
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafafa;
    font-family: inherit;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(239, 249, 113, 0.2);
    background: white;
}

.form-select {
    width: 100%;
    padding: var(--padding-sm) var(--padding-md);
    font-size: var(--font-size-sm);
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8.5L2.5 5h7L6 8.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--padding-md) center;
    padding-right: calc(var(--padding-md) * 2.5);
    font-family: inherit;
    box-sizing: border-box;
}

.form-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(239, 249, 113, 0.2);
    background-color: white;
}

.form-submit {
    text-align: center;
    margin-top: var(--margin-xl);
    padding-top: var(--padding-lg);
    border-top: 1px solid #e2e8f0;
}

.form-submit-button {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: var(--padding-md) var(--padding-xxl);
    font-size: var(--font-size-md);
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.form-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #e8f168;
}

.form-submit-button:active {
    transform: translateY(0);
}

/* Error Styles */
.form-control.error,
.form-select.error {
    border-color: #e53e3e;
    background-color: #fed7d7;
}

.field-error {
    color: #e53e3e;
    font-size: var(--font-size-xs);
    margin-top: var(--margin-xxs);
    font-weight: 500;
}

@media (max-width: 512px) {
     .form-container {
        padding: var(--padding-lg);
    }
    
    .form-submit-button {
        padding: var(--padding-sm) var(--padding-xl);
        font-size: var(--font-size-sm);
    }
    
    .form-page-container {
        flex-direction: column;
        gap: var(--margin-xl);
    }
    
    .form-container {
        padding: var(--padding-xl);
        max-width: none;
    }
    
    .form-title {
        font-size: var(--font-size-xl);
        text-align: center;
    }
    
    .form-header {
        text-align: center;
    }
}

/* Focus visible for accessibility */
.form-control:focus-visible,
.form-select:focus-visible,
.form-submit-button:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

:root {
  /* Color Palette */
  --primary-color: #224039;
  --primary-color-light: #334F49;
  --secondary-color: #EFF971;
  --accent-color: #FCFEE3;
  --accent-color-2: #4bffcc;
  --accent-color-3: #28e776;
  --text-color: #000;
  --secondary-text-color: #777;

  /* Spacing and Sizing */
  --margin-xxl: 64px;
  --margin-xl: 48px;
  --margin-lg: 32px;
  --margin-md: 24px;
  --margin-sm: 16px;
  --margin-xs: 8px;
  --margin-xxs: 4px;
  --padding-xxl: 64px;
  --padding-xl: 48px;
  --padding-lg: 32px;
  --padding-md: 24px;
  --padding-sm: 16px;
  --padding-xs: 8px;
  --padding-xxs: 4px;

  --indentation-lg: 2rem;
  --indentation-md: 1.5rem;
  --indentation-sm: 1rem;

  /* Typography */
  --font-size-xxxl: 4rem;
  --font-size-xxl: 2.5rem;
  --font-size-xl: 2rem;
  --font-size-lg: 1.55rem;
  --font-size-md: 1.2rem;
  --font-size-sm: 1rem;
  --font-size-xs: 0.875rem;
  --font-size-xxs: 0.75rem;

  --line-height-tight: 1em;
  --line-height-cozy: 1.1em;
  --line-height-normal: 1.25em;
  --line-height-relax: 1.375em;

  --font-weight-thin: 100;
  --font-weight-light: 300;
  --font-weight-regular: 500;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Other */
  --border-radius: 0px;
  --border-radius-lg: 16px;
  --max-width: 1200px;
}

@media screen and (max-width: 512px) {
  :root {
    --max-width: 100%;
    --padding-xl: 24px;
    --padding-lg: 16px;
    --padding-md: 12px;
    --padding-sm: 8px;
    --padding-xs: 4px;
    --padding-xxs: 2px;
    --margin-xl: 24px;
    --margin-lg: 16px;
    --margin-md: 12px;
    --margin-sm: 8px;
    --margin-xs: 4px;
    --indentation-lg: 1.5rem;
    --indentation-md: 1rem;
    --indentation-sm: 0.5rem;
    --font-size-xxl: 2.25rem;
    --font-size-xl: 1.8rem;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Avenir Next', sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}