.history-section {
  background-image: url('/assets/images/farmland.jpg'); /* 🔁 replace with your image */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 6rem 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.history-card {
  background-color: #38250f;
  color: white;
  padding: 80px;
  border-radius: 40px;
  width: 690px;
  max-width: 100%;
  margin-left: 5%;
  z-index: 2;
}

.history-card .title {
  color: #a26b42;
  font-weight: bold;
  margin-bottom: 0.8rem;
}

.history-card h2 {
    font-size: clamp( 2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin: 0 0 1rem;
    text-transform: uppercase;
    line-height: 1.2em;
    letter-spacing: -0.01em;
}

.history-card .description {
  font-size: clamp( 0.85rem, 2vw, 1.15rem);
  line-height: 1.7;
  width: 500px;
  max-width: 100%;
}


/* Values Section */
.values-hero {
  background-image: url('/assets/images/farm.jpg'); /* 🔁 replace with actual bg */
  background-size: cover;
  background-position: center;
  padding: 6rem 1rem;
  color: white;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.values-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45); /* Dark overlay */
  z-index: 0;
}

.values-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 2;
}

.values-badge {
  width: 100px;
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}

.values-left {
  flex: 1 1 50%;
  min-width: 50%
}

.values-left h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  margin: 1rem 0;
  text-transform: uppercase;
  line-height: 1.2;
}

.values-left p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
}

.values-btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: #a4633c;
  color: white;
  padding: 0.8rem 1.5rem;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
}

.values-slider,
.swiper,
.swiper-wrapper {
  height: 100%;
}

.swiper {
  width: 100%;
  padding: 1rem 0;
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
  padding: 20px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}

