/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Open+Sans:wght@300;400;600&display=swap');
/* ***************/
/* General*/
/****************/

body {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 16px;
    color: #333;
    line-height: 1.2;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
}

/* body {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Show body when page loads */
/* body.loaded {
    opacity: 1;
} */ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif !important;
    font-weight: 700;
    color: #2E7D32; 
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    font-weight: 400;
    color: #444;
}

/* ***************/
/* Buttons*/
/****************/
.btn-primary {
    background-color: #40916c;
    border: none;
}

.btn-primary:hover {
    background-color: #2d6a4f;
}

.btn-secondary {
    background-color: #52b788;
    border: none;
}

.btn-secondary:hover {
    background-color: #40916c;
}

a {
    color: #388E3C; /* Green shade */
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

button {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #388E3C;
}

/* ***************
Navbar
****************/
.navbar {
    position: fixed;
    width: 100%;
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 1000;
}

.navbar:hover {
    transform: translateY(-2px);
}

/* Transparent (initial) */
.navbar.transparent {
    background: rgba(255, 255, 255, 0);
}

.navbar.transparent .nav-link {
    color: #fff; /* Text white */
}

/* Scrolled */
.navbar.scrolled {
    background: #fff;
}

.navbar.scrolled .nav-link {
    color: #333; /* Dark text */
}

/* Common nav item styles */
.navbar .nav-item {
    position: relative;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out;
}

/* Animated underline effect */
.navbar .nav-item a {
    position: relative;
    text-decoration: none;
    padding-bottom: 5px;
    transition: color 0.3s ease-in-out;
}

.navbar .nav-item a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #8BC34A;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.navbar .nav-item a:hover::after {
    width: 100%;
}

.navbar .nav-item a.active {
    font-weight: bold;
    color: #8BC34A;
}

.navbar .nav-item a.active::after {
    width: 100%;
}


/* ***************/
/* Hero Section*/
/****************/
#hero {
    background: url('http://localhost/agrilandafrica/assets/img/hero-img.jpg') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
}

/* Green gradient overlay (visible only on mobile) */
#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgb(76, 175, 80), rgba(0, 0, 0, 0.741));
    z-index: 1;
    display: none; /* Hidden by default */
}

#hero .container {
    position: relative;
    z-index: 2; /* Keeps text above the overlay */
    text-align: center;
    color: white; /* Ensures text is visible */
}

#hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

#hero p {
    font-size: 1.2rem;
    max-width: 80%;
    margin: 0 auto;
}

/* Show overlay only on mobile screens */
@media (max-width: 768px) {
    #hero::before {
        display: block;
    }

    #hero h1, #hero p {
        color: white; /* Ensures text is readable on overlay */
    }
}

/* ***************/
/* Isolated Section*/
/****************/
.isolate-section {
    padding: 30px;
    border-radius: 10px;
}

/* ***************/
/* Solutions Section*/
/****************/
#solutionsCarousel {
    width: 100%;
}

#solutionsCarousel .carousel-inner {
    display: flex;
    align-items: center;
}

#solutionsCarousel .carousel-item {
    text-align: center;
    width: 100%;
}

#solutionsCarousel .carousel-item .row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0;
}

/* ***************/
/* Services*/
/****************/
.service-item {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #f4f4f4;
    margin: 15px 10px;
}

/* ***************/
/* Footer*/
/****************/
footer {
    background-color: #081c15;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.service-icon { 
    color: #28a745; 
    padding: 15px;
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px; 
    height: 70px;
    margin: 0 auto; 
}


.section-title {
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    color: #8BC34A;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between text and line */
}

.section-title::after {
    content: "";
    width: 50px; /* Adjust this value to control the line length */
    height: 2px; /* Line thickness */
    background-color: #8BC34A; /* Match the theme color */
}

/* ***************/
/* Blog Section*/
/****************/
.blog-post-item{
    border: 1px solid #f4f4f4;
    border-radius: 10px;
    padding: 10px;
    margin: 0 10px;
}
@media (max-width: 767px) {
    .carousel-item .row {
        flex-direction: column;
    }
    .carousel-item .col-md-6 {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}


/* ***************/
/* Blog Page*/
/****************/
.search-bar {
    display: flex;
    align-items: center;
    gap: 5px; 
    width: 100%;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

.search-bar button {
    height: 40px;
    padding: 0 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    background-color: #218838;
}

.categories {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
}

.categories h5 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.categories h5::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background-color: #28a745;
    position: absolute;
    bottom: -3px;
    left: 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease-in-out;
    text-decoration: none;
    color: #333;
}

.category-name a:hover{
text-decoration: none;
}

.category-item:hover {
    transform: scale(1.02);
    background: #218838;
    transition: 0.3s;
}

.category-item:nth-child(odd) {
    background: #f5f5f5;
}

.category-item:nth-child(even) {
    background: linear-gradient(to right, #006b3d, #28a745);
    color: white;
}

.category-count {
    background: #006b3d;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
}

.side-posts{
    padding: 2rem;
}

.recent-post-item{
    border-top: 1px solid #f4f4f4;
    padding: 10px 0;
}

/* ***************/
/* Breadcrumb*/
/****************/
.breadcrumb-section {
    background-color:#ffffff;
    padding: 15px;
}

.header-section {
    position: relative;
    padding: 150px 0;
    height: 50vh;
    overflow: hidden;
    color: #000;
    z-index: 1;
}

.header-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        url('../assets/img/texture.png') repeat,
        url('../assets/img/breadcrumb.jpg') center/cover no-repeat;
    z-index: -1;
}


.header-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #161b1db9; /* white overlay */
    z-index: 0;
}

