:root {
  /* Color Palette */
  --midnight-blue: #15406a;
  --prussian-blue: #0b1e44;
  --royal-blue: #1e3a8a;
  --light-blue: #e0f2fe;
  --accent-gold: #fbbf24;

  --bg-light: #f8fafc;
  --text-dark: #475569;
  --text-gray: #475569;
  --text-light: #f1f5f9;

  --white: #ffffff;
  --border: #e2e8f0;

  /* Spacing */
  --container-width: 1280px;
  --spacer-sm: 1rem;
  --spacer-md: 2rem;
  --spacer-lg: 3rem;
  --spacer-xl: 5rem;

  /* Transitions */
  --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: initial; /* handled by Lenis */
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Utils */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--spacer-xl) 0;
}

.text-center {
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
  font-size: 0.95rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--midnight-blue);
  color: var(--white);
  border: 1px solid var(--midnight-blue);
}

.btn-primary:hover {
  background-color: var(--prussian-blue);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--midnight-blue);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--prussian-blue);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
}

.loader-content {
  font-size: 5rem;
  font-weight: 800;
  overflow: hidden;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--midnight-blue);
}

.logo-img {
  height: 40px;
  width: auto;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

/* .menu-toggle:hover {
  background: rgba(0, 0, 0, 0);
} */

.hamburger {
  width: 24px;
  height: 12px;
  position: relative;
  display: block;
}

.hamburger .line {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--midnight-blue);
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.hamburger .line:nth-child(1) {
  top: 0;
}
.hamburger .line:nth-child(2) {
  bottom: 0;
}

body.menu-open .hamburger .line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
  background-color: var(--white);
}
body.menu-open .hamburger .line:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
  background-color: var(--white);
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--midnight-blue);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  clip-path: circle(0% at top right);
  transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.3, 1);
  color: var(--white);
}

body.menu-open .menu-overlay {
  clip-path: circle(150% at top right);
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 3rem;
  font-weight: 700;
}

.menu-item a {
  display: inline-block;
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.menu-item a:hover {
  color: var(--white);
}

.submenu {
  font-size: 1.5rem;
  margin-left: 2rem;
  margin-top: 1rem;
  display: none; /* revealed via js */
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%; /* for parallax */
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(11, 30, 68, 0.7), rgba(21, 64, 106, 0.5));
}

.hero-text {
  max-width: 800px;
  z-index: 2;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  overflow: hidden;
  display: block;
  transform: translateY(100%);
  opacity: 0;
}

.hero-desc {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 13px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    top: 8px;
    opacity: 1;
  }
  100% {
    top: 24px;
    opacity: 0;
  }
}

/* Services */
.services {
  background-color: var(--white);
}

.section-header {
  margin-bottom: 3rem;
}

.label {
  color: var(--midnight-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.card:hover .card-img img {
  transform: scale(1.1);
}

.card-content {
  padding: 2rem;
}

.card-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--midnight-blue);
}

.card-content p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.read-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--royal-blue);
  transition: gap 0.3s;
}

.read-more:hover {
  gap: 0.8rem;
}

/* Updates */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  cursor: pointer;
}

.news-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 16/10;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-card:hover .news-img img {
  transform: scale(1.05);
}

.date {
  font-size: 0.875rem;
  color: var(--text-gray);
}

.news-content h4 {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  line-height: 1.4;
  transition: color 0.3s;
}

.news-card:hover h4 {
  color: var(--royalblue);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding-top: 1rem;
  color: var(--text-gray);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* Survey */
/* Survey Section - Premium Bento Grid */
.survey-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.bento-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.05);
}

/* Chart Card */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.header-text h3 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  color: var(--midnight-blue);
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 500;
}

.chart-badge {
  background: #ecfdf5;
  color: #059669;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-wrapper {
  position: relative;
  height: 250px;
  width: 100%;
}

.chart-center-text {
  position: absolute;
  top: 55%; /* Offset slightly due to legend */
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.chart-center-text .score {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--midnight-blue);
  line-height: 1;
}

.chart-center-text .label {
  font-size: 1rem;
  color: var(--text-gray);
}

