/* Manrope Font Declarations - Using Specific Weight Files */

@font-face {
  font-family: "Manrope";
  src: url("/eoc/fonts/manrope/manrope-v15-latin-200.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/eoc/fonts/manrope/manrope-v15-latin-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/eoc/fonts/manrope/manrope-v15-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/eoc/fonts/manrope/manrope-v15-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/eoc/fonts/manrope/manrope-v15-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/eoc/fonts/manrope/manrope-v15-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/eoc/fonts/manrope/manrope-v15-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors - Primary Palette */
  --primary-color: #2e6b47;
  --primary-dark: #05381d;
  --primary-light: #4a8d65;
  --secondary-color: #d90078;
  --secondary-dark: #c0006b;

  /* Text Colors */
  --text-primary: #203947;
  --text-color: #333333;
  --light-text-color: #6b7a86;

  /* UI Element Colors */
  --border-color: #e0e0e0;
  --border-light: #eaecf0;
  --icon-gray: #98a2b3;
  --neutral-dark: #2b3136;

  /* Background Colors */
  --bg-light-green: #f2f7f2;
  --white: #ffffff;
  --footer-bg-color: #006246;
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --auth-btn-bg: #006246;

  /* Spacing System - Based on 4px grid */
  --spacing-unit: 1rem; /* Base spacing (16px) */
  --spacing-xs: 0.25rem; /* 4px */
  --spacing-sm: 0.5rem; /* 8px */
  --spacing-md: 1.5rem; /* 24px */
  --spacing-lg: 2rem; /* 32px */
  --spacing-xl: 3rem; /* 48px */
  --spacing-2xl: 4rem; /* 64px */
  --spacing-3xl: 6rem; /* 96px */

  /* Section Padding */
  --section-padding: 5rem;

  /* Typography - Font Weights */
  --font-thin: 200;
  --font-extralight: 200;
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 800;

  /* Typography - Font Sizes with Comments */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-md: 1.125rem; /* 18px */
  --text-lg: 1.25rem; /* 20px */
  --text-xl: 1.5rem; /* 24px */
  --text-2xl: 1.75rem; /* 28px */
  --text-2xl-lg: 1.875rem; /* 30px */
  --text-3xl: 2rem; /* 32px */
  --text-3xl-lg: 2.25rem; /* 36px */
  --text-4xl: 2.5rem; /* 40px */
  --text-5xl: 3rem; /* 48px */
  --text-6xl: 3.5rem; /* 56px */
  --text-7xl: 4rem; /* 64px */
  --text-8xl: 5rem; /* 80px */

  /* Line heights */
  --leading-none: 1; /* Heading tight */
  --leading-tight: 1.25; /* Compact */
  --leading-snug: 1.375; /* Slightly tighter than normal */
  --leading-normal: 1.5; /* Standard body text */
  --leading-relaxed: 1.625; /* Slightly looser for readability */
  --leading-loose: 2; /* Very loose */

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --card-radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base styles */
html,
body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text-color);
  font-size: 16px;
  line-height: var(--leading-normal);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Override CKAN default background */
body {
  background: #fff !important;
  background-image: none !important;
}

/* Section spacing */
section {
  padding: var(--section-padding, 5rem) 0;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.d-block {
  display: block;
}

/* Base Header Styling */
.masthead {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--white);
  background-image: none;
  padding: 10px 0;
  position: relative;
  z-index: 1000;
}

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

.header-logo {
  flex: 0 0 auto;
}

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

.logo-container img {
  height: 3.75rem;
  width: auto;
  transition: height 0.3s ease;
}

/* Desktop Navigation */
.header-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.eoc-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eoc-nav-menu li,
.eoc-nav-item {
  margin: 0 1.25rem;
}

.eoc-nav-menu li a,
.eoc-nav-link {
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  color: var(--light-text-color) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.eoc-nav-menu li a:hover,
.eoc-nav-menu li a:focus,
.eoc-nav-link:hover,
.eoc-nav-link:focus {
  color: var(--primary-color) !important;
  text-decoration: none;
}

.eoc-nav-menu li.active a,
.eoc-nav-active .eoc-nav-link {
  font-weight: var(--font-semibold);
  color: var(--primary-color) !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.header-actions .image .username {
  color: var(--light-text-color);
}

/* Expandable Search */
.expandable-search {
  position: relative;
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  background-color: var(--white);
}

.fa-wrap i,
.search-toggle i {
  color: var(--primary-color);
  font-size: 1rem;
}

.search-input-container {
  position: absolute;
  right: 0;
  top: 0;
  width: 0;
  height: 2.5rem;
  overflow: hidden;
  transition: width 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  background-color: var(--white);
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  z-index: 100;
  visibility: hidden;
}

.expandable-search.active .search-input-container {
  width: 15.625rem;
  opacity: 1;
  visibility: visible;
}

.search-input {
  width: 100%;
  height: 100%;
  border: none;
  padding: 0 2.5rem 0 0.9375rem;
  outline: none;
}

.search-close {
  position: absolute;
  right: 0.625rem;
  background: none;
  border: none;
  color: var(--light-text-color);
  cursor: pointer;
}

/* Login Button */
.btn-login {
  background-color: var(--auth-btn-bg);
  color: var(--white) !important;
  border-radius: 1.25rem;
  padding: 0.5rem 1.25rem;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Dropdown button styling to match link appearance */
button.btn-login.dropdown-toggle {
  background-color: var(--auth-btn-bg);
  color: var(--white) !important;
  border: 1px solid transparent;
  border-radius: 1.25rem;
  padding: 0.5rem 1.25rem;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  outline: none;
}

button.btn-login.dropdown-toggle:hover,
.dropdown.open button.btn-login.dropdown-toggle {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

button.btn-login.dropdown-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Dropdown arrow styling */
.dropdown-arrow {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

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

/* Ensure proper spacing for authenticated user button */
.btn-login .username {
  margin: 0;
}

/* Enhanced Dropdown Positioning */
.header-actions .dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%; /* positions below the button */
  right: 0;  /* aligns right edge with button */
  left: auto; /* override any left positioning */
  margin-top: 6px; /* gap between button and dropdown */
  z-index: 1000;

  /* Visual Enhancement */
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  padding: 8px 0;
  list-style: none;
  margin-bottom: 0;

  /* Animation */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

/* Show dropdown when active */
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown items styling */
.dropdown-menu li {
  margin: 0;
  list-style: none;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-regular);
  transition: background-color 0.15s ease;
  border-radius: 0;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background-color: var(--bg-light-green);
  color: var(--primary-color);
}

.dropdown-menu li a i {
  width: 16px;
  height: 16px;
  color: var(--icon-gray);
  font-size: 14px;
  flex-shrink: 0;
}

.dropdown-menu li a:hover i {
  color: var(--primary-color);
}

/* Enhanced button styling */
.btn-login.dropdown-toggle {
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-login.dropdown-toggle:hover,
.dropdown.open .btn-login.dropdown-toggle {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Dropdown arrow animation */
.dropdown-arrow {
  transition: transform 0.2s ease;
}

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

/* Badge styling for notifications */
.dropdown-menu .badge {
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 11px;
  margin-left: auto;
}

/* Mobile Navigation Styles */
.mobile-nav {
  display: none;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  width: 100%;
  transition: none;
}

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

.mobile-nav nav {
  padding: 1rem 0;
}

.mobile-nav .eoc-nav-menu {
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
}

.mobile-nav .eoc-nav-item {
  margin: 0;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav .eoc-nav-link {
  padding: 0.875rem 0.75rem;
  display: block;
  font-size: var(--text-md);
}

.mobile-login {
  padding: 1.25rem 0.75rem;
}

.mobile-login .btn-login {
  display: block;
  width: 100%;
  text-align: center;
}

.mobile-nav .mobile-search {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav .mobile-search .search-input-container {
  position: relative;
  width: 100%;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  opacity: 1;
  visibility: visible;
  overflow: visible;
}

.mobile-nav .mobile-search .search-input {
  width: 100%;
  height: 100%;
  border: none;
  padding: 0 0.75rem;
  font-size: 0.875rem;
}

/* Mobile search panel */
.mobile-search-panel {
  display: none;
  background-color: var(--white);
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.mobile-search-panel.active {
  display: block;
}

.mobile-search-panel .search-input-container {
  position: relative;
  width: calc(100vw - 30px);
  max-width: 250px;
  margin-left: auto;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  display: flex;
  align-items: center;
  opacity: 1;
  visibility: visible;
}

/* Hamburger Toggle */
.navbar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0.25rem;
  border: 1px solid var(--primary-color);
  border-radius: 0.25rem;
  background-color: transparent;
  cursor: pointer;
  border-color: transparent;
}

.navbar-toggle .fa-bars {
  color: var(--primary-color);
  font-size: 1rem;
}

.navbar-toggle .fa-bars,
.navbar-toggle .fa-times {
  transition: opacity 0.2s ease;
  font-size: 1rem;
}

.navbar-toggle .fa-times {
  display: none;
}

.mobile-nav.open ~ .container .navbar-toggle .fa-bars {
  display: none;
}

.mobile-nav.open ~ .container .navbar-toggle .fa-times {
  display: block;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .logo-container img {
    height: 3.125rem;
  }

  .expandable-search.active .search-input-container {
    width: 12.5rem;
  }
}

@media (max-width: 767px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
  }

  .masthead {
    padding: 0.75rem 0;
  }

  .header-row {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  /* Move logo to the left */
  .header-logo {
    flex: 0 0 auto;
    margin-right: auto;
  }

  /* Consolidated header-actions styles */
  .header-actions {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap;
    width: auto;
    margin-left: auto;
    margin-top: 0;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
  }

  /* Ensure search-toggle is visible in mobile and positioned correctly */
  .search-toggle.mobile-only {
    display: flex !important;
    order: 1;
  }

  /* Position hamburger menu as the last item */
  .navbar-toggle.mobile-only {
    display: flex !important;
    order: 2;
  }

  /* Ensure consistent sizing for both buttons */
  .search-toggle,
  .navbar-toggle {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    padding: 0.2rem;
  }

  .logo-container img {
    height: 2.25rem;
  }

  .search-toggle i,
  .navbar-toggle .fa-bars,
  .navbar-toggle .fa-times {
    font-size: 0.9rem;
  }

  .mobile-search-panel .search-input-container {
    margin-left: auto;
    margin-right: 0;
    max-width: 200px;
  }

  .dropdown-menu {
    right: -16px; /* Account for container padding */
    min-width: 180px;
  }
}

@media (min-width: 768px) {
  .expandable-search.active .search-input-container {
    right: 0;
    left: auto;
  }
}

/* Homepage full-width styling overrides */
.homepage-content {
  width: 100%;
  margin: 0;
  padding: 0;
  max-width: none;
}

/* Override any CKAN default container constraints */
body.eoc-theme.homepage {
  overflow-x: hidden;
}

.main-banner,
.blog-section,
.partners-section,
.testimonials-section,
.faqs-section {
  width: 100%;
}

.main-banner .container,
.blog-section .container,
.partners-section .container,
.testimonials-section .container,
.faqs-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hero Section Styles */
.main-banner {
  position: relative;
  min-height: 70vh;
  max-height: min(700px, 80vh);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/eoc/images/poster-cover.webp");
  background-size: cover;
  background-position: center right;
  z-index: -1;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(46, 107, 71, 0.9) 0%,
    rgba(46, 107, 71, 0.7) 70%,
    rgba(46, 107, 71, 0) 100%
  );
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner-text {
  max-width: 37.5rem;
  padding: calc(var(--spacing-unit) * 1.875) 0;
}

.banner-text h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  margin-bottom: calc(var(--spacing-unit) * 1.25);
  line-height: var(--leading-tight);
}

.banner-text p {
  font-size: var(--text-md);
  font-weight: var(--font-regular);
  margin-bottom: calc(var(--spacing-unit) * 1.875);
  line-height: var(--leading-relaxed);
}

.btn-cta {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  font-weight: var(--font-bold);
  padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.875);
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-cta:hover {
  background-color: var(--secondary-dark);
  color: white;
  text-decoration: none;
}

/* Blog Section */
.blog-section {
  padding: var(--section-padding) 0;
  background-color: var(--bg-light-green);
}

.blog-section .section-title {
  font-weight: var(--font-bold);
  font-size: var(--text-3xl-lg);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 3);
  color: var(--primary-dark);
}

.section-title-break {
  display: block;
}

.blog-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal), box-shadow 0.3s;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-image:hover {
  transform: translateY(-0.3125rem);
  box-shadow: var(--shadow-md);
}

.blog-image {
  border-radius: var(--card-radius);
  height: min(13.75rem, 50vh);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

.blog-title {
  color: var(--primary-dark);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: 0.5rem;
  line-height: var(--leading-tight);
}

.blog-summary {
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  margin-bottom: 0.75rem;
}

/* Partners Section */
.partners-section {
  padding: var(--section-padding) 0;
  background-color: var(--white);
}

.partners-section .section-title {
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  line-height: var(--leading-tight);
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 2.5);
  color: var(--text-primary);
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1.25);
  margin-top: calc(var(--spacing-unit) * 2.5);
  flex-wrap: nowrap;
}

.partner-logo {
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacing-unit) * 0.625);
  transition: transform 0.3s ease;
  width: calc(100% / 6);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .partner-logo {
    padding: calc(var(--spacing-unit) * 0.5);
  }
}

@media (max-width: 991px) {
  .partners-grid {
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 1.5);
  }

  .partner-logo {
    width: calc(33.333% - var(--spacing-unit));
  }
}

@media (max-width: 576px) {
  .partner-logo {
    width: calc(50% - var(--spacing-unit));
    height: 4rem;
  }

  .blog-content {
    padding: var(--spacing-unit);
    margin-top: 0.5rem;
  }

  .blog-title {
    font-size: var(--text-lg);
    margin-bottom: 0.375rem;
  }
}

/* Testimonials Section */
.testimonials-section {
  padding: var(--section-padding) 0;
}

.testimonial-wrapper {
  width: 100%;
  overflow: hidden;
}

.testimonial-content {
  padding: var(--spacing-xl) var(--spacing-lg);
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.testimonial-quote {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.testimonial-quote h3 {
  font-size: var(--text-2xl-lg);
  line-height: var(--leading-relaxed);
  font-weight: var(--font-semibold);
  color: var(--primary-dark);
  position: relative;
  padding-left: var(--spacing-lg);
}

.testimonial-quote h3:before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -1rem;
  font-size: 3.75rem;
  color: var(--primary-dark);
  line-height: 1;
}

.testimonial-quote h3:after {
  content: "\201D";
  position: absolute;
  font-size: 3.75rem;
  color: var(--primary-dark);
  line-height: 1;
}

/* Flex container for attribution and navigation */
.testimonial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-sm);
}

.testimonial-attribution {
  display: flex;
  flex-direction: column;
}

.testimonial-attribution p {
  font-weight: var(--font-semibold);
  font-size: var(--text-md);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.testimonial-attribution span {
  color: var(--light-text-color);
  font-size: var(--text-sm);
}

.testimonial-navigation {
  display: flex;
  gap: var(--spacing-sm);
}

.nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  color: var(--text-primary);
  margin: 0 0.25rem;
}

.nav-button:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-button:active {
  background-color: var(--primary-dark);
  transform: translateY(0);
}

.testimonials-section .row {
  display: flex;
  flex-wrap: wrap;
}

.testimonials-section .col-md-6 {
  display: flex;
  flex-direction: column;
}

/* Testimonial image consistency */
.testimonial-image {
  height: 100%;
  position: relative;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.image-container {
  height: 100%;
  min-height: 350px;
  max-height: 450px;
  overflow: hidden;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Testimonial animations */
.testimonial-transition .testimonial-quote h3,
.testimonial-transition .testimonial-meta,
.testimonial-transition .image-container {
  animation: fadeTransition 0.6s ease-in-out;
}

@keyframes fadeTransition {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-image {
  position: relative;
  overflow: visible;
  height: 100%;
}

.image-container {
  height: 100%;
  min-height: 450px;
  max-height: 550px;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--shadow-md);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s ease;
}

/* Add subtle hover effect */
.testimonial-image:hover img {
  transform: scale(1.03);
}

.overlay-info {
  position: absolute;
  bottom: var(--spacing-unit);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  padding: calc(var(--spacing-unit) * 1.25);
  width: auto;
  min-width: 90%;
  max-width: 95%;
  border: 1px solid rgba(255, 255, 255, 0.49);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
}

/* Name and star rating in same row */
.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacing-unit) * 0.5);
  width: 100%;
}

