/* ===================================================
   IoTE NEWS PAGE - VERTICAL LIST STYLESHEET
   Extends responsive.css for the news.html page
   =================================================== */

/* ---------- NEWS PAGE SECTION ---------- */
.news-page-section {
    padding-top: 40px;
    padding-bottom: 40px;
    min-height: calc(100vh - 80px - 180px);
}

/* ---------- NEWS VERTICAL LIST ---------- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-list-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.news-list-card:nth-child(1) {
    animation-delay: 0.05s;
}

.news-list-card:nth-child(2) {
    animation-delay: 0.1s;
}

.news-list-card:nth-child(3) {
    animation-delay: 0.15s;
}

.news-list-card:nth-child(4) {
    animation-delay: 0.2s;
}

.news-list-card:nth-child(5) {
    animation-delay: 0.25s;
}

.news-list-card:nth-child(6) {
    animation-delay: 0.3s;
}

.news-list-card:nth-child(7) {
    animation-delay: 0.35s;
}

.news-list-card:nth-child(8) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Override news-card-inner for list layout */
.news-list-card .news-card-inner {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 3px solid #F36F21;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(1, 58, 93, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.news-list-card .news-card-inner:hover {
    box-shadow: 0 8px 32px rgba(243, 111, 33, 0.15);
    transform: translateY(-3px);
}

.news-list-card .news-card-thumb {
    width: 180px;
    min-height: 160px;
    flex-shrink: 0;
    padding: 20px;
}

.news-list-card .news-card-content {
    flex: 1;
    padding: 24px 28px 24px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

/* ---------- BACK BUTTON ---------- */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 48px auto 0;
    padding: 14px 36px;
    border: 3px solid #013A5D;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 400;
    color: #013A5D;
    background: #fff;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    justify-content: center;
    max-width: 240px;
    cursor: pointer;
}

.back-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.back-btn:hover {
    background: #013A5D;
    color: #fff;
    box-shadow: 0 6px 24px rgba(1, 58, 93, 0.25);
    transform: translateY(-2px);
}

.back-btn:hover svg {
    stroke: #fff;
    transform: translateX(-4px);
}

/* ===================================================
   RESPONSIVE - NEWS PAGE
   =================================================== */

/* ---------- TABLET (max-width: 1024px) ---------- */
@media (max-width: 1024px) {
    .news-list {
        gap: 20px;
    }

    .news-list-card .news-card-thumb {
        width: 160px;
        min-height: 140px;
        padding: 16px;
    }

    .news-list-card .news-card-content {
        padding: 20px 24px 20px 8px;
    }

    .back-btn {
        font-size: 18px;
        padding: 12px 32px;
    }
}

/* ---------- MOBILE (max-width: 768px) ---------- */
@media (max-width: 768px) {
    .news-page-section {
        padding-top: 24px;
        padding-bottom: 32px;
    }

    .news-list {
        gap: 16px;
    }

    /* Stack cards vertically on mobile */
    .news-list-card .news-card-inner {
        flex-direction: row;
        border-radius: 20px;
    }

    .news-list-card .news-card-thumb {
        width: 100px;
        min-height: 100px;
        padding: 12px;
    }

    .news-list-card .thumb-placeholder {
        min-height: 80px;
        border-radius: 14px;
    }

    .news-list-card .news-card-content {
        padding: 14px 16px 14px 4px;
        gap: 6px;
    }

    .news-list-card .news-tag {
        font-size: 12px;
        padding: 5px 14px;
        border-radius: 6px;
    }

    .news-list-card .news-time {
        font-size: 12px;
    }

    .news-list-card .news-time svg {
        width: 14px;
        height: 14px;
    }

    .news-list-card .news-excerpt {
        font-size: 13px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .back-btn {
        font-size: 16px;
        padding: 12px 28px;
        max-width: 200px;
        margin-top: 36px;
    }

    .back-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ---------- SMALL MOBILE (max-width: 480px) ---------- */
@media (max-width: 480px) {
    .news-list {
        gap: 12px;
    }

    .news-list-card .news-card-inner {
        border-width: 2px;
        border-radius: 16px;
    }

    .news-list-card .news-card-thumb {
        width: 80px;
        min-height: 80px;
        padding: 10px;
    }

    .news-list-card .thumb-placeholder {
        min-height: 60px;
        border-radius: 12px;
    }

    .news-list-card .news-card-content {
        padding: 10px 12px 10px 4px;
        gap: 4px;
    }

    .news-list-card .news-tag {
        font-size: 11px;
        padding: 4px 10px;
    }

    .news-list-card .news-time {
        font-size: 11px;
        gap: 4px;
    }

    .news-list-card .news-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .back-btn {
        font-size: 14px;
        padding: 10px 24px;
        max-width: 180px;
        margin-top: 28px;
        border-width: 2px;
    }
}