/* Footer nav active color */
.footer-explore .home a {
  color: var(--accent-color);
}

/* header nave active color */
.navItems .home {
  position: relative;
}
.navItems .home a::after {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  bottom: 1.7rem;
  left: 8.4rem;
}

/* lg */
@media (min-width: 1024px) {
  .navItems .home a::after {
    bottom: 7px;
    left: 3.4rem;
  }
}

/*----------------- CSS for hero section START -----------------*/

.hero-header {
  position: relative;
  background: url("/public/img/primecrops-maize-farm-hero-image-mobile.webp") center/cover no-repeat;

  height: 60vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white-color);
}

.hero-header::before {
  background: linear-gradient(to right, rgba(1, 63, 1, 0.963), rgba(0, 6, 0, 0.487), rgba(0, 255, 0, 0));

  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Adjust the opacity as needed */
  z-index: 1;
}

/* Container styling */
.hero-header .container {
  position: relative;
  z-index: 2; /* Make sure content is above the overlay */
}

.hero-subtitle {
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  letter-spacing: 1.1px;
  line-height: 1.8rem;
}

section h1 {
  font-family: Handlee, sans-serif;
  letter-spacing: 1.8px;
  font-size: 2.5rem;
}

/* Button styling */
.btn__secondary {
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .hero-header {
    background: url("/public/img/primecrops-maize-farm-hero-image-tab.jpg") center/cover no-repeat;

    height: 50vh;
  }

  .hero-header::before {
    background: linear-gradient(to right, rgba(1, 63, 1, 0.963), rgba(0, 6, 0, 0.487), rgba(0, 255, 0, 0));
  }
}

/* lg */
@media (min-width: 1024px) {
  .hero-header {
    background: url("/public/img/primecrops-maize-farm-hero-image-desk.jpg") center/cover no-repeat;

    min-height: 90vh;
  }

  section h1 {
    font-size: 3.8rem;
    width: 50%;
  }
}

@media (min-width: 1536px) {
  section h1 {
    font-size: 4.5rem;
    width: 50%;
  }
}

/*----------------- CSS for hero section END -----------------*/

/*----------------- CSS for features section Start -----------------*/

.features-img-box img {
  height: 100%;
  width: 100%;
}

.feature-main-content {
  margin-bottom: 2rem;
}

.feature-main-content h2 {
  margin-top: 3rem;
}

.feature-main-content p {
  margin: 1rem 0;
}

@media (min-width: 768px) {
  .feature-main-content h2 {
    padding-right: 40%;
  }

  .features-img-box img {
    height: 70%;
    width: 70%;
  }
}
@media (min-width: 1024px) {
  .feature-main-content {
    margin-bottom: 0;
  }

  .feature-main-content h2 {
    padding-right: 5%;
  }

  .features-img-box img {
    height: 100%;
    width: 100%;
  }
}

.feature-main-content li {
  line-height: 3rem;
  /* margin-bottom: 2rem; */
}

.card-wrap h3 {
  font-size: var(--size-xl);
}

.card-gold,
.card-green {
  text-align: center;
  padding: 2.5rem;
  border-radius: 10px;
}

.card-green {
  background: var(--secondary-color);
  color: var(--text-white-color);
}

.card-gold {
  background: var(--accent-color);
  color: var(--text-black-color);
  margin-top: 2rem;
}

.vector-img {
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-green img {
  height: 55px;
  width: 55px;
}
.card-gold img {
  height: 55px;
  width: 55px;
}

@media (min-width: 1024px) {
  .vector-img {
    align-items: start;
  }

  .card-gold img {
    margin-left: -10px;
  }
}

/* MD */

@media (min-width: 768px) {
  .card-wrap {
    display: flex;
    /* gap: 2rem; */
  }
}

/* lg */
@media (min-width: 1024px) {
  .articles-wrap {
    display: grid;
    grid-template-columns: 2fr 2fr 20%;
    gap: 2rem;
    align-items: center;
  }

  .card-wrap {
    flex-direction: column;
  }

  .card-gold,
  .card-green {
    padding: 1.5rem 0.7rem;
    font-size: var(--size-lg);
    text-align: left;
  }

  .card-green h3 {
    line-height: 1.6rem;
    font-size: 18px;
  }
}

@media (min-width: 1280px) {
  .articles-wrap {
    gap: 4rem;
  }
}

@media (min-width: 1536px) {
  .articles-wrap {
    gap: 5rem;
  }
}
/*----------------- CSS for features section END -----------------*/

.services-section {
  text-align: center;
  padding: 3rem 0;
  background-color: #f0f2f5;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .services-section {
    padding: 7rem 0;
  }
}

