/* ============================================================
   Books Carousel Elementor Widget — Frontend CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

/* Section Wrapper */
.bce-carousel-section {
    color: #0f172a;
    padding: 8rem 5% 9rem 5%;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Header */
.bce-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1300px;
    margin: 0 auto 3.5rem auto;
}

.bce-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bce-eyebrow {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bce-eyebrow svg {
    width: 14px;
    height: 14px;
}

.bce-sec-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 900;
    color: #0c4a6e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Nav Controls */
.bce-nav-controls {
    display: flex;
    gap: 1rem;
}

.bce-nav-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(2, 132, 199, 0.3);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.08);
    transition: all 0.3s ease;
}

.bce-nav-btn svg {
    width: 20px;
    height: 20px;
    transition: fill 0.3s ease, transform 0.3s ease;
}

.bce-nav-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.3);
    transform: translateY(-2px);
}

.bce-nav-btn:hover svg {
    fill: #ffffff !important;
}

/* Carousel Track Container */
.bce-overflow-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 1rem 0 2rem 0;
}

.bce-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Horizontal Split Card */
.bce-card {
    flex: 0 0 calc(50% - 1rem);
    min-width: 520px;
    background: #ffffff;
    border-radius: 28px;
    border: 1.5px solid rgba(14, 165, 233, 0.22);
    box-shadow: 0 15px 40px rgba(2, 132, 199, 0.08);
    padding: 1.4rem;
    display: flex;
    align-items: stretch;
    gap: 1.75rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.bce-card:hover {
    transform: translateY(-8px);
    border-color: #0ea5e9;
    box-shadow: 0 25px 50px rgba(2, 132, 199, 0.2);
}

/* Left Image Box */
.bce-card-img-box {
    flex: 0 0 44%;
    background: linear-gradient(145deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 22px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.bce-img-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #0284c7;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.1);
}

.bce-card-img-box img {
    max-height: 220px;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(2, 132, 199, 0.25));
    transition: transform 0.4s ease;
}

.bce-card:hover .bce-card-img-box img {
    transform: scale(1.08) rotate(-2deg);
}

/* Right Content Block */
.bce-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    padding: 0.4rem 0.5rem 0.2rem 0;
}

.bce-card-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 0.3rem 0;
}

.bce-card-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    margin: 0 0 0.9rem 0;
    font-family: 'Outfit', sans-serif;
}

.bce-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0 0 1.2rem 0;
    padding: 0;
}

.bce-feature-list li {
    font-size: 0.8rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.bce-feature-list li span {
    font-weight: 800;
}

/* Price Row */
.bce-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bce-price-main {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
}

.bce-price-old {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-family: 'Outfit', sans-serif;
}

/* Order Button */
.bce-order-btn {
    color: #0c4a6e;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding: 0.5rem 0.5rem;
    text-decoration: underline;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.bce-order-btn:hover {
    color: #0284c7;
    transform: translateX(3px);
}

/* Pagination Dots */
.bce-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
}

.bce-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bce-dot.active {
    background: #0284c7;
    width: 32px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .bce-carousel-section {
        padding: 5rem 4% 6rem 4%;
    }

    .bce-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .bce-card {
        flex: 0 0 calc(100% - 1rem);
        min-width: unset;
    }
}

@media (max-width: 640px) {
    .bce-card {
        flex-direction: column;
        min-width: unset;
    }

    .bce-card-img-box {
        flex: unset;
        width: 100%;
        height: 200px;
    }

    .bce-card-info {
        padding: 0.8rem 0 0 0;
    }

    .bce-sec-title {
        font-size: 1.6rem;
    }
}
