/* General body and section styles */
body {
    background: rgb(192, 213, 148);
    color: rgb(255, 255, 255);
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Header and navigation styles */
header {
    background: rgb(23, 92, 125);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Take up full width */
}

.header-nav {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.logo a {
    background-image: url("Images/Caterpillarlogo.png");
    background-size: 140px;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    width: 160px;
    height: 160px;
    text-indent: -9999px; /* Hide text */
}

h1 {
    flex-grow: 1; /* Make the title grow and center */
    color: white;
    justify-content: center;
    font-size: 2em;
    margin: 0;
    padding: 0;
}

/* Positioning the menu icon in the top-right corner */
.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 20px; /* Place it at the top */
    right: 20px; /* Align it to the right */
}

.menu-icon {
    width: 40px;
    height: 40px;
    display: inline-block;
}


/* Pop-up menu */
.popup-menu {
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: white;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 10;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.popup-menu.open {
    max-height: 300px;
    padding: 20px;
    opacity: 1;
    pointer-events: auto;
}

.popup-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.popup-menu ul li {
    margin-bottom: 10px;
}

.popup-menu ul li a {
    color: rgb(53, 53, 58);
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-menu ul li a:hover {
    color: rgb(192, 213, 148);
}

/* Styling for buttons */
.scroll-btn {
    background-color: rgb(212, 212, 210);
    color: rgb(78, 78, 78);
    padding: 10px 20px;
    border: 1px solid rgb(212, 212, 210);
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background-color: rgb(192, 213, 148);
    border-color: rgb(192, 213, 148);
    color: rgb(53, 53, 58);
}

/* About Section */
#about {
    background-color: rgb(192, 213, 148);
    color: rgb(78, 78, 78);
    padding: 60px 40px;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
}

/* Grid container for the figures */
.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust grid for panels */
    gap: 40px;
    justify-items: center;
    align-items: start;
}

/* Common figure styling */
#about figure {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 600px; /* Larger max-width to accommodate text */
    height: auto;
}

#about figure:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Styling for images inside figures */
#about figure img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

#about figcaption {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    color: rgb(53, 53, 58);
}

#about p {
    color: black;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 10px;
}

/* Larger info panels */
.info-panel {
    background-color: rgb(78, 78, 78);
    color: white;
    width: 100%;
    max-width: 500px; /* Increased max-width */
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.info-panel p {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-panel figcaption {
    font-size: 20px;
    margin-bottom: 10px;
    color: #f0f0f0;
    font-weight: bold;
    text-transform: uppercase;
}


.vision-statement figcaption {
    font-size: 20px;
    margin-bottom: 10px;
    color: #f0f0f0;
    font-weight: bold;
    text-transform: uppercase;
}

/* Contact Panel */
.contact-panel {
    background-color: rgb(212, 212, 210);
    color: rgb(53, 53, 58);
    padding: 60px;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    text-align: left;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }

    .header-nav {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 10px 0;
    }

    .logo a {
        position: static;
        margin: 20px auto;
        transform: none;
    }

    #about figure {
        width: 90%;
    }

    .about-container {
        gap: 10px;
    }

    .info-panel {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    #about figure {
        width: 100%;
    }

    .contact-panel {
        padding: 20px;
        max-width: 100%;
    }

    .scroll-btn {
        width: 100%;
    }

    .popup-menu ul li a {
        font-size: 14px;
    }

    .info-panel {
        max-width: 100%;
    }
}
/* Contact panel styling */
.contact-panel {
    background-color: rgb(212, 212, 210);
    color: rgb(53, 53, 58);
    padding: 60px; /* Increased padding for larger screens */
    margin: 40px auto;
    max-width: 800px; /* Increased width for larger screens */
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow for contact panel */
    text-align: left;
}

/* Container for both login and signup forms */
.login-signup-wrapper {
    display: flex; /* Use flexbox to arrange them side by side */
    justify-content: center; /* Center the forms horizontally */
    gap: 20px; /* Space between the login and signup forms */
    padding: 20px;
}

