/* ===================================================
   Steel Gallery Pro — Premium Carousel Styles v2.1
   ALL rules !important — prevents Elementor / theme conflicts
   =================================================== */

/* ── Section Heading — forced colors even on white bg ── */
.sg-section-header {
    text-align: center !important;
    padding: 36px 20px 14px !important;
    margin-bottom: 8px !important;
    background: transparent !important;
}

.sg-section-title {
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: clamp(26px, 4vw, 46px) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    color: #ffffff !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6) !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Accent word inside title */
.sg-section-title .sg-accent {
    display: inline !important;
    -webkit-text-fill-color: unset !important;
}
.sg-theme-farhan .sg-section-title .sg-accent,
.sg-farhan-header .sg-section-title .sg-accent {
    color: #A2D53D !important;
    -webkit-text-fill-color: #A2D53D !important;
}
.sg-theme-owais .sg-section-title .sg-accent,
.sg-owais-header .sg-section-title .sg-accent {
    color: #FFB61E !important;
    -webkit-text-fill-color: #FFB61E !important;
}

.sg-section-subtitle {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: clamp(14px, 1.7vw, 16px) !important;
    color: rgba(255,255,255,0.72) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.72) !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    line-height: 1.75 !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5) !important;
}

.sg-section-divider {
    width: 56px !important;
    height: 3px !important;
    margin: 16px auto 0 !important;
    border-radius: 2px !important;
    display: block !important;
}

/* Dark wrapper around heading so text stays readable on any page bg */
.sg-farhan-header,
.sg-owais-header {
    background: #141414 !important;
    border-radius: 16px 16px 0 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 8px !important;
}

/* ── CSS Variables ── */
.sg-theme-farhan {
    --sg-primary:     #A2D53D;
    --sg-bg:          #141414;
    --sg-bg2:         #1c1c1c;
    --sg-arrow-bg:    rgba(162,213,61,0.18);
    --sg-arrow-border:rgba(162,213,61,0.60);
    --sg-arrow-hover: #A2D53D;
    --sg-dot-active:  #A2D53D;
    --sg-glow:        rgba(162,213,61,0.42);
    --sg-brand-bar:   #A2D53D;
}

.sg-theme-owais {
    --sg-primary:     #E87520;
    --sg-bg:          #141414;
    --sg-bg2:         #1c1c1c;
    --sg-arrow-bg:    rgba(232,117,32,0.18);
    --sg-arrow-border:rgba(255,182,30,0.60);
    --sg-arrow-hover: #FFB61E;
    --sg-dot-active:  #FFB61E;
    --sg-glow:        rgba(232,117,32,0.45);
    --sg-brand-bar:   linear-gradient(90deg,#E87520,#FFB61E);
}

/* ── Carousel Wrapper ── */
.sg-carousel-wrapper {
    background: #141414 !important;
    border-radius: 0 0 16px 16px !important;
    /* Top padding = breathing room above images */
    padding: 20px 20px 24px !important;
    margin: 0 auto 40px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: visible !important;
}

/* Top accent bar */
.sg-carousel-wrapper::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 3px !important;
    background: var(--sg-brand-bar, var(--sg-primary)) !important;
}

/* ── Brand Bar (FARHAN / OWAIS label row) ── */
.sg-brand-bar {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    padding: 0 4px !important;
}

