@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Fredoka:wght@400;500;700&display=swap');

:root {
  --primary: #3D6B9E;
  --primary-light: #5A8DBE;
  --primary-dark: #2C5180;
  --secondary: #C5D8F0;
  --accent: #F0A500;
  --dark: #1A2C40;
  --dark-medium: #2C4468;
  --light: #F4F7FB;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.45);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
  --font-main: 'Outfit', sans-serif;
  --transition: all 0.3s ease;
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 4px;
  bottom: -12px;
  left: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

h2:hover::after {
  width: 80px;
}

h3 {
  font-size: 1.3rem;
  color: var(--primary);
}

p {
  margin-bottom: 1rem;
  color: #4a5a52;
  font-weight: 400;
}

/* --- Navigation --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: var(--transition);
  background: rgba(18, 34, 58, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(18, 34, 58, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 40px;
  transition: var(--transition);
}

.logo:hover img {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.25s ease;
  color: rgba(255, 255, 255, 0.85);
  padding-bottom: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.language-switch {
  display: flex;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.language-switch a {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.language-switch a.active {
  background: var(--accent);
  color: var(--dark);
}

/* --- Animations & Reveals --- */
.reveal {
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.reveal-up {
  transform: translateY(80px);
}

.reveal-down {
  transform: translateY(-80px);
}

.reveal-left {
  transform: translateX(-80px);
}

.reveal-right {
  transform: translateX(80px);
}

.reveal-scale {
  transform: scale(0.92);
}

/* Staggered delay for child elements */
.stagger-parent .reveal {
  transition-delay: calc(var(--delay, 0) * 0.15s);
}

.language-switch a:hover:not(.active) {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.mobile-menu-btn img {
  width: 32px;
  height: 32px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 125px 2rem 60px;
  background: url('../achtergrond/a.jpg') center/cover no-repeat;
}

/* --- Hero Link List (Hybrid) --- */
.hero-links-container {
  max-width: 600px;
  width: 100%;
  margin: 1.5rem 0 0;
  text-align: left;
  display: flex;
  flex-direction: column;
}


.hero-list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  text-decoration: none;
}

.hero-list-link:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-list-link:hover {
  padding-left: 0.75rem;
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero-list-link-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.hero-list-link-content i {
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.9;
}

.hero-list-link .fa-xs {
  font-size: 0.8rem;
  opacity: 0.4;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-list-link:hover .fa-xs {
  transform: translateX(5px);
  opacity: 1;
}

@media (max-width: 768px) {
  .hero {
    background: url('../achtergrond/hero-mobile.jpg') center/cover no-repeat;
    padding-top: 105px;
    align-items: flex-start;
  }
  
  .hero-content {
    padding: 2.5rem 1.5rem !important;
    margin: 1rem !important;
    border-radius: var(--radius) !important;
    min-height: auto;
    width: calc(100% - 2rem);
  }
}

.hero::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
  margin: 0;
  text-align: left;
  color: white;
  animation: fadeInUp 0.9s ease-out both;
  background: rgba(26, 44, 64, 0.55);
  padding: 2.5rem 3rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.hero-content h1 {
  color: white;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  line-height: 1.0;
  display: flex;
  flex-direction: column;
}

.hero-content h1 .eyebrow {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: -0.7rem;
  opacity: 1;
  line-height: 1;
}

.hero-content h1 .logo-font {
  font-family: 'Fredoka', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 500;
  font-size: 4.8rem;
  margin-top: 0rem;
  line-height: 0.9;
}

@media (max-width: 768px) {
  .hero-content h1 .logo-font {
    font-size: 3.2rem;
  }
}

.hero-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  max-width: 560px;
  margin-left: 0;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 2rem;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(61, 107, 158, 0.35);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(61, 107, 158, 0.45);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-visit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #2980b9 !important; /* Distinguishable blue */
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  text-decoration: none !important;
}

.btn-visit:hover {
  background: #3498db !important; /* Lighter on hover */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2) !important;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: white !important;
  box-shadow: none;
}

.btn-outline:hover {
  background: white !important;
  border-color: white !important;
  color: var(--primary-dark) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--dark);
  color: var(--dark) !important;
  box-shadow: none;
}

.btn-outline-dark:hover {
  background: var(--dark) !important;
  color: white !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.promo-banner {
  margin-top: 2.5rem;
  background: rgba(18, 34, 58, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px solid var(--accent);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  color: white;
}

.promo-banner h3 {
  color: var(--accent) !important;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(240, 165, 0, 0.4);
  font-weight: 800;
}

.promo-banner p {
  color: rgba(255, 255, 255, 0.95) !important;
  margin-bottom: 1.25rem;
}

.promo-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border-color: #ffc107;
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--dark);
  box-shadow: none;
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 24px rgba(61, 158, 94, 0.3);
}

/* --- Main Structure --- */
.section-padding {
  padding: 6rem 2rem;
  position: relative;
}



.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section heading block */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.section-header p {
  font-size: 1.05rem;
  margin-top: 1.2rem;
  color: #5a7060;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.05rem;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* --- Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  overflow: hidden;
}

.meetings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}

.modal-header-title {
  color: #ffcc00 !important;
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}



@media (max-width: 1100px) {
  .meetings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .meetings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Country Legislation Carousel --- */
.legislation-carousel-wrapper {
  position: relative;
  margin-top: 0.5rem;
  perspective: 2000px; /* Crucial for 3D */
  padding: 0.5rem 0;
  overflow: hidden;
}



.legislation-carousel-track {
  display: flex;
  gap: 1.75rem;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform-style: preserve-3d;
  justify-content: center;
  align-items: center;
  height: 450px; /* Ensure space for 3D scale/rotation */
  position: relative;
  transition: transform 0.1s ease-out; /* For dragging smoothness */
}

.legislation-carousel-track::-webkit-scrollbar {
  display: none;
}

.legislation-carousel-track .card {
  flex: 0 0 320px;
  min-width: 320px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease, filter 0.6s ease, box-shadow 0.6s ease;
  transform-origin: center;
  backface-visibility: hidden;
  user-select: none;
  cursor: grab;
  position: absolute; /* Stack cards for JS positioning */
  left: 50%;
  margin-left: -160px; /* Center them */
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border-top: 6px solid #ccc; /* Fallback */
}

/* Specific Accents with higher specificity */
.legislation-carousel-track .card.card-nl { border-top-color: #ff8c00; }
.legislation-carousel-track .card.card-de { border-top-color: #000000; }
.legislation-carousel-track .card.card-fr { border-top-color: #002395; }
.legislation-carousel-track .card.card-uk { border-top-color: #e60000; }
.legislation-carousel-track .card.card-be { border-top-color: #ffcc00; }

.legislation-carousel-track .card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-5px) scale(1.02); /* Slight lift on hover */
}

.legislation-carousel-track .card.card-nl:hover { box-shadow: 0 20px 45px rgba(255, 140, 0, 0.3); }
.legislation-carousel-track .card.card-de:hover { box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25); }
.legislation-carousel-track .card.card-fr:hover { box-shadow: 0 20px 45px rgba(0, 35, 149, 0.25); }
.legislation-carousel-track .card.card-uk:hover { box-shadow: 0 20px 45px rgba(230, 0, 0, 0.25); }
.legislation-carousel-track .card.card-be:hover { box-shadow: 0 20px 45px rgba(255, 204, 0, 0.3); }

.legislation-carousel-track .card:active {
  cursor: grabbing;
}

.legislation-carousel-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.carousel-btn {
  display: none !important; /* Remove arrows as requested */
}

.carousel-dots {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.carousel-dot {
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 50px;
  text-align: center;
}

.carousel-dot.active {
  background: var(--primary);
  color: white !important;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(61, 158, 94, 0.3);
  border-color: var(--primary);
}

.carousel-dot:hover {
  background: rgba(61, 158, 94, 0.1);
}

/* Refined shadows for specific sections to make them 'pop' as requested */
#legislation .card,
#bouwen-kopen .card,
#build-buy .card,
#meetings .card {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
  border-radius: 15px; /* Added rounded corners */
}

#legislation .card:hover,
#bouwen-kopen .card:hover,
#build-buy .card:hover,
#meetings .card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-5px);
}



.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.card img:not(.card-image) {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Fallback: if card doesn't use card-body wrapper */
.card>h3 {
  margin: 1.75rem 1.75rem 0.5rem;
}

.card>p {
  margin: 0 1.75rem 1rem;
  flex: 1;
}

.card-footer {
  margin-top: auto;
  padding: 0 1.75rem 1.75rem;
}

.card-footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #6b7c72;
}

.card h3 {
  margin: 1.75rem 1.75rem 0.75rem;
}

.card>p {
  margin: 0 1.75rem 0.5rem;
}

/* Badge / tag */
.card-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(61, 107, 158, 0.1);
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1.25rem 0 0;
  line-height: 1.4;
  width: 100%;
}

/* --- Build-Buy Specifics --- */
#build-buy ul li,
#bouwen-kopen ul li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

#build-buy ul li::before,
#bouwen-kopen ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

#build-buy ul li strong,
#bouwen-kopen ul li strong {
  color: var(--dark-medium);
}
.highlight-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-medium) 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 4rem;
  margin: 3rem 0;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.highlight-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(61, 107, 158, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(90, 141, 190, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.highlight-section h2,
.highlight-section h1 {
  color: white;
}

.highlight-section p {
  color: rgba(255, 255, 255, 0.78);
}

.highlight-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Remove shadows for legislation details as requested */
[id^="legislation-"] .highlight-media img {
  box-shadow: none;
}

/* --- Info Section Toggles --- */
.info-section {
  display: none;
  scroll-margin-top: 120px;
  padding-top: 20px;
}

/* Continuity for colored section backgrounds in info views */
#info-utrecht, #info, #info-kassel, [id^="info-"] {
  background: rgba(61, 107, 158, 0.05) !important; /* Match #meetings */
  padding-bottom: 3rem;
}

[id^="legislation-"] {
  background: rgba(61, 107, 158, 0.08) !important; /* Match #legislation */
  padding-bottom: 4rem;
}

.info-section.is-active {
  display: block !important;
  opacity: 1 !important;
  animation: reliableFadeIn 0.6s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes reliableFadeIn {
  0% { 
    opacity: 0; 
    transform: translateY(20px);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition);
  z-index: 10;
}

.close-btn:hover {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .close-btn {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* --- Contact Section --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem;
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-medium) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 100%, rgba(61, 107, 158, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.contact-info h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-info i {
  color: var(--accent);
  margin-right: 12px;
  font-size: 1.1rem;
  width: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.social-links-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 2rem 0 1rem;
}

.social-link-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  padding-left: 0 !important;
  text-decoration: none !important;
  justify-content: flex-start !important;
}

.social-link-item:hover {
  color: var(--accent) !important;
  background: none !important;
  transform: none !important;
}

.social-link-item i {
  color: var(--accent);
  font-size: 1rem;
  width: 20px;
  margin-right: 0;
}

.contact-form-container {
  padding: 3.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--dark);
}

/* Floating label inputs */
.input-group {
  position: relative;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid #dde5e0;
  border-radius: var(--radius-sm);
  background: var(--light);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  outline: none;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #9aab9e;
}

.input-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(61, 107, 158, 0.1);
}

/* --- Footer --- */
footer {
  background: linear-gradient(160deg, var(--dark) 0%, #0e2219 100%);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.95rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-socials {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: var(--transition);
  color: white;
  padding: 10px;
}

.footer-socials a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(61, 107, 158, 0.35);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* --- Reveal / Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: var(--transition-slow);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up {
  transform: translateY(40px);
}

/* --- Utility Classes --- */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- Media Queries --- */
@media (max-width: 900px) {

  .about-grid,
  .highlight-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .highlight-section {
    padding: 2.5rem;
    margin: 2rem 1.25rem;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(26, 44, 58, 0.98);
    backdrop-filter: blur(16px);
    padding: 2rem 2rem 10rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 1.25rem;
  }

  .language-switch {
    display: none;
    position: absolute;
    top: 450px; /* Placing it below the menu links */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    justify-content: center;
    flex-direction: row;
    z-index: 1100;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active,
  .language-switch.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--accent); /* Changed to yellow */
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
  }

  .mobile-menu-btn i {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content h1 .eyebrow {
    font-size: 1.575rem; /* 25.2px */
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-padding {
    padding: 4rem 1.25rem;
  }

  .contact-info,
  .contact-form-container {
    padding: 2.5rem 1.75rem;
  }

  section,
  .info-section {
    scroll-margin-top: 60px !important;
  }
}

/* --- CMS Modal Overlay --- */
.cms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 34, 58, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cms-modal-overlay.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.cms-modal {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 85vh; /* Enforce height to trigger internal scroll */
    background: #1a2634;
    display: flex;
    flex-direction: row;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    overflow: hidden;
}

.cms-modal-media, .cms-modal-body {
    flex: 1;
    height: 100%;
    min-height: 0;
}



.cms-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.cms-modal-close:hover {
    background: #ffcc00;
    color: #1a2634;
}

.cms-modal-body, .cms-modal-media {
    flex: 1;
    height: 100%;
    min-height: 0;
}

.cms-modal-body {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cms-modal-media {
    background: #141d2b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cms-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


@media (max-width: 850px) {
    .cms-modal-overlay {
        padding: 1rem;
    }
    .cms-modal {
        grid-template-columns: 1fr;
        flex-direction: column;
        height: 92vh;
        width: 95%;
    }

    .cms-modal-media {
        display: none;
    }
    .cms-modal-body {
        padding: 2rem;
    }
}


/* --- Card Alignments --- */
.meetings-grid .card,
.legislation-carousel-track .card {
    height: auto !important; /* Allow cards to be more compact */
    display: flex !important;
    flex-direction: column !important;
}

.meetings-grid .card-body,
.legislation-carousel-track .card-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 1.5rem !important; /* Reduced from 2rem */
}

.meetings-grid .card-body p,
.legislation-carousel-track .card-body p {
    margin-bottom: 1.5rem !important; /* Matches top padding for symmetry */
}

.meetings-grid .btn,
.legislation-carousel-track .btn {
    width: 100% !important;
    margin-top: auto !important;
}

/* Ensure consistent spacing between elements in the small blocks */
.legislation-carousel-track .card-badge {
    margin: 0 0 1rem 0 !important;
}

.legislation-carousel-track .card-body h3 {
    margin: 0 0 0.5rem 0 !important;
}


.btn-primary {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
}
