﻿/* News Page Specific Styles */
.HttpBannerBox {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    background-size: cover;
    background-position: center;
}

.HttpBannerText h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.wherebg {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
}

.whereBox {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    font-size: 0.9rem;
    color: #666;
}

    .whereBox a {
        color: var(--primary-color);
        text-decoration: none;
    }

        .whereBox a:hover {
            text-decoration: underline;
        }

.NewsBox {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 40px;
}

    .NewsBox ul {
        list-style: none;
        padding: 0;
    }

    .NewsBox li {
        display: flex;
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        margin-bottom: 20px;
        overflow: hidden;
        transition: var(--transition);
        cursor: pointer;
    }

        .NewsBox li:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

.News_Time {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    min-width: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .News_Time time {
        display: block;
    }

    .News_Time span {
        font-size: 1.8rem;
        font-weight: bold;
        line-height: 1;
        display: block;
    }

.News_Text {
    flex: 1;
    padding: 20px;
}

.News_Bt {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

    .News_Bt a {
        color: var(--dark-color);
        text-decoration: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .News_Bt a:hover {
            color: var(--primary-color);
        }

    .News_Bt span:last-child {
        font-size: 0.8rem;
        color: #999;
        margin-left: 10px;
    }

.article-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.News_Icon {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #999;
}

/* Pagination Styles */
.pagediv {
    margin-top: 30px;
    text-align: center;
}

    .pagediv a {
        display: inline-block;
        padding: 8px 12px;
        margin: 0 5px;
        border: 1px solid #ddd;
        border-radius: var(--border-radius);
        color: #666;
        text-decoration: none;
        transition: var(--transition);
    }

        .pagediv a:hover,
        .pagediv a.current {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .pagediv a.disabled {
            color: #ccc;
            pointer-events: none;
        }

/* Accessibility Helpers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .HttpBannerText h1 {
        font-size: 1.8rem;
    }

    .NewsBox li {
        flex-direction: column;
    }

    .News_Time {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

        .News_Time span {
            font-size: 1.2rem;
            margin-right: 10px;
        }

    .News_Icon {
        display: none;
    }
}

@media (max-width: 576px) {
    .HttpBannerBox {
        height: 200px;
    }

    .HttpBannerText h1 {
        font-size: 1.5rem;
    }

    .News_Bt {
        font-size: 1rem;
    }

        .News_Bt a {
            flex-direction: column;
            align-items: flex-start;
        }

        .News_Bt span:last-child {
            margin-left: 0;
            margin-top: 5px;
        }

    .pagediv a {
        padding: 5px 8px;
        margin: 0 2px;
    }
}