.sg-brand-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: var(--sg-primary) !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 10px var(--sg-glow) !important;
}
.sg-theme-owais .sg-brand-dot {
    background: linear-gradient(135deg,#E87520,#FFB61E) !important;
}

.sg-brand-name {
    font-family: 'Arial Black', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}
.sg-theme-farhan .sg-brand-name {
    color: #A2D53D !important;
    -webkit-text-fill-color: #A2D53D !important;
    background: none !important;
}
.sg-theme-owais .sg-brand-name {
    background: linear-gradient(90deg,#E87520,#FFB61E) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.sg-brand-line {
    flex: 1 !important;
    height: 1px !important;
    background: linear-gradient(90deg, var(--sg-primary), transparent) !important;
    opacity: 0.35 !important;
}

/* ── Outer row: left-arrow | track | right-arrow ── */
.sg-carousel-outer {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    /* ↑↓ padding so arrows don't get clipped and images have top/bottom air */
    padding: 10px 0 !important;
}

/* ── Track wrapper (clips slides) ── */
.sg-carousel-track-wrap {
    flex: 1 !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    min-width: 0 !important;
    /* Extra vertical padding inside the clip so borders show fully */
    padding: 8px 0 !important;
    box-sizing: border-box !important;
}

/* ── Moving track ── */
.sg-carousel-track {
    display: flex !important;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
}

/* ── Individual slides ── */
.sg-slide {
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    padding: 0 6px !important;
}

/* Image container — taller than before */
.sg-slide-inner {
    overflow: hidden !important;
    border-radius: 10px !important;
    position: relative !important;
    background: #1c1c1c !important;
    /* Taller aspect: 3/2 instead of 4/3 → more height */
    aspect-ratio: 3 / 2 !important;
    width: 100% !important;
    display: block !important;
    border: 2px solid transparent !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
}

/* Image fills box perfectly — no top/bottom cut */
.sg-slide-inner img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform 0.45s ease, filter 0.3s ease !important;
    filter: brightness(0.95) saturate(1.05) !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.sg-slide-inner:hover img {
    transform: scale(1.05) !important;
    filter: brightness(1.05) saturate(1.2) !important;
}

.sg-slide.active .sg-slide-inner {
    border-color: var(--sg-primary) !important;
    box-shadow: 0 0 0 2px var(--sg-primary), 0 8px 28px var(--sg-glow) !important;
}

/* ── ARROWS — always visible ── */
.sg-arrow {
    flex-shrink: 0 !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 50% !important;
    background: var(--sg-arrow-bg) !important;
    border: 2px solid var(--sg-arrow-border) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s !important;
    padding: 0 !important;
    z-index: 20 !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    outline: none !important;
    box-shadow: 0 2px 14px rgba(0,0,0,0.5) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.sg-arrow svg {
    width: 22px !important;
    height: 22px !important;
    pointer-events: none !important;
    stroke: #ffffff !important;
    display: block !important;
}

.sg-arrow:hover {
    background: var(--sg-arrow-hover) !important;
    border-color: var(--sg-arrow-hover) !important;
    box-shadow: 0 0 22px var(--sg-glow) !important;
    transform: scale(1.12) !important;
}
.sg-arrow:hover svg { stroke: #111 !important; }
.sg-arrow:active    { transform: scale(0.93) !important; }

/* ── Dots ── */
.sg-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 18px !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
}

.sg-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.22) !important;
    cursor: pointer !important;
    transition: background 0.3s, transform 0.3s, width 0.3s !important;
    display: inline-block !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sg-dot.active {
    background: var(--sg-dot-active) !important;
    transform: scale(1.25) !important;
    width: 22px !important;
    border-radius: 4px !important;
    box-shadow: 0 0 8px var(--sg-glow) !important;
}

/* ── Empty state ── */
.sg-empty {
    text-align: center !important;
    padding: 48px 20px !important;
    color: #888 !important;
    font-style: italic !important;
    background: #1a1a1a !important;
    border-radius: 10px !important;
    margin: 20px auto !important;
    font-family: Arial, sans-serif !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .sg-arrow {
        width: 40px !important; height: 40px !important;
        min-width: 40px !important; min-height: 40px !important;
    }
    .sg-arrow svg { width: 18px !important; height: 18px !important; }
    .sg-carousel-outer { gap: 10px !important; }
}

@media (max-width: 600px) {
    .sg-farhan-header, .sg-owais-header { border-radius: 10px 10px 0 0 !important; }
    .sg-carousel-wrapper { padding: 14px 10px 18px !important; border-radius: 0 0 10px 10px !important; }
    .sg-arrow { width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; }
    .sg-carousel-outer { gap: 7px !important; padding: 6px 0 !important; }
    .sg-brand-name { font-size: 11px !important; letter-spacing: 2px !important; }
    .sg-section-title { letter-spacing: 2px !important; }
    .sg-carousel-track-wrap { padding: 5px 0 !important; }
}
