/* styling ver final */

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(245, 245, 245);
    color: rgb(51, 51, 51);
    line-height: 1.6;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: 
        "header"
        "nav"
        "article"
        "content"
        "footer";
    gap: 20px;
}

.home-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-areas: 
        "header header"
        "nav nav"
        "article content"
        "news news"
        "footer footer";
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: rgb(202, 202, 202);
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    grid-area: header;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}
header h1 {
    color: rgb(44, 62, 80);
    font-size: 28px;
    margin: 0;
}

.nav {
    grid-area: nav;
    text-align: center;
    padding: 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.nav a {
    color: rgb(44, 62, 80);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.nav a:hover {
    color: rgb(52, 152, 219);
    background-color: rgba(52, 152, 219, 0.1);
}

.article {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(26, 26, 26, 0.7)), url('Images/Cornfield.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    grid-area: article;
    color: rgb(255, 255, 255);
}
.article h2 {
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
    font-size: 24px;
}
.article p {
    margin-bottom: 15px;
    line-height: 1.7;
}
.article a {
    color: rgb(255, 255, 255);
    text-decoration: underline;
    transition: color 0.3s ease;
}
.article a:hover {
    color: rgb(52, 152, 219);
}

.content {
    background: rgb(0, 109, 49);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    grid-area: content;
    color: rgb(255, 255, 255);
}
.content h2,
.content h3 {
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
}
.content h3 {
    margin-top: 25px;
}
.content ul {
    list-style-position: inside;
    margin: 15px 0;
}
.content li {
    margin: 8px 0;
}
.content a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: color 0.3s ease;
}
.content a:hover {
    color: rgb(52, 152, 219);
}

.news {
    background-color: rgb(23, 102, 36);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    grid-area: news;
    color: rgb(255, 255, 255);
}
.news h2,
.news h3 {
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
}
.news h3 {
    margin-top: 20px;
}
.news a {
    color: rgb(255, 255, 255);
    text-decoration: underline;
    transition: color 0.3s ease;
}
.news a:hover {
    color: rgb(52, 152, 219);
}
.news p {
    line-height: 1.7;
}

hr {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 15px 0;
}

footer {
    grid-area: footer;
    padding: 20px 0;
    border-top: 1px solid rgb(221, 221, 221);
    margin-top: 20px;
}
footer p {
    color: rgba(48, 48, 48, 0.75);
    text-align: center;
}

.submit-button {
    background-color: rgb(28, 126, 45);
    color: rgb(255, 255, 255);
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.submit-button:hover {
    background-color: rgb(41, 128, 185);
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-container {
    background-color: rgb(23, 102, 36);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
    color: rgb(255, 255, 255);
}
.social-container h3,
.social-container p,
.social-container a {
    color: rgb(255, 255, 255);
}
.social-container a:hover {
    color: rgb(52, 152, 219);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.business-container {
    background-color: rgb(0, 109, 49);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: rgb(255, 255, 255);
    grid-area: content;
}
.business-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    display: block;
}
.business-card {
    background-color: rgb(0, 77, 36);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    margin-top: 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.5s, transform 0.5s;
}
.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.business-card img {
    border-radius: 8px;
}
.business-card h3,
.business-card p {
    margin: 5px 0;
}
.business-card ul {
    list-style-position: inside;
    padding: 0;
    margin: 5px 0;
    text-align: center;
}

.contact-main-container {
    background-color: rgb(0, 109, 49);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: rgb(255, 255, 255);
}
.contact-main-container form div {
    margin-bottom: 15px;
}
.contact-main-container label {
    display: block;
    margin-bottom: 5px;
}
.contact-main-container input,
.contact-main-container textarea {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid rgb(221, 221, 221);
}
.contact-main-container textarea {
    height: 150px;
    resize: vertical;
}

.about-container {
    background: linear-gradient(rgba(8, 8, 8, 0.61), rgba(0, 0, 0, 0.8)), url('Images/Farmers.jpg');
    background-size: cover;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: rgb(255, 255, 255);
}
.about-container h2,
.about-container h3 {
    margin-bottom: 15px;
}
.about-container p {
    margin-bottom: 20px;
    line-height: 1.7;
}
.about-container a {
    color: rgb(255, 255, 255);
    text-decoration: underline;
    transition: color 0.3s ease;
}
.about-container a:hover {
    color: rgb(52, 152, 219);
}

.tips-container {
    background: linear-gradient(rgba(8, 8, 8, 0.61), rgba(0, 0, 0, 0.8)), url('Images/Farmer.jpg');
    background-size: cover;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: rgb(255, 255, 255);
}
.tips-container article {
    margin-bottom: 25px;
}
.tips-container h2,
.tips-container h3 {
    margin-bottom: 15px;
}
.tips-container p {
    line-height: 1.7;
}
.tips-container li {
    margin-left: 20px;
}

@media only screen and (max-width: 768px) {
    .main-container,
    .home-page {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "header"
            "nav"
            "article"
            "content"
            "news"
            "footer";
        gap: 15px;
        padding: 15px;
    }

    .nav a {
        padding: 6px 12px;
        margin: 2px;
    }

    .article,
    .content,
    .news {
        padding: 20px;
    }

    header h1 {
        font-size: 24px;
    }

    .content ul {
        margin: 10px 0;
    }

    .news h2,
    .news h3 {
        font-size: 20px;
    }

    .business-container img,
    .business-card img,
    .about-container img,
    .tips-container img,
    .article img,
    .news img,
    .contact-main-container img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 10px 0;
        display: block;
        object-fit: cover;
    }
}




