/**
 * Base Theme CSS
 * Provides default styling for all semantic classes used by components
 * Theme-specific CSS files extend and override these styles
 */

/* ============================================
   CSS CUSTOM PROPERTIES (set by ThemeWrapper)
   ============================================ */
:root {
  --color-primary: #3b82f6;
  --color-primary-rgb: 59, 130, 246;
  --color-secondary: #a78bfa;
  --color-secondary-rgb: 167, 139, 250;
  --color-accent: #22c55e;
  --color-accent-rgb: 34, 197, 94;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav-logo-image {
  height: 2.5rem;
  width: auto;
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.nav-menu.desktop {
  display: none;
}

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

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: #111827;
}

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

.nav-link.mobile {
  display: block;
  padding: 0.75rem 1rem;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-dropdown-icon {
  transition: transform 0.2s;
}

.nav-dropdown-icon.open {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 12rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.mobile {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu.mobile {
  position: static;
  width: auto;
  box-shadow: none;
  border: none;
  background: #f9fafb;
  padding-left: 1rem;
}

.nav-dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #374151;
}

.nav-dropdown-item:hover {
  background: #f9fafb;
}

.nav-dropdown-item.active {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.1);
}

.nav-cta-wrapper.desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta-wrapper.desktop {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
}

.nav-cta {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
  background: var(--color-primary);
  border-radius: 0.5rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-cta.nav-cta-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: calc(0.45rem - 2px) calc(0.95rem - 2px);
}

.nav-cta.nav-cta-secondary:hover {
  background: var(--color-primary);
  color: white;
}

/* Secondary CTA against a transparent navbar (over hero):
   white border + white text for contrast. On scroll the navbar
   becomes solid and the default primary-color variant returns. */
.site-nav.nav-transparent .nav-cta.nav-cta-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
}

.site-nav.nav-transparent .nav-cta.nav-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: #ffffff;
}

.nav-cta.mobile {
  display: block;
  text-align: center;
  margin: 0.5rem 1rem;
}

.nav-mobile-toggle {
  display: block;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
}

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

.nav-mobile-toggle:hover {
  background: #f3f4f6;
}

.nav-mobile-menu {
  display: block;
  border-top: 1px solid #e5e7eb;
  background: white;
}

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

.nav-mobile-items {
  padding: 0.5rem 0;
}

/* ============================================
   SECTION BACKGROUNDS
   ============================================ */
.section-bg {
  /* Wrapper that overrides the child section's background */
}

.section-bg > * {
  background: transparent !important;
}

.section-bg-light {
  background: #f8f9fa;
}

.section-bg-primary {
  background: var(--color-primary);
  color: white;
}

.section-bg-primary .grid-title,
.section-bg-primary .grid-description,
.section-bg-primary .grid-card-title,
.section-bg-primary .grid-card-description,
.section-bg-primary .paragraph-title,
.section-bg-primary .paragraph-text,
.section-bg-primary .faq-title,
.section-bg-primary .faq-description,
.section-bg-primary .logos-title,
.section-bg-primary .custom-html-title {
  color: white;
}

.section-bg-primary .grid-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.section-bg-primary .grid-card-title {
  color: white;
}

.section-bg-primary .grid-card-description {
  color: rgba(255, 255, 255, 0.85);
}

.section-bg-secondary {
  background: var(--color-secondary);
  color: white;
}

.section-bg-secondary .grid-title,
.section-bg-secondary .grid-description,
.section-bg-secondary .grid-card-title,
.section-bg-secondary .grid-card-description,
.section-bg-secondary .paragraph-title,
.section-bg-secondary .paragraph-text,
.section-bg-secondary .faq-title,
.section-bg-secondary .faq-description,
.section-bg-secondary .logos-title,
.section-bg-secondary .custom-html-title {
  color: white;
}

.section-bg-secondary .grid-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.section-bg-secondary .grid-card-title {
  color: white;
}

.section-bg-secondary .grid-card-description {
  color: rgba(255, 255, 255, 0.85);
}

.section-bg-accent {
  background: var(--color-accent);
  color: white;
}

