/* Root Variables */
:root {
    --main-bg-color: #2d6187;
    --accent-color: #ffab00;
    --text-color: #ffffff;
    --error-color: #dc3545;
    --success-color: #28a745;
    --link-color: #007bff;
    --background-light: #f9f9f9;
    --text-dark: #333333;
}

/* Base Reset */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom right, var(--main-bg-color), #7cc6fe);
    color: var(--text-dark);
    text-align: center;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal overflow */
    min-height: 100vh; /* Ensure full height */
    display: flex; /* Flexbox layout */
    flex-direction: column; /* Stack children vertically */
}

/* Content Wrapper to Push Footer Down */
.content-wrapper {
    flex: 1; /* Ensures content takes up available space above footer */
}

/* Container */
.container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px; /* Adjusted padding to match the menu */
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    width: 100%; /* Matches the menu's width */
    max-width: 1000px; /* Matches the menu's max-width */
    text-align: center;
}

/* Intro Content */
.intro-content {
    text-align: center;
    margin-bottom: 20px;
}

.intro-content h1 {
    color: var(--main-bg-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.intro-content p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.intro-content .intro-banner {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Course Actions */
.course-actions {
    margin-top: 20px;
}

.course-actions p {
    margin: 10px 0;
    font-size: 1rem;
}

.course-actions .button-link, .course-actions button {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.course-actions .button-link:hover, .course-actions button:hover {
    background-color: #e09500;
}

/* Success and Error Messages */
.success-message {
    color: var(--success-color);
    font-weight: bold;
    margin: 20px 0;
}

.error-message {
    color: var(--error-color);
    font-weight: bold;
    margin: 20px 0;
}

/* Footer */
.footer {
    width: 100%; /* Make the footer span the full width of the page */
    margin: 0; /* Remove any automatic margins */
    padding: 10px 20px; /* Adjusted padding */
    background-color: var(--main-bg-color); /* Ensure consistent background color */
    color: var(--text-color); /* Text color */
    text-align: center; /* Center-align content */
    border-radius: 0; /* Remove rounded corners */
    border-top: 2px solid var(--accent-color); /* Keep the top border for style */
    box-shadow: none; /* Remove any shadow */
    flex-shrink: 0; /* Prevent the footer from shrinking */
    position: relative; /* Allow footer to remain at the bottom */
}

/* Footer Logo */
.footer img {
    max-width: 50px; /* Slightly reduced size for a clean look */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 5px; /* Add slight spacing below the logo */
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .intro-content h1 {
        font-size: 1.5rem;
    }

    .course-actions .button-link, .course-actions button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}
