/* PolicyBazaar Inspired Hero Slider CSS */
.hero-slider-section {
    position: relative;
    width: 100%;
    margin-top: 80px; /* Header height offset */
    overflow: hidden;
}

.slider-container {
    height: 500px;
    width: 100%;
    position: relative;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

/* Content Area */
.hero-content {
    flex: 1.2;
    color: #fff;
    z-index: 2;
    /* Removed redundant slide animation, let AOS or standard JS handle entrance */
}

.slide-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 25px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-content h1 span {
    color: var(--secondary-color); /* Highlight gold */
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.6;
}

/* Button & Actions */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.btn-plans {
    display: inline-flex;
    align-items: center;
    background: var(--secondary-color);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.15rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-plans i {
    font-size: 1rem;
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.btn-plans:hover {
    transform: translateY(-3px) scale(1.02);
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.btn-plans:hover i {
    transform: translateX(5px);
}

.terms-text {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Image Area */
.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
    position: relative;
}

.hero-image img {
    max-height: 480px;
    width: auto;
    object-fit: contain;
    /* Removed redundant slide animation */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 8%;
    display: flex;
    gap: 12px;
}

/* Slider Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* Allows clicks through the container */
    z-index: 10;
}

.nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto; /* Re-enabling for buttons */
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.nav-btn i {
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* Hide nav on mobile to rely on swipe/dots */
@media (max-width: 768px) {
    .slider-nav { display: none; }
}

.dot {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
    width: 40px;
    border-radius: 10px;
    background: #fff;
}

/* Animations */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Ultra-Mobile Premium Overhaul */
@media (max-width: 768px) {
    .hero-slider-section { margin-top: 60px; } /* Tighter header offset */
    .slider-container { height: auto; min-height: 520px; }
    .hero-slide { padding: 60px 20px 40px; align-items: center; } /* Reduced top padding */
    .hero-container { flex-direction: column; text-align: center; gap: 15px; }
    .hero-content { 
        order: 1; 
        flex: none; 
        width: 100%; 
        min-height: 220px; /* Force uniform height across all slides */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-content h1 { 
        font-size: clamp(1.6rem, 8vw, 2.1rem); 
        margin-bottom: 12px;
        line-height: 1.1;
    }
    .hero-content p { 
        margin: 0 auto 20px; 
        font-size: 0.95rem; 
        line-height: 1.4;
        max-width: 90%;
        opacity: 0.95;
    }
    .hero-image { 
        order: 2; 
        width: 100%; 
        height: auto; 
        padding-top: 0; 
        justify-content: center;
        display: flex;
    }
    .hero-image img { 
        max-height: 240px; 
        width: auto;
        object-fit: contain;
        /* Professional masking for white-background images if needed */
        /* filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1)); */
    }
    .hero-actions { justify-content: center; width: 100%; }
    .btn-plans { 
        width: 90%; 
        padding: 14px 20px; 
        font-size: 1.05rem;
    }
    .slider-indicators { bottom: 15px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: clamp(1.5rem, 8vw, 1.8rem); }
    .hero-image img { max-height: 200px; }
    .hero-slide { padding-top: 60px; }
}
