/* ===== GLOBAL RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* ===== COLOR VARIABLES ===== */
:root {
  --nav-bg:         #002e5b;
  --text-light:     #ffffff;
  --accent:         #00bfff;
  --dropdown-bg:    #ffffff;
  --dropdown-hover: #e6f2ff;
  --font-nav:       0.9rem;
}

/* ===== HERO SLIDER ===== */
.image-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #000;
  user-select: none;
}
.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(100%);
  transition: all 1s ease-in-out;
  z-index: 0;
}
.slide.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
}
.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  /* background: rgba(0, 0, 0, 0.55); */
  width: 100%;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-in-out;
}

.slide-content.animate {
  opacity: 1;
  transform: translateY(0);
}
.slide-content h3 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  font-weight: 700;
  opacity: 0;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  line-height: 1.6;
  max-width: 680px;
  opacity: 0;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTON STYLE ===== */
.slider-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: white;
  border: 2px solid #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0;
}
.slider-button:hover {
  background-color: #ffffff;
  color: #003366;
  transform: scale(1.05);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.slide-content.animate h3 {
  animation: fadeInUp 1s ease forwards 0.3s;
}
.slide-content.animate p {
  animation: fadeInUp 1s ease forwards 0.6s;
}
.slide-content.animate .slider-button {
  animation: fadeInUp 1s ease forwards 0.9s;
}

/* ===== NAVIGATION ARROWS ===== */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.slider-nav:hover {
  background: #333;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
.slider-nav span {
  font-size: 28px;
}
.slider-nav .nav-preview {
  opacity: 0;
  width: 0;
  transition: all 0.3s ease;
}
.slider-nav:hover .nav-preview {
  opacity: 1;
  width: 40px;
}
.nav-preview {
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid #fff;
}
.slider-nav.prev { left: 25px; }
.slider-nav.next { right: 25px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .image-slider { height: 480px; }
  .slide-content h3 { font-size: 2rem; }
  .slide-content p { font-size: 1.05rem; max-width: 90%; }
  .slider-button { font-size: 0.95rem; padding: 12px 22px; }
}
@media (max-width: 768px) {
  .image-slider { height: 370px; }
  .slide-content h3 { font-size: 1.6rem; }
  .slide-content p { font-size: 0.95rem; max-width: 90%; }
  .slider-button { font-size: 0.9rem; padding: 10px 20px; }
  .slider-nav { padding: 8px; }
  .nav-preview { width: 30px; height: 30px; }
}
@media (max-width: 576px) {
  .image-slider { height: 250px; }
  .slide-content { padding: 20px; }
  .slide-content h3 { font-size: 1.4rem; }
  .slide-content p { font-size: 0.85rem; }
  .slider-button { font-size: 0.8rem; padding: 8px 16px; }
}

@media (max-width: 768px) {
  .slide-content h3 {
    font-size: 1.6rem; /* Adjust as needed */
  }
}

@media (max-width: 576px) {
  .slide-content h3 {
    font-size: 1.3rem; /* Even smaller for mobile */
  }
}


/* ================================
   About Section Styling
================================ */
.about-section {
  background-color: #f8f9fa;
  padding: 80px 20px;
}

.about-container {
  max-width: 1140px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 500px;
}

.about-text h2 {
  font-size: 2.0rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #666; /* Lighter text color for better readability */
  margin-bottom: 30px;
  text-align: justify;
  max-width: 700px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border: 2px solid #198754; /* GDFA green */
  background-color: transparent;
  color: #198754;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background-color: #198754;
  color: #fff;
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ================================
   Responsive Media Queries
================================ */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .read-more-btn {
    font-size: 0.95rem;
    padding: 10px 24px;
  }
}

@media (max-width: 576px) {
  .about-text h2 {
    font-size: 1.75rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .read-more-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
    .about-image {
    margin-top: -120px; /* Pull image up */
  }

}


/* News Section */
.news-slider-section {
  background-color: #f8f9fa;
  padding: 0 0 50px;
  overflow-x: hidden; /* prevent horizontal shake */
}

.news-slider-section .container {
  padding-left: 30px;
  padding-right: 30px;
  max-width: 100%;
  overflow-x: hidden;
}

.news-slider-section h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #0d6efd;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.news-slider-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #0d6efd;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Card Styling */
.news-card {
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  max-height: 420px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Image */
.image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body */
.card-body {
  padding: 16px;
  flex-grow: 1;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #212529;
}

.card-text {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

.card-footer {
  font-size: 0.8rem;
  color: #888;
  background: none;
  border-top: none;
  padding: 10px 16px;
}

/* Swiper Core */
.swiper {
  padding-bottom: 60px;
  cursor: grab;
  overflow: hidden !important;
  max-width: 100%;
}

.swiper-wrapper {
  display: flex;
  box-sizing: border-box;
}

.swiper-slide {
  box-sizing: border-box;
}

.swiper-button-next,
.swiper-button-prev {
  color: #0d6efd;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 40%;
  transition: 0.3s ease;
}

/* Pagination Dots */
.swiper-pagination {
  position: relative;
  text-align: center;
  margin-top: 20px;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ced4da;
  opacity: 1;
  margin: 0 6px;
  transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #0d6efd;
}

/* Responsive Fixes */
@media (max-width: 991px) {
  .news-slider-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .news-card {
    min-height: 380px;
    max-height: 380px;
  }

  .image-wrapper {
    height: 180px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
    top: 45%;
  }

  .news-slider-section h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .news-slider-section {
    padding-top: 10px;
  }

  .image-wrapper {
    height: 160px;
  }

  .news-slider-section .container {
    margin-top: -30px;
  }

  .news-slider-section h2 {
    font-size: 1.5rem;
  }
}


@media (max-width: 576px) {
  .news-slider-section {
    padding-top: 10px;
    margin-top: -180px; /* 👈 This closes the gap from About */
  }

  .image-wrapper {
    height: 160px;
  }

  .news-slider-section .container {
    padding-top: 0;
    margin-top: 0; /* remove previous attempt */
  }

  .news-slider-section h2 {
    font-size: 1.5rem;
  }
}


/* === Hero Image Section Styling === */
.hero-image-section {
  position: relative;
  background-image: url('../assets/images/gdfa1.png'); /* Update this */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  text-align: center;
  padding: 100px 20px 60px; /* Top padding for H2 space */
  overflow: hidden; /* Prevent scroll */
}

.hero-image-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* === H2 Styling (above steps) === */
.hero-image-section > h2 {
  position: relative;
  z-index: 2;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 40px;
  color: #fff;
}

/* === Overlay Content === */
.overlay-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

/* === Process Steps Styling === */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-top: 20px;
  overflow: hidden; /* No scroll */
}

.step {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 1.15rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
  text-align: center;
  min-width: 150px;
}

.step i {
  font-size: 2.6rem;
  color: #ffc107;
  margin-bottom: 12px;
}

.step span {
  display: block;
  line-height: 1.5;
}

.step.reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .hero-image-section > h2 {
    font-size: 2.2rem;
  }

  .step {
    font-size: 1.05rem;
  }

  .step i {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  .hero-image-section {
    background-attachment: scroll;
    min-height: 60vh;
    padding: 80px 15px 40px;
  }

  .hero-image-section > h2 {
    font-size: 1.8rem;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 0; /* remove spacing between items */
  }

  .step {
    max-width: 90%;
    font-size: 1rem;
    margin-top: -8px; /* bring items closer */
  }

  .step i {
    font-size: 2rem;
    margin-bottom: 6px;
  }
}

@media (max-width: 480px) {
  .hero-image-section > h2 {
    font-size: 1.6rem;
  }

  .step {
    font-size: 0.95rem;
    margin-top: -10px; /* even tighter spacing on smaller screens */
  }

  .step i {
    font-size: 1.8rem;
    margin-bottom: 5px;
  }
}


.testimonial-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 128, 0, 0.08);
  transition: transform 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 128, 0, 0.15);
}

.testimonial-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border: 3px solid #28a745;
  padding: 3px;
  transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-img {
  transform: scale(1.05);
}
