/* Resetting body margin so the bar touches the very top and edges */
*{
    box-sizing: border-box;
}

html{
    overflow-x: hidden;
}
body {
  margin: 0; 
  overflow-x: hidden;
  font-family: system-ui, -apple-system, sans-serif;
}

.notification-bar {
  background-color: #bf0603; /* A clean, modern blue */
  color: #ffffff;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.notification-bar span {
  /* Prevents text from overlapping the absolute positioned close button on mobile */
  padding-right: 24px; 
  text-align: center;
}

.close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 22px;
  position: absolute;
  right: 15px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.close-btn:hover {
  opacity: 1;
}


/* Hero Section Container */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  min-height: 80vh;
  padding: 140px 20px 80px;
  box-sizing: border-box;

  background-image: url('assets/axiom-pattern.png');
  background-repeat: repeat;
}

/* Modern Pill Badge */
.hero-badge {
  background-color: #e0e7ff;
  color: #003ea7;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  margin-top: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Bold Typography */
.hero-title {
  font-size: 5em;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.87);
  margin: 0;
  max-width: 900px;
  line-height: 1.1;
  letter-spacing: -1.5px; /* Tight letter spacing for a Gen-Z/Modern feel */
}
.clh{
    color: #dd2d4a;
}

.highlight-strip {
  /* Core layout and positioning */
  padding: 2px 16px;
  display: inline-block; 
  margin: 0 6px; 
  transform: skew(-10deg) rotate(-3deg); 
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
  
  /* Initial text color */
  color: #ffffff; 

  /* The Sweep Animation Setup */
  /* Creates a gradient that is 50% yellow (#facc15) and 50% blue (#003ea7) */
  background: linear-gradient(to right, #facc15 50%, #003ea7 50%);
  background-size: 200% 100%; /* Makes the background twice as wide */
  background-position: right bottom; /* Starts by displaying the right side (blue) */
  
  /* Transitions both the background sliding and the text color changing */
  transition: background-position 0.4s ease-out, color 0.4s ease-out;
}

.highlight-strip:hover {
  background-position: left bottom; /* Slides the background to the left side (yellow) */
  color: #000000; /* Changes text to black */
}
/* Subtitle */
.hero-subtitle {
  font-size: 22px;
  color: #475569;
  margin: 24px 0 40px;
  max-width: 600px;
  font-weight: 400;
  line-height: 1.5;
}




/* Container for the fake input */
.fake-input-bar {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px; /* Gives it a modern pill shape */
  padding: 8px 8px 8px 24px;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  max-width: 100%;
  margin-top: 50px;
  width: 350px;
}

.fake-input-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #2563eb;
}


.input-icon {
  width: 24px;
  height: 24px;
  color: #64748b;
  margin-right: 16px;
  flex-shrink: 0;
}


.input-content {
    
  display: flex;
  align-items: center;
  flex-grow: 1;
  gap: 8px;
  overflow: hidden;
}


.input-label {
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
}


.typewriter-container {
  display: inline-block;
}

.typewriter-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  color: #0f172a;
  font-weight: 600;
  letter-spacing: 1px;
  
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  
  /* 20ch matches the exact 20 character length of xxxxxxx8888xxxxx8899 */
  width: 20ch; 
  
  /* The typing cursor */
  border-right: 2px solid #2563eb; 
  
  /* typing: 4s duration, 20 steps (one for each character), infinite loop.
    blink-caret: blinks the cursor border infinitely.
  */
  animation: 
    typing 4s steps(20, end) infinite,
    blink-caret 0.75s step-end infinite;
}

/* The Fake Button on the right */
.fake-btn {
  background-color: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  margin-left: 12px;
  transition: background-color 0.2s;
}

.fake-input-bar:hover .fake-btn {
  background-color: #2563eb;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .fake-input-bar {
    padding: 6px 6px 6px 16px;
  }
  
  .input-label {
    display: none; /* Hide label on mobile to save space */
  }
  
  .typewriter-text {
    font-size: 14px;
  }
}

/* --- Keyframes for the Animations --- */
@keyframes typing {
  0% { width: 0; }
  50% { width: 20ch; } /* Pauses slightly when fully typed */
  90% { width: 20ch; }
  100% { width: 0; } /* Deletes the text to start over */
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #2563eb; }
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 120px;
    min-height: 60vh;
  }

  .hero-title {
    font-size: 38px;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 18px;
  }
}

/* Container for the Cyan Section */
.cyan-trust-section {
  background-color: #36b7a8; /* A vibrant, modern cyan shade */
  color: snow; /* Deep contrast slate/black */
  padding: 120px 5% 120px 5%; /* Generous vertical padding */
  position: relative;
  display: flex;
  align-items: center;
  min-height: 400px;
  overflow: hidden; /* Keeps the badge clean if it touches the edge */
  box-sizing: border-box;
}