.bd-top{
margin-top: 120px;
padding: 20px 0;
border-radius: 10px;
}

.breadcrumb {
    margin-bottom: 0;
    background: none;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    border-radius: 5px;
}

.breadcrumb-item a {
    color: #e2e2e2; 
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.breadcrumb-item a:hover {
    color: #333;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #28a745; 
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›"; 
    padding: 0 8px;
    color: #e2e2e2;
    font-weight: bold;
}


/* ***************/
/* Cards*/
/****************/
.card {
    background-color: #fff;
    border-radius: 8px;
    margin: 15px 5px; 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px); 
}


.card-btn{
    margin: 10px;
}

.card-body{
padding: 30px;
}
.card-title{
    padding: 0 10px;
    font-size: 28px;
}

.card-text{
    padding: 0 10px;
}

.solution-card {
    display: flex;
    flex-direction: column;
}

.solution-card .card {
    border-radius: 12px;
    border: 1px solid #f4f4f4;
    transition: transform 0.5s ease, background-color 0.5s ease;
    background-color: #fff;
    color: #000;
}

.solution-card .card:hover {
    transform: translateY(-5px);
    background-color: #28a745;
    color: #fff;
}

/* Texts inside card on hover */
.solution-card .card:hover h5,
.solution-card .card:hover p,
.solution-card .card:hover .category-text {
    color: #fff;
}

/* Icon color change on hover */
.solution-card .card:hover .service-icon {
    color: #fff;
}

/* Default icon color */
.service-icon {
    color: #00794f;
    transition: color 0.5s ease;
}

/* Link behavior */
.solution-card a.card-link {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}

.solution-card a.card-link:hover {
    text-decoration: none;
}

/* Section styling */
.isolate-section {
    border-radius: 20px;
    padding: 40px 40px;
}

/* Carousel row centering */
.carousel-item .row {
    margin: 0 auto;
}

@media (min-width: 768px) {
    .solution-card {
        padding: 10px 15px;
    }
}

@media (max-width: 767px) {
    .solution-card {
        padding: 15px;
    }
}

.rouded{
    border-radius: 20px;
}
/* ***************/
/* Contact*/
/****************/
.contact-section {
    background: #f0f0f0;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: auto;
}
.contact-info {
    width: 40%;
}

.white{
padding: 60px;
border-radius: 10px;
background-color: #fff;
}

.contact-info h2 {
    color: #137c26;
    font-weight: bold;
}
.contact-info p {
    color: #777;
    font-size: 14px;
}
.contact-info .icon-text {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.contact-info i {
    font-size: 22px;
    color: #137c26;
    margin-right: 15px;
}
.contact-form {
    width: 55%;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}
.contact-form button {
    background: #222;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}
.contact-form button:hover {
    background: #137c26;
}

.newsletter-section{
    padding: 15px;
}

/* ***************/
/* About Us*/
/****************/
.about-section{
    padding: 50px 20px;
}

@media (max-width: 767px) {
    .about-section{
        padding: 20px;
    }
}
.video-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
}

.video-button i {
    font-size: 24px;
    color: #000;
    transition: color 0.3s ease-in-out;
}

.video-overlay:hover .video-button {
    transform: translate(-50%, -50%) scale(1.2); /* Slight zoom */
    background: rgba(255, 255, 255, 0.9);
}

.video-button::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}


/* ***************/
/* Solutions*/
/****************/
    .custom-btn {
    width: auto !important;
    padding: 8px 20px;
    display: inline-block !important;
    text-align: center;
    margin-top: 10px;}

    .category-text{
        color:#8BC34A;
        font-weight:normal;
    }

    .sidebar-solutions{
        border: 1px solid #f4f4f4;
        border-radius: 10px;
    }
    
    .card-header {
        font-size: 18px;
        font-weight: bold;
        background-color:rgb(40 167 90);
    }
    
    .category-link {
        text-decoration: none;
        color: #333;
        font-weight: 500;
        transition: color 0.3s ease;
    }
    
    .category-link:hover {
        color: rgb(40 167 90);
    }
    
    .active-category {
        background-color: rgb(40 167 90)!important;
        color: white;
    }
    
    .active-category a {
        color: white !important;
    }
    
    .card{
        border:1px solid #f4f4f4;
    }
    
    .service-category{
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 30px;
        width: fit-content;
        background-color: #e2f2cf;
    }


/* ***************/
/* Solutions*/
/****************/
.hero-section { 
    background-color: #f8f9fa; 
    padding: 15px; }

.mission-section {
    position: relative;
    background: 
        url('../assets/img/texture.png') repeat,
        url('../assets/img/tractor.jpg') center/cover no-repeat; 
    color: #fff;
}

.mission-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 0;
}

.mission-section > .container {
    position: relative;
    z-index: 1;
}

.cta-section { 
    background-color: #28a745; 
    color: white; 
    padding: 30px 15px; 
    text-align: left; 
}

.cta-section p {
    color: white;
}

.cta-section h3{ 
    color: white; 
}

.counter{ 
    font-size: 48px; 
    font-weight: 700;
}

.counter-section{
    padding: 15px;
}

.about-icons{
    font-size: 36px;
    color: #28a745;
    padding: 14px;
    border-radius: 50px;
    margin: 15px;
}

