/* GLOBAL STYLES & RESETS */
:root {
    --primary-color: #2e7d32; /* Deep Green */
    --primary-dark: #1b5e20;
    --secondary-color: #4a90e2; 
    --background-light: #f4f6f9; 
    --card-background: #ffffff; 
    --text-dark: #2c3e50; 
    --text-light: #7f8c8d; 
    --seed-color: #8e44ad; /* Seed accent */

    --border-radius: 10px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* NAVIGATION (Standard Reused) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    font-size: 2.8em;
    font-weight: 700;
    color: black
}

.navbar nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 25px;
    font-weight: 500;
}

.navbar nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

/* --- 1. HERO SECTION --- */
.hero-section {
    display: flex;
    align-items: center; /* Keep content aligned vertically */
    justify-content: space-between;
    background-color: #e8f5e9; 
    border-radius: var(--border-radius);
    padding: 50px 70px;
    margin-bottom: 40px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap; /* Ensure mobile friendliness */
}

.hero-content {
    max-width: 50%;
}

.hero-section h1 {
    font-size: 3em;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.1em;
    color: #000000;
    margin-bottom: 30px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 45%;
}

.hero-image img {
    width: 100%;      /* Make the image responsive */
    max-width: 600px; /* Limit its max size */
    height: auto;     /* Keep aspect ratio */
    border-radius: var(--border-radius);
}


/* Buttons */
.btn {
    padding: 12px 25px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* --- 2. SEARCH & FILTER SECTION --- */
.filter-section {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
}

.search-bar-container {
    display: flex;
    margin-bottom: 20px;
}

.search-bar-container input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px 0 0 6px;
    font-size: 1em;
    outline: none;
}

.btn-search {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 0 6px 6px 0;
}

.filters {
    display: flex;
    gap: 20px;
    align-items: center;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 10px;
}

.filter-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
    min-width: 150px;
}

.btn-apply-filter {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    margin-left: auto; /* Pushes button to the right */
}

/* --- 3. SEED CATALOG GRID --- */
.catalog-grid h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.seed-grid {
    display: grid;
    /* 4-column grid as requested */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
    margin-bottom: 30px;
}

.seed-card {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-top: 5px solid var(--seed-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.seed-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.seed-card h3 {
    font-size: 1.4em;
    margin: 10px 0 15px;
    color: var(--text-dark);
}

.card-details {
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-details p {
    font-size: 0.95em;
    margin-bottom: 8px;
    color: var(--text-light);
}

.card-details span {
    font-weight: 600;
    color: var(--text-dark);
}

.limited-stock {
    color: #e74c3c; /* Red for limited stock */
}

.btn-get-now {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: 12px;
}

.btn-load-more {
    display: block;
    width: 300px;
    margin: 0 auto;
    background-color: #ecf0f1;
    color: var(--text-dark);
    border: 1px solid #bdc3c7;
}

.btn-load-more:hover {
    background-color: #bdc3c7;
}

/* Seed Tags (Colors) */
.seed-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8em;
    font-weight: 700;
    border-radius: 4px;
    color: white;
}

.tag-tomato { background-color: #e74c3c; }
.tag-herb { background-color: #2ecc71; }
.tag-pepper { background-color: #f39c12; }
.tag-bean { background-color: #3498db; }
.tag-flower { background-color: #9b59b6; }

/* --- MEDIA QUERIES (Responsiveness) --- */

@media (max-width: 1100px) {
    .hero-section {
        padding: 40px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 30px;
    }
    .hero-image {
        max-width: 100%;
    }
    .filters {
        flex-wrap: wrap;
    }
    .btn-apply-filter {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .hero-section h1 {
        font-size: 2.2em;
    }
    .search-bar-container {
        flex-direction: column;
    }
    .search-bar-container input,
    .btn-search {
        border-radius: 6px;
    }
    .btn-search {
        margin-top: 10px;
    }
    .btn-load-more {
        width: 100%;
    }
}

/* Modal */

/* --- MODAL STYLES --- */

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: var(--card-background);
    margin: 5% auto; /* 5% from the top and centered */
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%; 
    max-width: 600px; /* Max width for readability */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

/* Animation for the modal */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.modal-content h2 {
    font-size: 1.8em;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* The Close Button */
.close-btn {
    color: var(--text-light);
    float: right;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
}

/* Form Styles within the Modal */
.donation-form {
    display: grid;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
}

.required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.modal-submit-btn {
    margin-top: 15px;
    padding: 15px;
    font-size: 1.1em;
}

/* Media Query for smaller screens (modal takes up more space) */
@media (max-width: 600px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}


/* Footer */

footer {
  background: #f7f9f7;
  color: #000000;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}
