/* ==========================================================
   DealCraft "Our Offerings" Pop-Out Dynamic Widget Styles
========================================================== */

/* Force Elementor Parent Container Alignment */
.elementor-widget-dealcraft_offerings,
.dco-wrap.dco-full-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.dco-wrap * {
    box-sizing: border-box;
}

/* ---------- Hero Section (always visible, defaults to first offering) ---------- */

.dco-hero-popout {
    background: #ffffff;
    border-radius: 0;
    position: relative;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    margin-bottom: 40px;
    padding: 40px;
}

/* Hero Grid Layout */
.dco-hero {
    display: grid;
    grid-template-columns: minmax(320px, 460px) 1fr;
    gap: 40px;
    align-items: center;
}

/* Hero Image Container */
.dco-hero-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f0c0a;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dco-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dco-hero-media .dco-slide-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

.dco-hero-media .dco-slide-img.dco-active {
    opacity: 1;
    visibility: visible;
}

/* Right Content Panel */
.dco-hero-text {
    position: relative;
    min-height: 380px;
}

.dco-slide-text {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.dco-slide-text.dco-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dco-name {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #1a1a1a;
}

/* Meta Pills */
.dco-meta-row {
    display: flex;
    align-items: center;
    gap: 5px !important;
    /* Reduced horizontal gap between pills */
    flex-wrap: wrap;
    margin-bottom: 10px !important;
    font-size: 15px !important;
    /* Reduced vertical space below meta pills */
}

.dco-meta-item {
    font-size: 15px !important;
    /* Increased size (was 14px) */
    font-weight: 500;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 3px !important;
    /* Reduced space between icon and text */
}

.dco-level-badge {
    background: #f3f4f6;
    color: #374151;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px !important;
    /* Increased size (was 12px) */
}

/* Outcome Box */
.dco-outcome-box {
    border-left: 3px solid #b58863;
    padding-left: 14px;
    margin: 18px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

.dco-outcome-box strong {
    color: #1f2937;
}

/* Info Details Row (Best For, Access, Support) */
.dco-info-details {
    display: flex;
    flex-direction: column;
    gap: 4px !important;
    /* Reduced vertical spacing between lines */
    margin-bottom: 14px !important;
    /* Tightened gap before price row */
}

.dco-detail-item {
    font-size: 16px !important;
    /* Increased font size (was 14px) */
    color: #6b7280;
    margin: 5px !important;
    line-height: 1.35 !important;
    /* Tighter line-height */
}

.dco-detail-item span {
    color: #1a1a1a;
    font-weight: 600;
}

/* Pricing */
.dco-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

.dco-price-current {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
}

.dco-price-old {
    font-size: 16px;
    color: #9ca3af;
}

/* Action Buttons */
.dco-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.dco-btn-enrol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 8px 14px !important;
    border: 1px solid transparent;
    background: #A67F68;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 12px !important;
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: background-color .25s ease, transform .25s ease;
}

.dco-btn-enrol:hover {
    background: #9e7454;
    transform: translateY(-2px);
}

.dco-btn-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 8px 14px;
    background: transparent;
    color: #A67F68 !important;
    border: 1px solid #b58863;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: background-color .25s ease, color .25s ease;
}

.dco-btn-demo:hover {
    background: #A67F68;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ---------- STARTER THUMBNAIL RAIL ---------- */

.dco-rail-outer {
    position: relative;
    width: 100%;
    padding: 0 45px;
    box-sizing: border-box;
}

.dco-rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 16px 4px 24px;
    scrollbar-width: none;
    width: 100%;
}

.dco-rail::-webkit-scrollbar {
    display: none;
}

/* Thumbnail Card Unit */
.dco-thumb {
    flex: 0 0 280px !important;
    width: 280px !important;
    cursor: pointer;
    background: #ffffff !important;
    border: 2px solid transparent !important;
    border-radius: 0 !important;
    padding: 12px !important;
    text-align: center !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
    transition: all .25s ease !important;
}

/* Image Inside Card */
.dco-thumb img {
    width: 100% !important;
    height: 320px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block !important;
    margin: 0 0 12px 0 !important;
}

/* Title Below Image */
.dco-thumb-title {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.4 !important;
    padding: 0 4px !important;
    white-space: normal !important;
    text-align: center !important;
}

.dco-thumb:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
}

.dco-thumb.dco-thumb-active {
    border-color: #b58863 !important;
    box-shadow: 0 8px 24px rgba(181, 136, 99, 0.25) !important;
}

/* ---------- Arrow Buttons ---------- */

.dco-rail-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 30 !important;
    padding: 0 !important;
    color: #1a1a1a !important;
    transition: all 0.2s ease !important;
}

.dco-rail-arrow svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #1a1a1a !important;
    stroke-width: 3px !important;
    fill: none !important;
    display: block !important;
}

.dco-rail-arrow:hover {
    background: #b58863 !important;
    border-color: #b58863 !important;
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.08) !important;
}

.dco-rail-arrow:hover svg {
    stroke: #ffffff !important;
}

.dco-rail-arrow.dco-rail-prev {
    left: -5px !important;
}

.dco-rail-arrow.dco-rail-next {
    right: -5px !important;
}

/* ---------- Responsive Adjustments ---------- */

@media (max-width: 1024px) {
    .dco-thumb {
        flex: 0 0 220px !important;
        width: 220px !important;
    }

    .dco-thumb img {
        height: 200px !important;
    }
}

@media (max-width: 768px) {
    .dco-hero-popout {
        padding: 24px;
    }

    .dco-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dco-hero-media {
        aspect-ratio: 16 / 9;
        max-height: 320px;
    }

    .dco-thumb {
        flex: 0 0 180px !important;
        width: 180px !important;
    }

    .dco-thumb img {
        height: 160px !important;
    }

    .dco-rail-outer {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .dco-hero-popout {
        padding: 24px 16px !important;
    }

    /* Stack buttons full-width */
    .dco-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dco-btn-enrol,
    .dco-btn-demo {
        width: 100%;
    }

    /* Hide scroll arrows on mobile screens */
    .dco-rail-arrow {
        display: none !important;
    }
}