﻿/*.slider {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.slide {
    display: none;
    position: relative;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

    .slide.active {
        opacity: 1;
        visibility: visible;
        display: flex;
    }

.slider-content {
    max-width: 500px;
}*/

.tagline {
    background-color: #4a55ff;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 30px;
}

h1 {
    font-size: 50px;
    margin: 10px 0;
    color: #333;
}

    h1 span {
        color: #4a55ff;
    }

p {
    color: #666;
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 20px;
}

.buttons {
    display: flex;
    gap: 20px;
}

.enroll-btn {
    position: relative;
    background-color: #4a55ff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    display: inline-block;
    overflow: hidden;
}

    .enroll-btn::after {
        content: "";
        position: absolute;
        bottom: -5px; /* Adjust position to appear just below the button */
        left: 0;
        width: 100%;
        height: 10px; /* Thickness of the yellow border */
        background-color: #FFD700; /* Yellow color */
        border-radius: 0 0 5px 5px; /* Rounded corners to match the button */
    }

.trial-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a55ff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.trial-btn-icon svg {
    width: 30px; /* Adjust icon size */
    height: 30px;
}


.trial-btn-icon {
    display: inline-flex;
    align-items: center;
    font-size: 20px;
}


.slider-image img {
    max-width: 800px;
    height: auto;
    max-width: 100%;
}

.slide-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .dot.active {
        background-color: #4a55ff;
    }

/* Add underline effect with ::after pseudo-element */
.underline-effect {
    position: relative;
    display: inline-block;
}

    .underline-effect::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px; /* Adjusts the line's distance from the text */
        width: 50px; /* Length of the underline */
        height: 6px; /* Thickness of the underline */
        background-color: #4a55ff; /* Line color */
        border-radius: 2px;
    }


/* Responsive Design for Mobile */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    .slide {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .slider-content {
        max-width: 100%;
    }

    h1 {
        font-size: 14px;
    }

    .tagline {
        font-size: 14px;
    }

    p {
        font-size: 14px;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
    }

    .enroll-btn, .trial-btn {
        width: 100%;
        padding: 10px;
    }

    .slider-image img {
        width: 100%;
        max-width: 300px;
        margin-top: 20px;
    }
}

/* Base classes */
.animated {
    opacity: 0;
    transform: translateY(40px);
    animation-fill-mode: forwards;
}

.animated-image {
    opacity: 0;
    transform: translateY(-40px);
    animation-fill-mode: forwards;
}

/* Entrance animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Exit animations */
@keyframes fadeUpExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-40px);
    }
}

@keyframes fadeDownExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(40px);
    }
}

/* Apply animations with shorter delays for synchronization */
.tagline.animate {
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

h1.animate {
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.15s;
}

p.animate {
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.buttons.animate {
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.25s;
}

.slider-image img.animate {
    animation: fadeDown 0.6s ease forwards;
    animation-delay: 0.3s;
}


/* Exit classes to trigger animations */
.exit-up {
    animation: fadeUpExit 0.5s ease forwards;
}

.exit-down {
    animation: fadeDownExit 0.5s ease forwards;
}



/* Why Choose Section */
.why-choose-section {
    text-align: center;
    padding: 40px 20px;
}

    .why-choose-section h2 {
        color: #4a55ff;
        font-size: 36px;
        margin-bottom: 10px;
    }

    .why-choose-section p {
        color: #666;
        font-size: 24px;
        margin-bottom: 30px;
    }

/* Card Container with Wavy Background */
.card-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    padding: 20px 0;
    background: url('../../img/BG Yellow Smooth Stroke.svg') no-repeat center; /* Adjust the path */
    background-size: contain; /* Ensure the wave covers the area */
    z-index: 0; /* Keeps it behind the cards */
}


/* Card Styling with Images */
.card {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    text-align: center;
    z-index: 1; /* Ensure cards stay above the yellow line */
    position: relative;
}

.card-image {
    width: 100px;
    height: auto;
    margin: 0px auto;
}

.card h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.card p {
    color: #666;
    font-size: 20px;
    margin-top: 10px;
}

.container {
    max-width: 1300px;
    margin: 0 auto; /* Centers the container */
    padding: 0 20px; /* Optional: Adds padding for some spacing on smaller screens */
}


/* Achievements Section */
.achievements-section {
    text-align: center;
    padding: 40px 20px;
}

    .achievements-section h2 {
        color: #4a55ff;
        font-size: 36px;
        margin-bottom: 10px;
    }

    .achievements-section p {
        color: #666;
        font-size: 24px;
        margin-bottom: 30px;
    }

.achievements-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.achievement-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    width: 100%;
    text-align: center;
    position: relative;
    margin-top: 40px; /* Space for overlapping icon */
    padding-top: 60px; /* Extra padding for icon */
}

.icon-wrapper {
    position: absolute;
    top: -30px; /* Position the icon above the card */
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
}

    .icon-wrapper img {
        width: 65px;
        height: auto;
    }

.achievement-card p {
    color: #333;
    font-size: 18px;
    font-weight: normal;
    margin-top: 20px;
}

    .achievement-card p strong {
        color: #4a55ff;
    }

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .achievements-container {
        flex-direction: column;
        align-items: center;
    }
}

.program-section {
    text-align: center;
    padding: 40px 20px;
}

.program-section h2 {
    color: #4a55ff;
    font-size: 36px;
    margin-bottom: 10px;
}

.program-section p {
    color: #666;
    font-size: 20px;
    margin-bottom: 30px;
}

