/* News Page Styles */

/* Banner */
.news-banner {
    margin-top: 80px;
    width: 100%;
    overflow: hidden;
}

.news-banner-inner {
    position: relative;
    width: 100%;
}

.news-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.news-banner-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(36px, 4.3vw, 82px);
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.section-info {
    margin-top: 40px;
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.section-info img,
.section-info video,
.section-info iframe,
.section-info table {
    max-width: 100%;
}

.section-info p {
    margin-bottom: 16px;
}

/* News Section */
.news-section {
    padding: 99px 0 100px;
}

.news-section-heading {
    position: relative;
}

.news-mobile-controls,
.news-mobile-carousel {
    display: none;
}

/* News List */
.news-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.news-item {
    display: grid;
    grid-template-columns: clamp(100px, 10vw, 190px) minmax(0, 1fr);
    column-gap: clamp(20px, 2.5vw, 48px);
    row-gap: clamp(10px, 1vw, 18px);
    background: #F2F5FB;
    border-radius: 12px;
    padding: clamp(20px, 2vw, 38px) clamp(20px, 2.1vw, 40px);
    transition: box-shadow 0.3s;
}

.news-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-item-img {
    grid-row: 1 / span 2;
    width: 100%;
    aspect-ratio: 1;
    align-self: center;
    overflow: hidden;
    border-radius: 8px;
    background: #e0e3ea;
}

.news-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-item-body {
    grid-column: 2;
    min-width: 0;
}

.news-item-tag {
    font-size: clamp(16px, 1.56vw, 30px);
    font-weight: 600;
    color: #333;
}

.news-item-bar {
    width: 64px;
    height: 4px;
    background: #1a3fb7;
    border-radius: 3px;
    margin-top: clamp(12px, 1.2vw, 22px);
}

.news-item-title {
    font-size: clamp(14px, 1.2vw, 22px);
    font-weight: 400;
    color: #333;
    line-height: 1.8;
    margin-top: clamp(12px, 1.2vw, 22px);
}

.news-item-date {
    grid-column: 2;
    display: flex;
    align-items: center;
    color: #666;
}

.news-item-day {
    order: 2;
    font-size: clamp(13px, 1.1vw, 20px);
    font-weight: 400;
    color: inherit;
    line-height: 1;
}

.news-item-ym {
    order: 1;
    font-size: clamp(13px, 1.1vw, 20px);
    font-weight: 400;
    color: inherit;
    line-height: 1;
}

.news-item-ym::after {
    content: "/";
}

/* Tabs */
.news-tabs {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 1.7vw, 32px);
    margin-top: 50px;
}

.news-tab {
    flex: 1;
    font-size: clamp(14px, 1.25vw, 24px);
    font-weight: 400;
    color: #333;
    padding: clamp(12px, 1.1vw, 20px) clamp(24px, 2.5vw, 48px);
    border-radius: 50px;
    border: 2px solid #0091F3;
    transition: all 0.3s;
    white-space: nowrap;
    text-align: center;
}

.news-tab:hover {
    border-color: #0098F4;
    color: #0098F4;
}

.news-tab.active {
    background: linear-gradient(90deg, #0098F4 0%, #025EEA 100%);
    color: #fff;
    border-color: transparent;
}

.product-news-list {
    transition: opacity 0.2s ease;
}

.product-news-list.is-loading .news-tabs,
.product-news-list.is-loading .news-product-list,
.product-news-list.is-loading .news-mobile-carousel,
.product-news-list.is-loading .news-pagination {
    opacity: 0.55;
    pointer-events: none;
}

/* Featured News */
.news-featured {
    margin-top: 50px;
}

.news-featured-inner {
    display: flex;
    align-items: stretch;
    gap: clamp(30px, 3.6vw, 70px);
}

.news-featured-img {
    width: clamp(300px, 35vw, 670px);
    flex-shrink: 0;
}

.news-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.news-featured-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-featured-title {
    font-size: clamp(20px, 2.1vw, 40px);
    font-weight: 600;
    color: #333;
}

.news-featured-bar {
    width: 84px;
    height: 6px;
    background: #1a3fb7;
    border-radius: 3px;
    margin-top: clamp(20px, 2vw, 38px);
}

.news-featured-desc {
    font-size: clamp(14px, 1.3vw, 24px);
    color: #333;
    line-height: 1.8;
    margin-top: clamp(20px, 2vw, 38px);
}

.news-featured-date {
    font-size: clamp(14px, 1.2vw, 22px);
    color: #666;
    margin-top: clamp(16px, 1.5vw, 28px);
}

/* Product News List */
.news-product-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.news-product-item {
    display: flex;
    align-items: center;
    background: #F2F5FB;
    padding: clamp(20px, 2vw, 38px) clamp(20px, 2.1vw, 40px);
    transition: box-shadow 0.3s;
}

.news-product-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-product-item-img {
    width: clamp(100px, 10vw, 190px);
    flex-shrink: 0;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #e0e3ea;
}

.news-product-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-product-item-body {
    flex: 1;
    min-width: 0;
    margin-left: clamp(20px, 2.5vw, 48px);
}

.news-product-item-title {
    font-size: clamp(16px, 1.56vw, 30px);
    font-weight: 600;
    color: #333;
}

.news-product-item-bar {
    width: 64px;
    height: 4px;
    background: #1a3fb7;
    border-radius: 3px;
    margin-top: clamp(12px, 1.2vw, 22px);
}

.news-product-item-desc {
    font-size: clamp(14px, 1.2vw, 22px);
    color: #333;
    line-height: 1.8;
    margin-top: clamp(12px, 1.2vw, 22px);
}

.news-product-item-date {
    font-size: clamp(13px, 1.1vw, 20px);
    color: #666;
    margin-top: clamp(10px, 1vw, 18px);
    display: block;
}

/* Pagination */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 0.7vw, 13px);
    margin-top: 45px;
}

