/* ===== HOME PAGE STYLES ===== */

/* Hero Carousel Section */
.hero-carousel-section {
    position: relative;
 /*   min-height: 505px; */
    overflow: hidden;
}

.carousel-content {
    display: flex;
    align-items: center;
    min-height: 500px;
    position: relative;
    z-index: 1;
}


.carousel-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease;
}

.carousel-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInLeft 0.8s ease 0.2s backwards;
}

.carousel-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.carousel-buttons .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.carousel-image {
    animation: zoomIn 0.8s ease 0.3s backwards;
}

.carousel-image img {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
}

.carousel-image-1 img{
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

/* ─── Hero Carousel Controls ─── */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    position: absolute;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    z-index: 2;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.carousel-indicators {
    bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: white;
    width: 30px;
    border-radius: 6px;
}

.img-fluid-carousel-1 {
    max-width: 120%;
    max-height: 100%;
}

.img-fluid-carousel-2 {
    max-width: 60%;
    max-height: 40%;
}

.img-fluid-carousel-3 {
    max-width: 120%;
    max-height: 40%;
}


/* Stats Section */
.stats-section {
    background-color: var(--background-color-beige);
    color: white;
    padding: 3rem 0;
}

.stat-card {
    display: block;
    padding: 1rem;
    margin:  1rem 0;
    border-radius: 1rem;
    background: var(--background-color-green);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    background: var(--background-color-green);
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 25px 0 0;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
}

/* About Section */
.about-section {
    padding: 2rem 0;
    background-color:#fbefd8;
}

.about-content {
    padding-left: 2rem;
}

.about-card {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border-left: 4px solid var(--brown-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.about-section .container-custom .row img {
    max-width: 100%;
    height: 100%;
    border-radius: 1rem;
}

.about-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(10px);
}

.about-card-icon {
    width: 40px;
    height: 40px;
    background: var(--brown-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.about-card h4 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.about-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: #0c6c41;
}


.services-section .section-header p {
   color: #d1d5db;
}


.service-card {
    background: #83bce240;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--light-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: var(--light-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--saddle-brown-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-10deg);
}

.service-card h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: #d1d5db;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-card a {
    color: black;
}

.service-link {
    color: var(--black-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.service-link:hover {
    color: var(--saddle-brown-color);
    transform: translateX(5px);
}

/* Achievements Section */
.achievements-section {
    padding: 5rem 0;
}

.achievement-item {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.achievement-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.achievement-item h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.achievement-item p {
    color: var(--text-light);
}

/* Reviews Section */
.reviews-section {
    background: #0c6c41;
    padding: 5rem 0;
}

.reviews-section .section-header p {
   color: #d1d5db;
}

.review-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.review-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.review-stars i {
    font-size: 1.1rem;
}

.review-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    display: flex;
    flex-direction: column;
}

.review-author strong {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.review-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Enquiry Form Section */
.enquiry-section {
    padding: 5rem 0;
    background-color:#fbefd8;
}

.enquiry-form {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.enquiry-form .form-label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.enquiry-form .form-control,
.enquiry-form .form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.enquiry-form .form-control:focus,
.enquiry-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.enquiry-form .form-check-label {
    color: var(--text-light);
    margin-left: 0.5rem;
}

.enquiry-form button {
    font-weight: 600;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.enquiry-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Contact & Location Section */
.contact-location-section {
    padding: 5rem 0;
    background-color: #0c6c41;
}

.contact-location-section .section-header p {
   color: #d1d5db;
}

.contact-info-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--saddle-brown-color), var(--dark-brown-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.contact-info-card h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-info-card p {
    color: var(--text-light);
    margin: 0;
}

.contact-info-card a {
    color: var(--brown-color);
    font-weight: 600;
}

.contact-info-card a:hover {
    color: var(--saddle-brown-color);
}

/* Map Container */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-title {
        font-size: 2rem;
    }

    .carousel-subtitle {
        font-size: 1rem;
    }

    .carousel-buttons {
        flex-direction: column;
    }

    .carousel-buttons .btn {
        width: 100%;
    }

    .carousel-image {
        margin-top: 2rem;
    }

    .about-content {
        padding-left: 0;
        margin-top: 2rem;
    }

    .enquiry-form {
        padding: 2rem;
    }

    .stat-card {
        margin-bottom: 1.5rem;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {

    .img-fluid-carousel-1 {
        max-width: 100%;
        max-height: 100%;
    }
    .img-fluid-carousel-2 {
        max-width: 100%;
        max-height: 100%;
    }
    .img-fluid-carousel-3 {
        max-width: 100%;
        max-height: 100%;
    }

    .row .carousel-image {
        margin-top: 1rem; 
    }

    .carousel-title {
        font-size: 1.5rem;
    }

    .carousel-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .carousel-content {
        min-height: 400px;
        padding: 2rem 0;
    }

    .hero-carousel-section {
        min-height: 400px;
    }

    /* Smaller controls on very small screens */
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 32px;
        height: 32px;
    }

    #heroCarousel .carousel-control-prev-icon,
    #heroCarousel .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .about-card {
        padding: 1rem;
        gap: 1rem;
    }

    .about-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .achievement-number {
        font-size: 2rem;
    }

    .contact-info-card {
        margin-bottom: 1.5rem;
    }

    .enquiry-form {
        padding: 1.5rem;
    }

    .enquiry-form .form-label {
        font-size: 0.85rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ===== CONGRATULATIONS SECTION (STUDENT SHOWCASE) ===== */

/* ===== CONGRATULATIONS SECTION ===== */

.congratulations-section {
    padding: 3rem 0;
    background-color: #fbefd8;
}

/* Carousel Container */
.students-carousel-container {
    position: relative;
    margin-top: 3rem;
    overflow: hidden;   /* viewport clip — the container stays still while the wrapper translates */
}

.students-carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;         /* keep all slides in a single horizontal row */
    transition: transform 0.6s ease-in-out;
}

/* Slide Animation */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-slide {
    display: flex;
    gap: 1rem;
    flex: 0 0 100%;
    width: 100%;
    justify-content: center;
}

.carousel-slide.active {
    display: flex;
}

/* Student Card */
.student-card {
    flex: 0 0 180px;
    width: 180px;
    height: 350px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.student-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Student Image */
.student-image {
    position: relative;
    height: 260px;
    background: #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
}

.student-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.student-card:hover .student-image img {
    transform: scale(1.08);
}

/* Student Content */
.student-content {
    padding: 0.75rem;
    flex: 0 1 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.student-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.student-class {
    font-size: 0.7rem;
    color: var(--dark-brown-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.student-subjects {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
    margin: 0;
}

/* ─── Students Carousel Controls — overlay on left & right edges, vertically centred ─── */
.carousel-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;   /* let clicks pass through to cards */
    padding: 0 0.5rem;
    z-index: 10;
}

.carousel-controls .carousel-control-prev,
.carousel-controls .carousel-control-next {
    pointer-events: auto;   /* buttons remain clickable */
    position: static;
    transform: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--saddle-brown-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
    opacity: 1;
}

.carousel-controls .carousel-control-prev:hover,
.carousel-controls .carousel-control-next:hover {
    background: var(--brown-color);
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.carousel-controls .carousel-control-prev:active,
.carousel-controls .carousel-control-next:active {
    background: var(--brown-color);
    transform: scale(0.97);
}

/* Carousel Indicators */
.carousel-indicators-bottom {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-indicators-bottom .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators-bottom .indicator.active {
    background: #2563eb;
    width: 32px;
    border-radius: 6px;
}

/* Responsive Design - Larger Screens */
@media (max-width: 1200px) {
    .student-image {
        height: 200px;
    }

    .student-name {
        font-size: 0.9rem;
    }

    .student-class,
    .student-subjects {
        font-size: 0.7rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .students-carousel-wrapper {
        display: flex;
    }

    /* Smaller controls on tablet/mobile */
    .carousel-controls .carousel-control-prev,
    .carousel-controls .carousel-control-next {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .carousel-slide {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        flex: 0 0 100%;
        min-width: 0;
        width: 100%;
        align-content: flex-start;
        justify-content: flex-start;
    }

    .student-card {
        flex: 0 0 calc(50% - 0.5rem);
        width: calc(50% - 0.5rem);
        height: auto;
    }

    .student-image {
        height: 150px;
    }

    .student-content {
        flex: 0 1 auto;
        padding: 0.5rem;
    }

    .student-name {
        font-size: 0.8rem;
    }

    .student-class {
        font-size: 0.65rem;
    }

    .img-fluid-carousel-1 {
        max-width: 100%;
        max-height: 100%;
    }
    .img-fluid-carousel-2 {
        max-width: 100%;
        max-height: 100%;
    }
    .img-fluid-carousel-3 {
        max-width: 100%;
        max-height: 100%;
    }

    .row .carousel-image {
        margin-top: 1rem; 
    }
}