/* Action Cards Column */
.bento-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.action-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  cursor: pointer;
}

.primary-action {
  background: linear-gradient(135deg, var(--midnight-blue), var(--royal-blue));
  color: white;
}

.primary-action .card-icon {
  background: rgba(255,255,255,0.2);
  color: white;
}

.primary-action h3 {
  color: white;
}

.primary-action p {
  color: rgba(255,255,255,0.8);
}

.primary-action .action-btn {
  background: white;
  color: var(--midnight-blue);
}

.secondary-action {
  background: white;
}

.secondary-action:hover {
  background: var(--light-blue);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--bg-light);
  color: var(--midnight-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-content {
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  color: var(--midnight-blue);
}

.card-content p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.4;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--midnight-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.action-card:hover .action-btn {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .survey-container {
    grid-template-columns: 1fr;
  }
  
  .bento-col {
    flex-direction: row;
  }
}

@media (max-width: 600px) {
  .bento-col {
    flex-direction: column;
  }
}

/* Contribution Marquee */
.contribution {
  padding: 4rem 0;
  background: var(--bg-light);
  overflow: hidden;
}

.marquee-wrapper {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  gap: 2rem;
  animation: marquee 50s linear infinite;
}

.marquee-item {
  position: relative;
  width: 150px;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--white); /* Optional: background for logos */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Optional: slight shadow */
}

.marquee-item img {
  width: 80%; /* Give some padding inside */
  height: 80%;
  object-fit: contain;
}

/* .marquee-text {
  display: none;
} */

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Footer */
.footer {
  background-color: var(--midnight-blue);
  color: var(--white);
  padding: 4rem 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  margin-top: 1rem;
  opacity: 0.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.link-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.link-col a {
  display: block;
  margin-bottom: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.link-col a:hover {
  opacity: 1;
}

.contact-col p {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer-bottom {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  margin-top: 1rem;
  padding-bottom: 1rem;
  border-top: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  .bento-grid,
  .news-grid,
  .footer-top,
  .footer-links,
  .survey-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    gap: 2rem;
  }
}

/* Combined Info Section */
.info-section {
  background-color: var(--white);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.news-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-card-side {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  cursor: pointer;
  padding: 1rem;
  border-radius: 12px;
  background: var(--bg-light);
  transition:
    transform 0.3s,
    background 0.3s;
}

.news-card-side:hover {
  transform: translateX(10px);
  background: var(--light-blue);
}

.news-card-side .news-img {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  margin-bottom: 0; /* Reset previous margin */
  border-radius: 8px;
  overflow: hidden;
}

.news-card-side .news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-side .news-content h4 {
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.faq-column .section-header {
  text-align: left; /* Override center alignment */
}

@media (max-width: 1024px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Navbar - Dynamic Island Override */
.navbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 85%; /* Hero width */
  max-width: 1200px;
  padding: 0.4rem 1rem;
  z-index: 100;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  top: 1.5rem !important;
}

.navbar.scrolled {
  width: 75%; /* Scrolled width */
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  top: 1rem !important; /* Moved up further when scrolled */
  padding: 0.4rem 2rem !important; /* Even smaller when scrolled */
}

/* Responsive Navbar Logic */
.desktop-menu {
  display: none; /* Hidden on mobile */
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none !important; /* Hide hamburger on desktop */
  }

  .desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--midnight-blue);
    transition: color 0.3s;
    position: relative;
    /* padding-bottom: 10px; */
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--royal-blue);
  }

  /* Underline Animation */
  .nav-link::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--royal-blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* padding-top: 10px; */
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    transform: scaleX(1);
  }

  /* Dropdown Logic */
  .nav-item-dropdown {
    position: relative;
    padding: 1rem 0; /* Increase hit area */
    cursor: pointer;
  }

  .nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .dropdown-menu a {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.2s;
    white-space: nowrap;
  }

  .dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--royal-blue);
  }
}

/* Nested Click Dropdown Styles */
.desktop-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-menu > li {
  position: relative;
  display: flex;
  align-items: center;
}