/* Flex layout for the text and arrow */
.trust-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 80%;
  z-index: 2; /* Keeps it above the background */
}

/* Massive, bold typography */
.trust-title {
  font-size: 4em;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -1.5px;
  max-width: 600px;
}

/* Big Arrow Animation & Styling */
.trust-arrow {
  width: 140px;
  height: 140px;
  color: black;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Subtle hover lift toward the top right */
.trust-arrow:hover {
  transform: translate(10px, -10px); 
}

/* --- Top Right QR Badge Styling --- */
.qr-badge {
  position: absolute;
  top: 40px;
  right: 5%;
  width: 180px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* The wrapper that handles the continuous rotation */
.rotating-text-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: spin-text 12s linear infinite;
}

.rotating-text {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rotating-text text {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 7.5px;
  font-weight: 700;
  fill: #ffffff; /* Text color matching the theme */
  letter-spacing: 2px;
}

/* The solid center piece holding the QR */
.qr-center {
  position: relative;
  width: 70px;
  height: 70px;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  z-index: 3;
  img{
    height: 100%;
  }
}

.qr-center svg {
  width: 100%;
  height: 100%;
  color: #0f172a;
}

/* Continuous Rotation Keyframe */
@keyframes spin-text {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .cyan-trust-section {
    padding-top: 240px; /* Make room for the absolutely positioned badge */
    flex-direction: column;
  }
  
  .qr-badge {
    top: 30px;
    right: 50%;
    transform: translateX(50%); /* Centers the badge on mobile */
  }

  .trust-content {
    flex-direction: column;
    text-align: center;
    max-width: 100%;
    gap: 20px;
  }

  .trust-title {
    font-size: 40px;
  }
  
  .trust-arrow {
    width: 80px;
    height: 80px;
    transform: rotate(45deg); /* Points more to the side on stacked mobile views */
  }
}

/* Outer wrapper to prevent horizontal scroll issues */
.segments-section {
  width: 100%;
  overflow: hidden;
  
}

.segments-container {
  display: flex;
  width: 100%;
}

/* Base Card Styling - Arranged at Bottom */
.segment-card {
  flex: 1; 
  padding: 60px 60px;
  display: flex;
  flex-direction: column;
  
  /* Pushes all content strictly to the bottom */
  justify-content: flex-end; 
  
  /* Left aligns the content */
  text-align: left; 
 
  /* Increased height to make the bottom-alignment obvious */
  min-height: 450px; 
  box-sizing: border-box;
 
  /* A subtle inner shadow to darken the edges slightly */
 
}

/* Big, Bold Typography */
.segment-title {
  font-size: 4em; /* Massively increased size */
  font-weight: 900; /* Extra bold */
  margin: 0 0 12px 0;
  font-family: 'Anton', sans-serif;
  line-height: 1.1;
  letter-spacing: 2px;
}

.segment-subtitle {
  font-size: 18px;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
  max-width: 90%;
  opacity: 0.9; /* Keeps contrast high while establishing hierarchy */
}

/* --- High Contrast Colors & CSS Patterns --- */
/* We use radial-gradient to create a modern dot matrix pattern */

/* Deep Indigo for Retailers */
.card-retail {
  
  color: black;
  
  background-color: #fffb00;
}

/* Deep Emerald for Supply Chain */
.card-supply {
  
  color: black;
  
  background-size: 30px 30px;
}

/* Deep Slate for Manufactures */
.card-manufacture {
background-color: rgb(241, 241, 241);
  color: black;
  
  background-size: 30px 30px;
}

/* --- Mobile Horizontal Scroll (Swipe) Logic --- */
@media (max-width: 768px) {
  .segments-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
  }
  
  .segments-container::-webkit-scrollbar {
    display: none; 
  }

  .segment-card {
    flex: 0 0 85%; 
    scroll-snap-align: start; 
    padding: 40px 24px; 
    min-height: 380px; /* Slightly shorter on mobile */
  }

  .segment-title {
    font-size: 40px; /* Scaled down slightly to fit mobile screens elegantly */
  }
}

.site-footer {
margin-top: 7em;
  color: black;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
}

/* --- Responsive Grid Layout --- */
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr; /* 3 Columns on desktop */
  gap: 60px;
  padding: 80px 5% 60px;
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.footer-col{
    img{
    height: 90px;
  }
}

/* --- Brand Column --- */
.footer-brand {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px 0;
font-family: 'Arial';
  letter-spacing: -1px;
  line-height: .8;
  color: #003ea7;
  
}

.footer-tagline {

  font-size: 16px;
  margin: 0 0 32px 0;
  line-height: .9;
}

/* Newsletter Input */
.newsletter-box p {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px 0;

}

.input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  color: black;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  max-width: 300px;
}

