/* ===== BLOG DETAIL STYLES ===== */
.blog-detail-section {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #15803d;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #0f766e;
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #94a3b8;
}

.breadcrumb .current {
    color: #0f172a;
    font-weight: 600;
}

/* Blog Detail */
.blog-detail {
    background: white;
    border-radius: 32px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    margin-bottom: 50px;
}

.blog-detail-header {
    margin-bottom: 30px;
}

.blog-category {
    margin-bottom: 16px;
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
}

.category-badge.orange {
    background: #fef3c7;
    color: #d97706;
}

.category-badge.purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.category-badge.green {
    background: #d1fae5;
    color: #059669;
}

.category-badge.blue {
    background: #dbeafe;
    color: #2563eb;
}

.category-badge.dark {
    background: #e2e8f0;
    color: #1e293b;
}

.blog-detail-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 16px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
}

.meta-icon {
    font-size: 16px;
}

.blog-featured-image {
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 32px;
}

.blog-featured-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Blog Body */
.blog-body {
    font-size: 17px;
    line-height: 1.8;
    color: #1e293b;
}

.blog-body h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 44px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.blog-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 32px;
    margin-bottom: 12px;
}

.blog-body h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 10px;
    margin-bottom: 8px;
}

.blog-body p {
    margin-bottom: 18px;
    color: #334155;
}

.blog-body ul,
.blog-body ol {
    margin: 16px 0 22px 0;
    padding-left: 26px;
}

.blog-body ul li,
.blog-body ol li {
    margin-bottom: 8px;
    color: #334155;
}

.blog-body ul li strong,
.blog-body ol li strong {
    color: #0f172a;
}

.blog-body blockquote {
    border-left: 4px solid #d97706;
    padding: 16px 24px;
    margin: 24px 0;
    background: #fef3c7;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #92400e;
}

.blog-body blockquote p {
    margin-bottom: 0;
    color: #92400e;
}

.blog-body a {
    color: #15803d;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-body a:hover {
    color: #0f766e;
    text-decoration: underline;
}

.blog-body figure {
    margin: 30px 0;
    background: #f8fafc;
    padding: 15px;
    border-radius: 16px;
}

.blog-body figure img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.blog-body figcaption {
    text-align: center;
    font-size: 14px;
    color: #475569;
    margin-top: 12px;
    font-style: italic;
    line-height: 1.6;
}

.blog-body figcaption strong {
    color: #1e293b;
    font-style: normal;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.blog-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.blog-body table th {
    background: #d97706;
    color: white;
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #d97706;
}

.blog-body table td {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
}

.blog-body table tr:nth-child(even) {
    background: #f8fafc;
}

/* Mistake Box */
.mistake-box {
    display: flex;
    gap: 16px;
    background: #fef3c7;
    padding: 18px 22px;
    border-radius: 12px;
    margin: 16px 0 24px;
    border-left: 4px solid #d97706;
}

.mistake-box .mistake-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.mistake-box .mistake-content h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #92400e;
}

.mistake-box .mistake-content ul {
    margin: 0;
    padding-left: 20px;
}

.mistake-box .mistake-content ul li {
    margin-bottom: 4px;
    color: #78350f;
}

/* Tip Box */
.tip-box {
    background: #dbeafe;
    padding: 14px 20px;
    border-radius: 12px;
    margin: 12px 0 24px;
    border-left: 4px solid #2563eb;
}

.tip-box p {
    margin: 0;
    color: #1e40af;
    font-weight: 500;
}

/* Stat Box */
.stat-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    margin: 16px 0 24px;
}

.stat-box .stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #d97706;
    display: block;
}

.stat-box .stat-label {
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
    display: block;
    margin-bottom: 8px;
}

.stat-box p {
    margin: 0;
    color: #78350f;
    font-size: 15px;
}

/* Comparison Box */
.comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 16px 0 24px;
}