.section-bg-accent .grid-title,
.section-bg-accent .grid-description,
.section-bg-accent .grid-card-title,
.section-bg-accent .grid-card-description,
.section-bg-accent .paragraph-title,
.section-bg-accent .paragraph-text,
.section-bg-accent .faq-title,
.section-bg-accent .faq-description,
.section-bg-accent .logos-title,
.section-bg-accent .custom-html-title {
  color: white;
}

.section-bg-accent .grid-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.section-bg-accent .grid-card-title {
  color: white;
}

.section-bg-accent .grid-card-description {
  color: rgba(255, 255, 255, 0.85);
}

.section-bg-dark {
  background: #1a1a2e;
  color: white;
}

.section-bg-dark .grid-title,
.section-bg-dark .grid-description,
.section-bg-dark .grid-card-title,
.section-bg-dark .grid-card-description,
.section-bg-dark .paragraph-title,
.section-bg-dark .paragraph-text,
.section-bg-dark .faq-title,
.section-bg-dark .faq-description,
.section-bg-dark .logos-title,
.section-bg-dark .custom-html-title {
  color: white;
}

.section-bg-dark .grid-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.section-bg-dark .grid-card-title {
  color: white;
}

.section-bg-dark .grid-card-description {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   TRANSPARENT NAVIGATION (scroll behavior)
   ============================================ */

/* Fixed nav - always out of document flow when transparent header is enabled */
.site-nav.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 40;
}

.site-nav.nav-transparent {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 70%, transparent 100%);
  border-bottom: none;
  box-shadow: none;
}

.site-nav.nav-transparent .nav-logo-text {
  color: #ffffff;
}

.site-nav.nav-transparent .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.site-nav.nav-transparent .nav-link:hover {
  color: #ffffff;
}

.site-nav.nav-transparent .nav-dropdown-toggle {
  color: rgba(255, 255, 255, 0.9);
}

.site-nav.nav-transparent .nav-mobile-toggle {
  color: #ffffff;
}

/* Logo swap for transparent header */
.nav-logo-image.logo-default {
  display: block;
}

.nav-logo-image.logo-scroll {
  display: none;
}

.site-nav.nav-transparent .nav-logo-image.logo-default {
  display: none;
}

.site-nav.nav-transparent .nav-logo-image.logo-scroll {
  display: block;
}

/* When no separate white logo is uploaded, auto-invert
   the single logo to white on transparent nav backgrounds. */
