/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* -----------------header starts------------------------------ */

header {
    background-color: rgba(255, 255, 255, 1);
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
}

.headerContainer {
    max-width: 1290px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.logo {
    margin-right: auto;
}

/* Hide text logo when image is present */
.logo-image[src] + .logo-text {
    display: none;
} 

/* Fallback text logo styling */
.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

nav {
    display: flex;
    /* align-items: center; */
    /* justify-content: space-between; */
    /* gap: 60px; */
}
a {
    text-decoration-line: none;
    color: inherit;
}

nav a {
    font-weight: 700;
    font-size: 20px;
    color: rgba(73, 33, 24, 1);
}

nav a+a {
    margin-left: 60px; /* creates gap in-between two elements */
}

nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px;
}

nav a:hover {
    color: #F5821F;
}

/* .nav-menu:hover {
   background-color: rgb(255, 208, 80);
   border-radius: 5px;
} */

.logo {
    width: 50px;
}

img{
    width: 100%;
}

.close-icon {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
    display: none;
    }

.hamburgerMenu {
    background-color: rgba(255, 255, 255, 1);
    display: none;
    /* line-height: 40px; */
    /* text-align: center; */
    width: 40px;
    height: 40px;
    border-radius: 0px 0px 0px 50px;
    position: relative;
    cursor: pointer;
    }

.hamburgerIcon {
    position: absolute;
    top: 15%;
    left: 40%;
}

/* -----------------header ends------------------------------ */








/*------------------ Hero Section ---------------------*/
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/api/placeholder/1920/1080') center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    width: 100%;
    height: inherit;
    /* margin: 0 auto; */
    padding: 0 20px;
    background-image: url('../assets/image/nature-study-camp.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    padding-top: 15rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/* Program Cards */
.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 20px;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* newsletter */
#newsletter {
    background-color: #f4f4f4;
    padding: 2rem 0;
    text-align: center;
}

#newsletter a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}



/* Responsive Design */

@media (max-width: 1200px) {
    nav a {
    font-size: 18px;
    }

    header {
    padding: 16px 24px;
    }

    nav a+a {
    margin-left: 30px; /* creates gap in-between two elements */
    }
}

@media (max-width: 960px) {
    nav a {
    font-size: 14px;
    }

    header {
    padding: 12px 24px;
    }

    nav a+a {
        margin-left: 32px; /* creates gap in-between two elements */
    }
}

@media (max-width: 768px) {
    .mainNav {
        display: none;
    }
    
    nav {
        width: 208px;
        height: 210px;
        padding: 24px;
        position: absolute;
        top: 24px;
        right: 24px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.75);
    }

    nav a+a {
    margin-left: 0px;
    margin-top: 16px;
    }
    .close-icon {
        display: none;
    }
    
    .hamburgerMenu {
        display: block;
    }



    .hero-content h1 {
        font-size: 2rem;
    }

    .program-cards {
        grid-template-columns: 1fr;
    }
}

    .show {
    display: block;
    }

    .close {
        display: none;
    }