/* ========================================
   Blog Detail Page - Responsive & Modern Design
   ======================================== */

/* Blog Section Base */
.blog-detail-section {
    padding: 80px 0;
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .blog-detail-section {
        padding: 40px 0;
    }
}

/* Blog Article Container */
.blog-detail-content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Blog Header */
.blog-detail-header {
    padding: 3rem 3rem 2rem;
}

@media (max-width: 768px) {
    .blog-detail-header {
        padding: 2rem 1.5rem 1.5rem;
    }
}

.blog-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3C72FC 0%, #2563eb 100%);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.blog-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

@media (max-width: 992px) {
    .blog-detail-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-detail-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .blog-detail-title {
        font-size: 1.5rem;
    }
}

.blog-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 0.95rem;
}

.blog-meta-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-meta-info i {
    color: #3C72FC;
}

@media (max-width: 576px) {
    .blog-meta-info {
        gap: 15px;
        font-size: 0.85rem;
    }
}

/* Featured Image */
.blog-featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .blog-featured-image {
        max-height: 300px;
    }
}

/* Blog Content Typography */
.blog-content {
    padding: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

@media (max-width: 768px) {
    .blog-content {
        padding: 2rem 1.5rem;
        font-size: 1rem;
        line-height: 1.7;
    }
}

.blog-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.blog-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Headings */
.blog-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #3C72FC;
    line-height: 1.3;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2a2a2a;
    margin: 2.5rem 0 1rem;
    line-height: 1.4;
}

.blog-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 2rem 0 1rem;
}

@media (max-width: 768px) {
    .blog-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .blog-content h3 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem;
    }

    .blog-content h4 {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.75rem;
    }
}

/* Lists */
.blog-content ul,
.blog-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.blog-content ul li,
.blog-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    position: relative;
}

.blog-content ul li {
    list-style: none;
    padding-left: 1.5rem;
}

.blog-content ul li::before {
    content: "●";
    color: #3C72FC;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.blog-content ol {
    counter-reset: ordered-list;
}

.blog-content ol li {
    counter-increment: ordered-list;
    padding-left: 0.5rem;
}

.blog-content ol li::marker {
    color: #3C72FC;
    font-weight: 700;
}

@media (max-width: 576px) {
    .blog-content ul,
    .blog-content ol {
        padding-left: 1.25rem;
    }

    .blog-content ul li {
        padding-left: 1.25rem;
    }
}

/* Comparison Table */
.comparison-table {
    margin: 2.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table h3 {
    margin-bottom: 1rem !important;
    color: #1a1a1a;
}

.comparison-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    min-width: 600px;
}

