/* Reviewed for compatibility with inlined Tailwind CSS. No changes were needed. */

/* Using the Georgia font you specified for the header */
@import url("https://fonts.googleapis.com/css2?family=Georgia&display=swap");
/* A cursive-style font for the new testimonial heading to match the image */
@import url('https://fonts.googleapis.com/css2?family=Sacramento&display=swap');
/* A fallback font for the rest of the page */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Apply Georgia to the header elements */
.header-font {
    font-family: 'Georgia', serif;
}

/* Apply Sacramento for the cursive testimonial heading */
.testimonial-heading-font {
    font-family: 'Sacramento', cursive;
}

/* Apply Inter to the rest of the body */
body {
    font-family: 'Inter', sans-serif;
}

/* Custom styles for the pop-up */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

/* --- Fade Slider Styles --- */
.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 10; /*new added*/
}

.slide.active {
    opacity: 1;
    z-index: 20;/*new added*/
}

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    text-align: center;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    background: white;
    opacity: 0.5;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.dot.active,
.dot:hover {
    opacity: 1;
}

/* Hide scrollbars on any slider wrapper if needed */
.slider-wrapper::-webkit-scrollbar {
    display: none;
}
.slider-wrapper {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Custom styling for the new 'What We Do' section to match the image */
.what-we-do-section {
    background-color: #ffeef2; /* Light pink background */
}
.card-container {
    background-color: white;
    border-radius: 1rem; /* rounded-xl */
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out;
}
.card-container:hover {
    transform: translateY(-10px);
}
.card-icon {
    background-color: #f72585; /* Pink color for icons */
    color: white;
    padding: 1.25rem; /* p-5 */
    border-radius: 9999px; /* rounded-full */
    font-size: 2.25rem; /* text-4xl */
    margin: 0 auto 1.5rem; /* mx-auto mb-6 */
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.card-button {
    background-color: #f72585;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease-in-out;
}
.card-button:hover {
    background-color: #e01e6a;
}

/* NEW CSS for the Expert Teacher section based on your image */
.expert-teacher-card {
    position: relative;
    text-align: center;
    padding: 1rem;
}
.expert-teacher-image-wrapper {
    position: relative;
    display: inline-block;
    padding: 8px; /* Space for the border */
    border: 2px solid #ec4899; /* Pink border */
    border-radius: 1.5rem; /* rounded-3xl */
}
.expert-teacher-image-wrapper img {
    border-radius: 1rem; /* rounded-xl */
    display: block;
}
.expert-teacher-icon {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background-color: #ec4899;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.expert-teacher-name {
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: #1f2937;
}
.expert-teacher-subject {
    color: #6b7280;
    font-size: 0.875rem;
}
.team-heading-underline {
    display: inline-block;
    border-bottom: 2px solid #ec4899;
    padding-bottom: 2px;
}

/* NEW CSS for scroll-based animations */
.scroll-animate {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}
.scroll-animate.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Custom styles for the new 'About Us' section */
.about-us-pill {
    display: inline-block;
    background-color: #fce7f3; /* Light pink background */
    color: #ec4899; /* Pink text */
    padding: 0.25rem 1rem; /* px-4 py-1 */
    border-radius: 9999px; /* rounded-full */
    font-weight: 600; /* font-semibold */
    margin-bottom: 1rem;
}
.more-details-button {
    background-color: #ec4899; /* Pink background */
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease-in-out;
}
.more-details-button:hover {
    background-color: #db2777; /* Darker pink on hover */
}

/* Styles for the new Toppers section sliders */
.topper-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: white;
}
.topper-slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.topper-slide {
    flex: 0 0 100%; /* Each slide takes full width of its container */
    padding: 1.5rem;
    text-align: center;
}
.topper-slide img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}
.topper-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.75rem;
    border-radius: 9999px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease-in-out;
}
.topper-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.topper-prev-btn {
    left: 1rem;
}
.topper-next-btn {
    right: 1rem;
}
.topper-dots-container {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.topper-dot {
    width: 0.75rem;
    height: 0.75rem;
    background-color: white;
    border-radius: 9999px;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
}
.topper-dot.opacity-100 {
    opacity: 1;
}

.flip-card {
    background-color: transparent;
    width: 400px;
    height: 300px;
    perspective: 1000px;
    margin: auto;
    max-width: 100%;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-width: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
}

.flip-card-front {
    background-color: #f3f4f6;
}

.flip-card-back {
    background-color: #9c1a7a;
    color: white;
    transform: rotateY(180deg);
}