/* =========================================
   BLOG POST LAYOUT (Header, Footer, & Body)
   Applies ONLY to inner blog pages
========================================= */

/* 1. VARIABLES (Dark Green & Gold Theme) */
:root {
    --post-bg-dark: #011f18;    /* Deep Green for Header/Footer */
    --post-gold: #D4AF37;       /* Gold Accents */
    --post-white: #ffffff;
    --post-text: #1E293B;
    --post-bg-light: #F8FAFC;
}

body {
    background-color: var(--post-bg-light);
    font-family: 'Poppins', sans-serif;
    margin: 0; padding: 0;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* 2. POST-SPECIFIC HEADER (Relative, Not Sticky) */
.post-header-section {
    background-color: var(--post-bg-dark);
    padding: 15px 0;
    position: relative !important; /* Scrolls with page */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-logo {
    color: var(--post-white);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.post-logo i { color: var(--post-gold); }
.post-logo span { color: var(--post-gold); font-weight: 400; }

.post-nav a {
    color: rgba(255,255,255,0.8);
    margin-left: 25px;
    font-size: 0.95rem;
    font-weight: 500;
}
.post-nav a:hover { color: var(--post-gold); }

/* 3. MAIN ARTICLE CARD (White Box) */
.article-card {
    background: var(--post-white);
    max-width: 900px;
    margin: 40px auto;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.03);
}

/* Post Typography */
.main-title { font-size: 2.4rem; color: var(--post-bg-dark); line-height: 1.3; margin-bottom: 10px; }
.subtitle { color: var(--post-gold); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; display: block; margin-bottom: 10px; }
.post-content h2 { color: var(--post-bg-dark); margin-top: 40px; font-size: 1.8rem; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; }
.post-content p { color: #334155; font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; }

/* Wisdom Box (Green/Gold Style) */
.wisdom-box {
    background: #F0FDF4;
    border-left: 4px solid #034f3d;
    padding: 25px;
    margin: 30px 0;
}

/* 4. RELATED POSTS SECTION (Grid of 3) */
.related-posts-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}
.related-header {
    font-size: 1.5rem;
    color: var(--post-bg-dark);
    margin-bottom: 30px;
    font-weight: 700;
    border-left: 5px solid var(--post-gold);
    padding-left: 15px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.related-card {
    background: var(--post-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: block; /* Makes whole card clickable */
}
.related-card:hover { transform: translateY(-5px); border-color: var(--post-gold); }
.related-img { width: 100%; height: 200px; object-fit: cover; }
.related-info { padding: 20px; }
.related-tag { background: #FEF3C7; color: #B45309; padding: 4px 10px; font-size: 0.75rem; border-radius: 4px; font-weight: 700; }
.related-info h4 { margin: 10px 0; color: var(--post-bg-dark); font-size: 1.2rem; }

/* 5. POST-SPECIFIC FOOTER */
.post-footer {
    background: var(--post-bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 20px;
    margin-top: 80px;
    text-align: center;
    font-size: 0.9rem;
}
.post-footer a { color: var(--post-white); margin: 0 10px; }
.post-footer a:hover { color: var(--post-gold); }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 30px; padding-top: 20px; }

/* Mobile */
@media (max-width: 768px) {
    .article-card { padding: 30px; margin: 20px; }
    .main-title { font-size: 1.8rem; }
    .post-nav { display: none; } /* Hides menu on mobile for simplicity */
}
/* =========================================
   INNER POST IMAGES & MEDIA
   (Add this to the bottom of post-style.css)
========================================= */

/* Center and style the Figure container */
.post-content figure {
    margin: 40px 0;
    width: 100%;
    text-align: center;
}

/* Style the Image inside the content */
.post-content figure img {
    width: 100%;
    height: auto;
    border-radius: 12px; /* Smooth corners */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Soft shadow for depth */
    transition: transform 0.3s ease;
}

.post-content figure img:hover {
    transform: scale(1.01); /* Slight zoom on hover */
}

/* Style the Caption (text below image) */
.post-content figcaption {
    font-size: 0.9rem;
    color: #64748B; /* Muted gray */
    margin-top: 12px;
    font-style: italic;
    font-family: 'Poppins', sans-serif;
}

/* AUDIO PLAYER STYLE (For Day 4+) */
.audio-player-box {
    background: #0f172a; /* Dark Navy */
    border-radius: 12px;
    padding: 20px;
    color: white;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #D4AF37; /* Gold Border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.audio-icon { 
    font-size: 2rem; 
    color: #D4AF37; 
}

.audio-text h4 { 
    color: #D4AF37; 
    margin: 0 0 5px 0; 
    font-size: 1rem; 
    font-weight: 600;
}

.audio-text p { 
    margin: 0; 
    font-size: 0.85rem; 
    color: #cbd5e1; 
}

/* Mobile Responsive Adjustments */
@media (max-width: 600px) {
    .audio-player-box {
        flex-direction: column;
        text-align: center;
    }
}
/* =========================================
   YOUTUBE VIDEO RESPONSIVE CONTAINER
   (Add to bottom of post-style.css)
========================================= */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (Standard YouTube) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px; /* Smooth corners */
    border: 2px solid #D4AF37; /* Gold border to match theme */
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    margin: 40px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* =========================================
   NIZAMI PROFESSIONAL COMMENT SECTION
========================================= */

/* WRAPPER */
.nizami-comments-wrapper {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
}

.nizami-comments-header {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: #0F5132;
    border-bottom: 2px solid #E8F5E9;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* FORM CARD */
.nizami-comment-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

.nizami-form-group {
    margin-bottom: 20px;
}

.nizami-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.nizami-input, .nizami-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; 
}

.nizami-input:focus, .nizami-textarea:focus {
    border-color: #D4AF37; /* Gold focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.nizami-textarea {
    height: 120px;
    resize: vertical;
}

.nizami-submit-btn {
    background-color: #0F5132;
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nizami-submit-btn:hover {
    background-color: #D4AF37;
    color: #0F5132;
    transform: translateY(-2px);
}

/* COMMENT LIST */
.nizami-comment-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #D4AF37; /* Gold accent */
    display: flex;
    gap: 15px;
    animation: fadeIn 0.5s ease;
}

.nizami-avatar {
    width: 50px;
    height: 50px;
    background: #0F5132;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.nizami-comment-body h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-weight: 600;
}

.nizami-date {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-bottom: 8px;
}

.nizami-message {
    color: #444;
    line-height: 1.6;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}