/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
header {
    background: #333;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cc{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: right;
    align-items: center;
    background: #314C8F;
}

body nav ul li {
    padding: 1em;
}

body nav ul li a {
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}

/* Hero Section Styles */
#hero {
    position: relative;
    background: #333;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mySlides {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none; /* Start with all slides hidden */
}

.mySlides img {
    width: 100%;
    height: 100%; /* Full height of the container */
    object-fit: cover; /* Ensures the image covers the container without distortion */
}

/* Hero Text Styles */
hero-text {
    background-color: white;
    flex: 1;
    min-width: 50px;
    margin-bottom: 20px;
    opacity: 0.8; /* Adjust opacity for transparency */
}

.hero-text p {
    color: #314C8F; /* Set text color to blue */
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-10%, -10%);
    color: white;
    text-align: center;
    z-index: 2;
    padding: 0 1em;
}

.hero-text h1 {
    font-size: 2.5em; /* Adjusted font size */
    margin-bottom: 0.5em;
    opacity: 1.0; /* Adjust opacity for transparency */
}

.hero-text p {
    font-size: 1.25em; /* Adjusted font size */
    opacity: 1.0; /* Adjust opacity for transparency */
}

/* Fade-in/out animation */
@keyframes fadeInOut {
    0%, 100% { opacity: 0; } /* Invisible at the start and end */
    20%, 80% { opacity: 1; } /* Fully visible in between */
}

/* Slide-in animation */
@keyframes slideIn {
    0% { transform: translateX(100%); opacity: 0; } /* Start offscreen */
    20% { transform: translateX(0); opacity: 1; } /* Slide into view */
    80% { transform: translateX(0); opacity: 1; } /* Stay in view */
    100% { transform: translateX(-100%); opacity: 0; } /* Slide out of view */
}

/* Slideshow animation classes */
.fade-slide {
    animation: fadeInOut 16s ease-in-out infinite, slideIn 16s ease-in-out infinite;
}

.active-slide {
    display: block; /* Only show the active slide */
}

/* Add smooth transitions between images */
.slideshow-container {
    transition: opacity 1s ease-in-out;
}


/* Summary Section Styles */
.summary {
    padding: 2em 1em;
    text-align: center;
    background: #f9f9f9;
}

.summary h2 {
    font-size: 2em;
    color: #314C8F;
}

.summary p {
    font-size: 1em;
    color: #333;
}

/* Events Section Styles */
.events {
    padding: 2em 1em;
    background-color: white; /* The background color */
    background-image: url('/image/waveblue.jpg'); /* The background image */
    background-size: cover; /* Ensures the image covers the entire container */
    background-position: bottom; /* Centers the background image */
    z-index: -1; /* Ensures the membership options stay above the background */
}

.events h2 {
    font-size: 2em;
    color: white;
}

.event-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
}

.event-cards .card {
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent background for glass effect */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border */
    border-radius: 15px;
    padding: 1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Slightly darker shadow */
    backdrop-filter: blur(10px); /* Blur effect for glass appearance */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    width: 350px;
    height: 200px;
    min-width: 200px;
    z-index: 2; /* Ensures the membership options stay above the background */
}

h4 {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Available Courses Section Styles */
.courses {
    padding: 2em 1em;
    background: #d4d3d3;
    background-image: url('/image/green-ground.jpg');
    background-size: cover; /* Ensures the image covers the entire container */
    background-position: bottom; /* Centers the background image */
    transition: transform 0.3s ease; /* Smooth transition */
}

.course:hover {
    transform: scale(1.05); /* Slightly enlarges the card */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.19); /* More pronounced shadow */
    background-color: #d4d3d3; /* Light background change on hover */
}

.courses h2 {
    font-size: 2em;
    color: #314C8F;
    margin-bottom: 1em;
}

.course-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
}

.course-options .course {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 30%;
    min-width: 250px;
} 

.course-options .course h3 {
    margin-top: 0;
}

.course-options .course a {
    display: block;
    margin-top: 1em;
    color: #007bff;
    font-weight: bold;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* Basic styles for the membership section */
#membership {
    padding: 20px;
    text-align: center;
}

#membership::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    background-image: url('/image/waveblue.jpg');
    background-size: cover;
    background-position: top;
    opacity: 0.2; /* Make the background image 60% transparent */
    z-index: -1; /* Place the image behind the content */
}

.membership-options {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 2; /* Ensures the membership options stay above the background */
}