.desktop-menu .chevron {
  width: 14px;
  margin-left: 4px;
  transition: transform 0.3s;
}

.desktop-menu .chevron-right {
  width: 14px;
  margin-left: auto; /* Push to right */
}

/* Base Dropdown (Level 1) */
.dropdown-menu {
  position: absolute;
  top: 100%; /* Below parent */
  margin-top: 20px; /* Spacing from menu text */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Active State for Click */
.has-dropdown.active > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-75%) translateY(0);
}

.has-dropdown.active > .nav-link .chevron {
  transform: rotate(180deg);
}

.dropdown-menu li {
  position: relative;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: normal !important;
  transition:
    background 0.2s,
    color 0.2s;
  justify-content: space-between; /* For chevron-right */
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: var(--light-blue);
  color: var(--midnight-blue);
}

/* Level 2 (Sub-submenu) */
.sub-dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%; /* Right of parent */
  margin-left: 10px;
  background: white;
  min-width: 200px;
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-10px);
}

.sub-dropdown-menu a {
    white-space: normal !important;
}

/* Active Level 2 */
.has-sub-dropdown.active > .sub-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Level 3 (Sub-sub-submenu) */
.sub-sub-dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%; /* Right of parent */
  margin-left: 10px;
  background: white;
  min-width: 200px;
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-10px);
} 

.sub-sub-dropdown-menu a {
    white-space: normal !important;
}

/* Active Level 3 */
.has-sub-sub-dropdown.active > .sub-sub-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Ensure Logo and Menu are perfectly aligned */
.navbar .nav-container {
  align-items: center; /* Flex center */
}

/* Material Icons Alignment Fix */
.material-symbols-outlined {
  font-size: 20px !important; /* Standard size */
  vertical-align: middle;
  line-height: 1; /* Reset line-height to prevent offset */
}

/* Update Desktop Menu Icon Styles */
.desktop-menu .chevron {
  margin-left: 6px;
  font-size: 20px !important;
  transition: transform 0.3s;
}

.desktop-menu .chevron-right {
  margin-left: auto;
  font-size: 20px !important;
}

.desktop-menu .nav-link,
.dropdown-menu a {
  display: flex;
  align-items: center; /* Strict centering */
  line-height: 1.2; /* Tighter line height for text to align with icon */
}

/* Logo Size Update */
.logo-img {
  height: 55px;
}

/* Mobile Menu Overhaul */
.menu-links.mobile-menu-list {
  gap: 1rem;
  font-size: 1.5rem; /* Reduced from 3rem */
  font-weight: 600;
  overflow-y: auto;
  max-height: 80vh;
}

/* Recursive indentation for mobile */
.mobile-submenu .mobile-submenu {
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.1);
}


.mobile-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-chevron {
  transition: transform 0.3s;
}

.menu-item.active > .mobile-link-wrapper .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
}

