/* Section */
.testimonials-section {
    padding: 10px 0 20px;
    text-align: center;
}

/* Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #2f54a3;
    color: #fff;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top:10px;
}
.section-badge::before {
    content: "";
}

/* Title */
.section-title {
    font-size: 34px;
    font-weight: 800;
    color: #1b2d59;
}
.section-subtitle {
    font-size: 16px;
    color: #6c7a99;
    margin-bottom: 20px;
}

/* Swiper Container */
.swiper-main-container {
    width: 100%;
    padding: 0;
    position: relative;
    box-sizing: border-box;
}

/* Swiper */
.swiper {
    overflow: hidden !important;
    padding-bottom: 40px !important;
}

/* GAP BETWEEN SLIDES (UPDATED) */
.swiper-wrapper {
    gap: 12px !important;   /* 👈 Small clean gap */
}

/* EXACT 3 CARDS with spacing */
.swiper-slide {
    width: calc((100% - 24px) / 3) !important; 
    /* 3 slides + 2 gaps = 24px total */
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

/* Card */
.t-card {
    width: 100% !important;
    height: 480px;
    background: #fff;
    border-radius: 22px;
    border: 1px solid #e6e6e6;
    display: flex;
    flex-direction: column;
    transition: .3s ease;
    overflow: visible !important;
}
.t-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* Rank Bar */
.t-rank {
    margin: 14px 16px 10px 16px;
    padding: 6px 0;
    background: #2f54a3;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.t-rank::before {
    content: "🥇";
}

/* Content */
.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    text-align: center;
}

/* Image */
.t-img-box {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
    border: 4px solid #e8edff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    position: relative;
}

.t-img-box .t-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Percent Badge */
.t-percent {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #27c86a;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Text */
.t-name { font-size: 18px; font-weight: 700; }
.t-exam { font-size: 15px; font-weight: 600; color:#2f54a3; }
.t-college { font-size: 14px; color:#777; }
.t-text { font-size: 14px; color:#444; font-style: italic; }

/* Stars */
.t-stars { font-size: 18px; color: #2f54a3; }

/* Button */
.t-btn-full {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: #2f54a3;
    color:#fff;
    border:none;
    font-weight:600;
    display:flex;
    justify-content:center;
    gap:8px;
}
.t-btn-full:hover { background:#1d3d7c; }

/* Arrows */
.custom-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #2f54a3;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor:pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: .2s;
}

.swiper-button-prev { left: 10px; }
.swiper-button-next { right: 10px; }

.swiper-button-prev::after { content:"←"; font-size:20px; color:#2f54a3; }
.swiper-button-next::after { content:"→"; font-size:20px; color:#2f54a3; }

.custom-nav-btn:hover { background:#2f54a3; }
.custom-nav-btn:hover::after { color:#fff; }

/* Mobile / Tablet */
@media (max-width: 992px){
    .swiper-wrapper { gap: 15px !important; }
    .swiper-slide { width: calc(50% - 15px) !important; }
}

@media (max-width: 600px){
    .swiper-wrapper { gap: 20px !important; }
    .swiper-slide { width: 100% !important; }
    .t-card { width: 90% !important; margin: auto; }
}
/* ======================================================
   📌 TRUE RESPONSIVE TESTIMONIAL SLIDER (LIKE FACULTY)
====================================================== */

/* DESKTOP — DEFAULT (3 CARDS) remains same */


/* ======================================================
   📌 TABLET (max-width: 991px) — Show 2 Cards
====================================================== */
@media (max-width: 991px) {

    .swiper-slide {
        width: calc(50% - 15px) !important;
    }

    .custom-nav-btn {
        top: 45% !important;
    }

    .swiper-button-prev { left: 8px !important; }
    .swiper-button-next { right: 8px !important; }
}


/* ======================================================
   📌 MOBILE (max-width: 768px) — Show ONLY 1 Full Card
====================================================== */
@media (max-width: 768px) {

    /* Full width slide (like faculty) */
    .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important; /* ⭐ critical fix */
    }

    /* Card centered */
    .t-card {
        max-width: 360px !important;
        width: 100% !important;
        margin: 0 auto !important;
        border-radius: 20px;
    }

    /* Fix container */
    .swiper-main-container {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Arrows */
    .custom-nav-btn {
        width: 36px;
        height: 36px;
        top: 52% !important;
        z-index: 9999;
    }

    .swiper-button-prev { left: -10px !important; }
    .swiper-button-next { right: -10px !important; }

    /* Adjust image */
    .t-img-box {
        width: 105px;
        height: 105px;
    }

    .t-name { font-size: 17px; }
    .t-exam { font-size: 14px; }
    .t-text { font-size: 13px; }
}


/* ======================================================
   📌 SMALL MOBILE (max-width: 576px)
====================================================== */
@media (max-width: 576px) {

    .t-card {
        max-width: 330px !important;
    }

    .custom-nav-btn {
        width: 34px;
        height: 34px;
        top: 54% !important;
    }

    .swiper-button-prev { left: -8px !important; }
    .swiper-button-next { right: -8px !important; }

    .t-img-box {
        width: 100px;
        height: 100px;
    }
}


/* ======================================================
   📌 EXTRA SMALL MOBILE (max-width: 420px)
====================================================== */
@media (max-width: 420px) {

    .t-card {
        max-width: 300px !important;
        padding: 18px 14px;
    }

    .custom-nav-btn {
        top: 56% !important;
    }

    .swiper-button-prev { left: -6px !important; }
    .swiper-button-next { right: -6px !important; }

    .t-img-box {
        width: 95px;
        height: 95px;
    }
}


/* ======================================================
   📌 SUPER SMALL (max-width: 360px)
====================================================== */
@media (max-width: 360px) {

    .t-card {
        max-width: 280px !important;
        padding: 16px 12px;
    }

    .swiper-button-prev { left: -5px !important; }
    .swiper-button-next { right: -5px !important; }

    .t-name { font-size: 16px; }
}
