/* --- 1. HERO SECTION (Restored to single column) --- */
.hero-section {
    background-image: url('/images/HeroesNew.jpg');
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
    min-height: 550px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
        z-index: 1;
    }

/* Left Column: Hero Text */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: #333;
    padding-left: 20px;
}

    .hero-content h1 {
        font-size: 40px;
        color: #004b49;
        margin-bottom: 15px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.5px;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 30px;
        color: #495057;
    }

.btn-hero-green {
    background-color: #007a53;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn-hero-green:hover {
        background-color: #005c3e;
    }


/* --- 2. ACTION CARDS SECTION (The proper FlexLayout) --- */
.next-move-section {
    padding: 60px 5%;
    background-color: #fff;
    position: relative;
    z-index: 10;
}

.section-title {
    color: #7b8e8e;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.action-cards-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px; 
    flex-wrap: wrap;
    max-width: 1550px; 
    margin: 0 auto;
}

/* The Card Base */
.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px; /* Increased from 160px */
    height: 220px; /* Increased from 160px */
    background-color: #fbfbfc;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    padding: 25px; /* Increased from 15px */
    text-align: center;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, box-shadow;
}

    /* THE HOVER EXPANSION */
    .action-card:hover {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 12px 24px rgba(0,0,0,0.1);
        border-color: #d1d5d8;
    }

.card-icon {
    margin-bottom: 20px; 
    color: #00363a;
}

    .card-icon svg {
        width: 60px; /* Increased from 40px */
        height: 60px; /* Increased from 40px */
        fill: none;
        stroke: currentColor;
        stroke-width: 1.5;
    }

.icon-placeholder {
    font-size: 60px; /* Increased from 35px */
}

.card-title {
    color: #00363a; /* Changed to the darker navy blue */
    font-size: 18px; /* Increased from 14px */
    font-weight: 700;
    line-height: 1.3;
}


/* --- HEADER LAYOUT & CENTERING --- */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 80px;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    z-index: 1000;
}

.header-logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-spacer {
    flex: 1;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: 100%;
}


/* --- MEGA MENU SHELL COMPONENT --- */
.mega-menu-wrapper {
    position: static;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-trigger {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    text-transform: uppercase;
    border-bottom: 4px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

    .nav-trigger .arrow {
        font-size: 10px;
        display: inline-block;
        transition: transform 0.3s ease;
    }

.mega-menu-container {
    position: absolute;
    top: 80px;
    left: 50px;
    right: 50px;
    width: auto;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}


/* --- THE MAGIC: PURE CSS HOVER ANIMATIONS --- */
.mega-menu-wrapper:hover .nav-trigger {
    color: #004b49;
    border-bottom-color: #004b49;
}

    .mega-menu-wrapper:hover .nav-trigger .arrow {
        transform: rotate(180deg);
    }

.mega-menu-wrapper:hover .mega-menu-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-content-padding {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}


/* --- MEGA MENU INTERNAL CONTENT GRID --- */
.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.menu-col {
    display: flex;
    flex-direction: column;
}

    .menu-col h4 {
        color: #004b49;
        font-size: 16px;
        margin-bottom: 15px;
        font-weight: 700;
        text-transform: none;
        border-bottom: none;
    }

    .menu-col a {
        color: #495057;
        text-decoration: none;
        margin-bottom: 12px;
        font-size: 14px;
        transition: color 0.2s ease;
    }

        .menu-col a:hover {
            color: #007a53;
            text-decoration: underline;
        }

.promo-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .promo-col h4 {
        color: #004b49;
        font-size: 18px;
        margin-bottom: 10px;
        font-weight: 700;
    }
