/* General Styles */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-color: #f5f5f5; /* Light gray background */
    color: #333; /* Dark gray text */
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    background-color: #004080; /* Dark blue */
    color: white;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-right: 20px; /* Add padding to account for the scrollbar */
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #0059b3; /* Lighter blue */
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar1, .menu-toggle .bar2, .menu-toggle .bar3 {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
}

/* Banner Styles */
.banner {
    background: url(Images/banner.webp) no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    width: 100%;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 20px;
}

.banner h1 {
    font-size: 48px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Text shadow for readability */
}

.banner p {
    font-size: 24px;
    margin: 10px 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Text shadow for readability */
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #008080; /* Teal */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #00cccc; /* Lighter teal */
}

/* Section Styles */
section {
    padding: 60px 20px;
    text-align: center; /* Center align all section content */
}

section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center; /* Center align the section title */
}

.about-us, .contact-info {
    background-color: #e6f2ff; /* Very light blue */
}

.about-us p, .contact-info p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* Courses Section */
.courses-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.course-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    max-width: 30%;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.course-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.course-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
}

.course-card h2 {
    font-size: 24px;
    margin: 15px 0 10px;
}

.course-card p {
    font-size: 16px;
    margin-bottom: 15px;
}

.course-card a {
    margin-top: auto;
}

.course-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Gallery Section */
.gallery {
    background-color: #ffffff;
}

.gallery h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Reviews Section */
.reviews {
    background-color: #f9f9f9;
}

.reviews h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.reviews-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.review-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.review-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.review-card p {
    font-size: 16px;
    margin-bottom: 10px;
}

.review-card h3 {
    font-size: 18px;
    margin-top: 10px;
}

/* Contact Info Section */
.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-info a {
    color: #004080; /* Dark blue */
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #0059b3; /* Lighter blue */
}

.map-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.map-container iframe {
    border: 0;
    width: 100%;
    max-width: 600px;
    height: 450px;
}

/* Footer Styles */
.footer {
    background-color: #004080; /* Dark blue */
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin: 10px 0;
}

.footer-column h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-column p, .footer-column ul, .footer-column li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #ddd;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-bottom {
    margin-top: 20px;
    position: relative;
}


/* Microsite Specific Styles */

/* Course Banner Styles */
.course-banner {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
}

.course-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 1;
}

.course-banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.course-banner h1 {
    font-size: 48px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Text shadow for readability */
}

.course-banner p {
    font-size: 24px;
    margin: 10px 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Text shadow for readability */
}

/* Course Details Styles */
.course-details {
    padding: 40px 20px;
    background-color: #fff;
}

.course-details-content {
    max-width: 800px;
    margin: 0 auto;
}

.course-details h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.course-details h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.course-details p {
    font-size: 18px;
    margin-bottom: 20px;
}

.course-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.course-details ul li {
    font-size: 18px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.course-details ul li::before {
    content: "\2022";
    color: #ff6347; /* Red-orange */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Timer Styles */
.timer {
    margin-top: 20px;
    font-size: 18px;
    color: #ff6347; /* Red-orange, stands out and complements the theme */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 20px;
        text-align: center;
        border-bottom: 1px solid #555;
    }

    .menu-toggle {
        display: block;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        max-width: 300px;
        text-align: center;
    }

    .banner h1 {
        font-size: 36px;
    }

    .banner p {
        font-size: 18px;
    }

    .banner-content {
        padding: 10px;
    }

    .about-us h2, .contact-info h2, .course-details h2 {
        font-size: 28px;
    }

    .about-us p, .contact-info p, .course-details p {
        font-size: 16px;
    }

    .courses-container {
        flex-direction: column;
        align-items: center;
    }

    .course-card {
        max-width: 100%;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }

    .reviews-container {
        flex-direction: column;
        align-items: center;
    }

    .map-container iframe {
        width: 100%;
        height: 300px;
    }

    .course-banner h1 {
        font-size: 36px;
    }

    .course-banner p {
        font-size: 18px;
    }

    .course-banner-content {
        padding: 10px;
    }

    .course-details h3 {
        font-size: 22px;
    }

    .course-details p, .course-details ul li {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }

    .cta-button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .course-card h2 {
        font-size: 20px;
    }

    .course-card p {
        font-size: 14px;
    }

    .gallery h2, .reviews h2, .contact-info h2 {
        font-size: 28px;
    }

    .about-us p, .contact-info p, .course-details p {
        font-size: 16px;
    }

    .course-banner h1 {
        font-size: 28px;
    }

    .course-banner p {
        font-size: 16px;
    }

    .course-details h2 {
        font-size: 24px;
    }

    .course-details h3 {
        font-size: 20px;
    }

    .course-details p, .course-details ul li {
        font-size: 14px;
    }
}