.value-card {
  background: white;
  color: #222;
  padding: 4rem 2rem;
  max-width: 500px;
  height: 500px;
  clip-path: path("M 40,50 L 460,0 A 40,40 0,0,1 500,30 L 500,470 A 50,50 0,0,1 460,500 L 35,500 A 50,50 0,0,1 0,470 L 0,85 A 40,40 0,0,1 40,50 Z");
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 40px 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.value-icon {
  font-size: 3.5rem;
  background-color: #7db537;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  color: white;
  text-align: center;
  margin-bottom: 1rem;
}

.swiper-slide h3 {
  font-size: clamp(30px, 3.12vmax, 42px);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.swiper-slide p {
  font-family: 'Inconsolata', sans-serif;
  font-size: 1.3rem;
  color: #444;
}

/* Partners Section */
.partners-section {
  background: transparent;
  padding: 60px 20px;
  text-align: center;
}

.partners-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.partners-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #d68a1a; /* Accent color */
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Logos Grid */
.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.partner img {
  max-width: 200px;
  max-height: 100px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease-in-out;
}

.partner img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Stats Section */
.stats-section {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1320px;
  padding: 110px 0px 80px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.stats-image {
  flex: 0 0 400px;
  max-width: 100%;
}

.stats-image img {
  width: 100%;
  border-radius: 8px;
}

.stats-content {
  flex: 1;
   min-width: 280px;
}

.subtitle {
  display: inline-block;
  color: var(--primary);
  font-style: italic;
  margin-bottom: .5rem;
}

.stats-content h2 {
  font-size: clamp(2rem, 4vw, 3.725rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 1rem;
  margin-left: -130px;
}

.stat-card {
  background: #f0f0f0;
  border-radius: 12px;
  position: relative;
  padding: 2.5rem 1.5rem;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s ease;
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  perspective: 600px;

}

.icon-front {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1);
  backface-visibility: hidden;
}

.stat-number{
    font-size: 2rem;
    font-weight: 700;
}

.stat-card.has-bg-icon::before {
  background-image: var(--bg-icon);
  background-size: contain;
  position: absolute;
  width: 40%;
  top: 40%;

}

/* Background icon via ::before pseudo (low opacity) */
.stat-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  pointer-events: none;
  transition: filter 0.3s ease;
}

/* Hover effects */
.stat-card:hover {
  background: #222;
  color: #fff;
}

.stat-card:hover::before {
  filter: brightness(0) invert(1); /* Turns watermark white */
}

.stat-card:hover .icon-container {
  background-color: var(--primary-light);
}


/* Services Section */
.services-about{
    padding: 100px 20px;
    
}

.services-about .container{
    max-width: 100%
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card-about {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  /* margin-bottom: 2rem; */
  height: 600px;
  transition: transform 0.5s ease;
}

.service-card-about img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-overlay {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  color: white;
  transition: all transform 0.8s ease;
}

.service-icon {
  font-size: 1.5rem;
  margin-bottom: auto;
  color: #fff;
}

.service-overlay h3 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.services-grid .service-card-about:nth-child(3) {
  grid-column: span 2;
  justify-self: center;
  width: 60%; /* Adjust as needed */
}

.read-more {
  font-size: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.read-more i {
  background-color: #00c853;
  padding: 0.5rem;
  border-radius: 5px;
  font-size: 0.8rem;
  margin-left: 5px;
}

.service-card-about:hover img {
  transform: scale(1.05);
}

.service-card-about:hover .service-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  color: #00c853;
}

/* View All Button */
.view-all {
  text-align: center;
  margin-top: 2rem;
}

.btn-view-all {
  background: #7db537;
  color: white;
  padding: 1.5rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-view-all:hover {
  background: #6ba02f;
}


/* Certifications Layout */
.certifications-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
  padding: 80px 20px;
}

/* Card Wrapper */
.cert-card {
  position: relative;
  width: 400px;
  max-width: 100%;
  aspect-ratio: 3 / 4;
}

/* Green Background Card */
.cert-card .card-bg {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-light), var(--primary-dark));
  border-radius: 12px;
  z-index: 0;
}

/* White Front Card */
.cert-card .card-front {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Certification Image */
.cert-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}


/* Responsive Styles */
@media (max-width: 992px) {
    
    /*Core Values*/
    .values-container {
        flex-direction: column;
        text-align: center;
    }
    
    .values-left {
        min-width: 100%;
    }

    .values-left p {
        margin: 0 auto;
    }

    .swiper-wrapper {
        padding: 10px;
    }

    /*Statistics Section*/
    .stats-section {
        flex-direction: column;
        align-items: center;
    }

    .stats-image {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .stats-grid {
        margin-left: 0;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .services-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .services-grid .service-card-about:nth-child(3) {
        grid-column: auto;
        width: 100%;
    }

    .service-card-about {
        height: auto;
        width: 100%;
    }

    .service-card-about img {
        height: auto;
        width: 100%;
        object-fit: cover;
    }

    .single-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /*History*/
    .history-section {
        justify-content: center;
        text-align: center;
        padding: 4rem 1.5rem;
    }

    .history-card {
        margin: 0;
        border-radius: 20px;
        padding: 2rem;
    }

    .history-card h2 {
        font-size: 2rem;
    }

    /*Core Values*/
    .values-container {
        flex-direction: column;
        text-align: center;
        max-width: 100%;
    }

    .values-left {
        flex: 1 1 100%;
    }

    .values-slider {
        flex: 1 1 100%;
    }

    .values-left h2 {
        font-size: 2rem;
    }

    .swiper-slide{
        width: 100% !important;
        margin-right: 20px !important;
        height: 100% !important;
    }

    .value-card{
        width: 100% !important;
        height: 100%;
        clip-path: none;
    }

    /*Statistics Section*/
    .stats-content{
        padding: 0 20px;
    }

    /*Certification*/
    .certifications-content {
        flex-direction: column;
        gap: 3.5rem;
    }

    .cert-card {
        width: 90%;
    }
}

@media (max-width: 576px) {

    /*Core Values*/
    .values-left h2 {
        font-size: 2rem;
    }

    .values-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .value-card {
        padding: 2rem 1rem;
        width: 100%;
    }

    .value-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }

    .swiper-slide p {
        font-size: 1rem;
    }

    /*Statistics Section*/
    .stat-card {
        padding: 1.5rem;
    }

    .icon-container {
        width: 70px;
        height: 70px;
    }

    .icon-front {
        width: 50px;
        height: 50px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stats-grid{
        margin-left: 0;
    }
}