/* ==========================================================================
   Navz Slider Pro - Frontend Stylesheet by Navz Sites
   ========================================================================== */

/* Font import if theme doesn't provide Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

.hero-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 80vh; 
    min-height: 500px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-sizing: border-box;
}

.hero-slider-container *,
.hero-slider-container *::before,
.hero-slider-container *::after {
    box-sizing: border-box;
}

.hero-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Background Image Handling */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Responsive Backgrounds & Positions using CSS Custom Properties */
@media (max-width: 767px) {
    .hero-slide-bg {
        background-image: var(--bg-mobile, var(--bg-desktop));
        background-position: var(--bg-pos-mobile, var(--bg-pos-desktop, center center));
    }
}
@media (min-width: 768px) {
    .hero-slide-bg {
        background-image: var(--bg-desktop, var(--bg-mobile));
        background-position: var(--bg-pos-desktop, var(--bg-pos-mobile, center center));
    }
}

/* Overlay for text readability */
.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 0;
}

@media (max-width: 767px) {
    .hero-slide-overlay {
         background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.85) 100%);
    }
}

/* Content Container & Grid */
.hero-slide-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-slide-inner-container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
    height: 100%;
}

@media (min-width: 768px) {
    .hero-slide-inner-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.hero-slide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    height: 100%;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-slide-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.hero-slide-col-content {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    padding-top: 4rem;
    padding-bottom: 4.5rem;
    text-align: center;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .hero-slide-col-content {
        justify-content: center;
        padding-top: 0;
        padding-bottom: 0;
        text-align: left;
    }
}

.hero-slide-badge {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--badge-color, #60a5fa);
    word-break: break-word;
}

@media (min-width: 768px) {
    .hero-slide-badge {
        font-size: 0.875rem;
    }
}

.hero-slide-title {
    font-size: 1.6rem;
    line-height: 1.25;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.875rem;
    color: #ffffff;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 480px) {
    .hero-slide-title {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .hero-slide-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-slide-title {
        font-size: 3.5rem;
    }
}

.hero-slide-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e5e7eb;
    margin-top: 0;
    margin-bottom: 1.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .hero-slide-description {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
}

.hero-slide-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
}

@media (min-width: 540px) {
    .hero-slide-buttons {
        flex-direction: row;
        width: auto;
    }
}

@media (min-width: 768px) {
    .hero-slide-buttons {
        justify-content: flex-start;
    }
}

.hero-slide-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    max-width: 100%;
    word-break: break-word;
    white-space: normal;
}

@media (min-width: 768px) {
    .hero-slide-btn {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

.hero-slide-btn-primary {
    background-color: var(--btn-primary-bg, #3b82f6);
    color: var(--btn-primary-color, #ffffff);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.hero-slide-btn-primary:hover {
    background-color: var(--btn-primary-hover-bg, #2563eb);
    color: #ffffff;
}

.hero-slide-btn-secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.hero-slide-btn-secondary:hover {
    background-color: #ffffff;
    color: #111827;
}

.hero-slide-col-empty {
    display: none;
}

@media (min-width: 768px) {
    .hero-slide-col-empty {
        display: block;
    }
}

/* Navigation Buttons Reset & Override */
.hero-slider-container button.hero-slider-nav-btn,
.hero-slider-container .hero-slider-nav-btn,
.elementor-widget .hero-slider-container button.hero-slider-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.25) !important;
    border: none !important;
    border-radius: 9999px !important;
    box-shadow: none !important;
    outline: none !important;
    color: #ffffff !important;
    padding: 0.6rem !important;
    cursor: pointer !important;
    z-index: 20 !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    transition: background 0.3s ease, background-color 0.3s ease, transform 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
}

@media (min-width: 768px) {
    .hero-slider-container button.hero-slider-nav-btn,
    .hero-slider-container .hero-slider-nav-btn,
    .elementor-widget .hero-slider-container button.hero-slider-nav-btn {
        width: 3.25rem !important;
        height: 3.25rem !important;
        padding: 0.85rem !important;
    }
}

.hero-slider-container button.hero-slider-nav-btn:hover,
.hero-slider-container .hero-slider-nav-btn:hover,
.hero-slider-container button.hero-slider-nav-btn:focus,
.hero-slider-container button.hero-slider-nav-btn:active {
    background: rgba(255, 255, 255, 0.45) !important;
    background-color: rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    outline: none !important;
}

.hero-slider-prev-btn { left: 0.5rem !important; }
.hero-slider-next-btn { right: 0.5rem !important; }

@media (min-width: 768px) {
    .hero-slider-prev-btn { left: 1rem !important; }
    .hero-slider-next-btn { right: 1rem !important; }
}

.hero-slider-nav-btn svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 2.5px !important;
}

@media (min-width: 768px) {
    .hero-slider-nav-btn svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
}

/* Pagination Dots */
.hero-slider-pagination {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

@media (min-width: 768px) {
    .hero-slider-pagination {
        bottom: 2rem;
    }
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
    .hero-slider-dot {
        width: 12px;
        height: 12px;
    }
}

.hero-slider-dot.active {
    background: #ffffff;
    transform: scale(1.25);
}
