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

body {
    font-family: Arial, sans-serif;
    color: #333;
}

/* Header */
header {
    background-color: #616969;
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    background-color: #00000077;
    padding: 5px;
}

.logo img {
    height: 60px;
    .logo img {
        height: 60px;
        display: block;
    }
}
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

/* Hide the checkbox */
.menu-toggle {
    display: none;
}

/* Style the burger icon */
.menu-icon {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Ensure nav is visible on desktop */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        background-color: #616969;
        width: 100%;
        padding: 20px;
        text-align: center;
        z-index: 100;
    }

    .menu-toggle:checked ~ nav ul {
        display: flex;
    }

    .hero {
        z-index: 1;
    }
}


nav a:hover {
    background-color: #FFF9C4; /* Soft yellow */
    color: black;              /* Text becomes black for contrast */
    padding: 5px 10px;
    border-radius: 5px;
}

/* Highlight active nav link */
nav ul li a.active {
    background-color: #FFD700;
    padding: 5px 10px;
    border-radius: 5px;
    color: black;
}
/* Hero Section */
.hero {
    position: relative;
    width: 100%;
}

.hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.hero-text {
    position: absolute;
    top: 50%;
    right: 20px; 
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
    text-align: center;
}
.hero-text-home {
    position: absolute;
    top: 50%;
    left: 20px; 
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
    text-align: center;
}


.hero-text h1 {
    font-size: 1.5em;
    margin: 0;
}

.hero-text p {
    margin: 10px 0 0;
}

@media (max-width: 768px) {
    .hero-text {
        position: static;
        transform: none;
        background-color: rgba(0, 0, 0, 0.6);
        width: 100%;
        text-align: center;
        padding: 15px;
        margin-top: 0px;
    }
}
.hero-donate {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: #FFF9C4;
    padding: 20px;
    text-align: center;
    width: 300px;
}

.hero-donate h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.hero-donate button {
    background-color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hero-donate {
        position: static;
        transform: none;
        margin: 10px auto;
        width: 100%;
        max-width: 300px;
        .hero {
            flex-direction: column;
            height: auto;
        }
        
        .hero-text,
        .hero-donate {
            width: 100%;
            margin: 10px 0;
            text-align: center;
        }
        
    }
}
.mission {
    padding: 40px 20px;
    color: #4A5E5E;
}

.mission h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.mission p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.stat {
    text-align: center;
}

.stat img {
    height: 40px;
    margin-bottom: 10px;
}

.stat p {
    font-size: 1em;
}
.join {
    display: flex;
    align-items: center;
    padding: 40px 20px;
    background-color: #F5F5F5;
}

.join-text {
    flex: 1;
    padding-right: 20px;
}

.join-text h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #4A5E5E;
}

.join-text p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.join-text a {
    background-color: #FFD700;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    text-decoration: none;
}

.join-image img {
    width: 300px;
    height: auto;
}
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #FFF9C4;
}

.footer-logo img {
    height: 40px;
}

.social-media img {
    width: 24px;
    margin: 0 10px;
}

.newsletter form {
    display: flex;
    align-items: center;
}

.newsletter label {
    margin-right: 10px;
}

.newsletter input {
    padding: 5px;
    margin-right: 10px;
}

.newsletter button {
    background-color: #FFD700;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}
/* About Page Hero Section */
.hero-text h1 {
    text-align: right;
    right: 20px;
    left: auto;
}
.thank-you {
    padding: 40px 20px;
    text-align: center;
}

.thank-you h1 {
    font-size: 2em;
    color: #4A5E5E;
    margin-bottom: 20px;
}

.thank-you p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.thank-you a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}
.about {
    padding: 40px 20px;
    color: #4A5E5E;
}

.about h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.about p {
    margin-bottom: 15px;
    line-height: 1.5;
}
.team {
    display: flex;
    flex-direction: row;
    padding: 40px 20px;
    background-color: #F5F5F5;
}

.team-image img {
    width: 300px;
    margin-right: 20px;
}

.team-text {
    flex: 1;
    display: flex;
    flex-direction: row;
}

.team-text h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #4A5E5E;
}

.team-text p {
    margin-bottom: 15px;
}

.team-text button {
    background-color: #FFD700;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin: 5px 10px;
}

.team-text .stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    
}

