/* ===================================================
   Guarantee Section  (prefix: gs-)
   =================================================== */

.gs-section {
    padding: var(--section-bg-py) 0;
    position: relative;
}

.gs-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 5;
}

/* ===================================================
   Grid
   =================================================== */
.gs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 121px 20px;
    padding-top: 110px; /* space for badge overflowing above cards */
}

/* ===================================================
   Card
   =================================================== */
.gs-card {
    position: relative;
    background: #fff;
    border: 1px solid #EEEAF8;
    border-radius: 20px;
    padding: 91px 15px 55px; /* top padding = room for badge bottom half */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 16px rgba(91, 80, 232, 0.07);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: visible;
}

.gs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(91, 80, 232, 0.13);
}

/* ===================================================
   Badge — overflows above card top border
   =================================================== */
.gs-card-badge-wrap {
    position: absolute;
    top: -78px;
    left: 50%;
    transform: translateX(-50%);
}

.gs-card-badge-wrap img {
    width: 167px;
    height: 144px;
    object-fit: contain;
    display: block;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.gs-card:hover .gs-card-badge-wrap img {
    transform: scale(1.07);
}

/* ===================================================
   Card body
   =================================================== */
.gs-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.gs-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 100%;
    color: #1F2A2E;
    margin-bottom: 10px;
}

/* Underline — always visible below title */
.gs-card-underline {
    height: 3px;
    border-radius: 100px;
    background: #685ADB;
    width: 34px;
    opacity: 1;
    margin: 0 auto 14px;
    transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.gs-card:hover .gs-card-underline {
    width: 56px;
}

.gs-card-desc {
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    line-height: var(--lh-relaxed);
    color: var(--color-text);
    margin: 0;
}

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 1100px) {
    .gs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gs-container {
        padding: 0 24px;
    }

    .gs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .gs-container {
        padding: 0;
    }

    .gs-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        padding: 90px 20px 20px 0;
                margin-left: 20px;
                scrollbar-width: thin;
        scrollbar-color: var(--color-primary) var(--color-card-border);
    }

    .gs-grid::-webkit-scrollbar {
        display: none;
    }

    .gs-card {
        flex: 0 0 240px;
        scroll-snap-align: start;
        padding: 91px 15px 30px;
        border-radius: 16px;
    }

    .gs-card-badge-wrap {
        position: absolute;
        top: -63px;
        left: 50%;
        transform: translateX(-50%);
    }

    .gs-card-badge-wrap img {
        width: 140px;
        height: 120px;
    }
}