.overlay-info h4 {
  font-size: var(--text-2xl-lg);
  font-weight: var(--font-semibold);
  margin: 0;
  flex: 1;
}

.overlay-info p {
  margin-bottom: calc(var(--spacing-unit) * 0.5);
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  color: rgba(255, 255, 255, 0.8);
}

.overlay-info .organization {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

.star-rating {
  display: flex;
  justify-content: flex-end;
  color: white;
  margin: 0;
  white-space: nowrap;
}

.star-rating i {
  margin-left: 0.25rem;
}

/* FAQs Section */
.faqs-section {
  padding: var(--section-padding) 0;
  background-color: var(--bg-light-green);
}

.faqs-section .section-title {
  font-weight: var(--font-semibold);
  font-size: var(--text-3xl-lg);
  line-height: var(--leading-tight);
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 1.25);
  color: var(--primary-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-regular);
  max-width: 43.75rem;
  margin: 0 auto calc(var(--spacing-unit) * 2.5);
}

.faqs-accordion {
  max-width: 50rem;
  margin: 0 auto;
  border-top: 1px solid var(--border-light);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  border-left: none;
  border-right: none;
  overflow: hidden;
}

.faq-question {
  padding: calc(var(--spacing-unit) * 1.125) calc(var(--spacing-unit) * 1.25);
  font-weight: var(--font-medium);
  font-size: var(--text-md);
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

/* Circular toggle icon styling */
.toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: var(--text-md);
  color: var(--icon-gray);
  border: 2px solid #98a2b3;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
  font-weight: var(--font-semibold);
}

