:root {
    --primary-color: #4A8177; 
    --secondary-color: #EDB232; 
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #fff;
    --gray-light: #f1f3f5;
    --gray-dark: #6c757d;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo, .title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Nav Menu */
nav {
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Main Content Area */
main.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

main p {
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

main h2 {
    text-align: center;
    font-size: 1.5rem;
}

main h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

main h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

main h6 {
    font-size: 0.7rem;
}

main ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

main ul li {
    margin-bottom: 0.5rem;
    font-size: small;
}

/* Mobile Menu Icon */
.mobile-menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon,
.close-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Hidden class */
.hidden {
    display: none;
}

.section {
    padding-left: 1rem;
}

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

    nav {
        width: 100%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        margin-top: 1rem;
        padding: 0.5rem 0;
        border-top: 1px solid var(--gray-light);
    }

    nav ul.active {
        display: flex; /* Still needed to apply flex styles */
        max-height: 300px; /* Enough height to show all menu items */
        opacity: 1;
        visibility: visible;
        transition: max-height 0.4s ease, opacity 0.4s ease;
    }

    nav ul li {
        padding: 0.75rem 1rem;
        width: 100%;
        border-bottom: 1px solid var(--gray-light);
    }

    nav ul li a {
        width: 100%;
        display: block;
    }

    .mobile-menu-icon {
        display: block;
        position: absolute;
        top: -3rem;
        right: 1rem;
        z-index: 10;
    }

   
}



/* Initial mobile nav styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        margin-top: 1rem;
        padding: 0;
        overflow: hidden;

        /* Animation setup */
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transition: max-height 2s ease, opacity 0.3s ease, visibility 0.3s ease;
    }
}