.menu-item.active > .mobile-submenu {
  max-height: 500px; /* Arbitrary large height */
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.mobile-submenu a {
  font-size: 1.1rem; /* Smaller for sub-items */
  color: rgba(255, 255, 255, 0.7);
}

.mobile-submenu a:hover {
  color: white;
}

/* Mobile Menu Layout Fix (Push Down) */
.menu-overlay {
  justify-content: flex-start !important;
  padding-top: 8rem !important;
  overflow-y: auto !important;
}

/* Hamburger Close Button Color Fix */
body.menu-open .hamburger .line:nth-child(1),
body.menu-open .hamburger .line:nth-child(2) {
  background-color: var(--white) !important; /* Switch to Main White */
}

/* Ensure Button is Symmetrical */
.menu-toggle {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Fix: Hide Hamburger on Desktop */
@media (min-width: 1024px) {
  .menu-toggle {
    display: none !important;
  }
}

/* Mobile Menu Open State: Hide Navbar Background & Logo */
body.menu-open .navbar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.menu-open .logo {
  opacity: 0;
  pointer-events: none;
  /* Maintain width/height to prevent layout shift (button jumping) */
}

/* Ensure Close Button stays visible and fixed */
body.menu-open .menu-toggle {
  /* Position is already handled by the flex container spacing */
  z-index: 101; /* Ensure above everything */
}

/* Strict Centering for Hamburger Icon */
.hamburger {
  margin: 0 !important;
  left: auto !important;
  top: auto !important;
  transform: none !important; /* Prevent stray transforms */
}

/* Ensure Toggle has no extra spacing */
.menu-toggle {
  box-shadow: none !important; /* Remove any shadow offsets */
  outline: none !important;
}

/* Alternating Section Colors */
.services {
  background-color: var(--white);
}

.info-section {
  background-color: var(--bg-light); /* Light Gray */
}

/* Ensure inner cards in info-section stand out */
.info-section .news-card-side,
.info-section .faq-item {
  /* Optional: keep them transparent or give them white bg if needed */
}

.survey {
  background-color: var(--white);
}

.contribution {
  background-color: var(--bg-light); /* Light Gray */
}

/* Uiverse Button Style */
.uiverse-btn {
  display: inline-block;
  border-radius: 50px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  padding: 2px; /* Border width */
  text-decoration: none;
  transition: transform 0.3s;
  box-shadow: 0 10px 20px -10px rgba(0, 242, 254, 0.7);
}

.uiverse-btn span {
  display: block;
  background: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #00f2fe; /* Gradient text color fallback */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(135deg, #15406a 0%, #0b1e44 100%);
  transition: background 0.3s;
}

.uiverse-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px rgba(0, 242, 254, 0.9);
}

.uiverse-btn:hover span {
  background-image: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  -webkit-text-fill-color: white; /* Text turns white on hover */
  background: transparent;
  color: white;
}

/* Info Section Redesign - Premium Feel */
.news-card-side {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  padding: 1.2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-card-side:hover {
  transform: translateX(15px) scale(1.02);
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--light-blue);
  z-index: 2;
}

.news-card-side .news-img {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s;
}

.news-card-side:hover .news-img {
  transform: scale(1.05) rotate(2deg);
}

/* FAQ Card Style */
.faq-column .faq-item {
  background: white;
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s;
}

.faq-column .faq-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-color: var(--light-blue);
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--midnight-blue);
}

/* Shiny Button Component */
.shiny-btn {
  position: relative;
  padding: 0.8rem 2rem;
  border-radius: 100px;
  background-color: var(--midnight-blue);
  color: white;
  font-weight: 600;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(21, 64, 106, 0.3);
}

.shiny-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(21, 64, 106, 0.4);
}

.shiny-btn span {
  position: relative;
  z-index: 1;
}

.shiny-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.shiny-btn:hover::before {
  left: 100%;
}

/* Advanced Animated Button (Uiverse Inspired) */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition-duration: 0.3s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
  background-color: var(--midnight-blue);
  text-decoration: none; /* Reset link styles */
}

/* Plus/Arrow Sign */
.sign {
  width: 100%;
  transition-duration: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign svg {
  width: 17px;
}

.sign svg path {
  fill: white;
}

/* Key Text */
.text {
  position: absolute;
  right: 0%;
  width: 0%;
  opacity: 0;
  color: white;
  font-size: 1em;
  font-weight: 600;
  transition-duration: 0.3s;
  white-space: nowrap; /* Prevent wrap */
  padding-left: 10px; /* Spacing */
}

/* Hover Effect */
.cta-button:hover {
  width: 160px;
  border-radius: 40px;
  transition-duration: 0.3s;
}

.cta-button:hover .sign {
  width: 30%;
  transition-duration: 0.3s;
  padding-left: 10px;
}

.cta-button:hover .text {
  opacity: 1;
  width: 70%;
  transition-duration: 0.3s;
  padding-right: 15px;
}

.cta-button:active {
  transform: translate(2px, 2px);
}

/* Update Animated Button Size & Padding */
.cta-button {
  width: 35px !important; /* Smaller size */
  height: 35px !important;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
  width: 150px !important; /* Adjusted expand width */
}

/* Add padding to text so it's not 'mepet' */
.cta-button .text {
  padding-right: 20px !important;
  padding-left: 5px !important;
}

/* Ensure Side-by-Side Layout */
.section-header.row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-direction: row !important;
}

