/* Global Resets & Base Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Lato', Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f4f7f6; /* Light Grayish Blue/Off-white */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', sans-serif;
    color: #2c3e50; /* Midnight Blue */
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

a {
    color: #3498db; /* Peter River Blue */
    text-decoration: none;
}

a:hover {
    color: #2980b9; /* Belize Hole Blue */
    text-decoration: underline;
}

ul {
    margin-bottom: 1em;
    padding-left: 20px;
}

/* --- Index Page Specific Styles --- */
body > header { /* Target only the main page header, not section headers */
    background-color: #2c3e50; /* Midnight Blue */
    color: #ffffff;
    padding: 2em 1em;
    text-align: center;
}

body > header h1 {
    color: #ffffff;
    margin: 0;
    font-size: 2.5em;
}

.tagline {
    font-size: 1.2em;
    margin-top: 0.5em;
    color: #ecf0f1; /* Clouds - light gray for tagline */
}

#course-overview {
    max-width: 900px;
    margin: 2em auto;
    padding: 1em;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#introduction, #lesson-list {
    padding: 1.5em;
    margin-bottom: 1.5em;
    border-bottom: 1px solid #ecf0f1; /* Light separator */
}

#lesson-list ul {
    list-style: none;
    padding: 0;
}

#lesson-list li a {
    display: block;
    padding: 0.8em 1em;
    margin-bottom: 0.5em;
    background-color: #ecf0f1; /* Clouds */
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#lesson-list li a:hover {
    background-color: #bdc3c7; /* Silver */
    color: #2c3e50;
    text-decoration: none;
}

.cta-button {
    display: inline-block;
    background-color: #3498db; /* Peter River Blue */
    color: #ffffff;
    padding: 0.8em 1.5em;
    font-size: 1.1em;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #2980b9; /* Belize Hole Blue */
    color: #ffffff;
    text-decoration: none;
}

body > footer { /* Target only the main page footer */
    text-align: center;
    padding: 1em;
    margin-top: 2em;
    font-size: 0.9em;
    color: #7f8c8d; /* Asbestos */
}


/* --- Course Page (fullPage.js) Specific Styles --- */
.section {
    text-align: left;
    padding: 20px;
    box-sizing: border-box;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto; /* Centered content within section */
    padding: 20px;
    background: rgba(255, 255, 255, 0.9); /* Slight transparency if section bg is image/color */
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    height: auto; /* Allow content to define height */
    max-height: 90vh; /* ensure it fits viewport */
    overflow-y: auto; /* Add scroll for content overflow */
}

.section h1 {
    font-size: 2em;
    margin-bottom: 0.8em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.3em;
}

.section h2 {
    font-size: 1.5em;
    color: #34495e; /* Wet Asphalt */
    margin-top: 1.2em;
}

.action-step {
    background-color: #e8f6fd; /* Very light blue, almost white */
    border-left: 5px solid #3498db; /* Peter River Blue */
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}

.action-step h3 {
    color: #2c3e50; /* Midnight Blue */
    margin-top: 0;
}

/* Navigation Buttons */
#fp-nav-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 10px;
}

#fp-nav-buttons button {
    background-color: #3498db; /* Peter River Blue */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#fp-nav-buttons button:hover {
    background-color: #2980b9; /* Belize Hole Blue */
}

#fp-nav-buttons button:disabled {
    background-color: #bdc3c7; /* Silver - for disabled state */
    cursor: not-allowed;
}

/* Progress Bar */
#progressBarContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px; /* Slimmer bar */
    background-color: #bdc3c7; /* Silver */
    z-index: 100;
}

#progressBar {
    width: 0%; /* Initial width */
    height: 100%;
    background-color: #3498db; /* Peter River Blue */
    transition: width 0.25s ease-out;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    body > header h1 {
        font-size: 2em;
    }
    .tagline {
        font-size: 1em;
    }
    .content-wrapper {
        padding: 15px;
        margin: 10px; /* Give some space from screen edges */
    }
    .section h1 {
        font-size: 1.8em;
    }
    .section h2 {
        font-size: 1.3em;
    }
    #fp-nav-buttons {
        /* Could stack them or make them smaller if needed */
        bottom: 10px;
    }
    #fp-nav-buttons button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    body > header h1 {
        font-size: 1.8em;
    }
    .content-wrapper {
        padding: 10px;
    }
    .section h1 {
        font-size: 1.5em;
    }
    .section h2 {
        font-size: 1.2em;
    }
    #fp-nav-buttons {
        width: 95%; /* Make button container slightly less than full width */
    }
    #fp-nav-buttons button {
       flex-grow: 1; /* Make buttons take available space if stacked */
    }
}

/* Fullpage.js specific overrides if needed */
/* e.g. .fp-completely { background-color: #f4f7f6 !important; } */
/* Ensure sections have a default background if not otherwise set by fullpage */
.fp-section {
    background-color: #f4f7f6;
}
/* Ensure table of contents on fullpage.js is not shown (if default is enabled) */
#fp-nav {
    display: none !important;
}
