body {
  margin: 0;
  padding: 0;
  padding-top: 76px; /* Account for fixed navbar */
  background-color: #f8f9fa;
  min-height: 100vh;
  font-family: 'Arial', sans-serif;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.container {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin-top: 20px;
  margin-bottom: 40px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

h1 {
  color: #212529;
  text-align: center;
  margin-bottom: 30px;
  font-size: 3rem;
  font-weight: bold;
}

.intro-text {
  text-align: center;
  font-size: 1.2rem;
  color: #495057;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 🔹 Push content below the fixed navbar */
.content {
  padding-top: 70px; /* Adjusted to navbar height */
}

/* 🔹 Make carousel full-width */
.story-frame {
  width: 100%;
  height: 80vh; /* Adjusts to viewport height */
  border: none;
}

.landing-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 30px; /* Space between columns */
  align-items: center; /* Center content vertically */
  margin-top: 40px;
}

/* Remove white box around header */
.landing-container.bg-light {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  grid-template-rows: repeat(2, auto); /* 2 rows */
  gap: 15px; /* Space between images */
}

.image-grid img {
  width: 100%; /* Make images responsive */
  height: auto;
  border-radius: 15px; /* Modern rounded corners */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Modern shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.text-content {
  padding: 30px;
  background: rgba(248, 249, 250, 0.9);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.text-content p {
  color: #495057;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-primary {
  background: #dc3545;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-right: 15px;
  margin-bottom: 10px;
  color: white;
}

.btn-primary:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
  color: white;
}

.btn-outline-primary {
  border: 2px solid #343a40;
  color: #343a40;
  background: transparent;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-right: 15px;
  margin-bottom: 10px;
}

.btn-outline-primary:hover {
  background: #343a40;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 58, 64, 0.2);
}

/* Make red banner full width and remove padding */
.red-banner {
  width: 100vw;
  margin-left: calc(-1 * var(--bs-gutter-x, 0.75rem));
  margin-right: calc(-1 * var(--bs-gutter-x, 0.75rem));
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-radius: 0 !important;
}

@media (max-width: 600px) {
  .red-banner {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .stats-section .col-md-3 {
    margin-bottom: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stories-row {
    width: 400%; /* Show 1 out of 4 stories on mobile */
  }

  .story-carousel-card {
    flex: 0 0 calc(25% - 15px); /* One fourth of total width minus gap */
    height: auto;
    min-height: 300px;
  }

  .story-carousel-img {
    height: 150px;
  }

  .story-carousel-content {
    padding: 15px;
  }

  .story-carousel-content h3 {
    font-size: 1.1rem;
  }

  .story-carousel-content p {
    font-size: 0.85rem;
  }

  .stories-viewport {
      overflow-x: auto;
      scroll-behavior: smooth;
      width: 100%;
      padding: 0 20px;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .stories-row {
    width: 200%; /* Show 2 out of 4 stories on tablet */
  }

  .story-carousel-card {
    flex: 0 0 calc(50% - 10px); /* Half width minus gap */
  }

  .stories-viewport {
    padding: 0 15px;
  }
}

/* Stories Carousel Styles */
.stories-section {
  margin-top: 60px;
  padding: 40px 0;
  background: rgba(248, 249, 250, 0.5);
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stories-section h2 {
  color: #212529;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 40px;
}

.stories-viewport {
  width: 100%;
  overflow: hidden;
}

.stories-row {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s ease;
}

.story-carousel-card {
  flex: 0 0 calc(33.333% - 1rem); /* 3 cards per row */
  margin-right: 1rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.story-carousel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.story-carousel-img {
  width: 100%;
  height: 180px;
  /* object-fit: cover; */
  /* flex-shrink: 0; */
}

.story-carousel-content {
  padding: 1rem;
  /* display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1; */
}

.story-carousel-content h3 {
  color: #212529;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.story-carousel-content p {
  color: #495057;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
  font-size: 0.9rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #dc3545;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.carousel-indicators {
  margin-bottom: -50px;
}

.carousel-indicators [data-bs-target] {
  background-color: #dc3545;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}
