.news-section .news-card{
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: all .25s ease;
}

.news-section .news-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.news-image-wrap{
    display: block;
    overflow: hidden;
    background: #eef2f4;
}

.news-cover{
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-card:hover .news-cover{
    transform: scale(1.05);
}

.news-cover-placeholder{
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: linear-gradient(180deg, #eef2f4 0%, #e5e7eb 100%);
    gap: 8px;
}

.news-cover-placeholder i{
    font-size: 2rem;
}

.news-badge{
    display: inline-block;
    background: #e8f5ec;
    color: #198754;
    font-size: .78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
}

.news-title{
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.1rem;
}

.news-title-link:hover .news-title{
    color: #198754;
}

.news-summary{
    color: #64748b;
    line-height: 1.65;
    font-size: .95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8rem;
}

.news-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #eef2f7;
    padding-top: 14px;
}

.news-date{
    white-space: nowrap;
}

.news-readmore{
    font-weight: 500;
}

@media (max-width: 767.98px){
    .news-cover,
    .news-cover-placeholder{
        height: 200px;
    }

    .news-title{
        min-height: auto;
    }

    .news-summary{
        min-height: auto;
    }
}
.news-section .news-card{
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: all .25s ease;
}

.news-section .news-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.news-image-wrap{
    display: block;
    overflow: hidden;
    background: #eef2f4;
}

.news-cover{
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-card:hover .news-cover{
    transform: scale(1.05);
}

.news-cover-placeholder{
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: linear-gradient(180deg, #eef2f4 0%, #e5e7eb 100%);
    gap: 8px;
}

.news-cover-placeholder i{
    font-size: 2rem;
}

.news-badge{
    display: inline-block;
    background: #198754;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
}

.news-badge-soft{
    background: #e8f5ec;
    color: #198754;
}

.news-title{
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.1rem;
}

.news-title-link:hover .news-title{
    color: #198754;
}

.news-summary{
    color: #64748b;
    line-height: 1.65;
    font-size: .95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8rem;
}

.news-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #eef2f7;
    padding-top: 14px;
}

.news-date{
    white-space: nowrap;
}

/* Featured */
.featured-news-card{
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.featured-news-image-wrap{
    display: block;
    height: 100%;
    background: #eef2f4;
}

.featured-news-image{
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.featured-news-placeholder{
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: linear-gradient(180deg, #eef2f4 0%, #e5e7eb 100%);
    gap: 10px;
}

.featured-news-placeholder i{
    font-size: 2.5rem;
}

.featured-news-content{
    height: 100%;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-news-date{
    color: #64748b;
    font-size: .95rem;
}

.featured-news-title{
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
}

.featured-news-summary{
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991.98px){
    .featured-news-image,
    .featured-news-placeholder{
        min-height: 320px;
    }

    .featured-news-content{
        padding: 28px 24px;
    }

    .featured-news-title{
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px){
    .news-cover,
    .news-cover-placeholder{
        height: 200px;
    }

    .news-title,
    .news-summary{
        min-height: auto;
    }

    .featured-news-image,
    .featured-news-placeholder{
        min-height: 240px;
    }

    .featured-news-title{
        font-size: 1.3rem;
    }

    .featured-news-summary{
        -webkit-line-clamp: 3;
    }
}.news-card .card-body{
    gap: 6px;
}.news-title{
    margin-bottom: 4px;
}.news-summary{
    margin-bottom: 8px;
}.news-section .news-card{
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: all .25s ease;
}

.news-section .news-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.news-image-wrap{
    display: block;
    overflow: hidden;
    background: #eef2f4;
}

.news-cover{
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-card:hover .news-cover{
    transform: scale(1.05);
}

.news-cover-placeholder{
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: linear-gradient(180deg, #eef2f4 0%, #e5e7eb 100%);
    gap: 8px;
}

.news-cover-placeholder i{
    font-size: 2rem;
}

.news-title{
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3rem;
}

.news-title-link:hover .news-title{
    color: #198754;
}

.news-summary{
    color: #64748b;
    line-height: 1.7;
    font-size: .92rem;
    min-height: 4.8rem;
}

.news-readmore{
    font-weight: 500;
}

@media (max-width: 767.98px){
    .news-cover,
    .news-cover-placeholder{
        height: 200px;
    }

    .news-title,
    .news-summary{
        min-height: auto;
    }
}.project-team-section{
    background: #f8faf8;
}

.team-card{
    background: #fff;
    border-radius: 20px;
    padding: 24px 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: all .25s ease;
}

.team-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.team-avatar{
    width: 84px;
    height: 84px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(180deg, #e8f5ec 0%, #dff1e5 100%);
    color: #198754;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.08);
}

.team-name{
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: #0f172a;
    min-height: 3rem;
}

.team-position{
    font-size: .92rem;
    line-height: 1.6;
    color: #64748b;
    min-height: 3rem;
}

@media (max-width: 767.98px){
    .team-card{
        padding: 20px 14px;
    }

    .team-avatar{
        width: 72px;
        height: 72px;
        font-size: 1.7rem;
    }

    .team-name,
    .team-position{
        min-height: auto;
    }
}
.project-team-section{
    background: #f8fafc;
}

/* group title */
.team-group-title{
    font-weight: 600;
    color: #0f172a;
    position: relative;
}

.team-group-title::after{
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #198754;
    margin: 10px auto 0;
    border-radius: 10px;
}

/* card */
.team-card{
    background: #fff;
    border-radius: 20px;
    padding: 22px 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: all .25s ease;
}

.team-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* avatar */
.team-avatar{
    width: 90px;
    height: 90px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef2f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.team-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar i{
    font-size: 2rem;
}

/* name */
.team-name{
    font-weight: 600;
    font-size: .95rem;
    color: #0f172a;
    line-height: 1.5;
}

/* position */
.team-position{
    font-size: .85rem;
    color: #64748b;
    line-height: 1.5;
}

/* responsive */
@media (max-width: 767.98px){
    .team-avatar{
        width: 72px;
        height: 72px;
    }

    .team-name{
        font-size: .9rem;
    }

    .team-position{
        font-size: .8rem;
    }
}
.team-name{
    font-weight: 600;
    font-size: .95rem;
    min-height: 2.8rem;
}

.team-position{
    font-size: .85rem;
    color: #64748b;
    min-height: 2.5rem;
}
.project-team-section{
    background: #f8fafc;
}

.team-card{
    background: #fff;
    border-radius: 18px;
    padding: 20px 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: all .25s ease;
}

.team-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.team-avatar{
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef2f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.team-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar i{
    font-size: 2rem;
}

.team-name{
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.5;
    color: #0f172a;
    min-height: 2.8rem;
}

.team-position{
    font-size: .82rem;
    color: #64748b;
    line-height: 1.5;
    min-height: 2.4rem;
}

@media (max-width: 767.98px){
    .team-avatar{
        width: 70px;
        height: 70px;
    }

    .team-name,
    .team-position{
        min-height: auto;
    }
}
.team-card{
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: all .25s ease;
}

.team-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* 🔥 แบ่ง 3:1 */
.team-avatar{
    flex: 3;
    width: 100%;
    background: #eef2f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar i{
    font-size: 2.5rem;
    color: #94a3b8;
}

/* 🔥 1 ส่วนล่าง */
.team-info{
    flex: 1;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* text */
.team-name{
    font-size: .9rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

.team-position{
    font-size: .8rem;
    color: #64748b;
    line-height: 1.3;
}
.team-card{
    height: 220px;
}

@media (max-width:768px){
    .team-card{
        height: 200px;
    }
}
.back-to-top{
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 9999;
}

.back-to-top:hover{
    background: #157347;
    transform: translateY(0);
}

.back-to-top.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
