/* ==========================================================
   NEWS LIST
   Dinas Perhubungan Provinsi Gorontalo
========================================================== */

.news-list-section {
    padding: 80px 0 100px;
    background: #f8fafc;
}

.news-list-section .container {
    max-width: 1400px;
}


/* ==========================================================
   HEADER
========================================================== */

.news-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 35px;
}

.news-list-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #eaf2fb;
    color: #174b8a;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    margin-bottom: 15px;
}

.news-list-badge i {
    font-size: 14px;
}

.news-list-header h1 {
    margin: 0 0 10px;
    color: #174b8a;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.news-list-header p {
    max-width: 700px;
    margin: 0;
    color: #687385;
    font-size: 16px;
    line-height: 1.8;
}


/* ==========================================================
   FILTER
========================================================== */

.news-list-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 18px 20px;
    margin-bottom: 35px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(23, 75, 138, .05);
}

.news-list-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.news-list-categories a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 17px;
    border-radius: 30px;
    color: #5f6b7a;
    background: transparent;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: .3s ease;
}

.news-list-categories a:hover {
    color: #174b8a;
    background: #edf4fb;
}

.news-list-categories a.active {
    color: #fff;
    background: #174b8a;
    box-shadow: 0 6px 15px rgba(23, 75, 138, .22);
}


/* ==========================================================
   SEARCH
========================================================== */

.news-list-search {
    position: relative;
    flex: 0 0 240px;
}

.news-list-search i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #8994a3;
    font-size: 14px;
    pointer-events: none;
}

.news-list-search input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 42px;
    border: 1px solid #dfe5ec;
    border-radius: 30px;
    outline: none;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    background: #fff;
    transition: .3s ease;
}

.news-list-search input::placeholder {
    color: #9aa4b2;
}

.news-list-search input:focus {
    border-color: #174b8a;
    box-shadow: 0 0 0 4px rgba(23, 75, 138, .08);
}


/* ==========================================================
   FEATURED NEWS
========================================================== */

.news-list-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 420px;
    margin-bottom: 45px;
    overflow: hidden;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e9eef4;
    box-shadow: 0 15px 45px rgba(23, 75, 138, .08);
}

.news-list-featured-image {
    position: relative;
    min-height: 420px;
    overflow: hidden;
}

.news-list-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.news-list-featured:hover .news-list-featured-image img {
    transform: scale(1.05);
}

.news-list-featured-category {
    position: absolute;
    top: 22px;
    left: 22px;
    padding: 8px 16px;
    border-radius: 30px;
    background: #fdd100;
    color: #174b8a;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.news-list-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px 50px;
}

.news-list-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
    color: #8a95a3;
    font-size: 13px;
}

.news-list-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.news-list-meta i {
    color: #174b8a;
}

.news-list-featured-content h2 {
    margin: 0 0 18px;
    color: #172033;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.5px;
}

.news-list-featured-content p {
    margin: 0 0 25px;
    color: #697586;
    font-size: 15px;
    line-height: 1.9;
}

.news-list-readmore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 12px 20px;
    border-radius: 30px;
    background: #174b8a;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: .3s ease;
}

.news-list-readmore i {
    transition: transform .3s ease;
}

.news-list-readmore:hover {
    background: #0e67c7;
    color: #fff;
    transform: translateY(-2px);
}

.news-list-readmore:hover i {
    transform: translateX(4px);
}


/* ==========================================================
   NEWS GRID
========================================================== */

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* ==========================================================
   NEWS CARD
========================================================== */

.news-list-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(23, 75, 138, .06);
    transition: transform .35s ease, box-shadow .35s ease;
}

.news-list-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(23, 75, 138, .13);
}


/* ==========================================================
   CARD IMAGE
========================================================== */

.news-list-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-list-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.news-list-card:hover .news-list-card-image img {
    transform: scale(1.07);
}

.news-list-card-image span {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 13px;
    border-radius: 30px;
    background: rgba(253, 209, 0, .95);
    color: #174b8a;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .12);
}


/* ==========================================================
   CARD CONTENT
========================================================== */

.news-list-card-content {
    padding: 23px;
}

.news-list-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    color: #8b95a3;
    font-size: 11px;
}

.news-list-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-list-card-meta i {
    color: #174b8a;
}

.news-list-card-content h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    color: #172033;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-list-card-content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 18px;
    color: #747f8e;
    font-size: 13px;
    line-height: 1.8;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-list-card-content>a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #174b8a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: .3s ease;
}

.news-list-card-content>a i {
    transition: transform .3s ease;
}

.news-list-card-content>a:hover {
    color: #0e67c7;
}

.news-list-card-content>a:hover i {
    transform: translateX(5px);
}


/* ==========================================================
   PAGINATION
========================================================== */

.news-list-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 55px;
}

.news-list-pagination a,
.news-list-pagination span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: #5f6b7a;
    background: #fff;
    border: 1px solid #e1e6ed;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: .3s ease;
}

.news-list-pagination a:hover {
    color: #fff;
    background: #174b8a;
    border-color: #174b8a;
}

.news-list-pagination a.active {
    color: #fff;
    background: #174b8a;
    border-color: #174b8a;
    box-shadow: 0 6px 15px rgba(23, 75, 138, .2);
}

.news-list-pagination span {
    border: none;
    background: transparent;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

    .news-list-section {
        padding: 65px 0 80px;
    }

    .news-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-list-featured {
        grid-template-columns: 1fr 1fr;
    }

    .news-list-featured-content {
        padding: 35px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .news-list-section {
        padding: 45px 0 65px;
    }

    .news-list-header {
        margin-bottom: 25px;
    }

    .news-list-header h1 {
        font-size: 32px;
    }

    .news-list-header p {
        font-size: 14px;
        line-height: 1.7;
    }

    .news-list-filter {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 15px;
    }

    .news-list-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 3px;
        scrollbar-width: none;
    }

    .news-list-categories::-webkit-scrollbar {
        display: none;
    }

    .news-list-categories a {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 14px;
    }

    .news-list-search {
        width: 100%;
        flex-basis: auto;
    }

    .news-list-featured {
        display: block;
        margin-bottom: 30px;
        border-radius: 18px;
    }

    .news-list-featured-image {
        height: 260px;
        min-height: 260px;
    }

    .news-list-featured-content {
        padding: 25px 22px 28px;
    }

    .news-list-featured-content h2 {
        font-size: 24px;
    }

    .news-list-featured-content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .news-list-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-list-card-image {
        height: 220px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

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

    .news-list-section .container {
        width: 92%;
        padding: 0;
    }

    .news-list-badge {
        font-size: 10px;
        padding: 7px 13px;
    }

    .news-list-header h1 {
        font-size: 28px;
    }

    .news-list-header p {
        font-size: 13px;
    }

    .news-list-featured-image {
        height: 220px;
        min-height: 220px;
    }

    .news-list-featured-category {
        top: 15px;
        left: 15px;
    }

    .news-list-featured-content {
        padding: 22px 18px 25px;
    }

    .news-list-featured-content h2 {
        font-size: 21px;
        line-height: 1.4;
    }

    .news-list-featured-content p {
        font-size: 13px;
    }

    .news-list-card-image {
        height: 200px;
    }

    .news-list-card-content {
        padding: 20px;
    }

    .news-list-card-content h3 {
        font-size: 18px;
    }

    .news-list-pagination {
        gap: 5px;
        margin-top: 40px;
    }

    .news-list-pagination a,
    .news-list-pagination span {
        min-width: 38px;
        height: 38px;
        font-size: 12px;
    }

}