/* General Styling */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-padding-top: 70px; /* Adjust the value based on your nav bar height */
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    height: 600px; /* Set the height for the hero section */
    background-image: url('/images/home/courses/Classroom-AdobeStock_469111730.jpg'); /* Add your hero background image */
    background-size: cover; /* Ensure the background image covers the section */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent background image repeat */
    display: flex; /* Use flex to center the content */
    align-items: center; /* Vertically center the overlay */
    justify-content: center; /* Horizontally center the overlay */
    position: relative;
    text-align: center; /* Ensure the text or overlay is centered */
    padding-top: 80px; /* Add padding to push the image down */
}

/* Image Overlay */
.image-overlay img {
    max-width: 80%; /* Scale the image down initially */
    height: auto; /* Maintain the aspect ratio */
    max-height: 500px; /* Set a max height to prevent it from being too large */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5)); /* Add shadow for effect */
    transition: all 0.3s ease-in-out; /* Smooth scaling on resize */
    
}

/* Responsive for Smaller Screens */
@media (max-width: 768px) {
    .image-overlay img {
        max-width: 90%; /* Increase the size slightly on smaller screens */
    }
}

@media (max-width: 520px) {
    .image-overlay img {
        max-width: 95%; /* Ensure the image takes up more space on mobile */
    }
}


/* Course Section */
.course-section {
    min-height: 350px;
    display: flex;
    align-items: flex-start; /* Pin content to the top */
    padding: 40px;
    color: #333;
}

/* Layout for Larger Screens */
.course-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Pin image and text to the top */
    flex-wrap: nowrap; /* Prevent wrap on larger screens */
    gap: 50px; /* 50px gap between text and image */
}

.course-text {
    max-width: 50%; /* Half of the available space */
    color: white;
    padding: 0 20px; /* Add padding on smaller screens */
}

.course-text h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.course-text h3 {
    font-size: 1.5em; /* Slightly smaller than h2 */
    font-weight: normal;
    color: #cccccc; /* Adjust color as needed */
    margin-bottom: 20px;
}

.course-text p {
    font-size: 1.3em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-image {
    max-width: 40%; /* Slightly less than half width */
    align-self: flex-start; /* Align image to the top */
}

.course-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .course-content {
        flex-direction: column; /* Stack vertically */
        text-align: center;
        gap: 20px; /* Reduce gap for smaller screens */
        align-items: center;
    }

    .course-text {
        max-width: 100%;
        padding: 0 20px; /* 20px padding on smaller screens */
    }

    .course-text h3 {
        font-size: 1.5em; /* Slightly smaller than h2 */
        font-weight: normal;
        color: #cccccc; /* Adjust color as needed */
        margin-bottom: 20px;
    }

    .course-image {
        order: -1; /* Move image before paragraph */
        max-width: 80%; /* Further scale image down */
        margin-top: 10px;
        margin: 0 auto;
        
    }

    .course-image img {
        margin: 0 auto;
    }
}

@media (max-width: 520px) {
    .course-content {
        gap: 20px; /* Consistent gap for very small screens */
    }

    .course-image img {
        max-width: 80%; /* Ensure image scales down appropriately */
    }
}





/* Enrollment Section */
.enrollment-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
    
}

.enrollment-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.enrollment-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.enrollment-form {
    max-width: 800px;
    margin: 0 auto;
}

.enrollment-form label {
    display: block;
    margin: 10px 0 5px;
}

.enrollment-form input,
.enrollment-form select,
.enrollment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.captcha-container {
    margin-bottom: 20px;
}



/* Back to Top Button */
.back-to-top-container {
    text-align: center;
    padding: 40px;
}

.back-to-top-btn {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.back-to-top-btn:hover {
    background-color: #0056b3;
}



/* ///////////////// FOOTER ADDRESS STYLING  ////////////////// */
.footer-address p {
    text-align: center;
    margin-top: 20px;
    
    font-size: 1.5em;
}

.footer-address a {
    color: #0ae1a4;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
    
}

.footer-address a:hover {
    color: #fbff00;
    filter: drop-shadow(0 0 5px rgb(1, 1, 1));
}

.footer-copyright {
    margin-top: 30px;
   
}