/* ==========================================================================
   Al Iman Quran Academy - Section 6: Online Islamic Courses Carousel CSS
   ========================================================================== */

.sbw-cc-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-cc-section * {
    font-family: 'Philosopher', sans-serif;
}

/* Background Overlay */
.sbw-cc-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-cc-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-cc-top-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 50px auto;
}

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

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

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

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

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

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

.sbw-cc-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-cc-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 15px 5px 25px 5px;
}

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

/* Course Card Item */
.sbw-cc-card {
    flex: 0 0 calc(25% - 21px);
    min-width: 280px;
    background-color: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    box-sizing: border-box;
}

.sbw-cc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
    border-color: rgba(255, 182, 6, 0.4);
}

/* Image Container */
.sbw-cc-img-box {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.sbw-cc-card:hover .sbw-cc-img-box img {
    transform: scale(1.06);
}

/* Duration & Enrolled Badge Bar (Floats seamlessly over image and card body) */
.sbw-cc-badge-bar {
    position: relative;
    z-index: 10;
    margin-top: -24px;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 32px);
    background-color: #FFF8E7;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--sbw-dark, #222222);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border: 1.5px solid rgba(255, 182, 6, 0.45);
    box-sizing: border-box;
}

.sbw-cc-badge-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.sbw-cc-badge-icon {
    color: var(--sbw-primary, #058349);
    font-size: 15px;
}

/* Card Body */
.sbw-cc-card-body {
    padding: 16px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.sbw-cc-category {
    font-size: 13px;
    font-weight: 600;
    color: var(--sbw-muted, #6a6a6a);
    text-transform: capitalize;
}

.sbw-cc-card-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--sbw-dark, #222222);
    margin: 0;
    line-height: 1.35;
    transition: color 0.3s ease;
}

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

.sbw-cc-instructor {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--sbw-primary, #058349);
    background-color: rgba(5, 131, 73, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
}

.sbw-cc-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--sbw-dark, #222222);
    margin: 4px 0 0 0;
}

.sbw-cc-original-price {
    font-size: 14px;
    color: var(--sbw-muted, #6a6a6a);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 500;
}

/* Card Footer Bar */
.sbw-cc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.sbw-cc-btn {
    background-color: var(--sbw-secondary, #FFB606);
    color: var(--sbw-dark, #222222);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 186, 6, 0.3);
}

.sbw-cc-rating {
    font-size: 13px;
    font-weight: 700;
    color: var(--sbw-dark, #222222);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sbw-cc-star-icon {
    color: var(--sbw-secondary, #FFB606);
    font-size: 14px;
}

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

.sbw-cc-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-cc-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-cc-card {
        flex: 0 0 calc(33.333% - 19px);
    }
}

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

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