/* How It Works - section specific styles */
:root {
    --howitworks-width: 100%;
}

.howitworks-section {
    position: relative; /* important so absolute children are relative to this section */
    width: var(--howitworks-width);
    margin: 0 auto;
    padding: 80px 0;
    color: #fff;
    overflow: hidden; /* optional, hides any overflowing SVG edges */
    z-index: 0;
}

.howitworks-container {
    width: 940px;
    margin: 0 auto;
}

.howitworks-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.howitworks-header .eyebrow {
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.02em;
    margin: 0;
}
.howitworks-header .title {
    font-weight: 300;
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -0.02em;
    margin: 0;
}

.howitworks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}
.hiw-card {
  
    box-shadow: 0 0 0 1px rgba(103, 235, 211, 0.4),
        /* Sharp thin inner border/outline */ 0 0 15px 5px
            rgba(103, 235, 211, 0.2),
        /* Soft, large green glow */ inset 0 0 10px rgba(103, 235, 211, 0.1); /* Subtle inner glow */

    /* To prevent the glow from being cut off if overflow is hidden */
    overflow: visible;
    transition: all 0.3s ease-in-out;
}

.hiw-card:hover {
    /* Animation: Lift the card */
    transform: translateY(-5px);

    /* Animation: Enhance the shadow/glow */
    box-shadow: 0 0 0 1px rgba(103, 235, 211, 0.6),
        /* Sharper border */ 0 10px 30px 5px rgba(103, 235, 211, 0.35); /* Stronger drop shadow */

    /* If you want the background to be slightly brighter */
    background: #1e1e1e;
    z-index: 10; /* Ensures the lifted card is on top of its neighbors */
}

.hiw-image {
    width: 100%;
    height: 282px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}
.hiw-image.hiw-split {
    display: flex;
    gap: 16px;
    background: none;
}
.hiw-image.hiw-split img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.hiw-title {
    margin: 0;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
}

.hiw-text {
    margin: 0;
    color: #808080;
    font-size: 16px;
    line-height: 19px;
}

/* Decorative overlay for card 3 */
.hiw-overlay-rect {
    position: absolute;
    left: 24px;
    top: 12px;
    width: 208px;
    height: 134px;
    border: 1.7px solid #ffffff;
    border-radius: 4px;
    opacity: 0.9;
}
.hiw-overlay-dot {
    position: absolute;
    right: -8px;
    top: -6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #67ebd3;
    box-shadow: 0 0 0 6px rgba(103, 235, 211, 0.14);
}

@media (max-width: 1024px) {
    .howitworks-section {
        width: 100%;
    }
    .howitworks-container {
        width: calc(100% - 48px);
    }
}

/* ====== How It Works Section Mobile Responsive ====== */
@media (max-width: 768px) {
    .howitworks-section {
        padding: 60px 5px;
        text-align: center;
    }

    .howitworks-container {
        max-width: 100%;
    }

    .howitworks-header {
        margin-bottom: 40px;
    }

    .howitworks-header .eyebrow {
        font-size: 14px;
        letter-spacing: 2px;
        display: block;
        margin-bottom: 10px;
    }

    .howitworks-header .title {
        font-size: 26px;
        line-height: 1.3;
    }

    .howitworks-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    

    .hiw-image {
        width: 100%;
        height: 240px;
        border-radius: 16px;
        background-size: cover;
        background-position: center;
        margin-bottom: 20px;
        position: relative;
        overflow: hidden;
    }

    .hiw-image img {
        width: 48%;
        border-radius: 12px;
    }

    .hiw-image.hiw-split {
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .hiw-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .hiw-text {
        font-size: 15px;
        color: #b5b5b5;
        line-height: 1.5;
    }
}

@media (min-width: 1441px) {
    .howitworks-container {
        width: 80%;
    }

   

    .hiw-image{
        height: 500px;
    }

    .line{
        position: absolute !important;
        top: 15% !important;
        left: 33% !important;
    }
}
