:root{
    --bg-color:white;
    --sec-bg-color:wheat;
    --text-color:black;
    --sec-textt-color:white;
    --button:green;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    text-decoration: none;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    height: 100vh;
}

html{
    scroll-behavior: smooth;
}

.header {
    background-color: #333;
    color: white;
    padding: 20px 0;
    position: relative;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header .logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 15px;
    background-color: #333;
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    padding: 20px;
    transition: left 0.3s ease-in-out;
    z-index: 999;
}

.nav.show {
    left: 0; /* Slide in when active */
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.nav a.button {
    background-color: #ff6f00;
    padding: 8px 20px;
    border-radius: 4px;
    color: white;
    text-align: center;
}

.nav a:hover, .nav a.button:hover {
    background-color: #ffa040;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 20px; /* Position hamburger to the right */
    top: 20px;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: white;
}

/* Responsive Styles */
@media (max-width: 890px) {
    .hamburger {
        display: flex;
    }

    .nav {
        display: flex;
    }
}

@media (min-width: 891px) {
    .nav {
        display: flex; /* Show navigation as a row for larger screens */
        flex-direction: row;
        gap: 20px;
        position: static;
        height: auto;
        width: auto;
        background-color: transparent;
        padding: 0;
    }

    .hamburger {
        display: none; /* Hide hamburger for larger screens */
    }

    .nav a {
        font-size: 1rem;
        margin: 0;
    }

    .nav a.button {
        padding: 5px 15px;
    }
}
/* Hero Section */
.hero {
    background: url('hero-image.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .cta-button {
    padding: 15px 30px;
    font-size: 1.2rem;
    background-color: var(--button);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.hero .cta-button:hover {
    background-color: #e67e22;
}

/* Recent Donations Section */
.recent-donations {
    background-color: #fff;
    padding: 60px 20px;
}

.recent-donations h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.donation-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.donation-card {
    background-color: #f9f9f9;
    width: 30%;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.donation-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.donation-card p {
    font-size: 1rem;
    color: #333;
}

/* Success Stories Section */
.success-stories {
    background-color: #f4f4f4;
    padding: 60px 20px;
}

.success-stories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

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

.story {
    background-color: #fff;
    width: 48%;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.story span {
    display: block;
    margin-top: 10px;
    color: #777;
    font-style: italic;
}

/* Footer Section */
.footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer .footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.footer .footer-links a:hover {
    text-decoration: underline;
}

.footer p {
    font-size: 1rem;
}

.footer a {
    color: #ff7a00;
    text-decoration: none;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav a {
        margin: 10px 0;
    }

    

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .donation-cards {
        flex-direction: column;
    }

    .donation-card {
        width: 100%;
        margin-bottom: 15px;
    }

    .stories {
        flex-direction: column;
    }

    .story {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    
}


/*CSS for the NAV LINKS*/
.content-section {
    padding: 20px;
    background-color: #fff;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 8px;
}

form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    padding: 10px 20px;
    background-color: #f8a700;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #ff9000;
}
