/* Hero Header Custom Styles */
.new-hero-header {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: #fff;
    font-family: 'DM Sans', sans-serif;
}

.new-hero-header .bg-pattern {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background: repeating-linear-gradient(-45deg,
            #f5f5f5,
            #f5f5f5 20px,
            #ffffff 20px,
            #ffffff 40px);
    z-index: 1;
}

.new-hero-header .container {
    position: relative;
    z-index: 2;
}

/* Slide Container */
.hero-slide-item {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    outline: none;
    padding-bottom: 50px;
    /* Space for desktop widgets if needed */
}

/* Green Content Card */
.hero-content-card {
    background-color: #1a4d2e;
    /* Deep Green */
    color: #fff;
    padding: 60px;
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    /* Default to full width of container, limited by max-width */
    position: relative;
    z-index: 5;
    box-shadow: 0 20px 50px rgba(26, 77, 46, 0.25);
}

.hero-content-card .tag {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content-card h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 25px;
    color: #fff;
}

.hero-content-card p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.9;
    color: #e0e0e0;
    max-width: 90%;
}

.hero-content-card .btn-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-content-card .btn-custom {
    background-color: #F09A06;
    color: #fff;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    box-shadow: 0 10px 20px rgba(240, 154, 6, 0.3);
}

.hero-content-card .btn-custom:hover {
    background-color: #d68700;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(240, 154, 6, 0.4);
}

.hero-content-card .btn-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content-card .btn-arrow:hover {
    background-color: #F09A06;
    border-color: #F09A06;
    transform: rotate(45deg);
}

/* Hero Image Area */
.hero-image-area {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 30px;
}

.hero-image-area img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 650px;
}

/* Widgets - Common */
.stats-widget,
.rating-widget {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: transform 0.3s ease;
}

