/* ==================== NEWS PAGE STYLES ==================== */

/* News Hero */
.news-hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)),
                url('https://images.unsplash.com/photo-1556761175-b413da4baf72?w=1600&fit=crop') center/cover;
    padding: 180px 0 100px;
    position: relative;
    color: var(--white);
    text-align: center;
}

.news-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.news-hero .hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* News Section */
.news-section {
    padding: 100px 0;
    background: var(--light);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--light);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.author {
    font-weight: 500;
}

.read-time {
    background: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
}

.read-more-btn {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* News Modal */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--secondary-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

/* Full News Content */
.full-news-header {
    margin-bottom: 2.5rem;
}

.full-news-category {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.full-news-header h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.full-news-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
    border-bottom: 2px solid var(--light);
    padding-bottom: 1.5rem;
}

.full-news-image {
    margin: 2.5rem 0;
    border-radius: 15px;
    overflow: hidden;
}

.full-news-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.full-news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.full-news-content h2 {
    color: var(--dark);
    margin: 2.5rem 0 1.2rem;
    font-size: 1.8rem;
}

.full-news-content h3 {
    color: var(--dark);
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

.full-news-content h4 {
    color: var(--dark);
    margin: 1.5rem 0 0.8rem;
    font-size: 1.2rem;
}

.news-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light);
}

/* Grids and Layouts */
.achievement-highlights,
.development-highlights,
.ceremony-highlights {
    background: var(--light);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.stats-grid,
.facilities-grid,
.benefits-grid,
.community-programs,
.workshop-topics,
.impact-points,
.curriculum-levels,
.teaching-methods,
.student-projects,
.endorsements,
.future-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.stat-item,
.facility,
.benefit-item,
.program,
.topic,
.impact,
.level,
.method,
.project,
.endorsement,
.plan {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Quotes */
.news-quote {
    background: linear-gradient(135deg, var(--light), var(--white));
    border-left: 5px solid var(--primary-color);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
}

.news-quote p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 1rem;
}

.news-quote cite {
    color: var(--text-light);
    font-weight: 600;
}

.leadership-quotes,
.testimonials-workshop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.quote-item,
.testimonial {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

/* Lists */
.full-news-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.full-news-content ul li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

.full-news-content ul li strong {
    color: var(--dark);
}

/* Responsive News */
@media (max-width: 968px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .news-hero .hero-title {
        font-size: 2.8rem;
    }
    
    .full-news-header h1 {
        font-size: 2rem;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-body {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 150px 0 80px;
    }
    
    .news-hero .hero-title {
        font-size: 2.2rem;
    }
    
    .news-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .full-news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stats-grid,
    .facilities-grid,
    .benefits-grid,
    .community-programs,
    .workshop-topics,
    .impact-points,
    .curriculum-levels,
    .teaching-methods,
    .student-projects,
    .endorsements,
    .future-plans {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .full-news-header h1 {
        font-size: 1.8rem;
    }
    
    .full-news-content h2 {
        font-size: 1.5rem;
    }
}
