:root {
    --color-primary: #1b5e20;
    --color-primary-light: #4c8c4a;
    --color-primary-dark: #003300;
    --color-accent: #81c784;
    --color-text: #333333;
    --color-text-light: #ffffff;
    --color-background: #f1f8e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #2a6a2a;
    color: white;
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-light);
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--color-background);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-accent);
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-text-light);
    color: var(--color-text-light);
}

.btn-outline:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary);
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

main {
    padding: 2rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-primary);
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
}

.search-container button {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 0 1rem;
    cursor: pointer;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.card h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.card .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.link-with-icon {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: 0.5rem;
}

.link-with-icon svg {
    margin-left: 0.25rem;
    width: 1em;
    height: 1em;
}

.text-center {
    text-align: center;
}

.cta {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta .btn {
    background-color: var(--color-text-light);
    color: var(--color-primary);
}

.cta .btn:hover {
    background-color: var(--color-accent);
}

footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

footer h4 {
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer p {
    color: var(--color-text-light);
}
footer a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.copyright {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

#menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-light);
    margin: 5px 0;
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }

    nav {
        order: 3;
        width: 100%;
    }

    #menu-toggle {
        display: block;
    }

    #main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    #main-nav.show {
        display: flex;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .btn-outline {
        margin-left: auto;
    }
}

/* About Us Page Styles */
/* Team section styling */
.team {
    padding: 50px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.team h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2a6a2a; /* AgriChamber green */
}

.team p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
}

/* Team grid layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: start;
}

/* Individual team member card */
.team-member {
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.team-member img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #2a6a2a; /* AgriChamber green */
}

.team-member-info {
    padding: 15px;
    text-align: center;
}

.team-member-info h4 {
    font-size: 1.2rem;
    color: #2a6a2a;
    margin-bottom: 5px;
}

.team-member-info p {
    font-size: 0.9rem;
    color: #777;
}

/* Responsive Design */
@media (max-width: 768px) {
    header #menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
    }

    header ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: #005f73;
        padding: 10px;
        border-radius: 5px;
    }

    header ul.show {
        display: flex;
    }

    #search-input {
        width: 100%;
    }
}

/* Services Page Styles */

h2 {
    text-align: center;
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

.btn-secondary {
    background-color: var(--color-primary-light);
    color: var(--color-text-light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/*news and events */
#news-events {
    background-color: var(--color-primary-light);
    color: var(--color-text-light);
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: black;
    font-size: 2em;
}

h2 {
    font-size: 1.6em;
    color: black;
    margin-top: 20px;
}

.section {
    margin: 20px 0;
}

.article, .release, .story {
    background-color: #f9f9f9;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.article h3, .release h3, .story h3 {
    font-size: 1.4em;
    color: #333;
}

p {
    font-size: 1em;
    color: black;
    line-height: 1.6;
}

a {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.calendar {
    font-size: 1.1em;
    color: #555;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}

@media screen and (max-width: 768px) {
    #news-events {
        margin: 10px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.3em;
    }
}

/* Resources */

#resources {
    background-color: var(--color-primary-light);
    color: var(--color-text-light);
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    font-size: 2em;
}

h2 {
    font-size: 1.6em;
    color: black;
    margin-top: 20px;
}

.section {
    margin: 20px 0;
}

.resource-item {
    background-color: #f9f9f9;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.resource-item h3 {
    font-size: 1.4em;
    color: #333;
}

.resource-item p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

a {
    display: inline-block;
    margin-top: 10px;
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

        /* Crop Yield Calculator and Financial Planning Tool Styles */
        #crop-yield-calculator,
        #financial-planning-tool {
            background-color: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
        }

        #crop-yield-calculator h2,
        #financial-planning-tool h2 {
            color: var(--color-primary);
            margin-bottom: 15px;
        }

        #yield-form,
        #financial-form {
            display: grid;
            gap: 15px;
        }

        #yield-result,
        #financial-result {
            margin-top: 20px;
            padding: 15px;
            background-color: #e9f7ef;
            border-radius: 8px;
        }

        #yield-result h3,
        #financial-result h3 {
            color: var(--color-primary);
            margin-bottom: 10px;
        }

        .text-danger {
            color: #dc3545;
        }

        .form-group {
            margin-bottom: 1rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: bold;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 0.5rem;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 1rem;
        }

        .btn-primary {
            background-color: var(--color-primary);
            color: white;
            padding: 0.5rem 1rem;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1rem;
        }

        .btn-primary:hover {
            background-color: var(--color-primary-dark);
        }

@media screen and (max-width: 768px) {
    #resources {
        margin: 10px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.3em;
    }
}