/* Stats Widget */
.stats-widget {
    padding: 20px 30px;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.stats-box {
    text-align: center;
}

.stats-box h4 {
    font-size: 24px;
    font-weight: 800;
    color: #264639;
    margin: 0;
    line-height: 1;
    margin-bottom: 5px;
}

.stats-box span {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rating Widget */
.rating-widget {
    padding: 15px 20px;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.rating-widget .score {
    font-size: 28px;
    font-weight: 800;
    color: #264639;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rating-widget .stars {
    display: flex;
    gap: 3px;
}

.rating-widget .reviews {
    font-size: 12px;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-widget .avatars {
    display: flex;
}

.rating-widget .avatars img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -10px;
    object-fit: cover;
}

.rating-widget .avatars img:first-child {
    margin-left: 0;
}

/* Widget Layout Container */
.fixed-widgets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Pass clicks */
    z-index: 20;
}

/* Re-enable pointer events on the widgets themselves */
.fixed-widgets>div {
    pointer-events: auto;
}

/* Desktop Positioning */
@media (min-width: 992px) {
    .stats-block {
        position: absolute;
        bottom: 60px;
        left: 50%;
        /* Start from center */
        transform: translateX(20px);
        /* Push slightly right under the image */
        animation: float-vertical 4s ease-in-out infinite;
    }

    .rating-block {
        position: absolute;
        top: 25%;
        left: 48%;
        /* Position between card and image, slightly overlapping image */
        transform: translateX(-50%);
        animation: float-vertical 5s ease-in-out infinite reverse;
    }
}

@keyframes float-vertical {
    0% {
        transform: translate(20px, 0px);
    }

    50% {
        transform: translate(20px, -10px);
    }

    100% {
        transform: translate(20px, 0px);
    }
}

/* Responsive & Mobile Layout */
@media (max-width: 1199px) {
    .hero-content-card h1 {
        font-size: 42px;
    }

    .stats-block {
        left: 45%;
    }
}

@media (max-width: 991px) {
    .new-hero-header {
        padding: 50px 0;
    }

    .hero-slide-item {
        flex-direction: column-reverse;
        justify-content: center;
        padding-bottom: 0;
    }

    .hero-content-card {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 40px 25px;
        margin-top: -40px;
        /* Pull card up over the image bottom slightly for layer effect */
    }

    .hero-content-card .btn-group {
        justify-content: center;
    }

    .hero-content-card p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-area {
        justify-content: center;
        padding-left: 0;
        margin-bottom: 0;
        width: 100%;
    }

    .hero-image-area img {
        max-height: 400px;
    }

    /* Mobile Widgets: Stack them nicely */
    .fixed-widgets {
        position: relative;
        height: auto;
        display: block !important;
        /* Force show if d-none was used */
        margin-top: 30px;
        text-align: center;
        padding: 0 15px;
    }

    .stats-block,
    .rating-block {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 0 auto 20px auto;
        animation: none !important;
        max-width: 100%;
        width: auto;
        display: inline-flex;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    /* Order on Mobile */
    .rating-block {
        margin-bottom: 15px;
    }

    /* Creative Adjustment for Mobile */
    .stats-widget {
        flex-wrap: wrap;
        /* Allow stats to wrap if very small screen */
        justify-content: space-around;
        width: 100%;
        background: #f9f9f9;
    }
}

@media (max-width: 767px) {
    .hero-content-card h1 {
        font-size: 32px;
    }

    .hero-content-card {
        padding: 30px 20px;
    }

    .stats-widget {
        gap: 15px;
    }

    .stats-box h4 {
        font-size: 20px;
    }
}

/* =============================================
   Empower Section Styles
   ============================================= */
.empower-section {
    position: relative;
    background: #fff;
    padding: 100px 0;
}

.empower-content h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.empower-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 35px;
    max-width: 480px;
}

.empower-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-orange {
    background-color: #000B47;
    /* Standard Mockup Orange -> Dark Blue */
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(255, 94, 20, 0.2);
}

.btn-orange:hover {
    background-color: #000833;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 15px 30px rgba(255, 94, 20, 0.3);
}

.btn-link-custom {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #555;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.btn-link-custom .icon {
    width: 45px;
    height: 45px;
    background-color: #000B47;
    /* Dark Blue */
    color: #fff;
    border-radius: 8px;
    /* Square with rounded corners per mockup */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.btn-link-custom:hover {
    color: #000B47;
}

.btn-link-custom:hover .icon {
    background-color: #000B47;
    transform: rotate(45deg);
}

/* Right Side Grid */
.empower-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    /* Left col slightly wider or optimized */
    grid-template-rows: auto auto auto;
    gap: 24px;
    padding-left: 20px;
    position: relative;
    grid-template-areas:
        "card1 img1"
        "card2 img1"
        "img2  img2";
}

/* Grid Items placement */
.grid-card-1 {
    grid-area: card1;
    min-height: 280px;
}

.grid-img-1 {
    grid-area: img1;
    height: 100%;
    min-height: 400px;
    /* Ensure tall enough */
}

.grid-card-2 {
    grid-area: card2;
    min-height: 140px;
}

.grid-img-2 {
    grid-area: img2;
    height: 200px;
    margin-top: 10px;
}

/* Grid Items Styling */
.grid-card {
    background-color: #000B47;
    border-radius: 20px;
    padding: 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.grid-card:hover {
    transform: translateY(-5px);
}

.grid-img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.grid-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Content details */
.card-avatars {
    display: flex;
    margin-bottom: 20px;
}

.card-avatars img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-left: -15px;
    object-fit: cover;
}

.card-avatars img:first-child {
    margin-left: 0;
}

.grid-card h3 {
    font-size: 42px;
    font-weight: 800;
    margin: 15px 0 10px 0;
    color: #fff;
    line-height: 1;
}

.grid-card p {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.card-icon {
    font-size: 30px;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-left: auto;
    /* Push to right */
}

.grid-card-2 {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.grid-card-2 p {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

/* Video Button Floating */
.video-play-absolute {
    position: absolute;
    left: -40px;
    /* Float off the left edge */
    top: 38%;
    /* Vertically between card 1 and 2? */
    z-index: 10;
    width: 80px;
    height: 80px;
    background-color: #000B47;
    /* Dark Blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s;
}

.video-play-absolute:hover {
    transform: scale(1.1);
}

.video-play-absolute i {
    color: #ffffff;
    font-size: 24px;
    margin-left: 4px;
    /* Centering fix for play icon */
}

/* Responsive Grid */
@media (max-width: 991px) {
    .empower-grid-wrapper {
        display: flex;
        /* Flex is easier for vertical stack than un-doing named grid */
        flex-direction: column;
        gap: 20px;
        padding-left: 0;
        margin-top: 40px;
    }

    .grid-img-1 {
        height: 300px;
        min-height: 0;
    }

    .grid-img-2 {
        height: 250px;
    }

    .grid-card-1 {
        min-height: auto;
        padding: 40px;
    }

    .video-play-absolute {
        position: relative;
        left: auto;
        top: auto;
        margin: -40px auto -40px auto;
        /* Float between items */
    }
}

@media (max-width: 767px) {
    .empower-content h2 {
        font-size: 34px;
    }

    .empower-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}