.comparison-table thead {
    background: linear-gradient(135deg, #3C72FC 0%, #2563eb 100%);
}

.comparison-table thead th {
    color: #ffffff;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 1rem;
    border: none;
}

.comparison-table tbody tr {
    transition: background-color 0.3s ease;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.comparison-table tbody tr:hover {
    background-color: #e9ecef;
}

.comparison-table tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    color: #333;
    font-size: 0.95rem;
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    color: #1a1a1a;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .comparison-table table {
        min-width: 500px;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-left: 5px solid #3C72FC;
    padding: 2rem;
    border-radius: 10px;
    margin: 2.5rem 0;
    box-shadow: 0 5px 20px rgba(60, 114, 252, 0.1);
}

.highlight-box p {
    margin-bottom: 0;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 1.05rem;
}

.highlight-box strong {
    color: #3C72FC;
    font-weight: 700;
}

@media (max-width: 768px) {
    .highlight-box {
        padding: 1.5rem;
        font-size: 0.95rem;
    }
}

/* Pros and Cons Grid */
.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

@media (max-width: 768px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.pros-cons-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pros-cons-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.pros-cons-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem !important;
    font-size: 1.25rem;
    font-weight: 700;
}

.pros-cons-card.pros {
    border-top: 4px solid #10b981;
}

.pros-cons-card.pros h4 {
    color: #10b981;
}

.pros-cons-card.pros h4 i {
    color: #10b981;
    font-size: 1.5rem;
}

.pros-cons-card.cons {
    border-top: 4px solid #ef4444;
}

.pros-cons-card.cons h4 {
    color: #ef4444;
}

.pros-cons-card.cons h4 i {
    color: #ef4444;
    font-size: 1.5rem;
}

.pros-cons-card ul {
    margin-bottom: 0 !important;
    padding-left: 0 !important;
}

.pros-cons-card ul li {
    padding-left: 1.75rem !important;
    margin-bottom: 0.75rem;
}

.pros-cons-card.pros ul li::before {
    content: "✓";
    color: #10b981;
    font-weight: 700;
    font-size: 1.2rem;
}

.pros-cons-card.cons ul li::before {
    content: "✗";
    color: #ef4444;
    font-weight: 700;
    font-size: 1.2rem;
}

@media (max-width: 576px) {
    .pros-cons-card {
        padding: 1.5rem;
    }

    .pros-cons-card h4 {
        font-size: 1.1rem;
    }
}

/* Social Share Section */
.blog-social-share {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0;
}

.blog-social-share h5 {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.1rem;
}

.social-share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-share-btn.facebook {
    background: #1877f2;
    color: #ffffff;
}

.social-share-btn.twitter {
    background: #1da1f2;
    color: #ffffff;
}

.social-share-btn.linkedin {
    background: #0077b5;
    color: #ffffff;
}

@media (max-width: 576px) {
    .blog-social-share {
        padding: 1.5rem;
    }

    .social-share-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* Author Info Box */
.blog-author-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2.5rem;
    border-radius: 15px;
    margin: 3rem 0;
    border: 2px solid #e9ecef;
}

.blog-author-info h4 {
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 1rem !important;
    font-size: 1.3rem;
}

.blog-author-info p {
    margin-bottom: 0;
    line-height: 1.7;
    color: #555;
}

@media (max-width: 768px) {
    .blog-author-info {
        padding: 1.75rem;
    }

    .blog-author-info h4 {
        font-size: 1.15rem;
    }
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
}

.related-articles h3 {
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.75rem;
}

.related-article-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.related-article-img {
    height: 220px;
    overflow: hidden;
}

.related-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-img img {
    transform: scale(1.1);
}

.related-article-content {
    padding: 1.75rem;
}

.related-article-content h5 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-article-content h5 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article-content h5 a:hover {
    color: #3C72FC;
}

.related-article-meta {
    font-size: 0.9rem;
    color: #999;
}

.related-article-meta i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .related-articles {
        margin-top: 3rem;
    }

    .related-articles h3 {
        font-size: 1.5rem;
    }

    .related-article-img {
        height: 180px;
    }

    .related-article-content {
        padding: 1.25rem;
    }

    .related-article-content h5 {
        font-size: 1rem;
    }
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Search Widget */
.search-form-widget {
    position: relative;
}

.search-form-widget input {
    width: 100%;
    padding: 14px 55px 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.search-form-widget input:focus {
    outline: none;
    border-color: #3C72FC;
}

.search-form-widget button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #3C72FC 0%, #2563eb 100%);
    border: none;
    padding: 11px 20px;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.search-form-widget button:hover {
    opacity: 0.9;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: #3C72FC;
}

.category-count {
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3C72FC;
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-img {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.recent-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-img img {
    transform: scale(1.1);
}

.recent-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-post-content h6 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.recent-post-content h6 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h6 a:hover {
    color: #3C72FC;
}

.recent-post-content span {
    font-size: 0.8rem;
    color: #999;
}

.recent-post-content span i {
    margin-right: 5px;
    color: #3C72FC;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #3C72FC 0%, #2563eb 100%);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    color: #ffffff;
}

.cta-widget h4 {
    color: #ffffff !important;
    margin-bottom: 1rem !important;
    font-size: 1.3rem;
    border: none !important;
    padding: 0 !important;
}

.cta-widget p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-size: 1rem;
}

.cta-widget .cta-btn {
    background: #ffffff;
    color: #3C72FC;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-widget .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .sidebar-widget {
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    .sidebar-widget {
        padding: 1.5rem;
    }

    .sidebar-widget h4 {
        font-size: 1.15rem;
    }

    .cta-widget {
        padding: 2rem 1.5rem;
    }

    .cta-widget h4 {
        font-size: 1.15rem;
    }
}

/* Responsive Utilities */
@media (max-width: 991px) {
    .blog-detail-section .col-lg-4 {
        margin-top: 3rem;
    }
}

/* Print Styles */
@media print {
    .breadcrumb-wrapper,
    .blog-social-share,
    .related-articles,
    .sidebar-widget {
        display: none;
    }

    .blog-detail-content {
        box-shadow: none;
    }

    .blog-content {
        font-size: 12pt;
        line-height: 1.6;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: #3C72FC;
    color: #ffffff;
}

::-moz-selection {
    background: #3C72FC;
    color: #ffffff;
}
