/* --- 1. Global Resets and Typography --- */
:root {
    --bitubi-red: #E53935; /* Primary Accent */
    --text-dark: #333333; /* Primary Text */
    --text-light: #FFFFFF; /* Light Text */
    --light-grey: #CCCCCC; /* Secondary Accent/Borders */
    --background: #FFFFFF; /* Background */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background);
    padding-top: 60px; /* Space for fixed header */
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { color: var(--bitubi-red); }

p { margin-bottom: 1em; }

/* --- 2. Header and Navigation (Mobile First) --- */
.main-header {
    background-color: var(--text-light);
    border-bottom: 1px solid var(--light-grey);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo-container img {
    height: 40px; /* Adjust as needed */
    width: auto;
}

.main-nav .nav-links {
    list-style: none;
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 60px; /* Below the header */
    left: 0;
    background-color: var(--text-light);
    border-top: 1px solid var(--light-grey);
}

.main-nav .nav-links.active {
    display: flex; /* Show when active (JavaScript required) */
}

.main-nav .nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 15px 20px;
    display: block;
    border-bottom: 1px solid var(--light-grey);
}

.menu-toggle {
    cursor: pointer;
    display: block; /* Hamburger icon visible on mobile */
}

/* --- 3. Hero Section --- */
.hero-section {
    padding: 40px 20px;
    text-align: center;
    background-color: #F7F7F7; /* Subtle off-white for contrast */
}

.cta-button {
    display: inline-block;
    background-color: var(--bitubi-red);
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #A52B28; /* Darker red on hover */
}

/* --- 4. Course Phases (Responsive Grid) --- */
.course-phases {
    padding: 40px 20px;
    text-align: center;
}

.phase-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.phase {
    background-color: #EEEEEE;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* --- 5. Footer --- */
.main-footer {
    background-color: var(--text-dark);
    color: var(--light-grey);
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
}

.main-footer a {
    color: var(--light-grey);
    text-decoration: none;
}

/* --- 6. Desktop Overrides (Min-width for larger screens) --- */
@media (min-width: 768px) {
    
    /* Header/Navigation on Desktop */
    .menu-toggle {
        display: none; /* Hide hamburger on desktop */
    }

    .main-nav .nav-links {
        display: flex; /* Show links horizontally on desktop */
        flex-direction: row;
        position: static;
        width: auto;
        border: none;
        align-items: center;
    }
    
    .main-nav .nav-links a {
        border-bottom: none;
        padding: 10px 15px;
    }

    /* Course Phases on Desktop (3 columns) */
    .phase-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 20px auto 0;
    }
    
    .hero-section {
        padding: 80px 40px;
    }
}