.news-page-btn {
    width: clamp(50px, 4.8vw, 93px);
    height: clamp(38px, 3.6vw, 69px);
    border-radius: 34px;
    background: #0091F3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.3s;
}

.news-page-btn:hover {
    background: #007ad4;
}

.news-page-btn svg {
    width: clamp(10px, 0.83vw, 16px);
    height: auto;
}

.news-page-num {
    width: clamp(50px, 4.9vw, 94px);
    height: clamp(38px, 3.6vw, 70px);
    border-radius: 34px;
    border: 1px solid #0091F3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 1.56vw, 30px);
    color: #0091F3;
    transition: all 0.3s;
}

.news-page-num.active,
.news-page-num:hover {
    background: #0091F3;
    color: #fff;
    border-color: #0091F3;
}

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

    .news-item {
        padding: 30px;
    }

    .news-item-img {
        width: 220px;
    }

    .news-item-body {
        margin-left: 30px;
    }

    .news-tabs {
        gap: 16px;
    }

    .news-tab {
        padding: 10px 20px;
    }

    .news-featured-img {
        width: 280px;
    }

    .news-product-item-img {
        width: 120px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .news-banner-title {
        width: calc(100% - 40px);
        font-size: clamp(24px, 8vw, 40px);
        text-align: center;
        white-space: normal;
        line-height: 1.3;
    }

    .news-section {
        padding: 50px 0 60px;
    }

    .news-section-heading {
        margin-bottom: 24px;
    }

    .section-info {
        margin-top: 24px;
        font-size: 15px;
        line-height: 1.85;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .news-list {
        margin-top: 20px;
        gap: 16px;
    }

    .news-item {
        grid-template-columns: 80px minmax(0, 1fr);
        column-gap: 16px;
        row-gap: 10px;
        padding: 16px;
    }

    .news-item-img {
        width: 80px;
    }

    .news-item-body {
        margin-left: 0;
    }

    .news-item-date {
        gap: 0;
    }

    .news-tabs {
        gap: 6px;
        margin-top: 20px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .news-tabs::-webkit-scrollbar {
        display: none;
    }

    .news-tab {
        flex: 0 0 auto;
        width: auto;
        min-width: 132px;
        text-align: center;
        padding: 8px 14px;
        font-size: 14px;
        border-width: 1px;
    }

    .news-mobile-controls {
        position: absolute;
        top: calc(100% - 20px);
        right: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .news-mobile-arrow {
        width: 24px;
        height: 24px;
        border: 0;
        border-radius: 50%;
        background: #2f53d6;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: 0 8px 18px rgba(47, 83, 214, 0.2);
    }

    .news-mobile-current {
        min-width: 14px;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
        color: #111;
        text-align: center;
    }

    .news-featured {
        margin-top: 30px;
    }

    .news-featured-inner {
        flex-direction: column;
        gap: 20px;
    }

    .news-featured-img {
        width: 100%;
    }

    .news-product-list {
        display: none;
    }

    .news-mobile-carousel {
        display: block;
        margin-top: 20px;
    }

    .news-mobile-track {
        display: flex;
        flex-direction: column;
        gap: 18px;
        max-height: 398px;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .news-mobile-track::-webkit-scrollbar {
        display: none;
    }

    .product-news-list .news-mobile-track {
        max-height: none;
        overflow: visible;
        scroll-snap-type: none;
    }

    .news-mobile-card {
        position: relative;
        flex: 0 0 190px;
        width: 100%;
        height: 190px;
        border-radius: 0;
        overflow: hidden;
        scroll-snap-align: start;
        background: #d7e2f7;
        box-shadow: 0 8px 24px rgba(17, 29, 71, 0.12);
    }

    .news-mobile-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(6, 21, 48, 0.02) 12%, rgba(6, 21, 48, 0.82) 100%);
        pointer-events: none;
    }

    .news-mobile-card-img {
        width: 100%;
        height: 100%;
        height: 190px;
        object-fit: cover;
        display: block;
    }

    .news-mobile-card-body {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        padding: 18px 18px 20px;
        color: #fff;
    }

    .news-mobile-card-title {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.35;
        margin-bottom: 10px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    }

    .news-mobile-card-desc {
        font-size: 14px;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.95);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    }

    .news-pagination {
        display: flex;
        justify-content: center;
        gap: 5px;
        margin-top: 20px;
    }

    .news-page-btn {
        width: 30px;
        height: 30px;
        border-radius: 50%;
    }

    .news-page-btn svg {
        width: 8px;
        height: 14px;
    }

    .news-page-num {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 12px;
    }
}
