/* Custom Hero Section Styling */
:root {
    --hero-bg-overlay: rgba(0, 0, 0, 0.45);
    --hero-text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    --hero-navy: #1c3ba2;
    --hero-blue: #1E42B8;
    --hero-gradient: linear-gradient(135deg, rgba(31, 58, 93, 0.85) 0%, rgba(0, 94, 150, 0.75) 100%);
}

.section-main-slider {
    margin-bottom: 0 !important;
}

.section-main-slider .main-slider,
.section-main-slider .main-slider .item {
    height: 75vh !important;
    /* Cinematic height */
    min-height: 500px;
}

.section-main-slider .main-slider .item .caption {
    width: 100% !important;
    max-width: 900px !important;
    text-align: center !important;
    margin: 0 auto !important;
    z-index: 5;
    position: relative;
}

.section-main-slider .main-slider .item .caption .title {
    font-family: var(--mds-font-serif) !important;
    font-size: 4.5rem !important;
    font-weight: 500 !important;
    line-height: 1.1;
    color: #fff !important;
    text-align: center !important;
    text-shadow: var(--hero-text-shadow) !important;
    margin-bottom: 1.5rem !important;
}

.section-main-slider .main-slider .item .caption .description {
    font-family: var(--mds-font-serif) !important;
    font-size: 1.75rem !important;
    font-style: italic;
    font-weight: 400 !important;
    color: #fff !important;
    text-align: center !important;
    text-shadow: var(--hero-text-shadow) !important;
    margin-bottom: 2.5rem !important;
    opacity: 0.9;
}

.section-main-slider .main-slider .item .btn-slider {
    font-family: var(--mds-font-main) !important;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 40px !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.section-main-slider .main-slider .item .btn-slider:hover {
    background-color: #fff !important;
    color: var(--hero-navy) !important;
}

/* Background Gradient Overlay */
.section-main-slider .main-slider .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-gradient);
    z-index: 2;
}

/* Background Video Styling */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Prominent Search Bar Below Hero */
.hero-search-section {
    background-color: var(--hero-navy);
    padding: 40px 0;
    color: #fff;
    margin-top: -1px;
    /* Avoid white gap */
}

.hero-search-section .search-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-search-section h2 {
    font-family: var(--mds-font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 25px;
    text-align: center;
}

.hero-search-bar {
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    padding-bottom: 10px;
}

.hero-search-bar input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.8rem;
    padding: 10px 0 !important;
    width: 100%;
    font-family: var(--mds-font-serif);
    box-shadow: none !important;
}

.hero-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hero-search-bar .btn-search {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    padding-left: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-search-bar .btn-search:hover {
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .section-main-slider .main-slider .item .caption .title {
        font-size: 3rem !important;
    }

    .section-main-slider .main-slider .item .caption .description {
        font-size: 1.4rem !important;
    }

    .hero-search-section h2 {
        font-size: 1.8rem;
    }

    .hero-search-bar input {
        font-size: 1.4rem;
    }
}

/* ============================================
   HERO TEXT ANIMATIONS
   ============================================ */

/* Keyframe Animations */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes heroFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.hero-animate-title {
    animation: heroFadeInUp 1.2s ease-out 0.3s both;
}

.hero-animate-description {
    animation: heroFadeInUp 1.2s ease-out 0.7s both;
}

.hero-animate-button {
    animation: heroFadeInScale 1s ease-out 1.2s both;
}

@media (max-width: 576px) {
    .section-main-slider .main-slider .item .caption .title {
        font-size: 2.2rem !important;
    }

    .section-main-slider .main-slider .item .caption .description {
        font-size: 1.2rem !important;
    }
}