.faq-answer {
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  padding: 0 calc(var(--spacing-unit) * 1.25);
  max-height: 0;
  overflow: hidden;
  color: var(--text-primary);
  line-height: var(--leading-normal);
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 12.5rem;
  padding: 0 calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 1.25);
}

.faq-item.active .toggle-icon {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.faq-item.active .faq-question {
  font-weight: var(--font-semibold);
  color: var(--primary-color);
}

/* FAQ CTA button container */
.faq-cta-container {
  text-align: center;
  margin-top: calc(var(--spacing-unit) * 3);
}

.faq-cta-container .btn-cta {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  font-weight: var(--font-bold);
  padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.875);
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.faq-cta-container .btn-cta:hover {
  background-color: var(--secondary-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-banner {
    min-height: 50vh;
  }

  .banner-text h1 {
    font-size: var(--text-2xl);
  }

  .banner-text p {
    font-size: var(--text-base);
  }

  .testimonial-content {
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  .testimonial-quote h3 {
    font-size: var(--text-lg);
  }

  .testimonial-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .testimonial-navigation {
    align-self: flex-end;
    margin-top: var(--spacing-sm);
  }

  .testimonial-image {
    min-height: 18.75rem;
  }

  .overlay-info {
    max-width: 100%;
  }

  .masthead {
    padding: calc(var(--spacing-unit) * 0.625) 0;
  }

  .logo-container img {
    height: 1.875rem;
  }

  .collapse.navbar-collapse {
    width: 100%;
  }

  .header-actions {
    justify-content: space-between;
    width: 100%;
    margin-top: calc(var(--spacing-unit) * 0.625);
    flex-direction: column;
    align-items: flex-start;
  }

  .expandable-search {
    width: 100%;
    margin-bottom: calc(var(--spacing-unit) * 0.625);
  }

  .expandable-search.active .search-input-container {
    width: 100%;
  }

  .navbar-collapse {
    background-color: #fff;
    border-top: 1px solid #eee;
    margin-top: calc(var(--spacing-unit) * 0.9375);
  }

  .blog-content {
    padding: calc(var(--spacing-unit) * 1.25);
  }

  .blog-title {
    font-size: calc(var(--text-lg) + 0.125rem);
    margin-bottom: calc(var(--spacing-unit) * 0.625);
  }

  .blog-summary {
    font-size: var(--text-base);
    margin-bottom: calc(var(--spacing-unit) * 0.875);
  }

  .partners-grid {
    gap: calc(var(--spacing-unit) * 1.25);
  }

  .partner-logo {
    height: 4rem;
    padding: calc(var(--spacing-unit) * 0.625);
  }

  .blog-section .section-title,
  .partners-section .section-title,
  .testimonials-section .section-title,
  .faqs-section .section-title {
    font-size: var(--text-2xl);
    margin-bottom: calc(var(--spacing-unit) * 2);
  }

  .faq-cta-container {
    margin-top: calc(var(--spacing-unit) * 2);
  }
}

@media (max-width: 576px) {
  .main-banner {
    min-height: 40vh;
  }

  .gradient-overlay {
    width: 100%;
    background: linear-gradient(
      0deg,
      rgba(46, 107, 71, 0.9) 0%,
      rgba(46, 107, 71, 0.7) 70%,
      rgba(46, 107, 71, 0.5) 100%
    );
  }

  .banner-text {
    text-align: center;
    padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 1);
  }

  .banner-text h1 {
    font-size: calc(var(--text-xl) + 0.25rem);
  }

  .blog-card {
    min-height: auto;
  }

  .blog-image {
    height: 10rem;
  }

  .testimonial-content,
  .overlay-info {
    padding: var(--spacing-unit);
  }

  .blog-section,
  .partners-section,
  .testimonials-section,
  .faqs-section {
    padding: calc(var(--section-padding) * 0.7) 0;
  }
}

/* Footer Styling */
.eoc-footer {
  background-color: var(--footer-bg-color);
  color: var(--white);
  padding: calc(var(--spacing-unit) * 3.75) 0 0;
  position: relative;
  z-index: 10;
}

/* Footer Main Section */
.footer-main {
  padding-bottom: calc(var(--spacing-unit) * 1.875);
  margin-bottom: calc(var(--spacing-unit) * 1.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.agency-logo {
  background-color: var(--white);
  border-radius: calc(var(--card-radius) * 1.5);
  padding: calc(var(--spacing-unit) * 0.9375);
  display: inline-block;
}

.agency-logo img {
  width: 18.625rem;
  height: 9.125rem;
  object-fit: contain;
}

.footer-right-content {
  height: 100%;
  display: flex;
  align-items: flex-start;
}

.footer-content-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  gap: calc(var(--spacing-unit) * 1.5);
}

.footer-sections {
  display: flex;
  justify-content: flex-end;
  gap: calc(var(--spacing-unit) * 1.875);
  padding-left: calc(var(--spacing-unit) * 2.5);
}

.footer-nav,
.footer-contact {
  padding-top: 0;
  padding-right: 0;
  flex: 0 0 auto;
  width: auto;
  min-width: 12.5rem;
  max-width: 14.375rem;
}

.footer-nav h4,
.footer-contact h4 {
  font-weight: var(--font-semibold);
  font-size: var(--text-lg);
  margin-top: 0;
  margin-bottom: calc(var(--spacing-unit) * 1.25);
  color: var(--border-light);
  letter-spacing: 0.02em;
}

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

.footer-links li {
  margin-bottom: calc(var(--spacing-unit));
}

.contact-info li {
  display: block;
  margin-bottom: calc(var(--spacing-unit) * 1.25);
}

.footer-links a,
.contact-info a,
.contact-info span {
  color: var(--white);
  text-decoration: none;
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  transition: opacity 0.2s ease;
  letter-spacing: 0.01em;
  line-height: var(--leading-normal);
}

.footer-links a:hover,
.contact-info a:hover {
  opacity: 1;
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.9);
}

/* Footer Bottom Section */
.footer-bottom {
  padding: calc(var(--spacing-unit) * 1.5625) 0;
}

.copyright-text {
  display: block;
  width: 100%;
  max-width: 100%;
}

.copyright-text p {
  margin: 0 0 calc(var(--spacing-unit) * 0.625);
  font-weight: var(--font-regular);
  font-size: var(--text-sm);
  color: var(--white);
  line-height: var(--leading-normal);
  text-align: left;
  opacity: 0.9;
  white-space: normal;
  overflow: visible;
}

/* License text styling */
.copyright-text p:nth-child(2) {
  font-size: calc(var(--text-sm) - 0.0625rem);
  opacity: 0.8;
}

/* Social Icons Styling for SVG */
.social-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: calc(var(--spacing-unit));
  transition: all 0.3s ease;
  color: var(--white);
}

.social-icons a.facebook-icon {
  background-color: var(--white);
  color: var(--footer-bg-color);
  border-radius: 50%;
}

.social-icons a.x-icon,
.social-icons a.linkedin-icon {
  background-color: transparent;
  position: relative;
}

.social-icons a img {
  width: 1.25rem;
  height: 1.25rem;
  filter: brightness(0) invert(1);
}

.social-icons i {
  font-size: var(--text-xl);
}

.social-icons a:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .eoc-footer {
    padding: calc(var(--spacing-unit) * 3.125) 0 0;
  }

  .footer-main {
    padding-bottom: calc(var(--spacing-unit) * 1.875);
    margin-bottom: calc(var(--spacing-unit) * 1.25);
  }

  .agency-logo {
    margin-bottom: calc(var(--spacing-unit) * 1.5625);
  }

  .agency-logo img {
    width: 16.25rem;
    height: auto;
  }

  .col-md-8 {
    display: block;
    width: 100%;
    margin-top: calc(var(--spacing-unit) * 0.625);
  }

  .footer-sections {
    display: flex;
    justify-content: space-between;
    padding-left: 0;
    gap: calc(var(--spacing-unit) * 1.5625);
    width: 100%;
  }

  .footer-nav,
  .footer-contact {
    width: 48%;
    min-width: initial;
    max-width: initial;
    margin-bottom: calc(var(--spacing-unit) * 1.25);
  }

  .footer-nav h4,
  .footer-contact h4 {
    font-size: calc(var(--text-base) + 0.0625rem);
    margin-bottom: calc(var(--spacing-unit) * 1.125);
  }

  .footer-links li,
  .contact-info li {
    margin-bottom: calc(var(--spacing-unit) * 0.875);
  }

  .footer-content-wrapper {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
  }

  .agency-name {
    font-size: var(--text-base);
    margin-top: calc(var(--spacing-unit) * 0.75);
  }
}

