/* News Page Sections - Frontend Styles */

/* Edit button styles are centralized in style.css */
/* See: "UNIFIED EDIT BUTTON STYLES" section */

/* Page Hero */
.news-page .page-hero-section {
    padding: 80px 20px;
    color: white;
    text-align: center;
    margin-bottom: 0;
    position: relative;
}

.news-page .page-hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
}

.news-page .page-hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color, #8CC63F);
}

/* Featured Posts Section */
.news-featured-section {
    padding: 60px 20px;
    background: #f5f5f5;
}

.news-featured-section .section-title {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 40px;
    font-size: 2rem;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.featured-post-large {
    grid-row: span 2;
}

.featured-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.featured-image {
    width: 100%;
    overflow: hidden;
}

.featured-post-large .featured-image {
    height: 300px;
}

.featured-post-small .featured-image {
    height: 150px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 20px;
}

.featured-post-large .featured-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
}

.post-category {
    background: var(--primary-color, #8CC63F);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.featured-content .post-title {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-post-large .post-title {
    font-size: 1.8rem;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
}

/* All Posts Section */
.news-posts-section {
    padding: 60px 20px;
    background: white;
}

.news-posts-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-main-content .section-title {
    color: #1a1a1a;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    height: 180px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.post-card-content {
    padding: 20px;
}

.post-card-content .post-title {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card-content .post-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    color: var(--primary-color, #8CC63F);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Pagination */
.news-pagination {
    margin-top: 40px;
    text-align: center;
}

.news-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    transition: all 0.2s ease;
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
    background: var(--primary-color, #8CC63F);
    color: white;
}

/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color, #8CC63F);
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.category-list a:hover {
    background: var(--primary-color, #8CC63F);
    color: white;
}

.category-list .count {
    font-size: 0.85rem;
    color: #999;
}

.category-list a:hover .count {
    color: rgba(255, 255, 255, 0.8);
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    margin-bottom: 15px;
}

.recent-posts-list a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.recent-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-post-title {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

/* Newsletter Widget */
.newsletter-widget p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.newsletter-form button {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color, #8CC63F);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-form button:hover {
    background: #7ab52e;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-block;
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: var(--primary-color, #8CC63F);
    border-color: var(--primary-color, #8CC63F);
    color: white;
}

/* No Posts Message */
.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.no-posts-message p {
    color: #666;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .news-posts-wrapper {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        position: relative;
        top: 0;
    }
    
    .featured-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-post-large {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .news-page .page-hero-content h1 {
        font-size: 2rem;
    }
}
