/* News Page Specific Styles */
.news-header {
    background: linear-gradient(rgba(0, 79, 68, 0.7), rgba(255, 152, 49, 0.2)), 
                url('../../img/news-bg.jpg') center/cover;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.news-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.news-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb span {
    opacity: 0.8;
}

.news-main {
    padding: 3rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

.news-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-article:hover {
    transform: translateY(-5px);
}

.article-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-article:hover .article-image img {
    transform: scale(1.05);
}

.article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.article-meta .category {
    color: var(--primary);
    font-weight: 500;
}

.news-article h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.excerpt {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #444;
}

.article-details {
    margin: 2rem 0;
    display: none;
}

.article-details p, .article-details ul {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-details ul {
    padding-left: 1.5rem;
}

.article-details li {
    margin-bottom: 0.5rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn-shop {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-shop:hover {
    background: #00382f;
}


.social-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-share span {
    font-size: 0.85rem;
    color: #666;
}

.social-share a {
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background: var(--primary);
    color: white;
}

/* Featured Article */
.news-article.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.news-article.featured .article-image {
    height: 100%;
}

/* Newsletter Sidebar */
.newsletter-sidebar {
    margin-top: 3rem;
}

.newsletter-box {
    background: var(--gray);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.newsletter-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.newsletter-box p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.newsletter-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #00382f;
}

.privacy-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
}

.recent-news, .news-categories {
    margin-bottom: 2rem;
}

.recent-news h3, .news-categories h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.recent-news ul, .news-categories ul {
    list-style: none;
}

.recent-news li, .news-categories li {
    margin-bottom: 0.75rem;
}

.recent-news a, .news-categories a {
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.recent-news a:hover, .news-categories a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
}

.modal h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal p {
    margin-bottom: 1.5rem;
}

.modal input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal button:hover {
    background: #00382f;
}

#notifyMessage {
    margin-top: 1rem;
}

#notifyMessage .success {
    color: green;
}

#notifyMessage .error {
    color: red;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .news-main .container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
        align-items: start;
    }
    
    .newsletter-sidebar {
        margin-top: 0;
        position: sticky;
        top: 20px;
    }
}

@media (max-width: 768px) {
    .news-article.featured {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .social-share {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Article expansion functionality */
.expanded .article-details {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}