.brief-about-section {
  text-align: center;
}

@media (min-width: 1536px) {
  .brief-about-section p {
    padding: 0 8rem;
  }
}

.services-img {
  margin-bottom: 2rem;
}

.icon-img {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-img-wrapper {
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.icon-img img {
  width: 75px;
  height: 75px;
  margin-bottom: 1rem;
}

.show-desktop {
  display: none;
}

@media (min-width: 768px) {
  .card-wrap {
    display: flex;
    /* gap: 2rem; */
  }

  .services-img-wrapper {
    width: 80%;
    margin: auto;
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .icon-img {
    align-items: start;
  }
}
@media (min-width: 1024px) {
  .show-mobile-and-tab {
    display: none;
  }

  .service-title p {
    margin: auto 5rem;
  }

  .show-desktop {
    display: block;
  }
  .desktop-services {
    padding-top: 4rem;
    /* padding-bottom: 6rem; */
  }

  .grid-2-col {
    display: grid;
    grid-template-columns: 1fr 55%;
    gap: 3rem;
    align-items: center;
  }

  .service-card-wrapper {
    display: flex;
    gap: 3rem;
  }

  .service-card-desk h2 {
    text-align: left;
  }

  .service-card-4 {
    margin-top: 3.2rem;
  }

  .service-card-desk p {
    text-align: left;
  }
  .service-card-desk h2 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }
  .service-card-desk p {
    font-size: 1rem;
  }

  .card-1,
  .card-3 {
    margin-bottom: 2rem;
  }
  .desk-services-img {
    border-radius: 15px;
    overflow: hidden;
  }
}

.service-heading {
  margin: 0 auto;

  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .service-heading {
    width: 30rem;
    /* margin-top: 6rem; */
    margin-bottom: 0;
  }
}

@media (min-width: 1280px) {
  .grid-2-col {
    gap: 4rem;
  }
}

@media (min-width: 1536px) {
  .grid-2-col {
    gap: 6rem;
  }
  .service-card-4 {
    margin-top: 2rem;
  }
}

.slider-bullet {
  position: relative;
}

.section-subtitle {
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--text-black-color);

  letter-spacing: 0.2px;
}

/* Swiper and card styling */
.swiper-container {
  padding-bottom: 2rem;
  width: 100%;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.service-card {
  background: var(--text-white-color);
  padding: 2rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  text-align: center;
  margin-bottom: 2rem;
}

.service-card h2 {
  font-size: var(--size-xl);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.swiper-pagination-bullet-active {
  background-color: var(--accent-color);
  margin-right: 2rem;
}

.swiper-pagination-bullet-active {
  background-color: var(--accent-color);
  margin-right: 2rem;
}

.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
  margin: auto 0.8rem;
  /* width: 0.8rem;
  height: 0.8rem; */

  padding: 0.5rem;
}

/* Responsive styling */
@media (min-width: 768px) {
  /* .section-title,
  .section-subtitle,
  .service-card h2,
  .service-card p {
    text-align: left;
  } */

  .section-title {
    font-size: 1.4rem;
  }
  .section-subtitle {
    font-size: 2rem;
  }

  .service-card p {
    font-size: 1rem;
  }
  .service-card h4 {
    font-size: 1.3rem;
  }

  .section-subtitle {
    padding: 0 18%;
  }
}

@media (min-width: 1024px) {
  .section-subtitle {
    padding: 0 25%;
  }
}

/* Brands section*/

.brands-section {
  position: relative;
  background: url("/public/img/call-out-background.jpg") center/cover no-repeat;
  color: var(--text-white-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;

  padding-top: 5rem;
  padding-bottom: 3rem;
}

.brands-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;

  /* Gradient overlay */
  /* background: linear-gradient(to top, #036d1d 43%, #000000 69%, rgba(1, 24, 1, 0.543) 100%);
  opacity: 0.7; */

  background: linear-gradient(to bottom, #000000 43%, #019b28 69%, rgba(1, 24, 1, 0.543) 100%);
  opacity: 0.7;
}

.brands-section h2 {
  font-size: 2rem;
  /* font-family: "Handlee", cursive; */
}

.brand-wrapper {
  text-align: center;
}

.relative {
  position: relative;
  z-index: 2;
}

.cards img {
  min-height: 100%;
  display: flex;
  border-radius: 100%;
}
@media (min-width: 1024px) {
  .brands-section h2 {
    font-size: var(--size-5xl);
    font-weight: 500;
    padding: 0 4rem;
  }
  .brands-section h2::after {
    content: " and create a sustainable future for all.";
  }
}

/* Brand Logos Section */

.brand-logos-section {
  padding-top: 8rem;
  min-height: 47rem;
  position: relative;
  z-index: 2;
}

.brand-logos-section h3 {
  margin-bottom: 4rem;
  font-size: 1.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.brand-logos-section span {
  display: inline-block;
  width: 3rem;
  padding: 1px;
  background-color: white;
}

@media (min-width: 1024px) {
  .brand-logos-section h3 {
    font-size: 2.5rem;
    gap: 1rem;
  }

  .brand-logos-section span {
    width: 10rem;
  }
}

.brand-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.5rem;
  row-gap: 4rem;
}

.cards {
  padding: 1.5rem;
  height: 100%;
  border-radius: 1rem;
  background: rgba(0, 16, 3, 0.3);
  overflow: hidden;
  transition: background-color 1s ease;
  border: 2px solid var(--text-white-color);
}

.cards:hover {
  background: var(--accent-color);
}

@media (min-width: 768px) {
  .brand-logos {
    padding-bottom: 6rem;
  }
}

@media (min-width: 1024px) {
  .brand-logos-section {
    margin-top: 0;
    min-height: 18rem;
  }
  .brand-logos {
    grid-template-columns: repeat(5, 1fr);
  }

  .cards {
    padding: 2rem 2rem;
  }

  .cards:last-child {
    padding: 0.2rem 0.2rem;
  }
}

/* Frequently Ask question section FAQ  */

.about-section {
  padding: 4rem 0;
  background: rgba(238, 243, 246, 0.695);
}

@media (min-width: 1024px) {
  .about-section {
    padding: 7rem 0;
  }
}

.faq-container {
  display: grid;
}

.image-wrapper {
  position: relative;
  width: 100%;
}

.image-wrapper img {
  width: 100%;
  height: auto;
}

.content h3 {
  color: var(--secondary-color);
  font-size: var(--size-2xl);
  font-family: "Handlee", cursive;
  margin-top: 2rem;
}

.content h2 {
  margin-top: 0.7rem;
  margin-bottom: 3rem;
}

.faq {
  margin-top: 1rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  background-color: #ffc75f;
  padding: 0.8rem 0.5rem;
  font-size: 1rem;
  border-radius: 10px;
  font-weight: 500;
  position: relative;
  overflow: hidden; /* Ensures the animation stays within bounds */
  z-index: 1;
}

.faq-question::before {
  content: "";
  position: absolute;
  top: -100%; /* Start from off-screen top */
  left: 0; /* Align to the left side */
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color); /* The hover color */
  z-index: -1; /* Place behind the text */
  transition: top 0.3s ease-in-out; /* Smooth animation */
}

.faq-question:hover::before {
  top: 0; /* Slide into view from top */
}

.faq-question:hover {
  color: #fff; /* Change text color */
  position: relative; /* Ensure stacking context */
}

.faq-question {
  width: 100%;
  margin-top: 1.5rem;
}

.faq-answer {
  display: none;
  padding: 0.5rem;
  background-color: #fff;
}

/* Tablet Styles */
@media (min-width: 768px) {
  .faq-container {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }

  .content h3 {
    margin-top: 0;
  }

  .image-wrapper {
    margin-right: 2rem;
  }
}

.faq-answer {
  border-radius: 0 0 10px 10px;
  box-shadow: 0px 1px 8.1px -2px rgba(0, 0, 0, 0.235);
  padding: 1rem;
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .content h2 {
    font-size: 2rem;
  }
}

@media (min-width: 1280px) {
  .faq-container {
    gap: 6.5rem;
  }
}

@media (min-width: 1536px) {
  .faq-container {
    gap: 8rem;
  }
}

.chevron-icon {
  font-size: 1rem;
  transition: transform 0.3s;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
