/* ===== STYLISH SINGLE POST STYLES ===== */

.main-content {
    padding: 18px;
    box-sizing: border-box !important;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden !important;
}

.hero-section {
    width: 100%;
    margin-bottom: 15px;
}

/* Stylish Category Badge */
.hero-category {
    margin-bottom: 10px;
}

.hero-category a {
    display: inline-block;
    background: #fef2f2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #fee2e2;
    transition: all 0.2s ease;
}

.hero-category a:hover {
    background: #dc2626;
    color: #ffffff;
}

/* Post Title Styling */
.hero-title {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 800;
    color: #0f172a;
    margin: 8px 0 12px 0;
    word-wrap: break-word;
    letter-spacing: -0.3px;
}

/* Meta Info (Date & Views) */
.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

/* Image Container Fix & Shadow */
.hero-thumb {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0 20px 0;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 450px;
    transition: transform 0.3s ease;
}

.hero-thumb:hover img {
    transform: scale(1.02);
}

/* Post Body Text & Layout */
.post-content {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.post-content p {
    margin-bottom: 16px;
}

/* Bullets & Numbers Clean Alignment Fix */
.post-content ul, 
.post-content ol {
    margin: 12px 0 18px 0 !important;
    padding-left: 24px !important;
    list-style-position: outside !important;
    box-sizing: border-box !important;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    display: list-item !important;
}

.post-content li::marker {
    color: #dc2626;
    font-weight: bold;
}

.post-content strong {
    color: #0f172a;
    font-weight: 700;
}

/* Blockquote Style (Quotes / Highlights) */
.post-content blockquote {
    margin: 18px 0;
    padding: 12px 16px;
    background: #f8fafc;
    border-left: 4px solid #dc2626;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

/* Stylish Share Buttons */
.post-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px 0 10px 0;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
}

.share-btn {
    padding: 7px 14px;
    border-radius: 6px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-btn.wa { background: #25D366; }
.share-btn.fb { background: #1877F2; }
.share-btn.tw { background: #000000; } 

/* ===== RELATED POSTS GRID VIEW STYLES ===== */

.related-posts-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.related-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2-Column Grid Layout */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.related-card {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.related-card:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.related-thumb-link {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: #e2e8f0;
    display: block;
}

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

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

.related-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.related-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.related-info h4 {
    margin: 0 0 6px 0;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.related-info h4 a {
    color: #0f172a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-info h4 a:hover {
    color: #dc2626;
}

.related-date {
    font-size: 11px;
    color: #64748b;
}

/* Responsive Mobile Check */
@media (max-width: 360px) {
    .related-posts-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Back to Home Link */
.back-home-btn {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
}

.back-home-btn a {
    display: inline-block;
    padding: 8px 16px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.back-home-btn a:hover {
    background: #e2e8f0;
}