/* ====================================
   Articles Page Styles
   ==================================== */

/* Articles Hero Section */
.articles-hero {
    background: linear-gradient(135deg, #1a5f3d 0%, #0d3b24 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.articles-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
}

.articles-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.articles-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Articles Section */
.articles-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Article Card */
.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #66a85a 0%, #1a5f3d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    opacity: 0.7;
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #6c757d;
}

.article-meta i {
    margin-left: 5px;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #1a5f3d;
    font-weight: 700;
    line-height: 1.4;
}

.article-card:hover .article-title {
    color: #d4a574;
}

.article-excerpt {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.article-author {
    font-size: 0.9rem;
    color: #6c757d;
}

.article-author i {
    margin-left: 5px;
}

.read-more {
    color: #1a5f3d;
    font-weight: 600;
    transition: all 0.3s;
}

.read-more i {
    margin-right: 5px;
    transition: transform 0.3s;
}

.article-card:hover .read-more i {
    transform: translateX(-5px);
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.no-articles i {
    font-size: 5rem;
    opacity: 0.3;
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link,
.page-number {
    padding: 10px 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-decoration: none;
    color: #1a5f3d;
    transition: all 0.3s;
}

.page-link:hover,
.page-number:hover {
    background: #1a5f3d;
    color: white;
    border-color: #1a5f3d;
}

.page-number.active {
    background: #1a5f3d;
    color: white;
    border-color: #1a5f3d;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

/* ====================================
   Article Detail Page
   ==================================== */

.article-detail-page {
    background: #f8f9fa;
}

.article-container {
    padding: 40px 0 60px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #1a5f3d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #d4a574;
}

.breadcrumbs i {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Article Header */
.article-header {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.article-header h1 {
    font-size: 2.5rem;
    color: #1a5f3d;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    color: #6c757d;
    font-size: 0.95rem;
}

.meta-item i {
    margin-left: 8px;
    color: #d4a574;
}

/* Featured Image */
.article-featured-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content-area {
    background: white;
    padding: 50px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    line-height: 2;
    font-size: 1.1rem;
    color: #333;
}

.article-content-area h2 {
    color: #1a5f3d;
    margin: 30px 0 15px;
    font-size: 1.8rem;
}

.article-content-area h3 {
    color: #2c6e49;
    margin: 25px 0 12px;
    font-size: 1.4rem;
}

.article-content-area p {
    margin-bottom: 20px;
}

/* Article Gallery */
.article-gallery {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.article-gallery h2 {
    font-size: 1.8rem;
    color: #1a5f3d;
    margin-bottom: 25px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    left: 50px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Social Share */
.article-share {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.article-share h3 {
    font-size: 1.5rem;
    color: #1a5f3d;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.email {
    background: #6c757d;
}

/* Related Articles */
.related-articles {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.related-articles h2 {
    font-size: 1.8rem;
    color: #1a5f3d;
    margin-bottom: 25px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.related-article-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-article-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.related-article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-article-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 20px;
}

.related-content h3 {
    font-size: 1.1rem;
    color: #1a5f3d;
    margin-bottom: 10px;
    font-weight: 600;
}

.related-content p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
}

/* ====================================
   Responsive Design
   ==================================== */

@media (max-width: 768px) {
    .articles-hero h1 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-header {
        padding: 25px;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-content-area {
        padding: 25px;
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .page-numbers {
        flex-wrap: wrap;
    }
}
