﻿/* ========== SECTION ========== */
.a-sub-banner-section {
    height: auto;
    overflow: visible;
}

.a-demo-list {
    padding: 40px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

    .a-demo-list li {
        flex: 0 0 auto;
    }

    .a-demo-list img {
        max-width: 100%;
        height: auto;
    }

/* ========== BENEFITS SECTION ========== */
.edi-benefits-section {
    background-color: #f4f5f7;
    padding: 60px 20px 70px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

    .edi-benefits-section .section-title {
        text-align: center;
        font-size: clamp(1.5rem, 3vw, 2rem);
        font-weight: 800;
        color: #1a1a2e;
        margin-bottom: 50px;
        line-height: 1.3;
    }

        .edi-benefits-section .section-title span {
            color: #1e81c2;
        }

/* ========== GRID ========== */
.edi-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== CARD ========== */
.edi-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 24px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

    .edi-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    }

    .edi-card .icon-wrapper {
        width: 80px;
        height: 80px;
        background: #f0f2f8;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 22px;
        position: relative;
        top: -10px;
    }

        .edi-card .icon-wrapper svg {
            width: 44px;
            height: 44px;
        }

    .edi-card .card-title {
        font-size: 1rem;
        font-weight: 800;
        color: #1a1a2e;
        margin-bottom: 14px;
        line-height: 1.4;
    }

    .edi-card .card-text {
        font-size: 0.88rem;
        color: #555e6d;
        line-height: 1.75;
        font-weight: 400;
    }

/* ========== TRANSACTIONS SECTION ========== */
.edi-transactions-section {
    background-color: #0d1b2e;
    padding: 60px 40px;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .edi-transactions-section .section-title {
        text-align: center;
        font-size: clamp(1.5rem, 3vw, 2rem);
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 6px;
        line-height: 1.3;
    }

.edi-subtitle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.edi-subtitle-brand {
    color: #ffc107;
    font-size: 30px;
    font-weight: 800;
}

/* Top row: 3 cards */
.edi-transactions-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 960px;
    width: 100%;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

    .edi-transactions-row .edi-card {
        background-color: #152238;
        border-radius: 14px;
        padding: 28px 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        width: calc(33.33% - 14px);
        min-width: 220px;
        box-shadow: none;
        text-align: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .edi-transactions-row .edi-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(230, 57, 41, 0.15);
        }

/* Bottom row: 2 cards centered */
.edi-transactions-row-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 960px;
    width: 100%;
    flex-wrap: wrap;
}

    .edi-transactions-row-bottom .edi-card {
        background-color: #152238;
        border-radius: 14px;
        padding: 28px 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        width: calc(50% - 10px);
        min-width: 220px;
        box-shadow: none;
        text-align: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .edi-transactions-row-bottom .edi-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(230, 57, 41, 0.15);
        }

.edi-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.edi-tx-icon-box {
    background-color: white;
    border-radius: 10px;
    width: 70px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .edi-tx-icon-box svg {
        width: 26px;
        height: 26px;
        fill: #e63329;
    }

.edi-tx-number {
    color: white;
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
}

.edi-tx-label {
    color: #c8d8e8;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

/* First Section CSS */
.a-sub-banner-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: -80px;
    background-color: #1e81c2;
    width: 100%;
    height: 350px;
}

.a-demo-section-container .a-demo-form textarea {
    padding: 1.8rem 0.9rem;
    height: 211px;
}

.a-service-section {
    padding: 10px 0px;
    margin-top: 55px;
    background-color: #f7f9fb;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS - ALL FIXES BELOW
   ======================================================== */

/* ---- Large tablets: 1024px ---- */
@media (max-width: 1024px) {
    .edi-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .a-edit-for-amazon .a-amazon-content {
        max-width: 100%;
    }
}

/* ---- Tablets: 991px (Bootstrap lg breakpoint) ---- */
@media (max-width: 991px) {

    /* Banner / Demo Section */
    .a-sub-banner-section::after {
        bottom: -60px;
        height: 280px;
    }

    .a-demo-section-container {
        flex-direction: column;
    }

    /* Edit for amazon section */
    .a-edit-for-amazon {
        border-top-left-radius: 80px;
        border-top-right-radius: 80px;
        padding: 50px 0;
    }

        .a-edit-for-amazon::before {
            border-top-left-radius: 80px;
            border-top-right-radius: 80px;
        }

        .a-edit-for-amazon .a-edit-for-amazon-title {
            margin-bottom: 40px;
        }

            .a-edit-for-amazon .a-edit-for-amazon-title h2 {
                font-size: 28px;
            }

                .a-edit-for-amazon .a-edit-for-amazon-title h2 span {
                    font-size: 22px;
                }

        .a-edit-for-amazon .a-amazon-content {
            max-width: 100%;
            margin-bottom: 40px;
        }

        .a-edit-for-amazon .a-amazon-features h3 {
            max-width: 100%;
        }

    /* Integration service section */
    .a-integration-service {
        border-top-left-radius: 80px;
        border-top-right-radius: 80px;
        padding: 50px 0;
    }

        .a-integration-service::before {
            border-top-left-radius: 80px;
            border-top-right-radius: 80px;
        }

    .edi-outsourcing-section-image {
        text-align: center;
        margin-bottom: 30px;
    }

        .edi-outsourcing-section-image img {
            max-width: 80%;
        }

    /* Transaction rows */
    .edi-transactions-row .edi-card {
        width: calc(50% - 10px);
    }

    /* Industry section */
    .a-industry-list {
        flex-wrap: wrap;
    }
}

/* ---- Tablets portrait: 768px ---- */
@media (max-width: 768px) {

    /* Demo section */
    .a-demo-section {
        padding: 20px 15px;
    }

    .a-demo-content {
        margin-bottom: 30px;
    }

        .a-demo-content h2 {
            font-size: 1.6rem;
        }

    .a-demo-form h2 {
        font-size: 1.4rem;
    }

    /* Benefits section */
    .edi-benefits-section {
        padding: 40px 16px 50px;
        margin-top: 40px;
    }

    /* Transaction cards */
    .edi-transactions-section {
        padding: 40px 20px;
    }

    .edi-transactions-row .edi-card,
    .edi-transactions-row-bottom .edi-card {
        width: calc(50% - 10px);
    }

    /* amazon features list */
    .a-edit-for-amazon .a-amazon-features .a-amazon-features-list .a-amazon-feature-item {
        width: 100%;
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

        .a-edit-for-amazon .a-amazon-features .a-amazon-features-list .a-amazon-feature-item:nth-last-child(1),
        .a-edit-for-amazon .a-amazon-features .a-amazon-features-list .a-amazon-feature-item:nth-last-child(2) {
            margin-bottom: 20px;
        }

        .a-edit-for-amazon .a-amazon-features .a-amazon-features-list .a-amazon-feature-item:last-child {
            margin-bottom: 0;
        }

    /* 3 steps section */
    .fss-frame {
        padding: 0 15px;
    }

        .fss-frame h2 {
            font-size: 1.4rem;
            text-align: center;
        }

    .jq-tabs {
        flex-direction: column;
    }

        .jq-tabs li {
            width: 100%;
        }

    /* Service blocks */
    .homepage-block-inner-content {
        flex-direction: column;
    }

    /* Partner section */
    .a-partner-amosoft .a-partner-content h2 {
        font-size: 26px;
    }

    /* Industry section */
    .a-title {
        font-size: 1.5rem;
        padding: 0 15px;
    }

    /* Sub-banner after pseudo-element — reduce height on mobile */
    .a-sub-banner-section::after {
        height: 200px;
        bottom: -40px;
    }
}

/* ---- Mobile: 480px ---- */
@media (max-width: 480px) {

    /* Transaction cards — full width */
    .edi-transactions-row .edi-card,
    .edi-transactions-row-bottom .edi-card {
        width: 100%;
        min-width: unset;
    }

    /* Benefits grid — single column */
    .edi-benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Demo section */
    .a-demo-content h2 {
        font-size: 1.4rem;
    }

    .a-demo-content ul {
        padding-left: 18px;
    }

    /* EDI transactions section */
    .edi-transactions-section {
        padding: 30px 12px;
    }

    .edi-subtitle-brand {
        font-size: 18px;
    }

    .edi-tx-number {
        font-size: 26px;
    }

    /* Edit for amazon rounded corners — smaller on mobile */
    .a-edit-for-amazon,
    .a-integration-service {
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
    }

        .a-edit-for-amazon::before,
        .a-integration-service::before {
            border-top-left-radius: 40px;
            border-top-right-radius: 40px;
        }

        /* amazon title */
        .a-edit-for-amazon .a-edit-for-amazon-title h2 {
            font-size: 22px;
        }

            .a-edit-for-amazon .a-edit-for-amazon-title h2 span {
                font-size: 18px;
            }

        /* Feature icon size */
        .a-edit-for-amazon .a-amazon-features .a-amazon-features-list .a-amazon-feature-item .a-amazon-feature-icon {
            width: 60px;
            height: 60px;
            flex: 0 0 60px;
        }

    /* Outsourcing image */
    .edi-outsourcing-section-image img {
        max-width: 100%;
    }

    .edi-outsourcing-section-content h2 {
        font-size: 1.3rem;
    }

    /* Service section */
    .a-service-section .a-title {
        font-size: 1.3rem;
    }

    .homepage-block-inner-content {
        padding: 15px;
    }

    /* Try demo button */
    .a-try-demo-btn .container {
        text-align: center;
    }

    /* 3 steps tabs */
    .services-tabs li a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .fss-step-number {
        display: none;
    }

    /* Sub banner after */
    .a-sub-banner-section::after {
        height: 160px;
        bottom: -30px;
    }

    /* Demo list logos */
    .a-demo-list img {
        max-height: 40px;
        width: auto;
    }

    /* Partner section rounded */
    .a-partner-amosoft .a-partner-content h2 {
        font-size: 20px;
    }

    /* amazon banner section */
    .sub-banner-section.amazon-house-banner {
        padding: 120px 0px 100px;
        border-bottom-left-radius: 60px;
        border-bottom-right-radius: 60px;
    }

        .sub-banner-section.amazon-house-banner::after {
            border-bottom-left-radius: 60px;
            border-bottom-right-radius: 60px;
        }

        .sub-banner-section.amazon-house-banner p {
            font-size: 1rem;
            line-height: 26px;
        }

    /* Industry list */
    .a-industry-list li {
        width: 100%;
    }
}

/* ---- Very small: 360px ---- */
@media (max-width: 360px) {

    .a-demo-form .form-row .col-lg-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .a-demo-content h2 {
        font-size: 1.2rem;
    }

    .edi-benefits-section .section-title {
        font-size: 1.2rem;
    }

    .edi-transactions-section .section-title {
        font-size: 1.2rem;
    }

    .a-edit-for-amazon .a-edit-for-amazon-title h2 {
        font-size: 18px;
    }
}
