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

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f7;
    margin: 0;
}

/* Header Styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #82BB66;
    color: #f0f0f0;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
}

header h1 {
    font-size: 2rem;
}

header .search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

header .search-bar input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}

header .search-bar button {
    padding: 0.5rem 1rem;
    background-color: #0056d6;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

header .search-bar button:hover {
    background-color: #003f9a;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: #f0f0f0;
    color: #0056d6;
}

/* Main Section Styling */
main {
    flex: 1;
    padding: 5rem 2rem 3rem;
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 0;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('logo.jpeg');
    background-repeat: repeat;
    background-size: 150px;
    opacity: 0.1;
    z-index: -1;
}

main h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 500;
}

main p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Center the grid and style the links as buttons */
main section div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
    gap: 1rem;
    justify-content: center;
    width: 90%;
    margin: 0 auto;
}

main section a {
    display: inline-block;
    padding: 1rem;
    background-color: #ffffff;
    color: #82BB66;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

main section a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Footer Styling */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #82BB66, #82BB66);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

footer p {
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    main h2 {
        font-size: 1.5rem;
    }

    main section div {
        grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
    }
}