/* =============================================
   HERO SECTION & SLIDER (Optimized)
   ============================================= */
.hero {
    position: relative;
    overflow: hidden;
}

.hero__slider,
.hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__slide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero__slide--active {
    opacity: 1;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Content & Overlay */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    padding: 1rem;
}

.hero__overlay-inner {
    pointer-events: auto;
    max-width: 980px;
    width: 100%;
    text-align: center;
    color: #fff;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 450ms cubic-bezier(.2, .9, .25, 1), opacity 450ms ease;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.12));
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-top: 10vh;
}

.hero__overlay-inner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slider Controls */
.hero__prev,
.hero__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__prev {
    left: 20px;
}

.hero__next {
    right: 20px;
}

.hero__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
}

.hero__dot--active {
    background: white;
}

/* =============================================
   PROGRAMS PREVIEW
   ============================================= */
.programs-preview {
    padding: 4rem 0;
    background-color: var(--soft);
}

.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0.5rem 1rem;
}

.program-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    padding-bottom: 1.5rem;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* =============================================
   WHY CHOOSE US (USP)
   ============================================= */
.why-us {
    padding: 4rem 0;
    background-color: var(--bg);
    text-align: center;
}

.why-us__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.usp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--soft);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.usp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.usp-card__icon {
    width: 100%;
    height: 190px;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 10px;
}

.usp-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1);
}

/* =============================================
   TESTIMONIALS SECTION (FIXED BUTTONS)
   ============================================= */
.testimonials-section {
    background-color: #95c5b5;
    padding: 5rem 0;
    /* Consistent padding */
    text-align: center;
}

.testimonial-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2rem 1rem;
    /* Better padding for shadows */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 90%;
    /* Mobile default */
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Text content should stay left */
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.testimonial-card__quote p {
    font-size: 1.05rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 2rem;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.author-avatar img {
    width: 55px;
    /* Slightly larger */
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid var(--accent);
}

.testimonial-card__author h4 {
    margin: 0;
    color: var(--accent);
    font-weight: 700;
}

/* --- Navigation Buttons Fix --- */
.slider-nav {
    margin-top: 2.5rem;
    /* Space from cards */
    display: flex;
    justify-content: center;
    /* Center buttons horizontally */
    align-items: center;
    gap: 1.5rem;
    /* Space between buttons */
}

.nav-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    width: 50px;
    /* Size increased */
    height: 50px;
    /* Size increased */
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    /* Icon size increased */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background-color: #1f6b54;
    transform: scale(1.1);
    /* Subtle grow effect */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:active {
    transform: scale(0.95);
}

.btn-padding {
    margin-bottom: 20px;
}

.container2 {
    padding-top: 15px;
}


/* =============================================
   TRUST / LOGO SECTION (FIXED ALIGNMENT)
   ============================================= */
.trust-section {
    padding: 80px 0;
    background: #f7f9f6;
}

/* Header Styling - Isse heading aur paragraph center honge */
.trust-header {
    max-width: 750px;
    /* Text line length control karne ke liye */
    margin: 0 auto 50px;
    /* beecho-beech lane ke liye aur grid se gap dene ke liye */
    text-align: center;
}

.trust-label {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px;
}

.trust-header h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.trust-header p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Grid & Cards */
.trust-grid {
    display: grid;
    /* auto-fit images ko balance rakhta hai */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.trust-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trust-card img {
    max-width: 100px;
    /* Thoda size badhaya gaya hai */
    height: auto;
    margin-bottom: 15px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.trust-card p {
    font-size: 14px;
    font-weight: 400;
    color: var(--dark);
    margin: 0;
    line-height: 1.4;
}

/* Hover Effects */
.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.trust-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 767px) {
    .hero__overlay-inner {
        margin-top: 8vh;
        padding: 1rem;
    }

    .usp-card__icon {
        width: 300px;
        height: 300px;

    }

    .hero__overlay-title {
        font-size: 1.25rem;
    }

    .hero__overlay-desc {
        font-size: 0.95rem;
    }

    .trust-card img {
        filter: none;
    }
}

@media (min-width: 768px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }

    .hero__overlay-inner {
        max-width: 600px;
    }

    .reels-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-header h2 {
        font-size: 1.8rem;
    }

    .trust-grid {
        /* Mobile par 2 columns fix rakhte hain */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .trust-card {
        padding: 20px 10px;
    }

    .trust-card img {
        filter: grayscale(0%);
        /* Mobile par grayscale hata dena better hota hai */
        opacity: 1;
        max-width: 80px;
    }
}

@media (min-width: 1024px) {
    .why-us__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonial-card {
        flex: 0 0 calc(33.333% - 1.333rem);
    }

    .reels-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}