/* ============================================
   BLOG PAGE - MODERN & PROFESSIONAL DESIGN
   ============================================ */

/* Blog Container */
.blog-container {
    min-height: calc(100vh - 132px);
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.blog-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.blog-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.blog-header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.blog-header-icon i {
    font-size: 3rem;
    color: white;
}

.blog-main-title {
    color: white;
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blog-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin: 0;
}

/* Featured Blog Post */
.featured-blog-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
    transition: transform 0.3s ease;
}

.featured-blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.featured-blog-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-blog-image.image-error::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.featured-blog-post:hover .featured-blog-image img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.featured-blog-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-category {
    background: linear-gradient(135deg, #3B9DD5 0%, #1976D2 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-date,
.blog-read-time {
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.featured-blog-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.featured-blog-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-blog-title a:hover {
    color: #3B9DD5;
}

.featured-blog-excerpt {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.featured-blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f3f4f6;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 600;
}

.blog-author i {
    font-size: 1.5rem;
    color: #3B9DD5;
}

.btn-read-more {
    background: linear-gradient(135deg, #3B9DD5 0%, #1976D2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 157, 213, 0.3);
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 157, 213, 0.4);
    color: white;
}

/* Blog Filters */
.blog-filters {
    margin-bottom: 3rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: #3B9DD5;
    color: #3B9DD5;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #3B9DD5 0%, #1976D2 100%);
    border-color: #3B9DD5;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 157, 213, 0.3);
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-image.image-error::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.blog-post-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #3B9DD5;
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    backdrop-filter: blur(10px);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.blog-card-date,
.blog-card-read-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.blog-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #3B9DD5;
}

.blog-card-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-card-link {
    color: #3B9DD5;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.blog-card-link:hover {
    color: #1976D2;
    transform: translateX(5px);
}

/* Empty State */
.blog-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 3rem;
    color: #9ca3af;
}

.blog-empty-state h3 {
    color: #374151;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-empty-state p {
    color: #6b7280;
}

/* Blog Detail Page */
.blog-detail-container {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    min-height: calc(100vh - 132px);
}

/* Breadcrumb */
.blog-breadcrumb {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 0.5rem;
    color: #d1d5db;
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list li a {
    color: #3B9DD5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list li a:hover {
    color: #1976D2;
}

.breadcrumb-list li.active {
    color: #1f2937;
    font-weight: 600;
}

/* Blog Article */
.blog-article {
    background: white;
    margin: 2rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.blog-article-header {
    padding: 3rem 3rem 2rem;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3B9DD5 0%, #1976D2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 2px solid #f3f4f6;
}

.article-author,
.article-date,
.article-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-weight: 600;
}

.article-author i {
    font-size: 1.5rem;
    color: #3B9DD5;
}

.blog-article-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-article-image.image-error::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.blog-article-content {
    padding: 3rem;
}

.article-excerpt {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3B9DD5;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.article-excerpt p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1f2937;
    margin: 0;
    font-weight: 500;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #374151;
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1f2937;
    margin: 2rem 0 1rem;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 1.5rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

/* Share Buttons */
.article-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f3f4f6;
}

.article-share h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    color: white;
}

.share-twitter {
    background: #1da1f2;
    color: white;
}

.share-twitter:hover {
    background: #1a91da;
    transform: translateY(-2px);
    color: white;
}

.share-linkedin {
    background: #0077b5;
    color: white;
}

.share-linkedin:hover {
    background: #006399;
    transform: translateY(-2px);
    color: white;
}

.share-copy {
    background: white;
    color: #374151;
    border-color: #e5e7eb;
    cursor: pointer;
}

.share-copy:hover {
    background: #f9fafb;
    border-color: #3B9DD5;
    color: #3B9DD5;
}

/* Related Articles */
.related-articles {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.related-article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.related-article-image {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-article-image.image-error::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.1);
}

.related-article-content {
    padding: 1.5rem;
}

.related-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.related-article-category {
    background: linear-gradient(135deg, #3B9DD5 0%, #1976D2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
}

.related-article-date {
    color: #6b7280;
}

.related-article-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.related-article-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article-title a:hover {
    color: #3B9DD5;
}

.related-article-excerpt {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.related-article-link {
    color: #3B9DD5;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.related-article-link:hover {
    color: #1976D2;
    transform: translateX(5px);
}

/* Back to Blog */
.back-to-blog {
    padding: 2rem 0;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.btn-back-blog {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-back-blog:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateX(-5px);
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-blog-post {
        grid-template-columns: 1fr;
    }

    .featured-blog-image {
        height: 300px;
    }

    .blog-main-title {
        font-size: 2rem;
    }

    .blog-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 3rem 0;
    }

    .blog-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .blog-main-title {
        font-size: 1.75rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .featured-blog-content {
        padding: 2rem;
    }

    .featured-blog-title {
        font-size: 1.5rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .blog-article-content {
        padding: 2rem;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-card,
.featured-blog-post {
    animation: fadeIn 0.5s ease-out;
}

