/* ===== News Page Styles ===== */
:root {
    --primary: #06402B;
    --secondary: #06402B;
    --light: #FEFFFF;
    --dark: #17252A;
    --accent: #DEF2F1;
    --ubuntu-orange: #ebcfa7;
    --bg-light: #f8f9fa;
    --text-dark: #333;
    --text-light: #777;
}

/* News Hero Section */
.news-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('./images/DSC_0088.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 80px;
}

.news-hero h1 {
    font-size: 3rem;
    font-family: Publico;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.news-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.bg-white {
    background-color: white;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-green {
    background-color: var(--primary);
    color: white;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Add these to your existing news.css */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    display: block;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-item h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    font-family: Publico;
    color: var(--text-color-dark);
}

.news-item p {
    margin-bottom: 1.5rem;
    font-family: Magnific Caos;
    color: var(--text-color);
}

.read-more {
    width: 100%;
    text-align: center;
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* News Modal Styles */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.modal-container {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
    padding: 2rem;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--ubuntu-orange);
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 6px;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.modal-text-content {
    flex: 1;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-body p {
    line-height: 1.8;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .modal-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .modal-image-container {
        height: 250px;
    }
    
    .modal-content {
        flex-direction: column;
    }
}

/* Featured Story */
.featured-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.featured-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.story-tag {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.story-date {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Newsletter */
.newsletter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-content h2 {
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--dark);
}

.btn-white {
    background-color: white;
    color: var(--primary);
}

.btn-white:hover {
    background-color: var(--accent);
}

/* News Modal */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); }
    to { transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.modal-image-container {
    position: relative;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.modal-text-content {
    padding: 40px;
    overflow-y: auto;
    max-height: 80vh;
}

.news-content-paragraphs {
    margin-top: 20px;
}

.news-content-paragraphs p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-dark);
}

.news-content-paragraphs img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .modal-body,
    .featured-story,
    .newsletter-container {
        grid-template-columns: 1fr;
    }
    
    .modal-image-container,
    .featured-image {
        height: 300px;
    }
    
    .featured-content {
        order: -1;
        margin-bottom: 30px;
    }
    
    .modal-text-content {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 150px 0 80px;
    }
    
    .news-hero h1 {
        font-size: 2.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 90%;
        margin: 10% auto;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .news-hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}