/**
 * AgriCulture-style homepage
 * Based on https://themewagon.github.io/AgriCulture/
 */
:root {
  --default-font: "Open Sans", system-ui, sans-serif;
  --heading-font: "Marcellus", serif;
  --background-color: #ffffff;
  --default-color: #212529;
  --heading-color: #2d465e;
  --accent-color: #116530;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: #212529;
  --nav-hover-color: #116530;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #212529;
  --nav-dropdown-hover-color: #116530;
}

body { font-family: var(--default-font); color: var(--default-color); background: var(--background-color); }
h1,h2,h3,h4,h5,h6 { font-family: var(--heading-font); color: var(--heading-color); }
a { color: var(--accent-color); text-decoration: none; }
a:hover { color: var(--nav-hover-color); }

.section { padding: 15px 0; scroll-margin-top: 100px; }
.dark-background { --background-color: #060606; --default-color: #fff; --heading-color: #fff; --accent-color: #2ea359; --surface-color: #252525; --contrast-color: #fff; background-color: #060606; color: #fff; }
.light-background { background-color: #f9f9f9; }

/* Header */
.header { padding: 6px 0 0; background: var(--background-color); z-index: 997; transition: all 0.5s; box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06); }
.header .container-fluid { display: flex; flex-direction: column; gap: 0; }

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 85px;
  column-gap: 16px;
}

.header-logo-left {
  justify-self: start;
  display: flex;
  align-items: center;
  margin-left: 88px;
}

.header-logo-center {
  justify-self: center;
  align-items: center;
  transform: translateX(-20px);
}

.header-logo-right {
  justify-self: end;
  align-items: center;
  margin-right: 72px;
}

.header .logo { line-height: 1; position: static; }
.header .logo a { display: flex; align-items: center; }
.header .logo img.default-logo {
  position: static;
  transform: none;
  width: 260px;
  height: 85px;
  object-fit: contain;
  display: block;
}
.header-logo-center img.govt-logo,
.header .header-govt-logo img.govt-logo {
  position: static;
  transform: none;
  width: 260px;
  height: 70px;
  object-fit: contain;
  display: block;
}
.header-logo-right img.logo-secondary,
.header .header-partner-logo img.logo-secondary {
  width: 260px;
  height: 85px;
  object-fit: contain;
  display: block;
}

.header-nav {
  width: calc(100% + 2rem);
  margin-left: -1rem;
  margin-right: -1rem;
  padding: 3px 1rem 2px;
  background: #f3f4f6;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header .nav-wrapper {
  position: relative;
  min-height: auto;
}

.header .nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header .nav-list > li > a {
  display: inline-flex;
  align-items: center;
  padding: 2px 0 1px;
  font-family: var(--heading-font);
  font-size: 0.95rem;
  color: var(--nav-color);
}

.header .nav-list > li > a:hover,
.header .nav-list > li > a.active {
  color: var(--nav-hover-color);
}

.header .header-right { justify-content: flex-end; }

@media (max-width: 1199px) {
  .header-top {
    grid-template-columns: 1fr;
    min-height: 64px;
  }

  .header-logo-left {
    justify-self: start;
    margin-left: 48px;
  }

  .header .logo img.default-logo {
    width: 170px;
    height: 56px;
  }

  .header-nav {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 2px 0 1px;
    background: #f3f4f6;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: none;
  }

  .header .nav-list {
    justify-content: flex-start;
  }
}

/* Nav - desktop dropdown */
@media (min-width: 1200px) {
  .navmenu ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; }
  .navmenu a { color: var(--nav-color); padding: 18px 15px; font-family: var(--heading-font); display: flex; align-items: center; }
  .navmenu a:hover, .navmenu .active { color: var(--nav-hover-color); }
  .navmenu .dropdown { position: relative; }
  .navmenu .dropdown > ul { display: none; position: absolute; left: 14px; top: 100%; margin: 0; padding: 10px 0; background: var(--nav-dropdown-background-color); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 4px; min-width: 200px; z-index: 99; list-style: none; }
  .navmenu .dropdown .dropdown > ul { left: -90%; top: 0; }
  .navmenu .dropdown:hover > ul { display: block; }
  .navmenu .dropdown .dropdown:hover > ul { display: block; }
  .navmenu .dropdown ul a { padding: 10px 20px; color: var(--nav-dropdown-color); display: block; white-space: nowrap; }
  .navmenu .dropdown ul a:hover { color: var(--nav-dropdown-hover-color); }
}
@media (max-width: 1199px) {
  .navmenu ul { list-style: none; padding: 10px 0; margin: 0; }
  .navmenu .dropdown ul { display: none; list-style: none; padding-left: 15px; margin: 5px 0; }
  .navmenu .dropdown.dropdown-active > ul { display: block; }
  .navmenu a { padding: 10px 20px; display: block; color: var(--nav-dropdown-color); }
}

