/* Generic Four Categories Section Styles */
.section-categories {
    padding: 60px 0;
    background-color: #fff;
}

@media (max-width: 768px) {
    .section-categories {
        padding: 48px 0;
    }
}

.section-categories__container {
    margin: 0 auto;
    padding: 0 15px;
}

.section-categories__header {
    text-align: center;
    margin: 0 auto 24px;
    width: calc(90% - 10px);
}

@media (min-width: 768px) {
    .section-categories__header {
        margin-left: calc(15% + 10px);
        width: calc(70% - 20px);
    }
}

.section-categories__header h2 {
    font-size: 3.7rem;
    font-weight: 700;
    line-height: 3rem;
    color: #000;
    margin: 0;
}

@media (max-width: 768px) {
    .section-categories__header h2 {
        font-size: 2.4rem;
        line-height: 3.2rem;
    }
}

.section-categories__header h4 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.9;
    color: #00a6de;
    text-transform: capitalize;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .section-categories__header h4 {
        font-size: 1.8rem;
        line-height: 2.2rem;
    }
}

.section-categories__header h5 {
    font-size: 1.6rem;
    font-weight: 300;
    color: #000;
    margin: 2rem auto;
}

@media (max-width: 768px) {
    .section-categories__header h5 {
        font-size: 1.5rem;
        line-height: 2rem;
        margin-bottom: 0;
    }
}

.section-categories__header-divider {
    border-bottom: 5px solid #00a6de;
    margin: 0 auto 40px;
    width: calc(20% - 70px);
}

@media (max-width: 768px) {
    .section-categories__header-divider {
        height: 2.125rem;
        margin: 0 auto 20px;
        width: calc(40% - 10px);
    }
}

.section-categories__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 20px auto 0;
    width: 90%;
}

@media (max-width: 768px) {
    .section-categories__grid {
        flex-direction: column;
        width: 80%;
    }
}

.category-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: auto;
    max-width: 305px;
    min-height: 375px;
}

@media (max-width: 768px) {
    .category-card {
        justify-content: center;
        margin-bottom: 30px;
        max-width: 100%;
        min-height: 0;
        width: 100%;
    }

    .category-card:last-child {
        margin-bottom: 0;
    }
}

.category-card__image {
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 6px;
    height: 375px;
    position: relative;
    width: 305px;
}

@media (max-width: 768px) {
    .category-card__image {
        width: 100%;
    }
}

.category-card__image span {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 3.4rem;
}

@media (max-width: 768px) {
    .category-card__image span {
        font-size: 2.4rem;
        line-height: 2.8rem;
    }
}

.section-heading {
    margin-bottom: 2.5rem;
}

.section-heading--center-layout {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .section-heading--center-layout {
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }
}
