/* =========================================
   Blog Page Styles – ClinicBuddy
   ========================================= */

/* Blog Hero Section */
.blog-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6fffb 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.blog-hero .hero-background .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.5;
    animation: moveBlob 20s infinite alternate;
}

.blog-hero .blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.25) 0%, rgba(13, 202, 240, 0.25) 100%);
    top: -100px;
    right: -50px;
}

.blog-hero .blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(180deg, rgba(102, 16, 242, 0.2) 0%, rgba(13, 110, 253, 0.2) 100%);
    bottom: -80px;
    left: -80px;
}

.blog-hero .hero-content {
    position: relative;
    z-index: 1;
}

.blog-hero .hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.blog-hero .hero-content h1 .highlight {
    background: linear-gradient(to right, var(--accent-orange), var(--primary-color), var(--accent-orange));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 3s linear infinite;
    display: inline-block;
}

.blog-hero .hero-description {
    font-size: 1.15rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Breadcrumbs */
.breadcrumb-nav {
    padding: 15px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav .container {
    perspective: none;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-list li a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.breadcrumb-list li a:hover {
    color: var(--accent-orange);
}

.breadcrumb-list .separator {
    color: #adb5bd;
    font-size: 0.75rem;
}

.breadcrumb-list .current {
    color: #6c757d;
    font-weight: 500;
}

/* Blog Grid */
.blog-listing {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 35px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(13, 110, 253, 0.12);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-orange) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.blog-card-img .category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.category-tag.scheduling {
    background: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.category-tag.benefits {
    background: rgba(32, 201, 151, 0.15);
    color: #0d9e6e;
    border: 1px solid rgba(32, 201, 151, 0.2);
}

.category-tag.solutions {
    background: rgba(253, 126, 20, 0.15);
    color: #e86b0c;
    border: 1px solid rgba(253, 126, 20, 0.2);
}

.category-tag.comparison {
    background: rgba(102, 16, 242, 0.15);
    color:#4000a8;
    border: 1px solid rgba(102, 16, 242, 0.2);
}

.category-tag.software {
    background: rgba(13, 202, 240, 0.15);
    color: #37ffe8;
    border: 1px solid rgba(13, 202, 240, 0.2);
}

.category-tag.telehealth {
    background: rgba(220, 53, 69, 0.12);
    color: #671010;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.blog-card-body {
    padding: 28px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.blog-card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.4;
    transition: color 0.3s;
}

.blog-card:hover .blog-card-body h3 {
    color: var(--primary-color);
}

.blog-card-body p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.read-more-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more-link:hover {
    color: var(--accent-orange);
}

.read-more-link:hover i {
    transform: translateX(5px);
}

/* =========================================
   Individual Blog Post Styles
   ========================================= */

/* Post Hero */
.post-hero {
    padding: 140px 0 50px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f4f8 50%, #eef2ff 100%);
    position: relative;
    overflow: hidden;
}

.post-hero .hero-background .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    animation: moveBlob 25s infinite alternate;
}

.post-hero .blob-1 {
    width: 350px;
    height: 350px;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.2) 0%, rgba(13, 202, 240, 0.2) 100%);
    top: -80px;
    right: -30px;
}

.post-hero .blob-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(180deg, rgba(253, 126, 20, 0.15) 0%, rgba(102, 16, 242, 0.15) 100%);
    bottom: -60px;
    left: -60px;
}

.post-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-hero-content .category-tag {
    display: inline-block;
    margin-bottom: 20px;
}

.post-hero-content h1 {
    font-size: 2.6rem;
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--text-color);
}

.post-meta-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    font-size: 0.9rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.post-meta-hero span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta-hero i {
    color: var(--primary-color);
}

/* Post Content Layout */
.post-content-section {
    padding: 50px 0 80px;
}

.post-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 50px;
    align-items: start;
}

/* Sidebar / Table of Contents */
.post-sidebar {
    position: sticky;
    top: 100px;
}