/* Fancy CTA Button (Uiverse Inspired) */
.fancy-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Soft shadow */
  color: var(--midnight-blue);
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.fancy-cta .text {
  position: relative;
  z-index: 2;
  transition: color 0.4s;
}

.fancy-cta .icon-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-light);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.fancy-cta .icon-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.4s;
  color: var(--midnight-blue);
}

/* Hover Effect: Background Slide & Arrow Move */
.fancy-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%; /* Start from right */
  transform: translate(-50%, -50%) scale(0); /* Hidden */
  width: 200%;
  height: 200%;
  background: var(--royal-blue);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
}

.fancy-cta:hover {
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.25);
  border-color: transparent;
  padding-right: 2rem; /* Expand sightly */
}

.fancy-cta:hover::before {
  left: 50%;
  transform: translate(-50%, -50%) scale(1); /* Fill */
  opacity: 1;
}

.fancy-cta:hover .text {
  color: white;
}

.fancy-cta:hover .icon-wrapper {
  background: white;
  transform: translateX(5px); /* Move icon slightly forward */
}

.fancy-cta:hover .icon-arrow {
  color: var(--royal-blue);
  transform: rotate(-45deg); /* Slight angle or just move right */
}

/* CTA Refinement: Visibility & Mobile */
.fancy-cta {
  background: var(--light-blue); /* Added color for visibility */
  border: 1px solid rgba(21, 64, 106, 0.1); /* Subtle border */
  white-space: nowrap; /* Force single line */
}

/* Mobile Adjustments for CTA */
@media (max-width: 768px) {
  .fancy-cta {
    padding: 0.6rem 1rem; /* Smaller padding */
    gap: 6px;
  }

  .fancy-cta .text {
    font-size: 0.8rem; /* Smaller text */
  }

  .fancy-cta .icon-wrapper {
    width: 20px;
    height: 20px;
  }

  .fancy-cta .icon-arrow {
    width: 14px;
    height: 14px;
  }
}

/* Improved Fancy CTA Visibility */
.fancy-cta {
  background: #f8fafc; /* Slight grey/white background */
  border: 1px solid var(--royal-blue); /* Clear border for visibility */
  color: var(--royal-blue); /* Text color matches border */
}

/* Mobile Adjustments for Fancy CTA */
@media (max-width: 768px) {
  .fancy-cta {
    padding: 0.8rem 1rem; /* Reduce horizontal padding */
    font-size: 0.85rem; /* Slightly smaller text */
    white-space: nowrap; /* Prevent text wrapping */
    max-width: 100%; /* Ensure it fits container */
  }

  .fancy-cta:hover {
    padding-right: 1.5rem; /* Less expansion on mobile */
  }

  .fancy-cta .text {
    white-space: nowrap;
    display: inline-block;
  }
}

/* Flow Button Animation */
.btn-flow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--midnight-blue);
  font-weight: 600;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-flow span:first-child {
  position: relative;
  z-index: 2;
  transition: color 0.3s;
}

.btn-flow .icon-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--midnight-blue);
  transition: all 0.4s ease;
  z-index: 2;
}

/* Hover Fill Effect */
.btn-flow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--midnight-blue);
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1;
}

.btn-flow:hover {
  border-color: var(--midnight-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(21, 64, 106, 0.15);
}

.btn-flow:hover::before {
  width: 100%;
}

.btn-flow:hover span:first-child {
  color: var(--white);
}

.btn-flow:hover .icon-flow {
  background: var(--white);
  color: var(--midnight-blue);
  transform: translateX(5px) rotate(-45deg); /* Interesting interaction */
}

/* Match FAQ Hover to News Card Hover */
.faq-column .faq-item {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Match spring transition */
}

.faq-column .faq-item:hover {
  transform: translateX(15px) scale(1.02);
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--light-blue);
  z-index: 2;
}

/* Asta Cita Showcase */
.asta-cita-showcase {
  max-width: 1000px; /* Limit width for cleaner look */
  margin: 0 auto;
}

