/* ========================================
   MODERN BLOG PAGE STYLES
======================================== */

/* Blog Hero Section */
.blog-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 180px;
    position: relative;
    overflow: hidden;
}

.blog-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x bottom;
    opacity: 0.3;
}

.blog-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.blog-hero-badge i {
    margin-right: 8px;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.blog-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.search-input-wrapper i {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.1rem;
}

.search-input-wrapper .form-control {
    border: none;
    padding: 12px 20px 12px 55px;
    flex: 1;
    font-size: 1rem;
}

.search-input-wrapper .form-control:focus {
    box-shadow: none;
    outline: none;
}

.search-input-wrapper .btn {
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
}

.blog-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.blog-hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Featured Posts Section */
.featured-posts-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header-blog {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge-blog {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title-blog {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
}

.featured-blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.featured-blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.featured-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-blog-card:hover .featured-blog-image img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fbbf24;
    color: #1a1a2e;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 2;
    transition: transform 0.3s ease;
}

.blog-category-badge:hover {
    transform: scale(1.05);
    color: white;
}

.featured-blog-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta-info {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-meta-info span i {
    margin-right: 5px;
    color: #667eea;
}

.featured-blog-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.featured-blog-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-blog-title a:hover {
    color: #667eea;
}

.featured-blog-excerpt {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.btn-read-more-featured {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-read-more-featured:hover {
    color: #764ba2;
    gap: 12px;
}

/* Categories Filter Section */
.categories-filter-section {
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.categories-scroll-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

.categories-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.categories-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.categories-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.category-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-filter-pill i {
    font-size: 1rem;
}

.category-filter-pill .count {
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.category-filter-pill:hover {
    background: var(--category-color, #667eea);
    color: white;
    transform: translateY(-2px);
}

.category-filter-pill.active {
    background: var(--category-color, #667eea);
    color: white;
    border-color: var(--category-color, #667eea);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.category-filter-pill.active .count {
    background: rgba(255, 255, 255, 0.9);
    color: var(--category-color, #667eea);
}

/* Blog Content Section */
.blog-content-section {
    padding: 60px 0;
    background: white;
}

.filter-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 30px;
}

.filter-info-bar strong {
    color: #667eea;
}

.clear-filter {
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
}

.clear-filter:hover {
    color: #dc2626;
}

/* Modern Blog Cards */
.modern-blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.modern-blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.modern-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.modern-blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.modern-blog-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-blog-title a:hover {
    color: #667eea;
}

.modern-blog-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.blog-tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.blog-tag-inline {
    font-size: 0.75rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-tag-inline:hover {
    color: #764ba2;
}

.btn-read-more-modern {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-read-more-modern:hover {
    color: #764ba2;
    gap: 12px;
}

/* Pagination */
.blog-pagination {
    margin-top: 60px;
}

.blog-pagination .page-link {
    border: none;
    color: #667eea;
    font-weight: 600;
    padding: 12px 20px;
    margin: 0 5px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.blog-pagination .page-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.blog-pagination .page-item.active .page-link {
    background: #667eea;
    color: white;
}

/* No Results */
.no-results-found {
    text-align: center;
    padding: 80px 20px;
}

.no-results-found i {
    color: #d1d5db;
    margin-bottom: 20px;
}

.no-results-found h3 {
    color: #4b5563;
    margin-bottom: 10px;
}

.no-results-found p {
    color: #9ca3af;
    margin-bottom: 30px;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: #667eea;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-widget h3 {
    color: white;
    margin-bottom: 10px;
}

.newsletter-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 1rem;
}

.newsletter-form .btn {
    background: white;
    color: #667eea;
    font-weight: 700;
}

.newsletter-form .btn:hover {
    background: #f8f9fa;
}

/* Popular Posts */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-post-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.popular-post-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.4;
}

.popular-post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Categories List */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.category-name {
    flex: 1;
    color: #1a1a2e;
    font-weight: 600;
}

.category-count {
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud-item {
    padding: 8px 16px;
    background: #f3f4f6;
    color: #667eea;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag-cloud-item:hover,
.tag-cloud-item.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.blog-tag-inline.active {
    color: #764ba2;
    font-weight: 700;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    text-align: center;
}

.cta-widget-content i {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-widget-content h3 {
    color: white;
    margin-bottom: 10px;
}

.cta-widget-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.cta-widget-content .btn-light {
    background: white;
    color: #f5576c;
    font-weight: 700;
    border: none;
}

.cta-widget-content .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title-blog {
        font-size: 2rem;
    }
    
    .featured-blog-image {
        height: 200px;
    }
}

