* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: #fafbfc;
    color: #fff;
    transition: background-color 0.3s ease;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Store & Brand Management Service Section */
.ms-section {
    width: 100%;
    padding-top: 4rem;
    background: linear-gradient(to bottom, #fafbfc 75%, #284d7f 60% 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    flex: 1 0 auto;
    min-height: unset;
}

.ms-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.ms-header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.7rem;
    gap: 2rem;
}

.ms-title {
    color: #284d7f;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
}

.ms-title-right {
    color: #82b741;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: right;
}

.ms-desc {
    color: #3a3a3a;
    font-size: 1.05rem;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 500;
    text-align: left;
    margin-bottom: 2.2rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.ms-cards {
    width: 100%;
    max-width: clamp(1200px, 95vw, 1600px);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.ms-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) !important;
    width: 100%;
    max-width: 310px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0.5rem 2rem 0.5rem;
    position: relative;
    overflow: hidden;
}

.ms-card-img-1 {
    width: 100%;
    height: 13rem;
    background: #dbe6ef;
    border-radius: 1.2rem;
    margin-bottom: 0.5rem;
    background: url('/assets/img/ASSET-1701.webp') center center/cover no-repeat;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) !important;
}

.ms-card-img-2 {
    width: 100%;
    height: 13rem;
    background: #dbe6ef;
    border-radius: 1.2rem;
    margin-bottom: 0.5rem;
    background: url('/assets/img/ASSET-1801.webp') center center/cover no-repeat;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) !important;
}

.ms-card-img-3 {
    width: 100%;
    height: 13rem;
    background: #dbe6ef;
    border-radius: 1.2rem;
    margin-bottom: 0.5rem;
    background: url('/assets/img/ASSET-1901.webp') center center/cover no-repeat;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) !important;
}

.ms-card-img-4 {
    width: 100%;
    height: 13rem;
    background: #dbe6ef;
    border-radius: 1.2rem;
    margin-bottom: 0.5rem;
    background: url('/assets/img/ASSET-2001.webp') center center/cover no-repeat;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) !important;
}

.ms-card-num {
    font-size: 2.2rem;
    font-weight: 700;
    color: #9e9e9e;
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1;
    text-align: left;
    margin: 0.7rem 0 0.2rem 1.2rem;
}

.ms-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #284d7f;
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0.7rem auto 0 auto;
    text-align: center;
    line-height: 1.3;
    width: 100%;
    display: block;
}

/* Tablet view (max-width: 1024px) */
@media (max-width: 1024px) {
    .ms-header {
        margin-bottom: 2rem;
    }

    .ms-title {
        font-size: 1.75rem;
    }

    .ms-title-right {
        font-size: 1.35rem;
    }

    .ms-desc {
        font-size: 0.9rem;
    }

    .ms-cards {
        gap: 1.5rem;
    }

    .ms-card {
        min-height: 300px;
        padding-bottom: 0.5rem;
    }

    .ms-card-img-1,
    .ms-card-img-2,
    .ms-card-img-3,
    .ms-card-img-4 {
        height: 10rem;
    }

    .ms-card-num {
        font-size: 1.8rem;
        margin: 0.5rem 0 0.2rem 1.2rem;
    }

    .ms-card-title {
        margin: 0.5rem auto 0 auto;
        font-size: 0.8rem;
    }
}

/* Tablet View (600px - 768px) */
@media (max-width: 768px) {
    .ms-header {
        margin-bottom: 1.75rem;
    }

    .ms-title {
        font-size: 1.5rem;
    }

    .ms-title-right {
        font-size: 1rem;
    }

    .ms-desc {
        font-size: 0.75rem;
    }

    .ms-cards {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .ms-card {
        min-height: 160px;
        min-width: 100%;
        flex-direction: row;
    }

    .ms-card-img-1,
    .ms-card-img-2,
    .ms-card-img-3,
    .ms-card-img-4 {
        width: 50%;
        height: calc(160px - 0.5rem);
        margin-bottom: 0;
    }

    .ms-card-num {
        font-size: 2rem;
        margin: 1rem;
    }

    .ms-card-title {
        height: calc(160px - 0.5rem);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        font-size: 1.3rem;
    }
}

/* Mobile view (max-width: 600px) */
@media (max-width: 600px) {
    .ms-header {
        margin-bottom: 1.5rem;
    }

    .ms-title {
        font-size: 1.25rem;
    }

    .ms-title-right {
        font-size: 0.85rem;
    }

    .ms-desc {
        font-size: 0.65rem;
    }

    .ms-card {
        min-height: 140px;
    }

    .ms-card-img-1,
    .ms-card-img-2,
    .ms-card-img-3,
    .ms-card-img-4 {
        width: 60%;
        height: calc(140px - 0.5rem);
        margin-bottom: 0;
    }

    .ms-card-num {
        font-size: 1.75rem;
        margin: 0.75rem;
    }

    .ms-card-title {
        height: calc(140px - 0.5rem);
        font-size: 1rem;
    }
}

/* Mobile Small view (max-width: 435px) */
@media (max-width: 435px) {
    .ms-header {
        margin-bottom: 1rem;
    }

    .ms-title {
        font-size: 1rem;
    }

    .ms-title-right {
        font-size: 0.75rem;
    }

    .ms-desc {
        font-size: 0.65rem;
    }

    .ms-card {
        min-height: 120px;
    }

    .ms-card-img-1,
    .ms-card-img-2,
    .ms-card-img-3,
    .ms-card-img-4 {
        width: 60%;
        height: calc(120px - 0.5rem);
        margin-bottom: 0;
    }

    .ms-card-num {
        font-size: 1.5rem;
        margin: 0.5rem;
    }

    .ms-card-title {
        height: calc(120px - 0.5rem);
        font-size: 0.8rem;
    }
}