/* Member directoty */

#member-directory {
    background-color: var(--color-primary-light);
    color: var(--color-text-light);
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    font-size: 2em;
}

.search-container {
    text-align: center;
    margin-bottom: 20px;
}

#search-input {
    padding: 10px;
    font-size: 1.1em;
    width: 80%;
    max-width: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0 auto;
}

/* Members List */
.members-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.member {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 15px;
}

.member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.member img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #2a6a2a;
}

.member h3 {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #2a6a2a;
}

.member p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555;
}

.member p strong {
    color: #333;
}

@media screen and (max-width: 768px) {
    #search-input {
        width: 90%;
    }

    .members-list {
        flex-direction: column;
    }

    .member {
        width: 90%;
        margin: 10px auto;
    }
}

/* Contact Us */

#contact-us {
    padding: 20px;
    margin: 20px;
    background-color: var(--color-primary-light);
    color: var(--color-text-light);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    font-size: 2.5em;
    color: black;
}

h2 {
    font-size: 1.8em;
    color: black;
    margin-top: 20px;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-item {
    width: 30%;
    background-color: #f9f9f9;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    font-size: 1.4em;
    color: #333;
}

.contact-item p {
    font-size: 1.1em;
    color: #555;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


.contact-inputs{
    width: 400px;
    height: 50px;
    border: none;
    outline: none;
    padding-left: 25px;
    font-weight: 500;
    color: #666;
    border-radius: 50px;
}

.contact-left textarea{
    height: 140px;
    padding-top: 15px;
    border-radius: 20px;
}

.contact-inputs:focus{
    border: 2px solid black;
}

.contact-inputs::placeholder{
    color: #a9a9a9;
}

.contact-left button{
    display: flex;
    align-items: center;
    padding: 15px 30px;
    font-size: 16px;
    color: #fff;
    gap: 10px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(270deg, green, green);
    cursor: pointer;
}

.contact-left button img{
    height: 15px;
}

.contact-right img{
    width: 500px;
}

@media (max-width: 800px){
    .contact-inputs{
        width: 80vw;
    }

    .contact-right{
        display: none;
    }
}



.contact-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    font-size: 1.1em;
    color: #333;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.contact-form button {
    background-color: var(--color-primary-light);
    color: white;
    padding: 10px 15px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #0056b3;
}

@media screen and (max-width: 768px) {
    .contact-methods {
        flex-direction: column;
    }

    .contact-item {
        width: 100%;
    }

    .contact-form input, .contact-form textarea {
        font-size: 1.1em;
    }

    .contact-form button {
        width: 100%;
    }

    .feedback-form {
        padding: 1.5rem;
    }

    .feedback-form h2 {
        font-size: 1.8rem;
    }

    .feedback-form p {
        font-size: 1rem;
    }

    .feedback-form .form-group input,
    .feedback-form .form-group textarea {
        padding: 0.75rem;
    }

    .feedback-form .form-group .btn-submit {
        padding: 0.75rem 1.5rem;
    }
}

/* Feedback Form Styles */
#feedback {
    background-color: #f9f9f9; /* Same as the contact form background */
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin-top: 40px; /* Consistent spacing with other sections */
}

#feedback h2 {
    font-size: 1.8em;
    color: black; /* Same color as other section headings */
    margin-bottom: 20px;
    text-align: center;
}

#feedback .form-group {
    margin-bottom: 20px;
}

#feedback .form-group label {
    font-size: 1.1em;
    color: #333;
}

#feedback .form-group input,
#feedback .form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#feedback .form-group select {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#feedback button {
    background-color: var(--color-primary-light);
    color: white;
    padding: 10px 15px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}

#feedback button:hover {
    background-color: #0056b3;
}

@media screen and (max-width: 768px) {
    #feedback .form-group input,
    #feedback .form-group textarea,
    #feedback .form-group select {
        font-size: 1.1em;
    }

    #feedback button {
        width: 100%;
    }
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Authentication Form Styles */
.popup-content h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.popup-content .btn-primary {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-content .btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
}

.auth-link a {
    color: var(--color-primary);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Member Dashboard Styles */
.member-content {
    padding: 2rem 0;
    text-align: center;
}

.welcome-message {
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-card h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.dashboard-card ul {
    list-style: none;
    padding: 0;
}

.dashboard-card ul li {
    margin-bottom: 0.5rem;
}

.dashboard-card ul li a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dashboard-card ul li a:hover {
    color: var(--color-primary);
}

.recent-activity {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

#activity-list {
    list-style: none;
    padding: 0;
}

#activity-list li {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #f0f0f0;
    border-radius: 4px;
}