/* ===== POST DETAIL PAGE FIXES ===== */

/* Container & Layout */
.post-detail-section {
    padding: 140px 0 80px;
    background: #f8f9fa;
    min-height: 100vh;
}

.post-detail-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #6c757d;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #b8941f;
}

.breadcrumb span:last-child {
    color: #495057;
    font-weight: 600;
}

/* Post Detail Wrapper */
.post-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

/* Main Post Content */
.post-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Post Header */
.post-header {
    margin-bottom: 40px;
}

.post-category {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #ffffff;
    margin-bottom: 20px;
}

.post-title {
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 800;
}

.post-meta {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: #6c757d;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta i {
    color: #d4af37;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* Post Body */
.post-body {
    font-size: 17px;
    line-height: 1.8;
    color: #333333;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    color: #1a1a1a;
    margin: 35px 0 20px;
    font-weight: 700;
}

.post-body h2 {
    font-size: 28px;
}

.post-body h3 {
    font-size: 24px;
}

.post-body h4 {
    font-size: 20px;
}

.post-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 12px;
}

.post-body strong {
    color: #1a1a1a;
    font-weight: 700;
}

.post-body a {
    color: #d4af37;
    text-decoration: underline;
}

.post-body a:hover {
    color: #b8941f;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* Share Section */
.post-share {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}

.post-share h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.facebook:hover {
    background: #145dbf;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.twitter:hover {
    background: #0c85d0;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.whatsapp:hover {
    background: #1da851;
}

/* Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 25px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid #d4af37;
}

/* Related Posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-post-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 12px;
}

.related-post-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.related-post-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
}

.related-post-content {
    flex: 1;
}

.related-post-content h4 {
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-date {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Back Button */
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
        order: 2;
    }

    .post-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .post-detail-section {
        padding: 120px 0 60px;
    }

    .post-content {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .post-title {
        font-size: 26px;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .post-body {
        font-size: 16px;
    }

    .post-body h2 {
        font-size: 22px;
    }

    .post-body h3 {
        font-size: 20px;
    }

    .post-body h4 {
        font-size: 18px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
        width: 100%;
    }

    .sidebar-widget {
        padding: 25px 20px;
    }

    .breadcrumb {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .post-detail-section .container {
        padding: 0 15px;
    }

    .post-content {
        padding: 25px 15px;
    }

    .post-title {
        font-size: 22px;
    }

    .post-body {
        font-size: 15px;
    }

    .related-post-image {
        width: 70px;
        height: 70px;
    }

    .related-post-content h4 {
        font-size: 14px;
    }
}
