/* Blog Module - Isolated Styles */
:root {
    --blog-primary: #d4af37;
    --blog-bg: #0f172a;
    --blog-bg-light: #1e293b;
    --blog-text: #f8fafc;
    --blog-text-muted: #94a3b8;
    --blog-font-heading: 'Cinzel', serif;
    --blog-font-body: 'Lato', sans-serif;
}

/* Reset for safety within module */
body.blog-body {
    margin: 0;
    padding: 0;
    background-color: var(--blog-bg);
    color: var(--blog-text);
    font-family: var(--blog-font-body);
    line-height: 1.6;
}

/* Global Typography */
.blog-container h1,
.blog-container h2,
.blog-container h3,
.blog-container h4 {
    font-family: var(--blog-font-heading);
    color: var(--blog-primary);
    margin: 0 0 1rem 0;
}

.blog-container a {
    color: var(--blog-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.blog-container a:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--blog-primary);
}

/* Header */
.blog-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 2px solid var(--blog-primary);
    padding: 1rem 2rem;
    /* Slighly less padding */
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.blog-brand {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: var(--blog-font-heading);
    letter-spacing: 2px;
}

.blog-brand a {
    color: #fff !important;
    /* Force White title */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-brand a:hover {
    color: var(--blog-primary) !important;
}

.blog-nav a {
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--blog-text-muted);
    transition: color 0.3s;
}

.blog-nav a:hover {
    color: var(--blog-primary);
}


/* =========================================
   NEWSPAPER LAYOUT (PREMIUM - GOLD & DARK)
   ========================================= */

.newspaper-layout {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 350px 1fr;
    /* Sidebar (Left) + Main Content (Right) or vice versa */
    gap: 3rem;
}

/* Featured / Headline Section */
.news-headline {
    grid-column: 1 / -1;
    /* Full Width Headline */
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.headline-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /* Sharper corners for newspaper feel */
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Featured / Headline Section */
.news-headline {
    grid-column: 1 / -1;
    /* Full Width Headline */
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Optimized Ratio */
    gap: 3rem;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.headline-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /* Sharper corners for newspaper feel */
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.headline-img {
    height: 350px;
    /* Compact height */
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.headline-img:hover {
    transform: scale(1.02);
}

.headline-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.headline-tag {
    color: #d4af37;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.headline-tag::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: #d4af37;
}

.headline-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #f8fafc;
    /* White title for contrast */
}

.headline-title a {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.3s;
}

.headline-title a:hover {
    color: #d4af37;
}

.headline-desc {
    color: #94a3b8;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Sub-Grid (3 Columns like a newspaper bottom fold) */
.news-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    border-top: 5px solid #d4af37;
    /* The "Fold" line */
    padding-top: 3rem;
}

.news-card {
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    /* Vertical dividers */
    padding-right: 2rem;
}

.news-card:last-child {
    border-right: none;
}

.news-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    filter: brightness(0.9);
    transition: filter 0.3s;
}

.news-card-img:hover {
    filter: brightness(1.1);
}

.news-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-card h3 a {
    color: #d4af37;
    /* Gold titles for smaller cards */
}


/* Post View Overrides - Premium Reading Experience */
/* Post View Overrides - Premium Reading Experience */
.post-main-title {
    font-size: 3.5rem !important;
    /* Slightly smaller than 4rem for better fit */
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto;
    color: #d4af37 !important;
    /* Gold Title forced */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.post-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    color: #e2e8f0 !important;
    text-align: center;
    max-width: 800px;
    margin: 1rem auto 0;
    line-height: 1.4;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.post-content {
    max-width: 800px;
    /* Optimal reading width */
    margin: -4rem auto 5rem !important;
    /* Overlap header slightly less */
    padding: 3rem 4rem !important;
    background: #0f172a;
    /* Solid background */
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    /* Slight roundness */
}

/* Typography Improvements */
.post-content p {
    margin-top: 0;
    margin-bottom: 1.2rem;
    /* Comfortable paragraph spacing */
    font-size: 1.2rem;
    /* Larger body text */
    color: #cbd5e1;
    line-height: 1.8;
    /* Relaxed reading line height */
    text-align: left;
    /* Ensure left align */
    text-indent: 0 !important;
    /* Kill any weird indent */
}

/* Remove huge gaps from empty paragraphs if Wysiwyg inserts them */
/* Post Banner Style */
.post-banner-container {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 200px;
    /* Fixed height for banner effect */
}

.post-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crop to fill */
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.post-banner-container:hover .post-banner-img {
    transform: scale(1.02);
}

.post-content p:empty,
.post-content div:empty,
.post-content br {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Share Buttons */
.share-container {
    margin-top: 3rem;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.2s, opacity 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-btn i,
.share-btn svg {
    color: #fff !important;
    font-size: 1.2rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: white;
}

.share-btn.whatsapp {
    background: #25D366;
    border-color: #25D366;
}

.share-btn.facebook {
    background: #1877F2;
    border-color: #1877F2;
}

.share-btn.twitter {
    background: #000;
    border-color: #333;
    color: #fff !important;
}

.share-btn.linkedin {
    background: #0A66C2;
    border-color: #0A66C2;
    color: #fff !important;
}

.share-btn.copy {
    background: #475569;
    border-color: #475569;
    cursor: pointer;
}

.share-btn.instagram {
    background: #f09433;
    background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
}


/* Ensure no top margin on paragraphs to prevent double gapping */
.post-content p {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Handle if content is not in p tags but just text nodes or divs */
.post-content div {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: #cbd5e1;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
.blog-footer {
    text-align: center;
    padding: 3rem;
    background: #000;
    border-top: 1px solid #1e293b;
    font-size: 0.9rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 1024px) {
    .newspaper-layout {
        display: block;
    }

    .news-headline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .headline-img {
        height: 300px;
    }

    .headline-title {
        font-size: 2.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        border-top: 3px solid #d4af37;
    }

    .news-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-right: 0;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .post-content {
        padding: 2rem !important;
        margin-top: -3rem !important;
    }

    .post-main-title {
        font-size: 2.5rem !important;
    }
}