@media (max-width: 767px) {
  .eoc-footer {
    padding: calc(var(--spacing-unit) * 2.5) 0 0;
  }

  .footer-main {
    padding-bottom: calc(var(--spacing-unit) * 1.5625);
    margin-bottom: calc(var(--spacing-unit) * 0.9375);
  }

  .footer-brand {
    justify-content: center;
    width: 100%;
  }

  .agency-logo {
    margin: 0 auto calc(var(--spacing-unit) * 1.5625);
    padding: calc(var(--spacing-unit) * 0.75);
  }

  .agency-logo img {
    width: 13.75rem;
    height: auto;
  }

  .footer-sections {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5625);
  }

  .footer-nav,
  .footer-contact {
    width: 100%;
    margin-bottom: 0;
    padding: 0;
    text-align: center;
  }

  .footer-nav h4,
  .footer-contact h4 {
    font-size: var(--text-base);
    margin-bottom: var(--spacing-unit);
    text-align: center;
  }

  .contact-info li {
    justify-content: center;
  }

  .contact-info a,
  .contact-info span {
    text-align: center;
  }

  .copyright-text {
    margin-bottom: calc(var(--spacing-unit) * 1.25);
  }

  .copyright-text p {
    text-align: center;
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
  }

  .social-icons {
    justify-content: center;
    margin-top: calc(var(--spacing-unit) * 0.9375);
  }

  .footer-bottom .row {
    flex-direction: column-reverse;
  }

  .agency-name {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 0.75);
    padding: 0 calc(var(--spacing-unit) * 1);
  }

  .footer-content-wrapper {
    align-items: center;
  }
}