.toc-card {
    background: #f8fbff;
    border: 1px solid #e8f0fe;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.toc-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-card h4 i {
    font-size: 0.85rem;
}

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

.toc-list li {
    margin-bottom: 10px;
}

.toc-list li a {
    font-size: 0.88rem;
    color: #555;
    font-weight: 500;
    display: block;
    padding: 6px 12px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.toc-list li a:hover,
.toc-list li a.active {
    color: var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
    border-left-color: var(--primary-color);
}

/* Article Content */
.post-article {
    max-width: 780px;
}

.post-article h2 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin: 40px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(13, 110, 253, 0.1);
    background: none !important;
    -webkit-text-fill-color: unset !important;
}

.post-article h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 30px 0 12px;
}

.post-article p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 18px;
}

.post-article ul, .post-article ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.post-article ul li, .post-article ol li {
    font-size: 1.02rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
    position: relative;
}

.post-article ul li::marker {
    color: var(--primary-color);
}

.post-article ol li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

.post-article strong {
    color: #2c3e50;
}

/* Comparison Table */
.comparison-table-blog {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.comparison-table-blog thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
}

.comparison-table-blog th {
    padding: 15px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}

.comparison-table-blog td {
    padding: 14px 20px;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.comparison-table-blog tbody tr {
    transition: background-color 0.2s;
}

.comparison-table-blog tbody tr:hover {
    background-color: #f8fbff;
}

.comparison-table-blog tbody tr:last-child td {
    border-bottom: none;
}

/* Key Takeaway Box */
.key-takeaway {
    background: linear-gradient(135deg, #f0f8ff 0%, #eef2ff 100%);
    border-left: 4px solid var(--primary-color);
    padding: 25px 30px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
}

.key-takeaway h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-takeaway p {
    margin-bottom: 0 !important;
    font-size: 1rem !important;
    color: #444 !important;
}

/* Blog FAQ Section */
.blog-faq-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2ff 100%);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
}

.blog-faq-section h2 {
    text-align: center;
    border-bottom: none !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Share Buttons */
.share-section {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.share-section h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    color: white;
}

.share-btn.linkedin { background: #0077B5; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }

/* Post CTA Banner */
.post-cta-banner {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 100%);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.post-cta-banner::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 126, 20, 0.25) 0%, transparent 70%);
    z-index: 0;
}

.post-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.25) 0%, transparent 70%);
    z-index: 0;
}

.post-cta-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    color: white;
}

.post-cta-banner p {
    font-size: 1.05rem;
    margin-bottom: 25px !important;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    color: #ccc !important;
}

.post-cta-banner .btn {
    position: relative;
    z-index: 1;
}

/* Related Posts */
.related-posts {
    padding: 60px 0;
    background: #f8f9fa;
}

.related-posts .section-header {
    margin-bottom: 30px !important;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* =========================================
   Responsive Styles
   ========================================= */

@media (max-width: 991px) {
    .blog-hero .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .post-layout {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        position: static;
        order: -1;
    }
    
    .toc-card {
        margin-bottom: 10px;
    }
    
    .post-hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 40px;
    }
    
    .blog-hero .hero-content h1 {
        font-size: 1.9rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-hero {
        padding: 120px 0 35px;
    }
    
    .post-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .post-meta-hero {
        gap: 12px;
        font-size: 0.82rem;
    }
    
    .blog-faq-section {
        padding: 25px 18px;
    }
    
    .post-cta-banner {
        padding: 35px 22px;
    }
    
    .post-cta-banner h3 {
        font-size: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table-blog {
        font-size: 0.85rem;
    }
    
    .comparison-table-blog th,
    .comparison-table-blog td {
        padding: 10px 14px;
    }
    
    .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .blog-card-img {
        height: 180px;
    }
    
    .post-article h2 {
        font-size: 1.45rem;
    }
    
    .post-article h3 {
        font-size: 1.15rem;
    }
    
    .breadcrumb-list {
        font-size: 0.8rem;
    }
}
