/* ==========================================================================
   Al Iman Quran Academy - Student & Parent Testimonials 3-Card Center Carousel CSS
   ========================================================================== */

.sbw-ct-section * {
    font-family: 'Philosopher', sans-serif;
    box-sizing: border-box;
}

.sbw-ct-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--sbw-dark, #091D17);
    color: #ffffff;
    overflow: hidden;
}

.sbw-ct-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(5, 131, 73, 0.2) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.sbw-ct-container {
    position: relative;
    z-index: 5;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.sbw-ct-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px auto;
}

.sbw-ct-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sbw-secondary, #FFB606);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.sbw-ct-main-title {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.sbw-ct-main-title span {
    color: var(--sbw-secondary, #FFB606);
}

.sbw-ct-desc {
    font-size: 16.5px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    margin: 0;
}

/* Carousel Viewport */
.sbw-ct-carousel-viewport {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 30px 0 40px 0;
}

@media (min-width: 992px) {
    .sbw-ct-carousel-viewport {
        max-width: 1140px;
        margin: 0 auto;
    }
}

.sbw-ct-carousel-track {
    display: flex;
    gap: 24px;
    align-items: center;
    will-change: transform;
}

.sbw-ct-card {
    width: 350px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease, background 0.5s ease;
}

/* Center Enlarged Active Card */
.sbw-ct-card.is-center {
    transform: scale(1.08);
    opacity: 1;
    border-color: var(--sbw-secondary, #FFB606) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(255, 182, 6, 0.28) !important;
    z-index: 5;
}

.sbw-ct-card.is-center:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 182, 6, 0.38) !important;
}

/* Side Smaller Cards (Do not enlarge on hover, click to bring center) */
.sbw-ct-card.is-side {
    transform: scale(0.88);
    opacity: 0.65;
    z-index: 2;
    cursor: pointer;
}

.sbw-ct-card.is-side:hover {
    transform: scale(0.88);
    border-color: rgba(255, 182, 6, 0.4);
    opacity: 0.85;
}

/* Stars & Quote */
.sbw-ct-stars {
    color: var(--sbw-secondary, #FFB606);
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.sbw-ct-quote {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    margin: 0 0 26px 0;
    font-style: italic;
}

/* Author Box */
.sbw-ct-author-box {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.sbw-ct-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--sbw-secondary, #FFB606);
    flex-shrink: 0;
    background-color: var(--sbw-primary, #058349);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sbw-ct-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sbw-ct-avatar-fallback {
    font-size: 22px;
}

.sbw-ct-author-info {
    display: flex;
    flex-direction: column;
}

.sbw-ct-author-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 3px 0;
}

.sbw-ct-author-course {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Responsive Queries */
@media (max-width: 991px) {
    .sbw-ct-card {
        width: 300px;
    }
}

@media (max-width: 767px) {
    .sbw-ct-section {
        padding: 60px 0;
    }
    .sbw-ct-container {
        padding: 0 16px;
    }
    .sbw-ct-main-title {
        font-size: 28px;
    }
    .sbw-ct-carousel-viewport {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 0 30px 0;
        overflow: hidden;
    }
    .sbw-ct-carousel-track {
        gap: 16px;
    }
    .sbw-ct-card {
        width: 84vw !important;
        max-width: 320px !important;
        padding: 24px 20px !important;
    }
    .sbw-ct-card.is-side {
        opacity: 0.08 !important;
        visibility: hidden !important;
        transform: scale(0.82) !important;
    }
    .sbw-ct-card.is-center {
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 182, 6, 0.2) !important;
    }
}
