
body {
    font-family: Arial, sans-serif;
    background: url('images/colorbg.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    color:#5e17eb;
    text-align: center;
    min-height: 100vh;
    
}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fafcfe;
    padding: 10px 20px;
}

.ul-menu {
    margin: 10px 0;
    padding: 15px;
    
}

.li-menu {
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}


.logo img {
    height: 150px;
}
.home img {
    height: 25px;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
nav ul li {
    margin: 0 15px;
}
nav ul li a {
    color: #5e17eb;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
}
main {
    padding: 20px;
    justify-content: center;
}


/* Course Grid */
.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive */
    gap: 50px; /* More space between cards */
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
    perspective: 1000px; /* Enables 3D flipping */
}

h1, p {
    margin-bottom: 20px;
}
/* Course Card */
.course-card {
    position: relative;
    width: 100%;
    height: 220px; /* Increased height for better readability */
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
    
}

/* Flip effect on click */
.course-card.flipped {
    transform: rotateY(180deg);
}

/* Front & Back Faces */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-weight: bold;
}

/* Front Side with Random Colors */
.card-front {
    color: white;
    background: linear-gradient(135deg, #ff7eb3, #ff758c); /* Gradient Colors */
    font-size: 24px;
    z-index: 2;
}

/* Different colors for each card */
.course-card:nth-child(1) .card-front { background: linear-gradient(135deg, #8a79d5, #2881da); }
.course-card:nth-child(2) .card-front { background: linear-gradient(135deg, #5e17eb, #9c28da); }
.course-card:nth-child(3) .card-front { background: linear-gradient(135deg, #cb6ce6, #2bc0a7); }
.course-card:nth-child(4) .card-front { background: linear-gradient(135deg, #36a2eb, #5f5dc7); }
.course-card:nth-child(5) .card-front { background: linear-gradient(135deg, #5e17eb, #ff8800); }
.course-card:nth-child(6) .card-front { background: linear-gradient(135deg, #36a2eb, #007bb5); }
.course-card:nth-child(7) .card-front { background: linear-gradient(135deg, #cb6ce6, #f9d423); }
.course-card:nth-child(8) .card-front { background: linear-gradient(135deg, #5e17eb, #78cc6d); }
.course-card:nth-child(9) .card-front { background: linear-gradient(135deg, #8a79d5, #5f5dc7); }

/* Back Side */
.card-back {
    background: #cb6ce6;
    color: white;
    font-size: 16px;
    text-align: center;
    padding: 20px;
    transform: rotateY(180deg);
    z-index: 1;
}

/* Know More Button */
.know-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: white;
    color: #cb6ce6;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.know-more:hover {
    background: #fff;
    color: #a04cb5;
}

.image-educator img {
    width: 25%;
    max-width: 200px;
}


.image-educator table {
    border-collapse: collapse;
    border: none;
    width: 100%;
}

.image-educator td {
    border: none; /* Ensure table cells also have no border */
    text-align: center; /* Optional: Center align text */
    padding: 10px; /* Optional: Add spacing for better layout */
}

.footer {
    text-align: center;
    margin: 30px;
    font-style: italic;
    color: #5e17eb;
}

.announcement-container {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #5e17eb;
    color: white;
}

.contact-info {
    margin-top: 20px;
    font-size: 16px;
}

.enroll-button {
    display: inline-block;
    background: #ff5722;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.enroll-button:hover {
    background: #e64a19;
}

.content-container {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}
h1 {
    color: #ff5722;
    text-align: center;
}
h2 {
    color: #5e17eb;
}
ul {
    list-style: none;
    padding: 0;
}
ul li {
    
    margin: 10px 0;
    padding: 15px;

}
.emoji {
    font-size: 18px;
    font-weight: bold;
    color: #5e17eb;
}

.highlight {
    font-weight: bold;
    color: #ff5722;
}

.contact-container {
    width: 100%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    display: flex;
    
    
}

/* Left Section */
.contact-left {
    width: 50%;
}

/* Right Section */
.contact-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Right Top: Business Hours */
.business-hours {
    margin-bottom: 40px;
}

/* Right Bottom: Follow Us */
.social-links a {
    margin-right: 15px;
    text-decoration: none;
}

.social-links img {
    width: 40px;
}

/* Responsive for Small Screens */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .contact-left, .contact-right {
        width: 100%;
    }
}



/* Center container for images */
.image-container {
    position: relative;
    max-width: 1000px; /* Ensures it adapts to screen */
    width: 100%; /* Makes it responsive */
    margin: 0 auto;
}

/* Summer camp image */
.summercamp {
    width: 100%;
    height: auto;
    display: block;
}

/* GIF overlay */
.gif-overlay {
    position: absolute;
    top: 40%;
    left: 20%;
    transform: translate(-50%, -50%);
    width: 20%;
    max-width: 120px; /* Restrict maximum size */
    height: auto;
}

/* Button Wrapper */
.button-container {
    position: absolute;
    bottom: 15%;
    right: 15%;
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Button Image */
.button-image {
    width: 100%;
    height: auto;
}

/* Enroll Now Text */
.button-text {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    font-size: 16px;
    font-weight: bold;
    color: #cb6ce6;
    font-family: Arial, sans-serif;
}

/* 🔹 Media Queries for Responsiveness 🔹 */

/* For tablets */
@media (max-width: 768px) {
    .gif-overlay {
        top: 40%;
        width: 20%;
    }

    .button-container {
        width: 130px;
        bottom: 8%;
        right: 8%;
    }

    .button-text {
        font-size: 14px;
    }
}

/* For mobile devices */
@media (max-width: 480px) {
    .gif-overlay {
        top: 40%;
        width: 25%;
    }

    .button-container {
        width: 100px;
        bottom: 6%;
        right: 6%;
    }

    .button-text {
        font-size: 12px;
    }
}