.comparison-item {
    padding: 18px 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.comparison-item.wrong {
    background: #fef2f2;
    border-color: #fca5a5;
}

.comparison-item.right {
    background: #f0fdf4;
    border-color: #86efac;
}

.comparison-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.comparison-item.wrong h4 {
    color: #dc2626;
}

.comparison-item.right h4 {
    color: #16a34a;
}

.comparison-item ul {
    margin: 0;
    padding-left: 20px;
}

.comparison-item ul li {
    margin-bottom: 4px;
    color: #475569;
}

/* Reminder Timeline */
.reminder-timeline {
    margin: 16px 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.timeline-item {
    flex: 1;
    min-width: 100px;
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: 8px;
    text-align: center;
    border-top: 3px solid #d97706;
}

.timeline-item .timeline-days {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-item .timeline-label {
    display: block;
    font-size: 13px;
    color: #1e293b;
    margin-top: 4px;
}

/* Summary Table Box */
.summary-table-box {
    margin: 16px 0 24px;
    overflow-x: auto;
}

.summary-table-box table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
}

.summary-table-box table th {
    background: #d97706;
    color: white;
    padding: 10px 14px;
    text-align: left;
    border: 1px solid #d97706;
}

.summary-table-box table td {
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
}

.summary-table-box table tr:nth-child(even) {
    background: #f8fafc;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    padding: 20px 28px;
    border-radius: 16px;
    margin: 30px 0;
}

.cta-box p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #14532d;
    font-weight: 600;
}

.cta-box a {
    color: #166534;
    text-decoration: underline;
}

.cta-box a:hover {
    color: #0f766e;
}

/* Share Section */
.share-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.share-label {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 12px;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.email {
    background: #64748b;
}

.share-icon {
    font-size: 14px;
}

/* Blog Footer */
.blog-footer {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.blog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

.btn-back:hover {
    border-color: #d97706;
    color: #d97706;
    transform: translateX(-4px);
    text-decoration: none;
}

.btn-back .arrow {
    font-size: 20px;
    transition: transform 0.3s;
}

.btn-back:hover .arrow {
    transform: translateX(-4px);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #166534, #15803d);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 101, 52, 0.35);
    text-decoration: none;
    color: white;
}

/* Related Posts */
.related-posts {
    background: white;
    border-radius: 32px;
    padding: 40px 44px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.section-header {
    margin-bottom: 28px;
}

.section-tag {
    display: inline-block;
    color: #15803d;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.section-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    display: block;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.12);
    border-color: #d97706;
    text-decoration: none;
}

.related-image {
    overflow: hidden;
    height: 150px;
    background: #e2e8f0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 16px 18px 18px;
}

.related-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 6px;
    background: #dcfce7;
    color: #15803d;
}

.related-category.purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.related-category.green {
    background: #d1fae5;
    color: #059669;
}

.related-category.orange {
    background: #fef3c7;
    color: #d97706;
}

.related-category.blue {
    background: #dbeafe;
    color: #2563eb;
}

.related-category.dark {
    background: #e2e8f0;
    color: #1e293b;
}

.related-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
    transition: color 0.3s;
}

.related-card:hover .related-content h3 {
    color: #d97706;
}

.related-meta {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    gap: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-detail-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .blog-detail-section {
        padding: 40px 0 60px;
    }

    .container {
        padding: 0 16px;
    }

    .blog-detail {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .blog-detail-header h1 {
        font-size: 26px;
    }

    .blog-body {
        font-size: 16px;
    }

    .blog-body h2 {
        font-size: 22px;
    }

    .blog-body h3 {
        font-size: 19px;
    }

    .blog-body figure {
        padding: 10px;
    }

    .blog-body figcaption {
        font-size: 12px;
    }

    .blog-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-back,
    .btn-primary {
        text-align: center;
        justify-content: center;
    }

    .related-posts {
        padding: 28px 18px;
        border-radius: 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .blog-meta {
        gap: 12px;
        font-size: 13px;
    }

    .share-buttons {
        justify-content: center;
    }

    .share-btn {
        font-size: 13px;
        padding: 6px 14px;
    }

    .cta-box {
        padding: 16px 20px;
    }

    .cta-box p {
        font-size: 15px;
    }

    .comparison-box {
        grid-template-columns: 1fr;
    }

    .reminder-timeline {
        flex-direction: column;
    }

    .timeline-item {
        min-width: auto;
    }

    .stat-box .stat-number {
        font-size: 36px;
    }

    .mistake-box {
        flex-direction: column;
    }

    .summary-table-box table {
        font-size: 13px;
    }

    .summary-table-box table th,
    .summary-table-box table td {
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .blog-detail-header h1 {
        font-size: 22px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .blog-body h2 {
        font-size: 20px;
    }

    .blog-body h3 {
        font-size: 17px;
    }

    .blog-body {
        font-size: 15px;
    }

    .related-content h3 {
        font-size: 14px;
    }
}