.asta-cita-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9; /* Forced Ratio */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.asta-cita-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.asta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.asta-cita-card:hover .asta-img {
  transform: scale(1.05);
}

.asta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    transparent 100%
  );
  color: white;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.asta-cita-card:hover .asta-overlay {
  opacity: 1;
  transform: translateY(0);
}

.asta-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.asta-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 600px;
}

/* =========================================
   NEW FOOTER IMPLEMENTATION
   ========================================= */

/* =========================================
   NEW FOOTER IMPLEMENTATION (Refined)
   ========================================= */

.footer {
  background: linear-gradient(to bottom, #0f172a, #0b1e44); /* Deeper dark blue */
  color: white;
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

/* Column Common Styles */
.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background: var(--royal-blue); /* Gold accent */
}

/* 1. Brand Column */
.footer-logo {
  height: 100px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 0.95rem;
  /* margin-bottom: 2rem; */
  padding-bottom: 2rem;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials a:hover {
  background: white;
  color: var(--midnight-blue);
  transform: translateY(-3px);
}

/* 2. Navigation Column */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
  display: inline-block;
}

.footer-links li a:hover {
  color: white;
  transform: translateX(5px);
}

/* 3. Contact Column */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.contact-list li i {
  color: var(--accent-gold);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

/* 4. Location Column */
.map-frame-small {
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
}

.map-frame-small:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
}

.map-frame-small iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) invert(90%) hue-rotate(180deg);
  transition: filter 0.5s;
}

.map-frame-small:hover iframe {
  filter: none;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: white;
  text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-col h4::after {
      left: 0; /* Align left even on mobile for consistency */
  }
}

/* Satisfaction Section Styles */
.survey-section {
    background: linear-gradient(to bottom, var(--white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.survey-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: flex-start;
}

/* Chart Card */
.chart-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chart-header h3 {
    font-size: 1.25rem;
    color: var(--midnight-blue);
}

.chart-period {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
    background: var(--bg-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.chart-period i {
    width: 16px;
    height: 16px;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Custom Legend if needed, or ChartJS native */
.chart-legend-custom {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Feedback Column */
.feedback-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feedback-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feedback-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feedback-card.primary {
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--royal-blue) 100%);
    color: var(--white);
}

.feedback-card.primary h3 {
    color: var(--white);
}

.feedback-card.primary p {
    color: rgba(255, 255, 255, 0.8);
}

.feedback-card.secondary {
    background: var(--white);
    border: 1px solid var(--border);
}

.feedback-card .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feedback-card.primary .icon-box {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.feedback-card.secondary .icon-box {
    background: var(--light-blue);
    color: var(--royal-blue);
}

.feedback-content {
    flex: 1;
}

.feedback-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--midnight-blue);
}

.feedback-content p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-white-outline {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-white-outline:hover {
    background: var(--white);
    color: var(--midnight-blue);
}

/* Responsive */
@media (max-width: 900px) {
    .survey-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .chart-wrapper {
        height: 250px;
    }
    
    .chart-card {
        padding: 1.5rem;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .chart-period {
        align-self: flex-start;
    }

    .feedback-card {
        padding: 1.5rem;
        flex-direction: column;
    }

    .feedback-card .icon-box {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .chart-wrapper {
        height: 200px;
    }
    
    .chart-header h3 {
        font-size: 1.1rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
}

/* Global Responsive Typography & Spacing Fixes */
@media screen and (max-width: 768px) {
  html {
    font-size: 15px; /* Slightly smaller base font */
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .hero-title {
    font-size: 2.5rem; /* Force hero title smaller */
    line-height: 1.2;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .container {
    padding: 0 1.25rem; /* Reduce side padding slightly */
  }
  
  .section {
    padding: 3rem 0; /* Reduce vertical spacing */
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 14px; /* Smaller base font for very narrow screens */
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 0.75rem; }
  
  /* Hero adjustments for mobile */
  .hero-title {
    font-size: 2rem; 
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-actions {
    gap: 0.75rem;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%; /* Full width buttons */
  }

  /* Label adjustments */
  .label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  /* Reset some margins */
  .section-header {
    margin-bottom: 2rem;
  }
  
  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }
}
