/* Hero Section - Full Width Redesign */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    /* Fixed height relative to viewport */
    min-height: 600px;
    /* Minimum fallback */
    background: var(--color-bg);
    overflow: hidden;
    margin-bottom: var(--space-6);
    display: block;
    /* changed from flex to block to act as container for absolutes */
    padding: 0;
}

/* Slide Container */
.hero-slide {
    position: absolute !important;
    /* Force absolute positioning to override any generic overrides */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    padding: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    /* Do NOT change position to relative here; keep absolute */
}

/* Full Width Background Image Container */
.hero-visual-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-visual-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Darker Overlay for Text Visibility */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from left to protect text, or full overlay if centered */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Content Container */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    /* Vertically center */
    width: 100%;
    height: 100%;
    padding: var(--space-6) var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    max-width: 700px;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    text-align: left;
    color: #fff;
    /* White text for contrast on overlay */
}

/* Center Text Option - can be added via JS or just class */
.hero-text.center-text {
    margin: 0;
    /* Align left by default as per design, remove auto margin if any */
}

.hero-slide.active .hero-text {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    font-family: var(--font-primary);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.hero-text p {
    font-size: 1.35rem;
    color: #e5e7eb;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 90%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
}

.hero-text .btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-text .btn-primary {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 4px 14px 0 rgba(212, 175, 55, 0.3);
    border: none;
    font-weight: 700;
}

.hero-text .btn-primary:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
}

.hero-text .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.hero-text .btn-outline:hover {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

/* Responsive Use */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: 500px;
        /* Keep height for mobile to show BG */
        height: 500px;
    }

    .hero-content {
        justify-content: center;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.6);
        /* Even overlay on mobile */
    }

    .hero-cta-group {
        justify-content: center;
    }
}