
.header{
    position: relative;
}
.header::after{
    content: '';
    width: 100%;
    height: 0.7px;
    background: linear-gradient(to right, #3fcf8e, #3fa9cf, #f0e04d);
    position: absolute;
    bottom: 0px;
    left: 0px;
}
/* News Section Styles */
.news-section {
    margin-top: 0rem;
    padding: 4rem 0;
    position: relative;
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Section Title */
.section-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 60px;
    color: #ffffff;
    letter-spacing: -1px;
}

/* News Grid */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* News Card */
.news-card {
    background: transparent;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.377);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

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


.news-card:hover .news-title {
    color: rgba(255, 255, 255, 0.9);
}

.news-card:hover .read-more {
    opacity: 1;
    transform: translateX(5px);
}

.news-image {
    width: 35%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    border-radius: 25px;
}

.news-content {
    flex: 1;
    padding: 0;
}

.news-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #ffffff;
    transition: color 0.3s ease;
}

.news-date {
    font-size: 16px;
    color: rgba(255, 255, 255);
    margin-bottom: 20px;
    font-weight: 300;
}

.news-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.read-more:hover {
    opacity: 1;
}

.read-more::after {
    content: '→';
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* Remove background effects */
.news-section::before,
.news-section::after {
    display: none;
}


/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 80px;
    padding-top: 0;
}

.page-nav {
    background: transparent;
    border: none;
    color: rgb(255, 255, 255);
    font-size: 12px;
    cursor: pointer;
    padding: 6px 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2px;
    border-radius: 2px;
}

.page-nav:hover:not(:disabled) {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.page-nav:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

.page-nav i {
    font-size: 10px;
}

.page-nav i:last-child {
    margin-left: -4px;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-number {
    background: transparent;
    border: 1px solid transparent;
    color: rgb(255, 255, 255);
    font-size: 13px;
    padding: 6px 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    width: 20px;
    text-align: center;
    font-weight: 400;
}

.page-number:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

        .page-number.active {
            color: #ffffff;
            font-weight: 500;
            position: relative;
        }

        /* 當前頁碼下方的底線 */
        .page-number.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 2px;
            background-color: #ffffff;
        }

.page-dots {
    color: rgb(255, 255, 255);
    padding: 0 6px;
    letter-spacing: 1px;
    font-size: 13px;
}


@media (min-width: 768px) {
    main{
        margin-bottom: -2rem;
    }

    .footer{
        padding-top: 6rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pagination {
        margin-top: 50px;
        gap: 4px;
    }

    .page-nav {
        padding: 5px 8px;
    }

    .page-numbers {
        gap: 2px;
    }

    .page-number {
        padding: 5px 9px;
        font-size: 12px;
        min-width: 30px;
    }

    /* Hide some page numbers on mobile */
    .page-number:nth-child(4),
    .page-number:nth-child(5) {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-section {
        margin-top: 40px;
        padding: 40px 0;
    }
    
    .news-container {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .news-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 30px 0;
    }

    .news-image {
        width: 100%;
        height: auto;
    }

    .news-title {
        font-size: 20px;
    }

    .news-excerpt {
        font-size: 14px;
    }
    
    .news-date {
        font-size: 12px;
    }
}