@import "../component-navigation/style.css";
@import "../component-article-card/style.css";

.home-topic {
    background-color: var(--color-secondary-1);
    padding-top: 80px;
    padding-bottom: 80px;
    padding-left: max(calc((100% - 1200px) / 2), 24px);
    display: grid;
    grid-template-columns: min-content minmax(0, 1fr);
    grid-template-rows: min-content 1fr;
    gap: 60px;
    align-items: start;
}

.home-topic-content {
    >h2 {
        color: var(--color-primary-2);
        margin-bottom: 24px;
    }

    >h3 {
        margin-bottom: 40px;
    }

    >p {
        white-space: pre-line;
    }
}

.home-topic-swiper{
    grid-area: 1 / 2 / 3 / 3;
    .swiper-wrapper{
        display: grid;
        grid-auto-flow: column;
    }
}

@media screen and (width < 1248px) {
    .home-topic {
        gap: 24px;
    }
}
@media screen and (width < 1024px) {
    .home-topic {
        grid-template-columns: 100%;
        gap: 40px;
        >a{
            order: 1;
            margin-left: auto;
        }
    }
    .home-topic-swiper{
        grid-area: auto;
    }
}
@media screen and (width < 576px) {
    .home-topic {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}