/* Hero */
/* Hero banner - responsive height based on image */
.hero { padding: 0; }
.hero .carousel { width: 100%; padding: 0; margin: 0; background: #fff; position: relative; }
.hero .carousel-inner { position: relative; }
.hero .carousel-item { position: relative; overflow: hidden; }
.hero img { display: block; width: 100%; height: auto; object-fit: cover; object-position: center; background: #fff; }
/* Remove any dark overlay on banner image so it shows in full colour */
.hero .carousel-item::before,
.hero .carousel-item::after { display: none !important; content: none !important; background: none !important; }
.hero .carousel-container { position: absolute; inset: 90px 64px 64px 64px; display: flex; justify-content: center; align-items: center; flex-direction: column; z-index: 3; text-align: center; }
.hero h2 { margin-bottom: 30px; font-size: 48px; font-weight: 700; color: #fff; }
.hero .carousel-container p { color: rgba(255,255,255,0.95); font-size: 1.1rem; max-width: 60%; margin-bottom: 1.5rem; }
.hero .btn-get-started { color: var(--contrast-color); background: var(--accent-color); font-family: var(--heading-font); font-weight: 500; padding: 8px 32px; border-radius: 50px; display: inline-block; transition: 0.5s; }
.hero .btn-get-started:hover { background: #2ea359; color: #fff; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 5%; opacity: 0.7; }
.hero .carousel-control-prev-icon, .hero .carousel-control-next-icon { background: none; font-size: 32px; }
@media (max-width: 768px) { .hero h2 { font-size: 28px; } .hero .carousel-container p { max-width: 100%; } .hero .carousel-container { inset: 60px 20px 40px; } }

/* Section title */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { color: var(--accent-color); font-size: 20px; text-transform: uppercase; margin-bottom: 8px; }
.section-title p { font-size: 1.5rem; color: var(--heading-color); margin: 0; }

/* Services - Portfolio style (like demohome Our Portfolio) */
.services-portfolio-section .section-title { margin-bottom: 60px; }
.services-portfolio-section .section-title h2 { font-size: 2.8rem; margin-bottom: 15px; }
.services-portfolio-section .section-title p { color: var(--gray, #555); }

.services-eligibility {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(168, 213, 178, 0.2);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 8px 8px 0;
  text-align: left;
}
.services-eligibility-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.services-eligibility-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--default-color);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}
.portfolio-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: 0.4s;
}
.portfolio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.portfolio-card-content {
  padding: 20px 25px;
}
.portfolio-card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}
.portfolio-card-content p {
  line-height: 1.6;
  color: var(--default-color);
  margin: 0;
  font-size: 0.95rem;
}
.portfolio-card-content .portfolio-card-grant {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--accent-color);
  font-size: 1.1rem;
}
.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

/* Services – visitor count (Solar Panels style, light green) – shown before title */
.services-count-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.services-count-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, #a8d5b2 0%, #8bc99a 50%, #7ab88a 100%);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(168, 213, 178, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.services-count-box:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(168, 213, 178, 0.5);
}
.services-count-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #0d3d21;
  font-family: var(--heading-font);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}
.services-count-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0d3d21;
  opacity: 0.9;
  margin-top: 0.35rem;
}

