/* ================================================================
   Dental Hero Slider v2.0 — CSS
   Pixel-perfect match to screenshot design + full responsive fix
   ================================================================ */

/* ── Reset inside widget only ── */
.dhs-slider-wrap,
.dhs-slider-wrap * {
    box-sizing: border-box;
}
.dhs-slider-wrap a,
.dhs-slider-wrap a:hover,
.dhs-slider-wrap a:focus {
    text-decoration: none;
    outline: none;
}
.dhs-slider-wrap button:focus {
    outline: none;
}

/* ────────────────────────────────
   WRAPPER
──────────────────────────────── */
.dhs-slider-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
    /* Remove any Elementor default padding */
    padding: 0 !important;
    margin: 0 !important;
}

/* ────────────────────────────────
   TRACK & SLIDE
──────────────────────────────── */
.dhs-track {
    display: flex;
    width: 100%;
    will-change: transform;
    /* transition set via JS using data-trans attribute */
}

.dhs-slide {
    position: relative;
    min-width: 100%;
    width: 100%;
    height: 440px;           /* default — overridden by Elementor slider control */
    overflow: hidden;
    flex-shrink: 0;
}

/* ────────────────────────────────
   BACKGROUND
──────────────────────────────── */
.dhs-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.06);
    transition: transform 7s ease;
    will-change: transform;
}

/* Ken-Burns: active slide zooms in */
.dhs-slide.dhs-active .dhs-bg {
    transform: scale(1);
}

/* Ken-Burns disabled */
.dhs-slider-wrap[data-kenburns="false"] .dhs-bg {
    transform: scale(1) !important;
    transition: none !important;
}

/* ────────────────────────────────
   OVERLAY (subtle left-side darkening)
   Matches screenshot: left dark, right transparent
──────────────────────────────── */
.dhs-overlay {
    position: absolute;
    inset: 0;
    /* No color by default — set via Elementor style control if needed */
    /* Screenshot shows image almost full visible with minimal overlay */
    pointer-events: none;
    z-index: 1;
}

/* ────────────────────────────────
   TEXT CONTENT — top-left area
   Screenshot: "WELCOME HOME" + "WE HAVE YOU COVERED" — top left
──────────────────────────────── */
.dhs-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 38px 36px 0 36px;
    max-width: 55%;
}

/* Fade-up animation */
@keyframes dhs-fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dhs-content.dhs-anim {
    animation: dhs-fadeUp 0.6s ease both;
}

/* Tag line: "WELCOME HOME" — white, smaller */
.dhs-tag {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1.2;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.55);
}

/* Main heading: "WE HAVE YOU COVERED" — large green bold */
.dhs-heading-main {
    font-size: 42px;
    font-weight: 800;
    color: #6abf2e;           /* exact green from screenshot */
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    margin: 0 0 22px 0;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.4);
}

