/* =========================
   GLOBAL STYLES
========================= */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f9f6;
    color: #222;
}

/* =========================
   CONTAINER
========================= */

.container{
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   HEADER
========================= */

header{
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1{
    color: #2e7d32;
    font-size: 32px;
    font-weight: bold;
}

nav ul{
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a{
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

nav ul li a:hover{
    color: #2e7d32;
}

/* =========================
   HERO SECTION
========================= */

.hero{
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: #e8f5e9;
    padding: 60px 0;
}

.hero .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-text{
    flex: 1;
}

.hero-text h1{
    font-size: 55px;
    line-height: 1.2;
    color: #1b5e20;
    margin-bottom: 20px;
}

.hero-text p{
    font-size: 18px;
    margin-bottom: 30px;
    color: #444;
}

.hero-buttons{
    display: flex;
    gap: 20px;
}

.hero-buttons a{
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary{
    background-color: #2e7d32;
    color: white;
}

.btn-primary:hover{
    background-color: #1b5e20;
}

.btn-secondary{
    border: 2px solid #2e7d32;
    color: #2e7d32;
}

.btn-secondary:hover{
    background-color: #2e7d32;
    color: white;
}

.hero-image{
    flex: 1;
}

.hero-image img{
    width: 100%;
    border-radius: 10px;
}

/* =========================
   SECTION GENERAL
========================= */

section{
    padding: 80px 0;
}

.section-title{
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2{
    font-size: 40px;
    color: #1b5e20;
    margin-bottom: 10px;
}

.section-title p{
    color: #666;
}

/* =========================
   CARDS
========================= */

.card-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card{
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover{
    transform: translateY(-5px);
}

.card img{
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card h3{
    color: #2e7d32;
    margin-bottom: 15px;
}

.card p{
    color: #555;
}

/* =========================
   FOOTER
========================= */

footer{
    background-color: #1b5e20;
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer p{
    margin-top: 10px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media(max-width: 768px){

    header .container{
        flex-direction: column;
        gap: 20px;
    }

    nav ul{
        flex-direction: column;
        text-align: center;
    }

    .hero .container{
        flex-direction: column;
    }

    .hero-text h1{
        font-size: 40px;
    }

}