/* Core Variables & Reset */
:root {
    --primary-color: #004d40; /* Deep progressive green */
    --secondary-color: #ffb300; /* Energetic gold/yellow */
    --text-color: #333333;
    --bg-color: #f4f7f6;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevents horizontal scroll breakage on mobile */
}

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

/* Header Styles */
.main-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    border-bottom: 4px solid var(--secondary-color);
    position: relative; 
    z-index: 1000;
    height: auto; 
    min-height: 80px; /* Ensures a minimum height if content is small */
}

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

.logo h1 {
    font-size: 2rem;
    letter-spacing: 1px;
}

.logo .mantra {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--secondary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.btn-login {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 5px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

/* Main Content Area */
.content-area {
    flex: 1;
    padding: 3rem 0;
}

/* Footer Styles */
.main-footer {
    background-color: #222;
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001; /* Keeps the button clickable above the menu */
    }

    /* Animate the hamburger icon into an X */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Sidebar Menu */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Start completely off-screen to the right */
        left: auto;
        width: 75%; /* Menu takes up 75% of screen width */
        height: 100vh;
        background-color: var(--primary-color);
        transition: right 0.3s ease-in-out;
        box-shadow: -10px 0 15px rgba(0,0,0,0.5);
        z-index: 1000;
        padding-top: 5rem; /* Space at top so items aren't behind the header */
    }

    /* Slide the menu in when active */
    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center; /* Center the links */
        gap: 2rem;
    }

    /* Shrink the header logo */
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo .mantra {
        font-size: 0.8rem;
    }

    /* Prevent large text from breaking the screen width */
    .content-area h1,
    .content-area h2 {
        font-size: 1.8rem !important;
        word-wrap: break-word;
        line-height: 1.2;
    }
}