/* ===== Post Page Styles ===== */

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Post Hero */
.post-hero {
    background-size: cover;
    background-position: center;
    padding: 180px 0 100px;
    position: relative;
    color: white;
    overflow: hidden;
    max-width: 100%;
}

.post-category-hero {
    display: inline-block;
    background: rgba(212, 175, 55, 0.9);
    color: #1a472a;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.post-hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.post-hero-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 1rem;
}

.post-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Post Body */
.post-body {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    line-height: 2;
    font-size: 1.1rem;
    color: #333;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    color: #1a472a;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.post-body h2 {
    font-size: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #d4af37;
}

.post-body h3 {
    font-size: 1.6rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
    margin-bottom: 2rem;
    padding-right: 2rem;
}

.post-body li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.post-body a {
    color: #1a472a;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-body a:hover {
    color: #d4af37;
}

.post-body blockquote {
    background: #f8f9fa;
    border-right: 5px solid #1a472a;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.post-body code {
    background: #f4f4f4;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    color: #d4af37;
}

.post-body pre {
    background: #1a472a;
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.post-body table th,
.post-body table td {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    text-align: right;
}

.post-body table th {
    background: #1a472a;
    color: white;
    font-weight: 700;
}

.post-body table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Share Buttons */
.post-share {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.post-share h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Comments Section */
.comments-section {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.section-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #d4af37;
}

/* Comment Form */
.comment-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.comment-form h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 1.5rem;
}

.comment-form .form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.comment-form .form-control:focus {
    border-color: #1a472a;
    box-shadow: 0 0 0 0.2rem rgba(26, 71, 42, 0.1);
}

.comment-form .btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
}

/* Comments List */
.comments-list {
    margin-top: 2rem;
}

.comment-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar i {
    font-size: 3rem;
    color: #1a472a;
}

.comment-content {
    flex-grow: 1;
}

.comment-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 0.5rem;
}

.comment-content p {
    color: #555;
    line-height: 1.8;
    margin-top: 1rem;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #1a472a, #2d5a3d);
    color: white;
    text-align: center;
    padding: 3rem 2rem !important;
}

.cta-widget h4 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-widget p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.cta-widget .btn {
    background: #d4af37;
    color: #1a472a;
    border: none;
    font-weight: 700;
}

.cta-widget .btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .post-hero-title {
        font-size: 2rem;
    }
    
    .post-body {
        padding: 2rem;
    }
    
    .comments-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 140px 0 80px;
    }
    
    .post-hero-title {
        font-size: 1.8rem;
    }
    
    .post-hero-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .post-body {
        padding: 1.5rem;
    }
    
    .comments-section {
        padding: 1.5rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    
    .comment-item {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .post-hero {
        padding: 100px 0 60px;
    }
    
    .post-hero-title {
        font-size: 1.5rem;
    }
    
    .post-body {
        padding: 1rem;
    }
}
        flex-direction: column;
        text-align: center;
    }
}
