/* ==========================================
   News Section
   ========================================== */

.news-section {
    position: relative;
    width: 100%;
    background-color: #f5f5f5;
    padding: clamp(150px, 13vw, 200px) 0;
}

.news-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(40px, 8.33vw, 120px);
}

.news-section__box {
    background-color: #000;
    height: 450px;
    display: flex;
    gap: clamp(40px, 5vw, 70px);
    align-items: center;
    padding: 0 clamp(40px, 5vw, 75px);
}

/* News Items */
.news-section__items {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: clamp(12px, 1.5vw, 18px) 0;
}

.news-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Divider */
.news-item__divider {
    width: clamp(5px, 1vw, 12px);
    align-self: stretch;
    background-color: #fff;
    flex-shrink: 0;
    margin-right: clamp(20px, 2.5vw, 35px);
    transition: transform 0.4s ease;
}

.news-item:hover .news-item__divider {
    transform: translateX(15px);
}

/* Content */
.news-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.8vw, 8.5px);
    min-width: 0;
    transition: transform 0.4s ease;
}

.news-item:hover .news-item__content {
    transform: translateX(15px);
}

.news-item__title {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 550;
    color: #fff;
    margin: 0;
    line-height: 25px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-item__meta {
    display: flex;
    gap: clamp(12px, 1.5vw, 20px);
    align-items: center;
}

.news-item__date {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 13px;
    color: #fff;
    font-weight: 300;
}

.news-item__tag {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 13px;
    color: #fff;
    font-weight: 300;
}

/* Arrow */
.news-item__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: clamp(15px, 2vw, 25px);
    transition: transform 0.4s ease;
}

.news-item:hover .news-item__arrow {
    transform: translateX(15px);
}

.news-item__arrow svg {
    width: clamp(30px, 3.5vw, 45px);
    height: auto;
}

/* Responsive - Below 980px */
@media (max-width: 1025px) {
    .news-section__box {
        height: auto;
        min-height: 380px;
        padding: clamp(30px, 4vw, 50px);
    }
}

/* Responsive - Tablet (768px - 1025px) */
@media (max-width: 1025px) and (min-width: 768px) {
    .news-section__container {
        padding: 0 30px;
    }

    .news-item__title {
        font-size: 14px;
        font-weight: 600;
    }

    .news-item__tag {
        font-weight: 400;
    }

    .news-item__divider {
        width: 7px;
    }

    .news-section__box {
        min-height: unset;
        padding: 30px;
    }

    .news-item:first-child {
        padding-top: 0;
    }

    .news-item:last-child {
        padding-bottom: 0;
    }

    .news-item:hover .news-item__divider,
    .news-item:hover .news-item__content,
    .news-item:hover .news-item__arrow {
        transform: none;
    }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .news-section {
        padding: 150px 0;
    }

    .news-section__container {
        padding: 0 1rem;
    }

    .news-section__box {
        height: auto;
        min-height: auto;
        flex-direction: column;
        align-items: start;
        padding: 50px 30px;
        gap: 30px;
    }

    .news-section__items {
        width: 100%;
    }

    .news-item {
        padding: 18px 0;
        border-bottom: none !important;
    }

    .news-item__divider {
        margin-right: 20px;
        transition: none;
    }

    .news-item:hover .news-item__divider {
        transform: none;
    }

    .news-item__content {
        transition: none;
    }

    .news-item:hover .news-item__content {
        transform: none;
    }

    .news-item__arrow {
        transition: none;
    }

    .news-item:hover .news-item__arrow {
        transform: none;
    }

    .news-item__title {
        font-size: 14px;
        font-weight: 600;
    }

    .news-item__date,
    .news-item__tag {
        font-size: 12px;
        font-weight: 200;
    }

    .news-item__meta {
        gap: 12px;
    }

    .news-item__arrow svg {
        width: 25px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .news-item {
        padding: 15px 0;
    }

    .news-item__divider {
        margin-right: 15px;
    }
}