/* CTA buttons (optional — below heading) */
.dhs-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.dhs-cta-btn {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    color: #ffffff;
    line-height: 1.2;
    transition: filter 0.2s, transform 0.15s;
}
.dhs-cta-btn:hover {
    filter: brightness(0.88);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Green button */
.dhs-btn-green  { background-color: #6abf2e; }

/* Orange button */
.dhs-btn-orange { background-color: #e07b2a; }

/* ────────────────────────────────
   STAT BOXES
   Left: white box, bottom-left
   Right: white box, bottom-right
   Exact screenshot positions
──────────────────────────────── */
.dhs-stat-box {
    position: absolute;
    bottom: 55px;
    z-index: 5;
    background: #ffffff;
    min-width: 220px;
    padding: 16px 22px 14px 22px;
    /* No border-radius — matches screenshot (square corners) */
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.dhs-stat-left  { left: 0; }   /* flush to left edge like screenshot */
.dhs-stat-right { right: 0; }  /* flush to right edge like screenshot */

.dhs-stat-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* Big green number: "3", "69" */
.dhs-stat-num {
    font-size: 38px;
    font-weight: 900;
    color: #6abf2e;
    line-height: 1;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Label text: "New Jobs", "Registered Users" */
.dhs-stat-label {
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    line-height: 1.2;
}

/* Stat action buttons */
.dhs-stat-btn {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    color: #ffffff;
    line-height: 1.3;
    transition: filter 0.2s;
}
.dhs-stat-btn:hover {
    filter: brightness(0.88);
    color: #ffffff;
}

/* ────────────────────────────────
   DOTS — bottom-center
   Screenshot: 4 gray dots + 1 orange active (3rd position)
──────────────────────────────── */
.dhs-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 10;
}

.dhs-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(180, 180, 180, 0.7);   /* gray inactive */
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    display: block;
}

.dhs-dot.active {
    background: #e07b2a;             /* orange active — matches screenshot */
    transform: scale(1.22);
}

.dhs-dot:hover:not(.active) {
    background: rgba(200,200,200,0.9);
}

/* ────────────────────────────────
   ARROWS — prev / next
──────────────────────────────── */
.dhs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.22);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.dhs-arrow:hover {
    background: #6abf2e;
    border-color: #6abf2e;
    transform: translateY(-50%) scale(1.1);
}

.dhs-prev { left: 12px; }
.dhs-next { right: 12px; }

/* ================================================================
   RESPONSIVE FIXES
================================================================ */

/* ── Tablet landscape (≤ 1024px) ── */
@media (max-width: 1024px) {
    .dhs-heading-main   { font-size: 34px; }
    .dhs-tag            { font-size: 15px; }
    .dhs-stat-num       { font-size: 30px; }
    .dhs-stat-label     { font-size: 13px; }
    .dhs-stat-box       { min-width: 180px; padding: 12px 16px 12px; }
    .dhs-content        { max-width: 60%; }
}

/* ── Tablet portrait (≤ 768px) ── */
@media (max-width: 768px) {
    .dhs-slide          { height: 340px !important; }
    .dhs-content        { padding: 24px 20px 0 20px; max-width: 70%; }
    .dhs-tag            { font-size: 13px; }
    .dhs-heading-main   { font-size: 26px; margin-bottom: 16px; }
    .dhs-cta-btn        { font-size: 12px; padding: 8px 18px; }
    .dhs-stat-box       { min-width: 150px; padding: 10px 14px 10px; bottom: 40px; }
    .dhs-stat-num       { font-size: 26px; }
    .dhs-stat-label     { font-size: 12px; }
    .dhs-stat-btn       { font-size: 11px; padding: 6px 13px; }
    .dhs-dot            { width: 10px; height: 10px; }
    .dhs-arrow          { width: 34px; height: 34px; font-size: 22px; }
}

/* ── Mobile landscape (≤ 580px) ── */
@media (max-width: 580px) {
    .dhs-slide          { height: 280px !important; }
    .dhs-content        { padding: 20px 16px 0 16px; max-width: 100%; }
    .dhs-tag            { font-size: 12px; }
    .dhs-heading-main   { font-size: 22px; margin-bottom: 14px; }
    .dhs-btns           { gap: 8px; }
    .dhs-cta-btn        { font-size: 11px; padding: 7px 14px; }

    /* Right stat box hidden on small screens — matches design intent */
    .dhs-stat-right     { display: none; }

    /* Left stat box smaller */
    .dhs-stat-left      { min-width: 130px; padding: 10px 12px 10px; bottom: 34px; }
    .dhs-stat-num       { font-size: 22px; }
    .dhs-stat-label     { font-size: 11px; }
    .dhs-stat-row       { margin-bottom: 7px; gap: 4px; }
    .dhs-stat-btn       { font-size: 10px; padding: 5px 11px; }

    /* Arrows smaller */
    .dhs-arrow          { width: 30px; height: 30px; font-size: 18px; }
    .dhs-dots           { bottom: 10px; }
    .dhs-dot            { width: 9px; height: 9px; gap: 5px; }
}

/* ── Mobile portrait (≤ 400px) ── */
@media (max-width: 400px) {
    .dhs-slide          { height: 240px !important; }
    .dhs-tag            { font-size: 11px; letter-spacing: 0; }
    .dhs-heading-main   { font-size: 18px; }
    .dhs-cta-btn        { font-size: 10px; padding: 6px 12px; }
    .dhs-stat-num       { font-size: 20px; }
    .dhs-stat-label     { font-size: 10px; }
    .dhs-stat-left      { min-width: 115px; }
    .dhs-arrows         { display: none; }
}

/* ── Fix Elementor container padding interference ── */
.elementor-widget-dental_hero_slider .elementor-widget-container {
    padding: 0 !important;
    overflow: hidden;
}