.program-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
}

/* Outer wrapper for yellow border effect */
.program-card-outer {
    position: relative;
    background-color: #FFD700; /* Yellow color */
    padding: 10px;
    border-radius: 15px;
}

/* Wrapper to contain card and hover info */
.program-card-wrapper {
    position: relative;
    width: 310px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
    min-height:158px;
}

.program-card-wrapper:hover .info-hover {
    opacity: 1;
    bottom: -40px;
}

/* Program Card Styling */
.program-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: left;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
    min-height: 158px;
}

.program-card:hover {
    transform: translateY(-5px);
}

/* Different Colors for Program Cards */
.program-card.purple {
    background-color: #a682ff;
}

.program-card.blue {
    background-color: #69c0ff;
}

.program-card.green {
    background-color: #59d499;
}

.program-card.pink {
    background-color: #ff7b93;
}

.program-card h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
}

.program-card ul {
    list-style-type: disc;
    color: #fff;
    padding-left: 20px;
    font-size: 16px;
}

/* Hover Info Below Card */
.info-hover {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    text-align: center;
    font-size: 16px;
    color: #333;
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
}

/* Icon and Star Styling */
.info-hover .icon {
    color: #4a55ff;
    margin-right: 5px;
}

.info-hover .star {
    color: #FFD700;
    margin-left: 5px;
    font-size: 20px;
}

.program-subjects {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.subject-card {
    background-color: #f3f5fc;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    position: relative;
}

.card-header {
    background-color: #4a55ff;
    color: white;
    border-radius: 15px 15px 15px 15px !important;
    font-weight: bold;
    font-size: 18px;
    position: relative;
    z-index: 1;
    min-height: 58px;
    padding: 10px;
    display: flex; /* Enables flexbox */
    align-items: center; /* Centers content vertically */
    justify-content: center; /* Centers content horizontally (optional) */
    text-align: center; /* Ensures text is centered within the flex container */
}

.blue-icon {
    color: #4a55ff; /* Ensures icon itself is blue */
}

/* Outer wrapper for yellow border effect */
.program-card-outer {
    position: relative;
    background-color: #FFD700; /* Yellow color */
    padding: 0px 0px 8px 8px;
    border-radius: 15px;
}


/* Outer wrapper for yellow border effect */
.subject-card-outer {
    position: relative;
    background-color: #FFD700; /* Yellow color */
    padding: 0px 0px 8px 0px;
    border-radius: 15px;
}

/*Our Subject*/
.section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.subject {
    position: relative;
    width: 120px;
    text-align: center;
}

    .subject img {
        width: 120px;
        height: 120px;
        position: relative;
        top: 20px;
        z-index: 3;
    }

.subject-name {
    font-weight: bold;
    font-size: 15px;
}

.section-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    color: #6366F1; /* Purple color */
}


/*Testimonial Slider*/
/* Testimonial Slider Wrapper */
.testimonial-slider {
    position: relative;
    width: 80%;
    margin: auto;
    background-color: #4a55ff!important;
    border-radius: 30px;
    padding: 40px;
    color: #fff;
    text-align: center;
}

    .testimonial-slider h2 {
        font-size: 36px;
        color: #fff;
    }

.subtitle {
    font-size: 18px;
    color: #d1d5db;
    margin-bottom: 20px;
}

/* Testimonial Slide Styling */
.testimonial-slide {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

    .testimonial-slide.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        align-items: center;
        justify-content: center;
        flex-direction: row;
    }

/* Testimonial Card */
.testimonial-card {
    display: flex;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    color: #333;
}

.student-info {
    text-align: center;
    flex: 1;
    position: relative;
}

.student-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #FFD700;
    object-fit: cover;
    margin-bottom: 10px;
}

.student-role {
    font-size: 14px;
    color: #666;
}

.rating {
    color: #FFD700;
    font-size: 18px;
    margin: 5px 0;
}

.score-box {
    background-color: #e9eaff;
    padding: 10px;
    border-radius: 10px;
    color: #333;
    font-size: 14px;
    margin-top: 10px;
    width: fit-content;
    margin: auto;
}

.trophy-icon {
    width: 30px;
    height: 30px;
    margin-top: 10px;
}

/* Testimonial Content */
.testimonial-content {
    flex: 1;
    padding: 0 20px;
    text-align: left;
    color: #333;
    position: relative;
}

/* CSS for the quote frame image */
.quote-frame {
    border-radius: 12px;
    padding: 20px;
    overflow: hidden; /* Ensure any overflow is hidden */
    position: relative;
}

.quote-frame-img {
    width: 100%; /* Make the image take full width of its container */
    height: 100%; /* Maintain aspect ratio */
    max-width: 800px; /* Set a max width for responsiveness */
    top: 0;
    left: 0;
    position: absolute;
}

.quote-text {
    padding: 20px;
    color: #333;
}

    .quote-text p {
        font-size: 16px;
        font-style: italic;
    }

.author {
    font-weight: bold;
    color: #4a55ff;
    margin-top: 10px;
}

/* Testimonial Navigation Buttons */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
}

    .testimonial-nav.prev {
        left: 20px;
    }

    .testimonial-nav.next {
        right: 20px;
    }

/* Testimonial Dots Navigation */
.testimonial-slide-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .testimonial-dot.active {
        background-color: #FFD700;
    }

.score-box p strong {
    color: #4a55ff;
}
.score-box p {
   margin: 0px 0px 0px 0px;
}