/* =============================================================
   Custom Banner Slider – Front-end & Editor styles
   ============================================================= */

/* ── Wrapper ──────────────────────────────────────────────── */
.cbs-hero-wrapper {
    position: relative;
    overflow: hidden;
}

/* ── Each slide inner ─────────────────────────────────────── */
.cbs-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* min-height is controlled by Elementor responsive slider */
    min-height: 900px;
}

/* ── Background layer ─────────────────────────────────────── */
.cbs-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Overlay (::before is colored via Elementor control) */
.cbs-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(1, 15, 28, 0.65);
    z-index: 1;
}

/* ── Content layer ────────────────────────────────────────── */
.cbs-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Make the container a flex row so horizontal position works */
.cbs-hero-inner .container {
    display: flex;
    justify-content: flex-start; /* default: left — overridden by Elementor responsive selector */
}

/* Default: content aligned left, text left */
.cbs-hero-content {
    text-align: left;
}

/* Default button group: left-aligned */
.cbs-hero-content .btn-group {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
}

/* On mobile, default everything to center */
@media (max-width: 767px) {
    .cbs-hero-inner .container {
        justify-content: center;
    }
    .cbs-hero-content {
        text-align: center;
    }
    .cbs-hero-content .btn-group {
        justify-content: center !important;
    }
}

/* ── Desktop / Mobile image swap (defaults) ───────────────── */
.cbs-bg-desktop { display: block; }
.cbs-bg-mobile  { display: none;  }

@media (max-width: 768px) {
    .cbs-bg-desktop { display: none;  }
    .cbs-bg-mobile  { display: block; }
}

/* ── Slider arrows ────────────────────────────────────────── */
.cbs-slider-arrow {
    position: absolute;
    top: 46%;
    width: 56px;
    height: 56px;
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}
.cbs-slider-arrow:hover {
    background-color: var(--theme-color, #f5821f);
    border-color:     var(--theme-color, #f5821f);
}
.cbs-slider-arrow.slider-prev { right: 100px; left: unset; }
.cbs-slider-arrow.slider-next { right: 32px;  left: unset; }

@media (max-width: 1399px) {
    .cbs-slider-arrow { display: none; }
}

/* ── Hero title ───────────────────────────────────────────── */
.cbs-hero-title {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

/* ── Hero text ────────────────────────────────────────────── */
.cbs-hero-text {
    color: #fff;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* ── Button ───────────────────────────────────────────────── */
.cbs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

/* ── Responsive: tablet ───────────────────────────────────── */
@media (max-width: 991px) {
    .cbs-hero-inner {
        min-height: 700px;
    }
    .cbs-hero-title {
        font-size: 2.8rem;
    }
}

/* ── Responsive: mobile ───────────────────────────────────── */
@media (max-width: 767px) {
    .cbs-hero-inner {
        min-height: 500px;
    }
    .cbs-hero-title {
        font-size: 2rem;
    }
    .cbs-hero-text {
        font-size: 1rem;
    }
}



/* ── Social links ─────────────────────────────────────────── */
/*
 * Inline style="display:flex" forces visibility only.
 * flex-direction is set by CSS with !important so it beats
 * both the inline style (for direction) and the theme stylesheet.
 *
 * Desktop  (>=1200px) : vertical column, decorative lines visible
 * Tablet+Mobile (<1200px) : horizontal row, lines hidden
 */

/* ── Desktop (>=1200px): vertical column ─────────────────── */
@media (min-width: 1200px) {
    .cbs-hero-wrapper.hero-3 .social-links {
        flex-direction: column !important;
        -webkit-flex-direction: column !important;
        position: absolute !important;
        z-index: 2;
        left:   var(--cbs-social-left, 3%) !important;
        top:    var(--cbs-social-top, 50%) !important;
        right:  auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        -webkit-transform: translateY(-50%) !important;
        width: 46px;
        align-items: center;
    }

    /* Decorative lines - shown on desktop only */
    .cbs-hero-wrapper.hero-3 .social-links::before,
    .cbs-hero-wrapper.hero-3 .social-links::after {
        content: "" !important;
        display: block !important;
        position: absolute;
        left: calc(50% + 5px);
        width: 1px;
        height: 180px;
        border: 1px solid rgba(228, 208, 13, 0.5);
    }
    .cbs-hero-wrapper.hero-3 .social-links::before {
        bottom: calc(100% + 30px);
        transform: rotateX(180deg);
    }
    .cbs-hero-wrapper.hero-3 .social-links::after {
        top: calc(100% + 30px);
    }
}

/* ── Tablet & Mobile (<1200px): horizontal row ────────────── */
@media (max-width: 1199px) {
    .cbs-hero-wrapper.hero-3 .social-links {
        flex-direction: row !important;
        -webkit-flex-direction: row !important;
        flex-wrap: nowrap !important;
        position: absolute !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: auto !important;
        z-index: 10;
        /* Default position - overridden per-widget by scoped inline <style> */
        left:      50% !important;
        bottom:    24px !important;
        top:       auto !important;
        right:     auto !important;
        transform: translateX(-50%) !important;
        -webkit-transform: translateX(-50%) !important;
    }

    /* Hide decorative lines - they are vertical and make no sense in row layout */
    .cbs-hero-wrapper.hero-3 .social-links::before,
    .cbs-hero-wrapper.hero-3 .social-links::after {
        display: none !important;
        content: none !important;
    }

    .cbs-hero-wrapper.hero-3 .social-links a {
        margin: 0 4px !important;
        flex-shrink: 0;
    }
}
