/** OUR STory  Section abourt page */
.ourstory-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 0 var(--spacing-md);
}


@media (max-width: 1024px) {
  .content-grid--reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .content-grid--reverse .content-grid__visual,
  .content-grid--reverse .content-grid__text {
    order: 0;
  }

  .approach-steps {
    margin: 0 auto;
  }

  .approach-step {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .content-grid--reverse {
    padding: 0 var(--spacing-sm);
  }

  .approach-step {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .approach-step__number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .approach-steps::before {
    left: 20px;
  }
}

/* Hero Button Override */
.hero .btn-secondary {
  background: var(--secondary-blue);
  border-color: var(--secondary-blue);
  color: var(--white);
  opacity: 1;
  /* Ensure visibility */
}

.hero .btn-secondary:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* Why Choose Us Section Customizations */
.section--alt .content-grid__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section--alt .section-badge {
  font-size: 1.3rem;
  padding: 0.8rem 2rem;
  margin-bottom: 1.5rem;
}

.section--alt .section-title {
  margin-bottom: 2.5rem;
}

.section--alt .feature-list {
  text-align: left;
  width: 100%;
}

.section--alt .feature-list__text {
  color: #000 !important;
  font-weight: 500;
}

/* Mobile Hero Section Overrides */
@media (max-width: 768px) {

  /* Hero Section */
  .hero-bg {
    display: block;
    /* Restore background */
    opacity: 0.85 !important;
  }

  .hero-text {
    /* Restore some background for readability if image is behind */
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: var(--shadow-soft) !important;
    text-align: center;
    padding: 2rem 1rem;
    margin: 0 1rem;
  }

  .hero-title {
    justify-content: center;
    font-size: 1.8rem;
    flex-wrap: wrap;
  }

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

  /* Why Choose Us Section Fixes */
  .section--alt {
    background-attachment: scroll !important;
    /* specific fix for mobile bg fixed issues */
    background-size: cover !important;
    background-position: center !important;
    padding: 3rem 0;
  }

  .section--alt .content-grid {
    gap: 2rem;
    display: flex;
    flex-direction: column;
  }

  /* Ensure text container doesn't overflow */
  .section--alt .content-grid__text {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    /* More opacity for better contrast */
    border-radius: 16px;
    width: 100%;
    /* Ensure it fits */
    box-sizing: border-box;
    /* Include padding in width */
  }

  /* Stats placement fix - prevent overlap */
  .section--alt .content-grid__visual {
    width: 100%;
    margin-bottom: 1rem;
  }

  .stats-highlight {
    width: 100%;
    box-sizing: border-box;
  }

  .section--alt .section-title {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    /* Smaller title on mobile */
  }

  .section--alt .feature-list__text {
    color: #1e293b !important;
    /* Darker text for contrast */
  }
}

/* Fix Our Story Grid on generic mobile media query */
@media (max-width: 768px) {
  .ourstory-container {
    grid-template-columns: 1fr;
    /* Force single column container */
    padding: 0 1rem;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* Force the inner content grid to stack vertically */
  .ourstory-container .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .visual-card {
    min-width: auto;
    /* Remove min-width constraint */
    width: 100%;
  }
}