/* Post Page Specific Styles */

/* Enhanced color variables for post pages */
:root {
    --post-beige-bg: #f4ede4;
    --post-content-bg: #faf7f2;
    --post-author-bg: #fff9f0;
    --post-quranic-bg: #f0f8f5;
    --post-border: #d4c4b0;
}

/* Override body background for post pages */
body {
    background: linear-gradient(135deg, #f4ede4 0%, #faf7f2 100%);
    min-height: 100vh;
}

/* Post Main Layout - Enhanced background */
.post-main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
}

.post-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
    margin-left: 0rem; /* Shift left to use more space */
}

/* Left Navigation Pane - Green background for visibility */
.post-navigation-pane {
    background-color: var(--author-bg-green);
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.nav-pane-title {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 0.5rem;
}

.post-nav-list {
    list-style: none;
    padding: 0;
}

.post-nav-list li {
    margin-bottom: 0.5rem;
}

.post-nav-list a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.post-nav-list a:hover,
.post-nav-list a.active {
    background-color: var(--primary-green);
    color: var(--pure-white);
}

/* Right Content Area - Enhanced */
.post-content-area {
    background: linear-gradient(145deg, #fefcf7 0%, #faf8f0 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}
/* Post Header */
.post-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 1rem;
}

.post-title {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #666;
    font-size: 0.9rem;
}

/* Author Introduction Section - Enhanced */
.author-introduction {
    background: linear-gradient(145deg, #fefcf7 0%, #faf8f0 100%);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border-radius: 15px;
    border: 2px solid #d4af37;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.15);
    position: relative;
}

.author-intro-title {
    color: var(--primary-green);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

/* Author intro title underline */
.author-intro-title::after {
    content: '';
    position: absolute;
    bottom: 0.3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 200px;
    min-width: 80px;
    height: 3px;
    background: linear-gradient(to right, 
        var(--accent-green) 0%, 
        var(--primary-green) 30%, 
        var(--primary-green) 70%, 
        var(--accent-green) 100%);
    border-radius: 1.5px;
}

.author-intro-content {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem; /* Default size for English */
    text-align: justify;
}

/* Language-specific font sizes for author-intro-content */
html[lang="ur"] .author-intro-content {
    font-size: 1.1rem; /* Larger size for Urdu */
}

html[lang="hi"] .author-intro-content {
    font-size: 1.05rem; /* Slightly larger for Hindi */
}

/* Language-specific adjustments for other content elements */
html[lang="ur"] .author-content p,
html[lang="ur"] .verse-translation {
    font-size: 1.1rem;
}

html[lang="hi"] .author-content p,
html[lang="hi"] .verse-translation {
    font-size: 1.02rem;
}

/* Language-specific adjustments for section headings */
html[lang="ur"] .section-heading {
    font-size: 1.9rem;
}

html[lang="hi"] .section-heading {
    font-size: 1.85rem;
}

.author-intro-content p {
    margin-bottom: 1rem;
}

.author-intro-content p:last-child {
    margin-bottom: 0;
}

/* Content Sections - No background, inherit from body */
.content-section {
    margin-bottom: 4rem;
    border: none;
    border-radius: 0;
    padding: 1rem 0;
    margin-left: 0;
    margin-right: 0;
}

.section-heading {
    color: var(--primary-green);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: none;
    padding-bottom: 1.5rem;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Bold rounded line with gradient - 70% of title width */
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 250px;
    min-width: 100px;
    height: 4px;
    background: linear-gradient(to right, 
        var(--accent-green) 0%, 
        var(--primary-green) 30%, 
        var(--primary-green) 70%, 
        var(--accent-green) 100%);
    border-radius: 2px;
}

/* Dual-column content layout - Responsive to content */
.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin: 0 -1rem;
}

/* Author Content (Inner Left - Requirement 3.3) */
.author-content {
    background: linear-gradient(145deg, #fefcf7 0%, #faf8f0 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid #d4af37;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.15);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;

}

.author-content h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    border-bottom: none;
    padding-bottom: 1rem;
    position: relative;
    text-align: center;
    font-weight: 600;
}

/* Bold rounded line with gradient for author content headings */
.author-content h3::after {
    content: '';
    position: absolute;
    bottom: 0.3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 180px;
    min-width: 70px;
    height: 3px;
    background: linear-gradient(to right, 
        var(--accent-green) 0%, 
        var(--primary-green) 30%, 
        var(--primary-green) 70%, 
        var(--accent-green) 100%);
    border-radius: 1.5px;
}


.author-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Remove the vertical divider - it's no longer needed */
.content-divider {
    display: none;
}

/* Quranic Content (Inner Right - Requirement 3.4) */
.quranic-content {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(201, 169, 110, 0.05) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid #d4af37;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.15);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.quranic-content h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    border-bottom: none;
    padding-bottom: 1rem;
    position: relative;
    text-align: center;
    font-weight: 600;
}

/* Bold rounded line with gradient for quranic content headings */
.quranic-content h3::after {
    content: '';
    position: absolute;
    bottom: 0.3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 180px;
    min-width: 70px;
    height: 3px;
    background: linear-gradient(to right, 
        var(--accent-green) 0%, 
        var(--primary-green) 30%, 
        var(--primary-green) 70%, 
        var(--accent-green) 100%);
    border-radius: 1.5px;
}

.quran-verse {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Arabic Text Styling (Requirement 5.1, 5.2) */
.arabic-text {
    font-size: 1.8rem;
    color: var(--primary-green);
    font-family: 'Times New Roman', 'Amiri', serif;
    direction: rtl;
    line-height: 2;
    margin-bottom: 1rem;
    font-weight: 600;
}

.verse-translation {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.verse-reference {
    font-size: 1.1rem;
    color: var(--accent-green);
    font-weight: 500;
}
/* Responsive Design for Post Pages */
@media (max-width: 1024px) {
    .post-container {
        grid-template-columns: 180px 1fr;
        gap: 2rem;
        margin-left: 0;
    }
    
    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 0;
    }
    
    .content-section {
        margin-left: 0;
        margin-right: 0;
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    .post-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-left: 0;
    }
    
    .post-navigation-pane {
        position: static;
        max-height: none;
        order: 2;
    }
    
    .post-content-area {
        order: 1;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .arabic-text {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 0.5rem 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .section-content {
        gap: 1.5rem;
        margin: 0;
    }
    
    .author-content,
    .quranic-content {
        padding: 2rem;
    }
}

/* Print Styles */
@media print {
    .post-navigation-pane,
    .site-header,
    .main-navigation,
    .site-footer {
        display: none;
    }
    
    .post-container {
        grid-template-columns: 1fr;
    }
    
    .arabic-text {
        color: #000 !important;
    }
}

/* Sacred Quote Styling (from preface.css) */
.sacred-quote {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(201, 169, 110, 0.05) 100%);
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.15);
}

.quote-ornament {
    font-size: 2rem;
    color: var(--accent-green);
    position: absolute;
    font-weight: bold;
}

.quote-ornament:first-child {
    top: 0.5rem;
    left: 1rem;
}

.quote-ornament.closing {
    bottom: 0.5rem;
    right: 1rem;
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 1rem 2rem;
    text-align: center;
    font-style: italic;
}

.quote-reference {
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent-green);
    font-weight: 500;
    margin-top: 1rem;
}

/* Pillars List Styling */
.pillars-list {
    background: linear-gradient(145deg, #fefcf7 0%, #faf8f0 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.15);
}

.pillars-list li {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--accent-green);
    line-height: 1.6;
    color: var(--text-dark);
}

.pillars-list li:last-child {
    margin-bottom: 0;
}

.pillars-list li strong {
    color: var(--primary-green);
    font-weight: 600;
}

/* Bismillah Heading Styling */
.bismillah-heading {
    text-align: center;
    margin: 2rem 0;
}

.bismillah-heading .arabic-text {
    font-size: 2.4rem;
    color: var(--primary-green);
    margin: 0;
    line-height: 1.8;
}