/* Hero Section Layout */
.hero-section-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 1. Visual Area (Image + Text Overlay) */
.hero-visual-area {
    position: relative;
    width: 100%;
    /* Fixed height for the visual part - Adjusted to 70vh based on feedback */
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    color: #fff;
}

/* 2. Stats Bar (Separate Block below) */
.stats-bar-v3 {
    /* Standard Grid Layout */
    display: grid;
    /* 5 columns: 4 equal + 1 wider for CTA */
    grid-template-columns: repeat(4, 1fr) 1.5fr;
    gap: 20px;
    width: 100%;
    background: var(--soft-blue, #f0f7ff);
    /* Soft blue background as requested */
    padding: 30px max(20px, calc(50% - 700px));
    /* Centered content padding (1400px max width logic) */
    box-sizing: border-box;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
    z-index: 10;
    position: relative;
    /* Normal flow, not absolute */
    margin-top: 0;
}

/* --- Hero Visual Styling --- */

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-visual-area::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient for text readability - darker on left */
    background: linear-gradient(90deg,
            rgba(10, 30, 60, 0.9) 0%,
            rgba(10, 30, 60, 0.6) 50%,
            rgba(10, 30, 60, 0.1) 100%);
    z-index: 2;
}

.hero-overlay-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}



/* Badge */
/* Badge - Simplified to plain text */
.hero-badge-v3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.5px;
    /* Removed pill styling (background, border, padding) */
}

@media (max-width: 991px) {
    .hero-badge-v3 {
        font-size: 0.85rem;
        /* Smaller on mobile */
    }
}

/* Typography */
.hero-title-v4 {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    /* Reduced from 4rem */
    font-weight: 700;
    /* Reduced from 800 */
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 750px;
    color: #ffffff;
}

.highlight-text-v4 {
    color: #ffffff;
    /* Unified color */
    font-weight: 700;
    /* Matching title weight */
}

.hero-subtitle-v4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.85);
    /* Slightly more subtle */
}

/* Button */
/* Button Group */
.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

/* Override default outline button for dark hero background */
.hero-visual-area .btn-outline {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-visual-area .btn-outline:hover {
    background: #ffffff;
    color: var(--primary-blue, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Stats Bar Items --- */

.stat-box {
    background: #ffffff;
    border-radius: 12px;
    /* Slightly smaller radius */
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    /* Stacked layout */
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 130px;
    /* Reduced height */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
}

.stat-icon-v3 {
    font-size: 1.75rem;
    /* Smaller icon */
    color: var(--primary-blue, #0056b3);
    margin-bottom: 10px;
}

.stat-label-lg {
    font-size: 0.9rem;
    /* Reduced size */
    font-weight: 100;
    /* Lighter weight */
    color: #4a4a4a;
    /* Softer black */
    line-height: 1.3;
}

/* Blue CTA in Stats Row */
.blue-box {
    background: var(--primary-blue, #0056b3);
    color: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 86, 179, 0.2);
}

.stat-number {
    font-size: 1.25rem;
    /* Reduced from 1.5rem */
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 1rem;
    /* Reduced */
    opacity: 0.95;
    display: block;
    margin-bottom: 6px;
}

.stat-desc {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.4;
    max-width: 95%;
}

.stat-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    color: var(--primary-blue, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.blue-box:hover .stat-arrow {
    transform: rotate(45deg);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {
    .hero-visual-area {
        height: auto;
        min-height: 40vh;
        /* Further reduced height on mobile */
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-visual-area::after {
        background: linear-gradient(180deg,
                rgba(10, 30, 60, 0.9) 0%,
                rgba(10, 30, 60, 0.7) 60%,
                rgba(10, 30, 60, 0.4) 100%);
    }

    .hero-overlay-content {
        text-align: left;
        padding: 0 20px;
    }

    .hero-actions {
        flex-direction: row;
        /* Side-by-side */
        gap: 10px;
        margin-top: 24px;
    }

    .hero-actions .btn {
        padding: 10px 16px;
        /* Smaller padding */
        font-size: 0.85rem;
        /* Smaller text */
        flex: 1;
        /* Equal width */
        white-space: nowrap;
        height: auto;
    }

    .hero-title-v4 {
        font-size: 1.75rem;
        /* Further reduced from 2rem */
        line-height: 1.1;
    }

    /* Mobile Stats Grid - 4 items in one row, then CTA below */
    .stats-bar-v3 {
        display: grid;
        width: 100%;
        padding: 20px 10px;
        /* Reduced side padding */
        /* 4 columns for the stats */
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        /* Tighter gap */
        background: var(--soft-blue, #f0f7ff);
        margin-top: 0;
    }

    /* Stat boxes need to be compact to fit 4 in a row */
    .stat-box {
        min-height: auto;
        padding: 12px 4px;
        /* Very tight padding */
        aspect-ratio: 1/1.1;
        /* Taller */
    }

    .stat-icon-v3 {
        font-size: 1.5rem;
        /* Smaller icons */
        margin-bottom: 8px;
    }

    .stat-label-lg {
        font-size: 0.6rem;
        word-break: break-word;
    }

    /* Blue CTA Box - Span all 4 columns */
    .blue-box {
        grid-column: 1 / -1;
        /* Full width */
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        min-height: 70px;
        margin-top: 10px;
        /* Space from row above */
        aspect-ratio: auto;
        /* Fix: Reset inherited aspect ratio */
    }

    .blue-box .stat-content {
        flex: 1;
    }

    .blue-box .stat-number,
    .blue-box .stat-desc {
        display: none;
        /* Keep clean on mobile */
    }

    .blue-box .stat-label {
        margin: 0;
        font-size: 1rem;
        /* Matched to btn-hero-v4 */
        /* Matched to btn-hero-v4 */
        color: #fff;
    }

    .blue-box .stat-arrow {
        position: static;
        margin-left: 15px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title-v4 {
        font-size: 2.2rem;
    }
}