/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide main nav by default on small screens */
        flex-direction: column;
        position: absolute;
        top: 80px; /* Below header */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    .main-nav.active {
        display: flex; /* Show when active */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .main-nav ul li a {
        display: block;
        padding: 10px 0;
    }

    .main-nav ul li .nav-button {
        margin-left: 0; /* Remove left margin for mobile button */
        width: 80%; /* Make button wider */
        margin: 10px auto; /* Center button */
    }

    .menu-toggle {
        display: block; /* Show toggle button on small screens */
    }
}

/* Basic Section Styling */
.content-section {
    padding: 60px 0;
}

.section-light-bg {
    background-color: #ffffff; /* Changed for contrast */
}

.section-primary-bg {
    background-color: #fffacd; /* Light yellow for contrast */
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    color: #333333;
    text-align: center;
    margin-bottom: 40px;
}

.section-content {
    display: flex;
    flex-wrap: wrap; /* Allow content to wrap */
    justify-content: center;
    align-items: center;
    gap: 30px; /* Space between items */
}

.section-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Hero Section Specifics */
.hero-section {
    position: relative; /* Needed for absolute positioning of video */
    overflow: hidden; /* Hide video overflow */
    background-color: #f0f8ff; /* Fallback background color */
    padding: 100px 0;
    text-align: center;
    display: flex; /* Use flexbox for content centering */
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero section */
}

#hero-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Send video to background */
    transform: translate(-50%, -50%);
    background-size: cover;
}

.hero-content {
    position: relative; /* Ensure content is above video */
    z-index: 1; /* Bring content to front */
    color: #ffffff; /* Adjust text color for better contrast over video */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Stronger text shadow for readability */
    background-image: url('C:\Users\HP\Desktop\kk\new\Junior Kids Learn.png'); /* Image background */
    background-size: cover; /* Cover the entire area */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    padding: 20px 40px; /* Add padding around the content */
    border-radius: 10px; /* Slightly rounded corners */
}

.hero-section h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5em;
    color: #ffffff; /* White text for hero title */
    margin-bottom: 20px;
}

.hero-section .tagline {
    font-size: 1.8em;
    color: #ffffff; /* White text for tagline */
    margin-bottom: 40px;
}

.button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.primary-button {
    background-color: #FF8C00; /* Dark orange */
    color: #EEEEEE;
}

.primary-button:hover {
    background-color: orange;
    transform: translateY(-2px);
}

/* Footer Styling */
.main-footer {
    background-color: #333333; /* Dark background */
    color: #ffffff;
    padding: 50px 0 20px;
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #00FF00; /* Green heading */
}

.footer-col p, .footer-col ul li a {
    font-size: 0.95em;
    line-height: 1.8;
    color: #cccccc;
    text-decoration: none;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
}

.social-links img {
    width: 30px;
    height: 30px;
    filter: invert(100%); /* Make icons white */
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #555555;
    font-size: 0.85em;
    color: #cccccc;
}

/* About Snapshot Section */
.about-snapshot-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
    line-height: 1.8;
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.stat-item {
    background-color: #FFD700; /* Cheerful yellow */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.stat-item:hover {
    background-color: pink;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    font-weight: bold;
    color: #333333;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #555555;
}

/* Courses Offered Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

.course-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 1s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.course-card:hover {
    transform: rotate3d(1, 1, 1, 360deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.course-card .card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.course-card .card-icon img {
    width: 70px;
    height: 70px;
}

.course-card .card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.course-card .card-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
}

.course-card .card-button {
    background-color: #FF5555;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.course-card .card-button:hover {
    background-color: #800080;
}

/* Faculty Highlight Section */
.faculty-highlight-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.faculty-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #00FF00;
}

.faculty-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.faculty-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    color: #333333;
    margin-bottom: 5px;
}

.faculty-title {
    font-size: 1.1em;
    color: #666666;
    margin-bottom: 15px;
}

.faculty-experience {
    line-height: 1.7;
    color: #555555;
    margin-bottom: 20px;
}

.secondary-button {
    background-color: #FFD700;
    color: #333333;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.secondary-button:hover {
    background-color: orange;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.testimonial-card .quote {
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 15px;
}

.testimonial-card .author {
    font-weight: bold;
    color: #333333;
    font-size: 0.95em;
}

/* Events & Announcements Carousel */
.events-announcements-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.event-item {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    text-align: left;
}

.event-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4em;
    color: #333333;
    margin-bottom: 10px;
}

.event-item p {
    font-size: 0.95em;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.small-button {
    background-color: #00FF00;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.small-button:hover {
    background-color: orange;
}

/* Quick Links Section */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
}

.quick-link-button {
    background-color: #90EE90;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333333;
    transition: transform 0.5s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.quick-link-button:hover {
    transform: rotate(360deg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: pink;
    color: purple;
}

.quick-link-button span, .quick-link-button img {
    transition: all 0.3s ease;
}

.quick-link-button::after {
    content: 'click here';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 1.1em;
}

.quick-link-button:hover span, .quick-link-button:hover img {
    opacity: 0;
}

.quick-link-button:hover::after {
    opacity: 1;
}

.quick-link-button img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.quick-link-button span {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 1.1em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-snapshot-content {
        flex-direction: column;
    }

    .about-text, .quick-stats-grid {
        max-width: 100%;
    }

    .faculty-highlight-card {
        flex-direction: column;
        text-align: center;
    }

    .faculty-info {
        min-width: unset;
        text-align: center;
    }

    .faculty-photo {
        margin-bottom: 20px;
    }

    .testimonials-grid, .courses-grid, .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .event-item {
        max-width: 100%;
    }
}

