/* ═══════════════════════════════════════════════════
   MODERN BLOG CARD GRID LAYOUT
   Professional travel blog design
   ═══════════════════════════════════════════════════ */

/* ─── BLOG PAGE BANNER ─── */
.blog-page-banner {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 80px;
    margin-bottom: 60px;
    overflow: hidden;
}

.blog-page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

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

.banner-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.banner-content p {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── MODERN BLOG SECTION ─── */
.modern-blog-section {
    padding: 0 0 80px;
    background: #f8f9fa;
}

.blog-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
}

/* ─── MODERN BLOG GRID (3 COLUMNS) ─── */
.modern-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 50px;
}

/* ─── MODERN BLOG CARD ─── */
.modern-blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* ─── CARD IMAGE ─── */
.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 Aspect Ratio */
    overflow: hidden;
    background: #e9ecef;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-blog-card:hover .card-image-wrapper img {
    transform: scale(1.08);
}

/* ─── CATEGORY BADGE (Top-Left Overlay) ─── */
.card-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(13, 148, 136, 0.95);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(10px);
}

/* ─── CARD CONTENT ─── */
.card-content-wrapper {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ─── META INFO (Country + Reading Time) ─── */
.card-meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.card-location,
.card-reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.card-location i {
    color: #0d9488;
    font-size: 14px;
}

.card-reading-time i {
    color: #94a3b8;
    font-size: 13px;
}

/* ─── CARD TITLE ─── */
.card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #0f172a;
}

.card-title a {
    color: inherit;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #0d9488;
}

/* ─── CARD EXCERPT ─── */
.card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── CARD FOOTER (Date) ─── */
.card-footer-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.card-date {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

/* ─── NO POSTS MESSAGE ─── */
.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.no-posts-message i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-posts-message h3 {
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 8px;
}

.no-posts-message p {
    font-size: 16px;
    color: #64748b;
}

/* ─── MODERN PAGINATION ─── */
.modern-pagination {
    margin-top: 50px;
}

.modern-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modern-pagination .page-numbers li {
    display: inline-block;
}

.modern-pagination .page-numbers a,
.modern-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.modern-pagination .page-numbers a:hover {
    border-color: #0d9488;
    color: #0d9488;
    background: #f0fdfa;
}

.modern-pagination .page-numbers .current {
    background: #0d9488;
    border-color: #0d9488;
    color: white;
}

.modern-pagination .page-numbers .prev,
.modern-pagination .page-numbers .next {
    padding: 0 20px;
}

/* ─── MODERN SIDEBAR ─── */
.blog-sidebar-modern {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget-modern {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.widget-title-modern {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 3px solid #0d9488;
}

/* ─── COUNTRY LIST ─── */
.country-list-modern,
.category-list-modern {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.country-item-modern,
.category-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.country-item-modern:hover,
.category-item-modern:hover {
    background: #f0fdfa;
    color: #0d9488;
    transform: translateX(4px);
}

.country-count,
.category-count {
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.country-item-modern:hover .country-count,
.category-item-modern:hover .category-count {
    background: #0d9488;
    color: white;
}

/* ─── POPULAR & RECENT POSTS ─── */
.popular-posts-modern,
.recent-posts-modern {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.popular-post-item,
.recent-post-item {
    display: block;
    padding: 14px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.popular-post-item:hover,
.recent-post-item:hover {
    background: #f0fdfa;
    transform: translateX(4px);
}

.popular-post-content h4,
.recent-post-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.popular-post-item:hover h4,
.recent-post-item:hover h4 {
    color: #0d9488;
}

.popular-post-date,
.recent-post-date {
    font-size: 12px;
    color: #94a3b8;
}

/* ─── RESPONSIVE DESIGN ─── */

/* Tablet (2 Columns) */
@media (max-width: 1024px) {
    .blog-layout-wrapper {
        grid-template-columns: 1fr;
    }
    
    .modern-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    
    .blog-sidebar-modern {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    
    .banner-content h1 {
        font-size: 42px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
}

/* Mobile (1 Column) */
@media (max-width: 640px) {
    .modern-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blog-sidebar-modern {
        grid-template-columns: 1fr;
    }
    
    .blog-page-banner {
        padding: 60px 0 50px;
        margin-bottom: 40px;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .card-content-wrapper {
        padding: 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .modern-blog-section {
        padding: 0 0 60px;
    }
    
    .sidebar-widget-modern {
        padding: 24px 20px;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    .card-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
}