.input-group input {
  background: rgb(232, 232, 232);
  border: none;
  padding: 12px 16px;
color: black;
  outline: none;
  width: 100%;
}

.input-group button {
  background: #2563eb;
  border: none;

  padding: 0 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.input-group button:hover {
  background: #1d4ed8;
}

/* --- Links Column (Internal 2-Col Grid) --- */
.links-col {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Forces two columns for the links */
  gap: 40px;
}


/* --- Outer Section --- */
.onboarding-section {
  background-color: #ffffff;
  font-family: system-ui, -apple-system, sans-serif;
  width: 100%;
  margin-top: 4em;
  margin-bottom: 5em;
  overflow: hidden;
}

/* --- Container that gets pinned --- */
.onboarding-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 5%;
  box-sizing: border-box;
  min-height: 100vh; 
}

.onboarding-header {
  text-align: left;
  width: 100%;
  max-width: 1000px; /* Widened to match the new layout */
  margin-bottom: 60px;
}

.onboarding-title {
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
}

.onboarding-subtitle {
  font-size: 18px;
  color: #64748b;
  margin: 0;
}

/* --- Timeline Layout (DESKTOP: Slider on Right) --- */
.timeline-master {
  position: relative;
  max-width: 1000px;
  width: 100%;
  /* Padding on the right makes room for the vertical line */
  padding-right: 100px; 
  padding-left: 0; 
}

/* The Vertical Line */
.progress-track {
  position: absolute;
  /* Mathematically placed on the right side */
  right: 38px; 
  left: auto;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #f1f5f9;
  border-radius: 4px;
  z-index: 1;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%; 
  background-color: #2563eb;
  border-radius: 4px;
}

/* --- Individual Steps --- */
.steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 80px; /* Increased gap for the larger text */
}

/* Initial state for GSAP to animate from */
.step-box {
  position: relative;
  text-align: left;
  opacity: 0.2;
  /* Starts smaller, will scale up to 1 when active */
  transform: scale(0.85) translateY(30px);
  transform-origin: left center; 
}

.step-indicator {
  position: absolute;
  /* Mathematically aligned to cut exactly through the 4px track */
  right: -120px; 
  left: auto;
  top: 50%;
  transform: translateY(-50%); /* Centers vertically alongside the text */
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  color: #94a3b8;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  border: 4px solid #f1f5f9; /* Solid border prevents line overlap */
  z-index: 10;
}

.step-details {
  padding: 0;
  max-width: 85%; /* Keeps text from touching the slider */
}

/* Massive fonts for desktop */
.step-heading {
  font-size: 2em;
  font-weight: 400;
  color: #0f172a;
  margin: 0 0 16px 0;
  line-height: 1.1;
  letter-spacing: -1px;
}

.step-text {
  font-size: 18px;
  color: #475569;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.6;
  margin: 0;
}

/* --- Mobile Responsiveness (MOBILE: Slider flips back to Left) --- */
@media (max-width: 768px) {
  .onboarding-container {
    padding: 80px 5%;
  }
  
  .onboarding-header {
    text-align: center;
  }
  
  .onboarding-title {
    font-size: 32px;
  }
  
  .timeline-master {
    /* Flips padding to the left for mobile */
    padding-right: 0;
    padding-left: 64px; 
  }
  
  .progress-track {
    right: auto;
    left: 22px; /* Center of track is exactly at 24px */
  }
  
  .step-indicator {
    right: auto;
    /* 64px (padding) - 56px (position) = 8px. 8px + 16px (half width) = 24px center! */
    left: -80px; 
    top: 0;
    transform: none; /* Removes vertical centering on mobile */
    width: 32px;
    height: 32px;
    font-size: 15px;
    border-width: 4px;
  }
  
  .step-details {
    max-width: 100%;
  }

  .step-heading {
    font-size: 24px; /* Scaled down for mobile */
    margin-top: 4px;
  }
  
  .step-text {
    font-size: 16px;
  }
  
  .steps-wrapper {
    gap: 50px;
  }
}