/* About - KERA section: Why Choose Us style, visible and attractive */
.about .content { background: linear-gradient(160deg, #a8d5b2 0%, #8bc99a 45%, #7ab88a 100%); color: #032010; padding: 7rem 0; }
/* AgriCulture dark section: right column like Why Choose Us */
.about-agriculture .content { background: #0d3d21; color: #fff; padding: 7rem 0; }
.about-agriculture .content .content-subtitle { color: rgba(255,255,255,0.7); }
.about-agriculture .content .content-title { color: #fff; }
.about-agriculture .content .col-lg-5 p { color: rgba(255,255,255,0.85); }
.about-agriculture .content .col-lg-5 .display-6 { color: #7ab88a; flex-shrink: 0; }
.about-agriculture .content .col-lg-5 h4.text-white { color: #fff; }
.about-agriculture .content .col-lg-5 .text-white.opacity-50 { color: rgba(255,255,255,0.85); }
.about .content .container-about-wide { max-width: 1400px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 1200px) {
  .about .content .container-about-wide { padding-left: 2rem; padding-right: 2rem; }
}
/* About image - AgriCulture style: natural size in column, no fixed height crop */
.about .content .img-overlap { margin-top: -150px; width: 100%; height: auto; display: block; object-fit: cover; object-position: center; }
.about .content .col-lg-6.mb-4.mb-lg-0 { display: flex; align-items: stretch; }
.about .content .col-lg-6.mb-4.mb-lg-0 img.img-overlap { width: 100%; min-height: 380px; object-fit: cover; }
/* KERA: headings slightly lighter, body text darker for hierarchy */
.about .content-subtitle { font-weight: 300; color: #052a16; text-transform: uppercase; font-size: 1.1rem; }
.about .content-title { color: #052a16; font-weight: 300; }
.about .content-title strong { font-weight: 700; color: #052a16; }
.about .content p { color: #032010; opacity: 0.95; }
.about:not(.about-agriculture) .content .text-white { color: #032010 !important; }
.about-agriculture .content .text-white { color: #fff !important; }
.about .content .opacity-75 { opacity: 0.85; }
.about .content .display-6.text-white { color: var(--accent-color) !important; }
.about:not(.about-agriculture) .content .h5.text-white { color: #155724 !important; }
.about .content .opacity-75.mb-0 { color: #032010; }
.about .content .list-check { list-style: none; padding: 0; margin: 0 0 1rem; }
.about .content .list-check li { padding-left: 28px; position: relative; margin-bottom: 8px; color: #032010; }
.about .content .list-check li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: #032010; font-size: 1.2rem; }

.about .content .about-content-text {
  max-width: 100%;
  width: 100%;
}
.about .content .about-content-text .content-subtitle {
  font-size: 1.25rem;
}
.about .content .about-content-text .content-title {
  font-size: 2rem;
  line-height: 1.3;
}
.about .content .about-content-text p {
  text-align: justify;
  text-justify: inter-word;
  font-size: 1.05rem;
  line-height: 1.7;
}
.about .content .about-content-text .list-check li {
  font-size: 1.05rem;
  line-height: 1.6;
}
.about .content .about-content-text .content-subtitle,
.about .content .about-content-text .content-title {
  text-align: left;
}

/* AgriCulture Why Choose Us style: col-lg-5 ml-auto on right, icon + title + text rows */
.about .content .about-why-choose {
  text-align: left;
}
.about .content .about-why-choose .content-subtitle {
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
  font-weight: 400;
}
.about .content .about-why-choose .content-title {
  line-height: 1.35;
  font-weight: 300;
}
.about .content .about-why-choose .content-title strong {
  font-weight: 700;
}
.about .content .about-why-choose > p {
  text-align: left;
  text-justify: inter-word;
}
/* KERA Why Choose Us: icons accent green and larger (like AgriCulture) */
.about .content .about-why-icon {
  color: #346440;
  flex-shrink: 0;
  font-size: 2rem !important;
  width: 2.5rem;
  text-align: center;
}
.about .content .col-lg-5 .display-6.about-why-icon {
  font-size: 2.25rem !important;
}
.about .content .about-why-item-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #052a16;
  margin-bottom: 0.35rem;
}
.about .content .about-why-choose .row.my-5 .opacity-50,
.about .content .col-lg-5 .opacity-50 {
  color: #032010;
  opacity: 1;
}

@media (min-width: 992px) {
  .about .content .about-content-text .content-title { font-size: 2.2rem; }
  .about .content .about-content-text p,
  .about .content .about-content-text .list-check li { font-size: 1.1rem; }
}

/* About 3 */
.about-3 .content-title { color: var(--accent-color); margin-bottom: 30px; }
.about-3 .list-check { list-style: none; padding: 0; margin: 0 0 2rem; }
.about-3 .list-check li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.about-3 .list-check li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--accent-color); font-size: 1.2rem; }
.about-3 .btn-cta { background: var(--accent-color); color: #fff; padding: 12px 28px; text-transform: uppercase; font-size: 14px; border-radius: 6px; display: inline-block; }
.about-3 .btn-cta:hover { color: #fff; opacity: 0.9; }

/* Services 2 */
.services-2.section { overflow: visible; margin-bottom: 180px; }
.services-2 .section-title { text-align: left; }
.services-2 .section-title h2 { color: rgba(255,255,255,0.5); }
.services-2 .section-title p { color: #fff; }
.services-2 .service-item { position: relative; overflow: hidden; }
.services-2 .service-item::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 1; opacity: 0; transition: 0.3s; }
.services-2 .service-item img { transition: transform 0.5s; width: 100%; height: 280px; object-fit: cover; }
.services-2 .service-item .service-item-contents { position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 2; transform: translateY(100%); opacity: 0; transition: 0.3s; }
.services-2 .service-item .service-item-contents .service-item-category { color: var(--accent-color); text-transform: uppercase; font-size: 0.85rem; }
.services-2 .service-item .service-item-contents .service-item-title { color: #fff; margin: 0; font-size: 1.5rem; }
.services-2 .service-item:hover::before { opacity: 1; }
.services-2 .service-item:hover .service-item-contents { transform: translateY(0); opacity: 1; }
.services-2 .service-item:hover img { transform: scale(1.1); }
.services-2 .services-carousel-wrap { position: relative; margin-bottom: -180px; }
.services-2 .swiper { padding-bottom: 50px; }
.services-2 .navigation-prev, .services-2 .navigation-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 9; width: 46px; height: 46px; background: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.services-2 .navigation-prev { left: 10px; }
.services-2 .navigation-next { right: 10px; }
.services-2 .navigation-prev:hover, .services-2 .navigation-next:hover { background: var(--accent-color); color: #fff; }
.services-2 .swiper-pagination { bottom: 0; }
.services-2 .swiper-pagination-bullet { width: 20px; height: 4px; border-radius: 0; background: rgba(255,255,255,0.5) !important; }
.services-2 .swiper-pagination-bullet-active { background: var(--accent-color) !important; }

/* Testimonials */
.testimonials .testimonial { text-align: center; padding: 2rem; }
.testimonials .testimonial img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; }
.testimonials .testimonial blockquote p { font-size: 1.1rem; color: var(--default-color); font-style: italic; margin-bottom: 1rem; }
.testimonials .testimonial .client-name { text-transform: uppercase; font-size: 1rem; color: var(--accent-color); font-weight: 600; }

/* Recent posts */
.recent-posts .post-item { background: var(--surface-color); box-shadow: 0 2px 20px rgba(0,0,0,0.08); transition: 0.3s; height: 100%; overflow: hidden; }
.recent-posts .post-item .post-img { position: relative; overflow: hidden; }
.recent-posts .post-item .post-img img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s; }
.recent-posts .post-item .post-date { position: absolute; right: 0; bottom: 0; background: var(--accent-color); color: #fff; padding: 6px 12px; font-size: 13px; text-transform: uppercase; font-weight: 500; }
.recent-posts .post-item .post-content { padding: 25px; }
.recent-posts .post-item .post-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: var(--heading-color); }
.recent-posts .post-item .meta { font-size: 0.9rem; color: #6c757d; margin-bottom: 15px; }
.recent-posts .post-item .readmore { font-weight: 600; color: var(--accent-color); display: inline-flex; align-items: center; gap: 6px; }
.recent-posts .post-item:hover .post-img img { transform: scale(1.05); }

/* Call to action */
.call-to-action .content { padding: 40px 0; }
.call-to-action .content h3 { font-weight: 300; text-transform: uppercase; }
.call-to-action .form-control { border: 2px solid var(--accent-color); border-radius: 0; height: 56px; }
.call-to-action .btn { background: var(--accent-color); color: #fff; border: 2px solid var(--accent-color); border-radius: 0; padding: 12px 28px; }
.call-to-action .btn:hover { background: #fff; color: var(--accent-color); }

/* Footer */
.footer.dark-background { padding-top: 0; }
.footer#contact { padding: 25px; text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.footer .footer-top { padding: 50px 0 30px; }
.footer .footer-about .sitename { font-size: 26px; font-weight: 700; color: #fff; }
.footer .footer-contact p { margin-bottom: 5px; color: rgba(255,255,255,0.85); }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-color); display: inline-block; }
.footer .footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer .footer-links a { color: rgba(255,255,255,0.8); }
.footer .footer-links a:hover { color: #fff; }
.footer .copyright { padding: 25px 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; color: rgba(255,255,255,0.7); font-size: 14px; }
.footer .credits { font-size: 13px; margin-top: 8px; }
.footer .credits a { color: rgba(255,255,255,0.9); }
.footer .social-links a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,0.1); color: #fff; border-radius: 4px; margin-right: 6px; }
.footer .social-links a:hover { background: var(--accent-color); color: #fff; }

.scroll-top { position: fixed; bottom: 25px; right: 25px; width: 44px; height: 44px; background: var(--accent-color); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 999; }
.scroll-top:hover { color: #fff; opacity: 0.9; }

#hero {
  padding-top: 0;
  margin-top: 0;
}
