/* ==========================================================================
   Al Iman Quran Academy - Section 7: Meet Islamic Tutors Carousel CSS
   ========================================================================== */

.sbw-tc-section {
    position: relative;
    width: 100%;
    padding: 95px 0 110px 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    font-family: 'Philosopher', sans-serif;
    color: var(--sbw-dark, #222222);
    box-sizing: border-box;
    overflow: hidden;
}

.sbw-tc-section * {
    font-family: 'Philosopher', sans-serif;
}

/* Background Overlay */
.sbw-tc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* Centered Container */
.sbw-tc-container {
    position: relative;
    z-index: 5;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    text-align: center;
}

/* Top Header Block */
.sbw-tc-top-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 50px auto;
}

.sbw-tc-crest {
    display: inline-block;
    margin-bottom: 12px;
}

.sbw-tc-crest img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.sbw-tc-crest-icon {
    font-size: 36px;
    color: var(--sbw-secondary, #FFB606);
}

.sbw-tc-subtitle {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sbw-muted, #6a6a6a);
    display: block;
    margin-bottom: 10px;
}

.sbw-tc-main-title {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--sbw-dark, #222222);
    margin: 0;
}

.sbw-tc-highlight {
    position: relative;
    display: inline-block;
    color: var(--sbw-dark, #222222);
}

.sbw-tc-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 4px;
    background-color: var(--sbw-secondary, #FFB606);
    border-radius: 2px;
}

/* Carousel Track Wrapper */
.sbw-tc-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 25px 5px 35px 5px;
}

/* Carousel Track */
.sbw-tc-track {
    display: flex;
    gap: 28px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Tutor Card Item */
.sbw-tc-card {
    flex: 0 0 calc(25% - 21px);
    min-width: 280px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

/* Golden Mehrab Arch & Circle Image Frame */
.sbw-tc-arch-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    margin-bottom: -36px;
}

.sbw-tc-arch-svg {
    position: absolute;
    top: -18px;
    width: 195px;
    height: 55px;
    z-index: 1; /* Positioned BEHIND circle photo frame */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sbw-tc-arch-svg path {
    stroke: var(--sbw-secondary, #FFB606);
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
}

.sbw-tc-card:hover .sbw-tc-arch-svg {
    opacity: 1;
    transform: translateY(-4px);
}

.sbw-tc-circle-box {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #FFF8E7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    background-color: #ffffff;
    position: relative;
    z-index: 4; /* Positioned IN FRONT of Mehrab SVG */
}

.sbw-tc-circle-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.sbw-tc-card:hover .sbw-tc-circle-box {
    border-color: var(--sbw-secondary, #FFB606);
    box-shadow: 0 15px 40px rgba(255, 186, 6, 0.35);
    transform: scale(1.03);
}

.sbw-tc-card:hover .sbw-tc-circle-box img {
    transform: scale(1.07);
}

/* White Content Box */
.sbw-tc-info-box {
    width: 100%;
    background-color: #ffffff;
    border-radius: 18px;
    padding: 52px 20px 24px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 125px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    box-sizing: border-box;
}

.sbw-tc-card:hover .sbw-tc-info-box {
    border-color: var(--sbw-secondary, #FFB606);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.sbw-tc-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--sbw-dark, #222222);
    margin: 0 0 6px 0;
    font-family: 'Philosopher', sans-serif;
    transition: color 0.3s ease;
}

.sbw-tc-card:hover .sbw-tc-name {
    color: var(--sbw-primary, #058349);
}

.sbw-tc-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--sbw-muted, #6a6a6a);
    margin: 0;
}

/* ==========================================================================
   Smooth Bottom-to-Top Slide Reveal Drawer (Hover Details Reveal)
   ========================================================================== */
.sbw-tc-drawer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: linear-gradient(180deg, #ffffff 0%, #FFFDF7 100%);
    border-radius: 18px;
    padding: 45px 20px 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateY(102%);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 5;
    box-sizing: border-box;
    border-top: 4px solid var(--sbw-secondary, #FFB606);
    box-shadow: inset 0 2px 10px rgba(255, 186, 6, 0.15);
}

.sbw-tc-card:hover .sbw-tc-drawer {
    transform: translateY(0);
}

.sbw-tc-drawer-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--sbw-dark, #222222);
    margin: 0;
}

.sbw-tc-qual-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--sbw-primary, #058349);
    background-color: rgba(5, 131, 73, 0.1);
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
}

.sbw-tc-fee-rate {
    font-size: 15px;
    font-weight: 800;
    color: var(--sbw-primary, #058349);
    margin: 2px 0;
}

/* Navigation Controls */
.sbw-tc-controls-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 35px;
}

.sbw-tc-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--sbw-dark, #222222);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--sbw-secondary, #FFB606);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.sbw-tc-nav-btn:hover {
    background-color: var(--sbw-primary, #058349);
    color: #ffffff;
    border-color: var(--sbw-primary, #058349);
    transform: scale(1.08);
}

/* Responsive Queries */
@media (max-width: 1200px) {
    .sbw-tc-card {
        flex: 0 0 calc(33.333% - 19px);
    }
}

@media (max-width: 991px) {
    .sbw-tc-card {
        flex: 0 0 calc(50% - 14px);
    }
    .sbw-tc-main-title {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .sbw-tc-card {
        flex: 0 0 100%;
    }
    .sbw-tc-main-title {
        font-size: 28px;
    }
}