/* Login/Signup form container */
.login-signup-container {
    background-color: white;
    color: rgb(53, 53, 58);
    padding: 15px; /* Reduced padding */
    width: 280px; /* Adjusted width for side-by-side layout */
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Title styling for login/signup menu */
.login-signup-container h2 {
    color: rgb(23, 92, 125); /* Change title color */
    font-size: 20px; /* Reduced font size */
    margin-bottom: 15px;
}

/* Form styling for smaller login/signup forms */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 8px;
    font-size: 14px; /* Reduced font size */
}

input, textarea {
    margin-top: 5px;
    padding: 8px;
    font-size: 14px;
    border: 1px solid rgb(53, 53, 58);
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

button {
    margin-top: 15px;
    padding: 8px 12px;
    font-size: 14px;
    background-color: rgb(53, 53, 58);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: rgb(78, 78, 78);
}

 /* Additional inline CSS for video layout */
 video {
    display: block;
    margin: 20px auto; /* Center the video with margin */
    border-radius: 10px; /* Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for a nice effect */
}

#test-section {
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
}

#test-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* Footer styling */
footer {
    background-color: rgb(41, 41, 41);
    color: white;
    text-align: center;
    padding: 30px; /* More padding for the footer */
}
       /* Additional inline CSS for video layout */
       video {
        display: block;
        margin: 20px auto;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .scroll-btn {
        display: block;
        width: 200px;
        margin: 20px auto;
        padding: 10px 20px;
        background-color: #3498db;
        color: #fff;
        text-align: center;
        text-decoration: none;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .scroll-btn:hover {
        background-color: #2980b9;
    }

    /* Style to highlight the button */
    .highlight {
        background-color: #e74c3c !important;
        transition: background-color 0.5s ease;
    }

    /* Initially hide the test section */
    #test-section {
        display: none;
        margin: 40px auto;
        max-width: 800px;
        text-align: center;
        background-color: #f9f9f9;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    #test-section h2 {
        font-size: 28px;
        margin-bottom: 20px;
        color: #2c3e50;
    }

    .test-form {
        text-align: left;
    }

    .test-question {
        margin-bottom: 20px;
    }

    .test-question label {
        display: block;
        font-weight: bold;
        margin-bottom: 8px;
        color: #34495e;
    }

    .test-question input[type="radio"] {
        margin-right: 10px;
    }

    .test-question div {
        margin-bottom: 10px;
    }

    .test-submit {
        display: inline-block;
        padding: 10px 20px;
        background-color: #2ecc71;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s ease;
    }

    .test-submit:hover {
        background-color: #27ae60;
    }

    /* Main container for about page */
#about {
    flex-grow: 1;
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Heading styling */
#about h1 {
    font-size: 2.5em;
    color: rgb(41, 41, 41);
    margin-bottom: 20px;
    text-align: center;
}

/* Paragraph text styling */
#about p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: rgb(51, 51, 51);
    text-align: justify;
}

/* Emphasis text styling */
#about em {
    color: rgb(255, 99, 71); /* Highlighted text color */
    font-style: italic;
}

/* Image styling */
#about img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
}

/* Button styling */
#about .cta-button {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 30px;
    background-color: rgb(41, 41, 41);
    color: white;
    text-align: center;
    font-size: 1em;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#about .cta-button:hover {
    background-color: rgb(255, 99, 71);
}

/* Responsive styling for smaller screens */
@media (max-width: 600px) {
    #about {
        padding: 40px 20px;
    }

    #about h1 {
        font-size: 2em;
    }

    #about p {
        font-size: 1em;
    }
}

.course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.course {
    background-color: white;
    color: rgb(53, 53, 58);
    padding: 20px;
    width: 280px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.course h2 {
    font-size: 1.6em;
    color: rgb(23, 92, 125);
    margin-bottom: 10px;
}

.course p {
    font-size: 1em;
    margin-bottom: 15px;
    color: rgb(53, 53, 58);
}

/* Learn More Button Styling */
.course a {
    display: inline-block;
    padding: 8px 12px;
    font-size: 1em;
    color: white;
    background-color: rgb(192, 213, 148);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.course a:hover {
    background-color: rgb(23, 92, 125);
}

    