/* --------------------
   Core Layout Components
   -------------------- */

/* Main container with fixed positioning */
.auth-container {
  display: flex;
  height: 100vh;
  background-color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  overflow: hidden;
}

.auth-hero {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: none;
}

/* Hero image container styling */
.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 90%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.auth-form-column {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: var(--spacing-lg);
  overflow-y: auto;
  height: 100vh;
  position: relative;
}

/* Form wrapper - provides structure for form elements */
.auth-form-wrapper {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
  padding-bottom: 70px;
  min-height: calc(100% - var(--spacing-xl));
  justify-content: flex-start;
  position: relative;
}

/* --------------------
   Shared Form Components
   -------------------- */

.auth-logo {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.auth-logo img {
  height: 5.5rem;
  width: auto;
}

/* Form content container */
.auth-form-content {
  background-color: var(--white);
  border-radius: var(--card-radius);
  padding: var(--spacing-md);
  margin-bottom: 0;
  padding-bottom: var(--spacing-sm);
  flex-grow: 0;
}

.auth-heading {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--neutral-dark);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

/* Shared form elements with consistent spacing */
.form-group {
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-regular);
  color: var(--neutral-dark);
}

.form-actions {
  margin-top: var(--spacing-sm);
  margin-bottom: 0;
}

/* Button styling */
.auth-button {
  display: block;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-normal), transform var(--transition-normal);
  margin-top: var(--spacing-sm);
}