.site-nav.nav-transparent .nav-logo-image:not(.logo-default):not(.logo-scroll) {
  filter: brightness(0) invert(1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background image container for Next.js Image optimization */
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image img {
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Video background container */
.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text colors when hero has background video */
.hero-section:has(.hero-bg-video) .hero-title {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section:has(.hero-bg-video) .hero-description {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-decorative {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  width: 100%;
}

.hero-content {
  max-width: 48rem;
}

.hero-section.align-center .hero-content {
  margin: 0 auto;
  text-align: center;
}

.hero-section.align-right .hero-content {
  margin-left: auto;
  text-align: right;
}

.hero-top-image {
  display: block;
  width: auto;
  max-width: 100%;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.hero-section.align-center .hero-top-image {
  margin-left: auto;
  margin-right: auto;
}

.hero-section.align-right .hero-top-image {
  margin-left: auto;
}

/* Soft halo so logos stay legible over background images/videos */
.hero-section:has(.hero-bg-image) .hero-top-image,
.hero-section:has(.hero-bg-video) .hero-top-image {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

/* Text colors when hero has background image */
.hero-section:has(.hero-bg-image) .hero-title {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-section:has(.hero-bg-image) .hero-description {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-section.align-center .hero-buttons {
  justify-content: center;
}

.hero-section.align-right .hero-buttons {
  justify-content: flex-end;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.hero-cta.primary {
  background: var(--color-primary);
  color: white;
}

.hero-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(var(--color-primary-rgb), 0.3);
}

.hero-cta.secondary {
  background: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}

.hero-cta.secondary:hover {
  background: var(--color-secondary);
  color: white;
}

.hero-image {
  display: none;
  position: relative;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
}

.hero-image img {
  object-fit: cover;
  border-radius: 1rem;
}

@media (min-width: 1024px) {
  .hero-image {
    display: block;
  }
}

/* When the hero already shows a full-bleed background image,
   suppress the split-layout duplicate to avoid the same image
   appearing twice. */
.hero-section:has(.hero-bg-image) .hero-image,
.hero-section:has(.hero-bg-video) .hero-image {
  display: none !important;
}

/* ============================================
   GRID SECTION
   ============================================ */
.grid-section {
  padding: 4rem 0;
  background: #f9fafb;
}

.grid-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.grid-header {
  text-align: center;
  margin-bottom: 3rem;
}

.grid-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.grid-description {
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 48rem;
  margin: 0 auto;
}

.grid-items {
  display: grid;
  gap: 2rem;
}

.grid-items.grid-gap-none {
  gap: 0 !important;
}

.grid-items.grid-gap-small {
  gap: 0.75rem !important;
}

.grid-items.grid-gap-medium {
  gap: 2rem !important;
}

.grid-items.grid-gap-large {
  gap: 3rem !important;
}

/* Flush cards (no gap) - connected look with shared borders */
.grid-items.grid-gap-none .grid-card {
  border-radius: 0;
}

/* First card - round left corners only */
.grid-items.grid-gap-none .grid-card:first-child {
  border-radius: 1rem 0 0 1rem;
}

/* Last card - round right corners only */
.grid-items.grid-gap-none .grid-card:last-child {
  border-radius: 0 1rem 1rem 0;
}

/* Single card - round all corners */
.grid-items.grid-gap-none .grid-card:only-child {
  border-radius: 1rem;
}

/* Mobile: stack vertically - restore top/bottom rounding */
@media (max-width: 767px) {
  .grid-items.grid-gap-none .grid-card {
    border-radius: 0;
  }

  .grid-items.grid-gap-none .grid-card:first-child {
    border-radius: 1rem 1rem 0 0;
  }

  .grid-items.grid-gap-none .grid-card:last-child {
    border-radius: 0 0 1rem 1rem;
  }

  .grid-items.grid-gap-none .grid-card:only-child {
    border-radius: 1rem;
  }
}

.grid-items.cols-2 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-items.cols-3 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-items.cols-4 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .grid-items.cols-2,
  .grid-items.cols-3,
  .grid-items.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-items.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-items.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.grid-card-icon {
  width: 3rem;
  height: 3rem;
  background: var(--color-primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.grid-card-icon > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.grid-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
}

.grid-card-image {
  position: relative;
  height: 12rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.grid-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.grid-card-description {
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.625;
}

.grid-card-button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.grid-card-button:hover {
  opacity: 0.9;
}

/* Per-card background colors */
.grid-card.has-card-bg {
  color: white;
}

.grid-card.has-card-bg .grid-card-title {
  color: white;
}

.grid-card.has-card-bg .grid-card-description {
  color: rgba(255, 255, 255, 0.85);
}

.grid-card.has-card-bg .grid-card-icon {
  background: rgba(255, 255, 255, 0.2);
}

.grid-card.has-card-bg .grid-card-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.grid-card.has-card-bg .grid-card-button:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Overlap hero - pull grid up into the hero section */
.grid-section.grid-overlap-hero {
  position: relative;
  z-index: 5;
  padding-top: 0;
}

.grid-section.grid-overlap-hero .grid-card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Overlap sizes */
.grid-section.grid-overlap-small {
  margin-top: -2rem;
}

.grid-section.grid-overlap-medium {
  margin-top: -3rem;
}

.grid-section.grid-overlap-large {
  margin-top: -5rem;
}

@media (min-width: 768px) {
  .grid-section.grid-overlap-small {
    margin-top: -3rem;
  }

  .grid-section.grid-overlap-medium {
    margin-top: -5rem;
  }

  .grid-section.grid-overlap-large {
    margin-top: -8rem;
  }
}

/* Horizontal layout - icon/image on left, text on right */
.grid-card.layout-horizontal {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
}

.grid-card.layout-horizontal .grid-card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.grid-card.layout-horizontal .grid-card-image {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  margin-bottom: 0;
}

.grid-card.layout-horizontal .grid-card-content {
  flex: 1;
  min-width: 0;
}

/* ============================================
   PARAGRAPH + IMAGE SECTION
   ============================================ */
.paragraph-image-section {
  padding: 4rem 0;
  background: white;
}

.paragraph-image-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .paragraph-image-section:not(.text-only) .paragraph-image-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .paragraph-image-section.image-left .paragraph-content {
    order: 2;
  }

  .paragraph-image-section.image-left .paragraph-image {
    order: 1;
  }
}

.paragraph-image-section.text-only .paragraph-content {
  max-width: 48rem;
  margin: 0 auto;
}

.paragraph-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.paragraph-text {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.75;
  white-space: pre-wrap;
}

.paragraph-button-wrapper {
  margin-top: 2rem;
}

.paragraph-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--color-primary);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
}

.paragraph-button:hover {
  opacity: 0.9;
}

.paragraph-image {
  position: relative;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
  .paragraph-image {
    height: 500px;
  }
}

/* ============================================
   LOGOS SECTION
   ============================================ */
.logos-section {
  padding: 4rem 0;
  background: white;
}

.logos-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.logos-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 3rem;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .logos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .logos-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.logo-item {
  position: relative;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-image {
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}

.logo-item:hover .logo-image {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================
   CUSTOM HTML SECTION
   ============================================ */
.custom-html-section {
  padding: 3rem 0;
}

.custom-html-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.custom-html-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.custom-html-content {
  max-width: none;
}

/* Statutory page content styling */
.custom-html-content .statutory-page,
.custom-html-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
}

.custom-html-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

.custom-html-content h2:first-child {
  margin-top: 0;
}

.custom-html-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.custom-html-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #374151;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.custom-html-content p {
  margin-bottom: 1rem;
}

.custom-html-content ul,
.custom-html-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.custom-html-content ul {
  list-style-type: disc;
}

.custom-html-content ol {
  list-style-type: decimal;
}

.custom-html-content li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.custom-html-content li ul,
.custom-html-content li ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.custom-html-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.custom-html-content a:hover {
  color: #1d4ed8;
}

.custom-html-content strong {
  font-weight: 600;
  color: #111827;
}

.custom-html-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4b5563;
  background: #f9fafb;
  padding: 1rem 1rem 1rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.custom-html-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.custom-html-content th,
.custom-html-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.custom-html-content th {
  font-weight: 600;
  color: #111827;
  background: #f9fafb;
}

.custom-html-content tr:hover {
  background: #f9fafb;
}

.custom-html-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

.custom-html-content address {
  font-style: normal;
  background: #f3f4f6;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* Contact info box styling */
.custom-html-content .contact-info,
.custom-html-content div[class*="contact"] {
  background: #f3f4f6;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* Important notice styling */
.custom-html-content .important,
.custom-html-content .notice,
.custom-html-content .warning {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  padding: 4rem 0;
  background: white;
}

.faq-container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.faq-description {
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 40rem;
  margin: 0 auto;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: var(--color-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #f3f4f6;
}

.faq-item.open .faq-question {
  background: rgba(var(--color-primary-rgb), 0.05);
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  margin-left: 1rem;
  color: #6b7280;
}

.faq-item.open .faq-icon {
  color: var(--color-primary);
}

.faq-answer {
  padding: 1rem 1.25rem;
  color: #4b5563;
  line-height: 1.75;
  font-size: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* ============================================
   STATS / COUNTER SECTION
   ============================================ */
.stats-section {
  padding: 3rem 0;
  background: var(--color-primary);
  color: white;
}

.stats-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.stats-header {
  text-align: center;
  margin-bottom: 2rem;
}

.stats-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.stats-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.stats-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-items {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stats-item-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.stats-item-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: white;
}

.stats-item-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #111827;
  color: #d1d5db;
  margin-top: 4rem;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section {
  margin-bottom: 1rem;
}

.footer-heading {
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-content {
  font-size: 0.875rem;
  line-height: 1.75;
}

.footer-address {
  white-space: pre-line;
}

.footer-contact {
  margin-bottom: 0.5rem;
}

.footer-label {
  font-weight: 500;
}

.footer-link {
  color: #d1d5db;
  transition: color 0.2s;
}

.footer-link:hover {
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-subheading {
  color: white;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.footer-registration {
  margin-bottom: 0.75rem;
}

.footer-regulatory {
  margin: 0.75rem 0;
}

.footer-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #4b5563;
  border-radius: 0.375rem;
  margin-top: 0.75rem;
  transition: all 0.2s;
}

.footer-button:hover {
  border-color: white;
  color: white;
}

.footer-verify {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.footer-compliance {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #374151;
}

.footer-compliance-box {
  background: #1f2937;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.footer-compliance-heading {
  color: white;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-compliance-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-bottom {
  border-top: 1px solid #374151;
}

.footer-bottom-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-bottom-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* ============================================
   TEMPLATE COMPONENTS (for ServicePage etc.)
   ============================================ */
.template-hero,
.template-benefits,
.template-process,
.template-introduction,
.template-cta,
.template-header,
.template-footer {
  /* Inherit from base section styles */
}

.template-hero {
  position: relative;
  padding: 4rem 1rem;
  background-size: cover;
  background-position: center;
}

.template-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.template-hero-container {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
}

.template-hero-content {
  max-width: 48rem;
}

.template-hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.template-hero[style*="background-image"] .template-hero-title {
  color: white;
}

.template-hero-description {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

.template-hero[style*="background-image"] .template-hero-description {
  color: rgba(255, 255, 255, 0.9);
}

.template-hero-cta {
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.template-hero-cta:hover {
  opacity: 0.9;
}

.template-benefits {
  padding: 4rem 1rem;
  background: #f9fafb;
}

.template-benefits-container {
  max-width: 80rem;
  margin: 0 auto;
}

.template-benefits-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #111827;
}

.template-benefits-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .template-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.template-benefit-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.template-benefit-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.template-benefit-description {
  color: #4b5563;
}

.template-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 40;
}

.template-header-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.template-header-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.template-header-address {
  font-size: 0.875rem;
  color: #6b7280;
}

.template-header-contact {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .template-header-contact {
    display: flex;
  }
}

.template-header-link {
  color: #6b7280;
  transition: color 0.2s;
}

.template-header-link:hover {
  color: #111827;
}

.template-footer {
  background: #111827;
  color: white;
  padding: 3rem 1rem;
}

.template-footer-container {
  max-width: 80rem;
  margin: 0 auto;
}

.template-footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .template-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.template-footer-heading {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.template-footer-text {
  color: #9ca3af;
  font-size: 0.875rem;
}

.template-footer-contact,
.template-footer-compliance {
  color: #9ca3af;
  font-size: 0.875rem;
}

.template-footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* ============================================
   SLIDER SECTION
   ============================================ */
.slider-section {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .slider-section {
    min-height: 600px;
  }
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out;
}

.slider-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Background styles */
.slider-bg-image,
.slider-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slider-bg-image img,
.slider-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Content */
.slider-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
}

@media (min-width: 768px) {
  .slider-content {
    min-height: 600px;
  }
}

.slider-content.align-center {
  align-items: center;
  text-align: center;
}

.slider-content.align-left {
  align-items: flex-start;
  text-align: left;
}

.slider-content.align-right {
  align-items: flex-end;
  text-align: right;
}

.slider-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .slider-title {
    font-size: 3.75rem;
  }
}

.slider-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.75;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .slider-description {
    font-size: 1.25rem;
  }
}

.slider-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.slider-content.align-center .slider-buttons {
  justify-content: center;
}

.slider-content.align-right .slider-buttons {
  justify-content: flex-end;
}

.slider-cta {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s;
  text-decoration: none;
}

@media (min-width: 768px) {
  .slider-cta {
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }
}

.slider-cta.primary {
  background: var(--color-primary, #3b82f6);
  color: white;
}

.slider-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.slider-cta.secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.slider-cta.secondary:hover {
  background: white;
  color: #111827;
}

/* Navigation Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #111827;
}

@media (min-width: 768px) {
  .slider-arrow {
    width: 48px;
    height: 48px;
  }
}

.slider-arrow:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-arrow-prev {
  left: 0.5rem;
}

.slider-arrow-next {
  right: 0.5rem;
}

@media (min-width: 768px) {
  .slider-arrow-prev {
    left: 1rem;
  }
  .slider-arrow-next {
    right: 1rem;
  }
}

/* Navigation Dots */
.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .slider-dots {
    bottom: 2rem;
  }
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

@media (min-width: 768px) {
  .slider-dot {
    width: 12px;
    height: 12px;
  }
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
  background: white;
  transform: scale(1.2);
}