.footer-heading {
  font-size: 18px;
  font-weight: 400;
font-family: 'Anton';
  margin: 0 0 24px 0;
  color: rgba(0, 0, 0, 0.801);
  letter-spacing: 2px;
  
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* The Animated Underline Link */
.footer-link {

  text-decoration: none;
  font-size: 15px;
  color: black;
  width: max-content; /* Prevents underline from stretching full width */
  position: relative;
  transition: color 0.3s ease;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #003ea7;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.footer-link:hover {

}

.footer-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* --- App Column (Centered) --- */
.app-col {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers horizontally */
  text-align: center;
}

.qr-container {

  padding: 12px;
  border-radius: 12px;
  margin-bottom: 20px;
  
}

.qr-svg {
  width: 90px;
  height: 90px;
  color: #0f172a;
}

.footer-btn {

  color: #0f172a;
  border: none;
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.footer-btn:hover {

  transform: translateY(-2px);
}

/* --- Interactive Physics Area --- */
.physics-playground {
  position: relative;
  width: 100%;
  height: 350px; 
  background-color: #090e17; 
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.huge-bg-text {
  font-size: clamp(80px, 15vw, 250px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03); 
  margin: 0;
  position: absolute;
  user-select: none;
  pointer-events: none; 
  z-index: 5;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* --- Tablet & Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr; /* Drops to 2 columns */
  }
  .app-col {
    grid-column: 1 / -1; /* Makes the app download span the full bottom row */
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr; /* Single column stack */
    gap: 40px;
  }
  .links-col {
    grid-template-columns: 1fr 1fr; /* Keeps links in 2 columns even on mobile */
  }
}

/* --- Outer Section & CSS Grid Background --- */
.credit-feature-section {
  position: relative;
  
  
  /* Creates the faded CSS grid pattern */
 
  
  padding: 120px 5%;
  font-family: system-ui, -apple-system, sans-serif;
  color: #0f172a;
  
}

/* --- Layout Container --- */
.credit-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 80px;
  align-items: center;
}

/* --- Left Column: Heading --- */
.credit-badge {
  background-color: #f1f1f1;
  
  padding: 6px 16px;
 
  font-size: 14px;
  font-weight: 700;
  width: max-content;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.credit-title {
  font-size: 5em;
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -2px;
  color: #003ea7;
}

/* --- Right Column: Content --- */
.credit-description {
  font-size: 20px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 40px 0;
}

/* Visual Math Card */
.credit-math-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  
}

.math-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  padding: 12px 0;
  color: #64748b;
  border-bottom: 1px dashed #e2e8f0;
}

.math-row:last-child {
  border-bottom: none;
}

.math-highlight {
  font-weight: 700;
  color: #0f172a;
  font-size: 20px;
}

.math-credit {
  font-weight: 800;
  color: #09bc8a; /* Brand Blue */
  background-color: #f8ffec;
  padding: 12px;
  margin-top: 8px;
  border-radius: 8px;
  border: none;
}

/* The Rule Alert Box */
.credit-rule {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: #fff7ed; /* Soft warning orange */
  border-left: 4px solid #f97316;
  padding: 20px;
  border-radius: 0 8px 8px 0;
}

.credit-rule svg {
  width: 24px;
  height: 24px;
  color: #f97316;
  flex-shrink: 0;
  margin-top: 2px;
}

.credit-rule p {
  margin: 0;
  font-size: 15px;
  color: #9a3412;
  line-height: 1.5;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  .credit-container {
    grid-template-columns: 1fr; /* Stacks to a single column */
    gap: 40px;
  }

  .credit-title {
    font-size: 48px;
  }
  
  .credit-description {
    font-size: 18px;
  }
}

/* --- Outer Section --- */
.faq-section {
  background-color: #ffffff;
  padding: 100px 5%;
  font-family: system-ui, -apple-system, sans-serif;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

/* --- Header --- */
.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-title {
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px 0;
  letter-spacing: -1px;
}

.faq-subtitle {
  font-size: 18px;
  color: #64748b;
  margin: 0;
}

/* --- Accordion List --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Space between questions */
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #ffffff;
  overflow: hidden; /* Keeps the borders clean when opening */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.active {
  border-color: #2563eb;
  box-shadow: 0 4px 15px -5px rgba(37, 99, 235, 0.1);
}

/* --- The Clickable Button --- */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #2563eb;
}

.faq-icon {
  font-size: 24px;
  font-weight: 400;
  color: #64748b;
  transition: transform 0.3s ease;
  line-height: 1;
}

/* Rotate icon when active */
.faq-item.active .faq-icon {
  transform: rotate(45deg); /* Turns the '+' into an 'x' */
  color: #2563eb;
}

/* --- The Animated Answer Wrapper --- */
/* The CSS Grid Trick for smooth max-height animation */
.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-in-out;
}

.faq-item.active .faq-answer-wrapper {
  grid-template-rows: 1fr;
}

/* The actual text container inside the grid */
.faq-answer {
  overflow: hidden; /* Crucial for the grid trick to work */
}

.faq-answer p {
  margin: 0;
  padding: 0 24px 24px 24px;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .faq-title {
    font-size: 32px;
  }
  
  .faq-question {
    padding: 20px;
    font-size: 16px;
  }
  
  .faq-answer p {
    padding: 0 20px 20px 20px;
    font-size: 15px;
  }
}