.auth-button[disabled] {
  background-color: var(--primary-dark);
}

.auth-form-content .form-group label {
  font-weight: var(--font-regular);
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--neutral-dark);
}

.auth-form-content .form-checkbox label {
  display: inline-block;
  margin-left: var(--spacing-xs);
  font-weight: var(--font-regular);
}

/* Target any potential CKAN overrides */
.auth-container label[for],
.auth-form-content label[for] {
  font-weight: var(--font-regular);
}

/* --------------------
   Link Components
   -------------------- */

/* Action links styling */
.auth-links {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 12px;
  display: block;
}

.auth-links a {
  color: var(--primary-color);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-normal);
  font-weight: var(--font-semibold);
}

.auth-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Login-specific link */
.auth-links--login {
  margin-top: 8px;
}

/* Registration-specific link */
.auth-links--register {
  margin-top: 4px;
  margin-bottom: 8px;
}

/* --------------------
   Footer Component
   -------------------- */

.auth-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--light-text-color);
  font-size: var(--text-xs);
  padding: var(--spacing-sm) 0;
  background-color: var(--white);
  z-index: 50;
}

/* --------------------
   Responsive Behavior
   -------------------- */

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

  .auth-container {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .auth-container {
    min-height: calc(100vh - 100px);
    flex-direction: column;
  }

  .auth-form-wrapper {
    max-width: 100%;
  }

  .auth-form-content {
    padding: var(--spacing-md);
  }
}