.team-text .stat {
    text-align: center;
    display: flex;
    flex-direction: row;
}

.team-text .stat img {
    height: 40px;
    margin-bottom: 10px;
}
.hero img[src="assets/trees-hero.jpg"] {
    height: 350px;
}
.tree-info {
    padding: 40px 20px;
    color: #4A5E5E;
}

.tree-info h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.tree-info p {
    margin-bottom: 15px;
}
.team-text button {
    background-color: #FFD700;
    padding: 10px 20px;
    border: none;
}

.team-text .stats {
    display: flex;
    margin-top: 20px;
}

.team-text .stat {
    text-align: center;
    margin: 0 10px;
}

.team-text .stat img {
    height: 40px;
    margin-bottom: 10px;
}
.tree-info {
    padding: 40px 20px;
    color: #4A5E5E;
}

.tree-info h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.tree-info p {
    margin-bottom: 15px;
}
.tree-stats {
    padding: 40px 20px;
    text-align: center;
}

.tree-stats h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #4A5E5E;
}

.tree-stats .stats {
    display: flex;
    margin: 20px 0;
}

.tree-stats .stat {
    margin: 0 10px;
}

.tree-stats .stat img {
    height: 40px;
    margin-bottom: 10px;
}

.tree-stats a {
    background-color: #FFD700;
    padding: 10px 20px;
    border: none;
    color: #333;
    text-decoration: none;
}
.hero img[src="assets/team.jpg"] {
    height: 350px;
}
.contact-info {
    padding: 40px 20px;
    text-align: center;
    color: #4A5E5E;
}

.contact-info h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #FFD700;
    text-decoration: none;
}
.contact-info {
    padding: 40px 20px;
    text-align: center;
    color: #4A5E5E;
}

.contact-info h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #FFD700;
    text-decoration: none;
}
.contact-info {
    padding: 40px 20px;
    text-align: center;
    color: #4A5E5E;
}

.contact-info h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #FFD700;
    text-decoration: none;
}
.contact-form {
    padding: 40px 20px;
    text-align: center;
    color: #4A5E5E;
}

.contact-form h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form label {
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 300px;
    padding: 5px;
    margin-bottom: 10px;
}

.contact-form button {
    background-color: #FFF9C4;
    padding: 10px 20px;
    border: none;
}
.hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: none; /* Remove any default border */
}

.hero-donate {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: #f5eeb6;
    padding: 20px;
    text-align: center;
    border: none; /* Remove any default border */
}
.hero-donate a {
    background-color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    text-decoration: none;

}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}
.contact-form {
    padding: 40px 20px;
    text-align: center;
    color: #4A5E5E;
}

.contact-form h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form label {
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 300px;
    padding: 5px;
    margin-bottom: 10px;
}

.contact-form button {
    background-color: #FFD700;
    padding: 10px 20px;
    border: none;
}.donate-page img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}.thank-you {
    padding: 40px 20px;
    text-align: center;
    color: #4A5E5E;
}

.thank-you h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.thank-you p {
    margin-bottom: 15px;
}

.thank-you a {
    color: #FFD700;
    text-decoration: none;
}.donate-page p:last-child {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 1.5em;
        text-align: center;
        right: auto;
        left: 0;
        width: 100%;
    }

    .hero-donate {
        position: static;
        transform: none;
        margin: 10px auto;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .join, .team {
        flex-direction: column;
        text-align: center;
    }

    .join-image img, .team-image img {
        margin: 0;
        margin-bottom: 20px;
    }

    footer {
        flex-direction: column;
        gap: 20px;
    }

    .newsletter form {
        flex-direction: column;
    }

    .newsletter input {
        margin-bottom: 10px;
    }
}.tree-stats button {
    background-color: #FFD700;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}.tree-stats button {
    background-color: #FFD700;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin: 5px; /* Add spacing between buttons */
}.team-text button {
    background-color: #FFD700;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}
html, body {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrollbars */
}

* {
    box-sizing: border-box; /* Ensure padding/margins don’t cause overflow */
}
/* Hide the checkbox */
.menu-toggle {
    display: none;
}

/* Style the burger icon */
.menu-icon {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Default nav styles for desktop */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #4A5E5E;
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    .menu-toggle:checked ~ nav ul {
        display: flex;
    }
}