.root {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: var(--content-max-width);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-120) var(--spacing-32);
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-20);
    text-align: center;
    margin-bottom: var(--spacing-48);
}

.description {
    max-width: 530px;
}

.articles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.row {
    display: flex;
    justify-content: center;
}

/* .row > div for StudyGridCard */
.row > div {
    border-top: 1px solid var(--border-color-light);
}

.row > div::before,
.row > div::after {
    content: '';
    display: block;
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 0;
    height: calc(100% - 16px - 16px);
    background-color: var(--border-color-light);
    width: 1px;
}

.row > div:last-child:after {
    left: unset;
    right: 0px;
}

.row:nth-child(even) > div {
    flex-direction: row-reverse;
}

.row:last-child {
    border-bottom: 1px solid var(--border-color-light);
}

@media (width <= 1000px) {
    .row:nth-child(even) > div {
        flex-direction: row;
    }

    .row > div:nth-child(even) {
        flex-direction: row-reverse;
    }

    .container {
        padding: var(--spacing-64) var(--spacing-20);
    }

    .header {
        gap: var(--spacing-16);
    }

    .row {
        flex-wrap: wrap;
    }

    .row > div:after,
    .row > div:before {
        display: none;
    }
}