.membership {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.membership:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.membership h3 {
    margin-top: 0;
}

.membership-duration h4 {
    margin-bottom: 10px;
}

.membership-duration ul {
    list-style-type: none;
    padding: 0;
}

.membership-duration ul li {
    margin: 5px 0;
}

.membership-duration a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.membership-duration a:hover {
    text-decoration: underline;
}

.membership a {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.membership a:hover {
    text-decoration: underline;
}

.membership-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 25px;
}




h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #39B3E6    ;
}

.summary p {
    font-size: 18px;
    line-height: 1.6;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-form label {
    font-weight: bold;
}

.payment-form input[type="text"], .payment-form input[type="email"], .payment-form input[type="number"], .payment-form input[type="submit"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

.payment-form input[type="submit"] {
    background-color: #28a745;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.payment-form input[type="submit"]:hover {
    background-color: #218838;
}
/* Specific Styles for Events Section */
#events {
    background-image: url('/image/bg-up.jpg'); /* Replace with your image path */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: bottom right; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    padding: 1px 0; /* Adds padding to ensure content inside is not cramped */
    color: white; /* Changes text color to ensure readability */
}


#events h2 {
    color: #4CAF50;
}

#membership h2, p {
    color: #314C8F;
}

/* #events p {
    font-size: 18px;
    color: #666;
    font-style: italic;
} */

/* Specific Styles for Training Section */
#training {
    background-image: url('/image/bg-down.jpg'); /* Replace with your image path */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: top right; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    padding: 1px 0; /* Adds padding to ensure content inside is not cramped */
    color: white; /* Changes text color to ensure readability */
}

#training h2 {
    color: #2196F3;
}

/* #training p {
    font-size: 18px;
    color: #666;
    font-style: italic;
} */



/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: left;
    font-family: Arial, sans-serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.footer-content > div {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-content h3 {
    font-size: 18px;
    color: #39B3E6;
    margin-bottom: 10px;
    border-bottom: 2px solid #555;
    padding-bottom: 5px;
}

.footer-content h5 {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content p,
.footer-content address {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-content ul li {
    margin-bottom: 5px;
}

.footer-content ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content ul li a:hover {
    color: #ddd;
}

.footer-content address a {
    color: #fff;
    text-decoration: none;
}

.footer-content address a:hover {
    color: #ddd;
}

.social-login {
    text-align: center;
    padding-top: 20px;
}

.social-login a {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    color: #fff;
    background-color: #444;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-login a:hover {
    background-color: #555;
}

/* Specific styles for social buttons */
.social-login .facebook {
    background-color: #3b5998;
}

.social-login .google {
    background-color: #db4437;
}

.social-login .twitter {
    background-color: #1da1f2;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-content > div {
        margin-bottom: 20px;
    }
}


/* Responsive Styles */
@media (min-width: 576px) {
    h2 {
        font-size: 2rem;
        margin-top: 1rem;
        margin-bottom: 1.75rem;
    }
}

@media (max-width: 1200px) {
    header nav ul {
        flex-direction: column;
        padding: 0;
    }

    header nav ul li {
        text-align: center;
        padding: 0.5em;
    }

    #hero {
        height: 50vh; /* Adjusted height */
    }

    .hero-text h1 {
        font-size: 2em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .event-cards .card,
    .course-options .course {
        width: 45%;
    }

    footer .footer-content {
        flex-direction: column;
        align-items: center;
    }

    footer .footer-content > div {
        width: 90%;
    }
}

@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        padding: 0;
    }

    header nav ul li {
        text-align: center;
        padding: 0.5em;
    }

    #hero {
        height: 40vh; /* Adjusted height */
    }

    .hero-text h1 {
        font-size: 1.5em;
    }

    .hero-text p {
        font-size: 0.9em;
    }

    .event-cards .card,
    .course-options .course {
        width: 80%;
    }

    footer .footer-content {
        flex-direction: column;
        align-items: center;
    }

    footer .footer-content > div {
        width: 90%;
    }
}

@media (max-width: 480px) {
    header nav ul {
        flex-direction: column;
        padding: 0;
    }

    header nav ul li {
        text-align: center;
        padding: 0.5em;
    }

    #hero {
        height: 30vh; /* Adjusted height */
    }

    .hero-text h1 {
        font-size: 1.2em;
    }

    .hero-text p {
        font-size: 0.8em;
    }

    .event-cards .card,
    .course-options .course {
        width: 100%;
    }

    footer .footer-content {
        flex-direction: column;
        align-items: center;
    }

    footer .footer-content > div {
        width: 100%;
    }
}