/* ============================================
   Blog Page - Modern Redesign
   ============================================ */

/* Page Banner */
.blog-banner {
    position: relative;
    background: linear-gradient(135deg, #1e8449 0%, #2d5f3d 100%);
    padding: 100px 0;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern.png') repeat;
    opacity: 0.1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.banner-title {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner-subtitle {
    font-size: 1.3em;
    color: #ecf0f1;
    max-width: 700px;
    margin: 0 auto;
}

/* Page Wrapper */
.blog-wrapper {
    padding: 60px 0;
    background: #f8f9fa;
}

.blog-wrapper .container {
    max-width: 1400px !important;
    width: 100%;
}

.page-grid {
    display: grid !important;
    grid-template-columns: minmax(200px, 240px) 1fr !important;
    gap: 40px !important;
    align-items: start !important;
    max-width: none !important;
}

.page-main {
    min-width: 0;
    width: 100%;
    max-width: none;
}

/* Section Header */
.section-header {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.section-title {
    font-size: 2.2em;
    color: #1e8449;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-description {
    font-size: 1.1em;
    color: #666;
    line-height: 1.7;
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.15);
}

.article-image {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.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-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    z-index: 2;
}

.article-body {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: #999;
}

.article-date {
    display: flex;
    align-items: center;
}

.article-date::before {
    content: '📅';
    margin-right: 5px;
}

.article-read-time {
    display: flex;
    align-items: center;
}

.article-read-time::before {
    content: '⏱️';
    margin-right: 5px;
}

.article-title {
    margin-bottom: 15px;
}

.article-title a {
    color: #1e8449;
    text-decoration: none;
    font-size: 1.6em;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
    display: block;
}

.article-title a:hover {
    color: #27ae60;
}

.article-excerpt {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-link {
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-link:hover {
    color: #1e8449;
    text-decoration: underline;
}

/* Sidebar */
.page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-module {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.module-title {
    color: #1e8449;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e9;
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-menu li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-menu li:last-child {
    border-bottom: none;
}

.category-menu li a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-menu li a:hover {
    color: #27ae60;
    transform: translateX(5px);
}

.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item a {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-item a:hover {
    transform: translateX(5px);
}

.popular-title {
    display: block;
    color: #1e8449;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.popular-item a:hover .popular-title {
    color: #27ae60;
}

.popular-date {
    display: block;
    color: #999;
    font-size: 0.85em;
}

.module-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.module-list li:last-child {
    border-bottom: none;
}

.module-list li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.module-list li a:hover {
    color: #27ae60;
}

.cta-module {
    background: linear-gradient(135deg, #1e8449 0%, #27ae60 100%);
    color: #fff;
    text-align: center;
    padding: 30px 20px !important;
}

.cta-module .module-title {
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.cta-module p {
    color: #ecf0f1;
    margin-bottom: 25px;
    font-size: 0.95em;
    line-height: 1.6;
}

.cta-module .btn-block {
    width: 100%;
    display: block;
    text-align: center;
    background: #fff;
    color: #1e8449;
    border: none;
    padding: 14px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cta-module .btn-block:hover {
    background: #f8f9fa;
    color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 1024px) {
    .article-card {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 768px) {
    .blog-banner {
        padding: 60px 0;
    }
    
    .banner-title {
        font-size: 2.5em;
    }
    
    .banner-subtitle {
        font-size: 1.1em;
    }
    
    .blog-wrapper {
        padding: 40px 0;
    }
    
    .page-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-card {
        grid-template-columns: 1fr;
    }
    
    .article-image {
        height: 220px;
    }
    
    .article-body {
        padding: 25px;
    }
    
    .section-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
}
