/* ==========================================================================
   KSPL NEWS PAGE SPECIFIC STYLING (PREMIUM LIGHT REDESIGN)
   ========================================================================== */

.news-page-container {
    padding-top: 130px;
    padding-bottom: 90px;
    min-height: 90vh;
}

/* News Hero Banner Card */
.news-hero-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 36px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 45px;
    box-shadow: var(--elevated-shadow);
    overflow: hidden;
}

/* Glimmer background effects in Hero Card */
.news-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(242, 192, 31, 0.12) 0%, transparent 75%),
        radial-gradient(circle at 70% 70%, rgba(144, 23, 29, 0.1) 0%, transparent 75%);
    pointer-events: none;
    animation: slow-bg-rotation-news 25s linear infinite;
}

@keyframes slow-bg-rotation-news {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.news-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 40%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.news-hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, var(--burgundy) 0%, var(--gold) 100%);
    border-radius: 3px;
}

.news-hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 25px auto 0;
    line-height: 1.6;
    font-weight: 500;
}

/* Category Filter Pills */
.category-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    align-items: center;
}

.category-pill {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 22px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 750;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-pill:hover, .category-pill.active {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(144, 23, 29, 0.18);
    transform: translateY(-1px);
}

/* Standalone News Grid Overrides */
.news-page-container .news-section {
    padding: 0;
    margin-bottom: 50px;
}

/* Interactive Article modal */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.article-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-wrapper {
    position: relative;
    background: #ffffff;
    width: 92%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--elevated-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10001;
    transform: translateY(35px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.article-modal.active .modal-wrapper {
    transform: translateY(0);
}

.modal-header {
    padding: 22px 30px;
    border-bottom: 1px solid rgba(144, 23, 29, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.modal-header-left {
    display: flex;
    flex-direction: column;
}

.modal-header-left span {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 850;
    color: var(--burgundy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close-btn {
    background: rgba(144, 23, 29, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-close-btn:hover {
    background: var(--burgundy);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(144, 23, 29, 0.04);
}

.modal-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--burgundy) 0%, var(--gold) 100%);
    transition: width 0.08s ease;
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-article-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 950;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.modal-article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 30px;
    align-items: center;
}

.modal-article-category {
    background: rgba(144, 23, 29, 0.06);
    color: var(--burgundy);
    padding: 5px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.modal-article-image {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.modal-article-text {
    font-family: var(--font-body);
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.modal-article-text p {
    margin-bottom: 22px;
}

.modal-article-text p:last-child {
    margin-bottom: 0;
}

/* Mobile & Tablet Modal Tweaks */
@media (max-width: 992px) {
    .news-hero-card {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .news-page-container {
        padding-top: 100px;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .modal-wrapper {
        border-radius: 24px;
        max-height: 90vh;
    }
}
