:root {
    --prudent-red: #DD221B;
    --text-dark: #111111;
    --text-muted: #666666;
    --border-color: #F6F6F6;
    --font-family: 'Neue Haas Grotesk Display Pro', 'Inter', sans-serif;
}

body.blog-display-body { background: #fff; font-family: var(--font-family); margin: 0; }
.main-container { width: 1400px; margin: 0 auto; }
.blog-display-mt { padding-top: 40px; padding-bottom: 0px; }

.main-content-flex { display: flex; gap: 20px; align-items: flex-start; }

/* LEFT COLUMN */
.left-col { width: 927px; }
.post-cat { color: var(--prudent-red); font-weight: 800; font-size: 14px; }
.post-title { font-size: 28px; font-weight: 700; margin: 10px 0; letter-spacing: -0.5px;  color: #020202;}
.post-intro { font-size: 16px; color: #444; line-height: 1.5; margin-bottom: 15px; }

.top-quote-box {
    background: #F9F9F9;
    padding: 15px 20px;
    font-style: italic;
    font-size: 14px;
    color: #555;
    border-radius: 5px;
    margin-bottom: 25px;
}

.author-share-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-bottom: 30px;
}

.author-meta strong { display: block; font-size: 15px; color: #111; }
.author-meta span { font-size: 12px; color: #888; }

.post-share-btns { display: flex; gap: 10px; }
.icon-btn {
    width: 38px; height: 38px;
    border: 1px solid #373737;
    color: #373737;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px;
}

.post-main-image { margin: 0 0 40px 0; width: 927px; }
.post-main-image img { width: 100%; border-radius: 5px; }
.post-main-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 5px; }

.post-content p { font-size: 17px; line-height: 1.6; color: #333; margin-bottom: 25px; }
.post-content h3 { font-size: 20px; font-weight: 800; margin: 40px 0 20px; }

.content-quote {
    background: #F6F6F6;
    padding: 25px 30px;
    font-style: italic;
    font-size: 16px;
    color: #333;
    border-radius: 5px;
    margin: 40px 0;
}

/* RIGHT COLUMN */
.right-col { width: 454px; }
.sidebar-card { border: 2px solid var(--border-color); border-radius: 5px; overflow: hidden; margin-bottom: 20px; }

.card-label { background: #fbfbfb; border-bottom: 1px solid #eee; padding: 12px 25px; font-size: 14px; font-weight: 700; color: #333; }
.author-details { padding: 25px; }
.auth-name { color: var(--prudent-red); font-size: 20px; font-weight: 800; margin-bottom: 5px; }
.auth-title { font-size: 12px; color: #999; display: block; margin-bottom: 15px; }
.author-details p { font-size: 14px; color: #555; line-height: 1.5; margin-bottom: 25px; }

.auth-stats { display: flex; gap: 15px; }
.stat-box {
    background: #F6F6F6; flex: 1; padding: 15px; text-align: center; border-radius: 4px;
}
.stat-box .val { display: block; font-size: 20px; font-weight: 800; color: #111; }
.stat-box .lbl { font-size: 11px; font-weight: 700; color: #999; margin-top: 5px; }

.list-item { padding: 20px 25px; border-bottom: 1px solid #f6f6f6; }
.list-item:last-child { border-bottom: none; }
.l-cat { font-size: 11px; font-weight: 800; color: var(--prudent-red); display: block; margin-bottom: 8px; }
.l-cat.op { color: #f97316; }
.list-item h4 { font-size: 15px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; color: #111; }
.list-item h4 a { color: inherit; text-decoration: none; }
.list-item h4 a:hover { color: var(--prudent-red); }
.l-date { font-size: 12px; color: #bbb; }

/* MOBILE RESPONSIVE */
@media (max-width: 991px) {
    .main-container { width: 100% !important; padding: 0 20px; }
    .main-content-flex { flex-direction: column; }
    .left-col, .right-col, .post-main-image { width: 100% !important; }
    .post-title { font-size: 26px; }
    .author-share-row { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* Tags and Bottom Author Area */
.post-footer-area {
    margin-top: 40px;
    max-width: 927px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.post-tags .tag {
    background: #F2F2F2;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    color: #444;
    font-weight: 500;
}

.author-share-row.bottom {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* Related Section Styling */
.related-from-columnists {
    /* margin-top: 60px; */
    padding-top: 40px;
}

.related-from-columnists .section-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #111;
}

/* Standard Grid (335px Cards) */
.blog-standard-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 335px) !important;
    gap: 20px !important;
    width: 1400px !important;
}

.s-card {
    width: 335px !important;
    height: 373px !important;
    background: #FFFFFF !important;
    border: 2px solid #F6F6F6 !important;
    border-radius: 5px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    overflow: hidden;
}

.s-img-box {
    width: 307px !important;
    height: 173px !important;
    margin: 14px auto 0 auto !important;
    border-radius: 5px !important;
    overflow: hidden !important;
}

.s-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.s-info {
    padding: 15px 20px 20px 20px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}
s-info  h3{
    color: #020202;
}
/* Mobile Responsive */
@media (max-width: 991px) {
    .blog-standard-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        padding: 0 15px;
    }

    .s-card {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }

    .s-img-box {
        width: 100% !important;
        margin: 0 0 15px 0 !important;
    }

    .author-share-row.bottom {
        flex-direction: row; /* Match image: author left, share right */
        justify-content: space-between;
    }

    .post-share-btns {
        gap: 5px;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* --- STRICT CARD RECONSTRUCTION FIX --- */

.blog-standard-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 335px) !important;
    gap: 20px !important;
    width: 1400px !important;
    margin: 0 auto !important;
    padding-bottom: 50px;
}

/* The Main Card Container (335px x 373px) */
.s-card {
    width: 335px !important;
    height: 373px !important; 
    background: #FFFFFF !important;
    border: 2px solid #F6F6F6 !important;
    border-radius: 5px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-align: left !important;
}

/* The Image Box (307px x 173px centered) */
.s-img-box {
    width: 307px !important;
    height: 173px !important;
    margin: 14px auto 0 auto !important; /* Centers within the card */
    background: #f0f0f0 !important; /* Placeholder color if image fails */
    border-radius: 5px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.s-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* The Text Content Area */
.s-info {
    padding: 15px 14px 15px 14px !important; /* Aligned with image box edges */
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Category Label */
.s-cat {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #DD221B !important; /* Prudent Red */
    margin-bottom: 6px !important;
    text-transform: uppercase !important;
    display: block !important;
}

.s-cat.soc { color: #9333ea !important; } 
.s-cat.cul { color: #ea580c !important; }

/* Title */
.s-card h3 {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #111111 !important;
    line-height: 1.3 !important;
    margin: 0 0 8px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Paragraph Snippet */
.s-card p {
    font-size: 13px !important;
    color: #666666 !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Footer (Author & Date) */
.s-footer {
    margin-top: auto !important; /* Pushes to bottom of 373px card */
    padding-top: 10px !important;
    border-top: 1px solid #F0F0F0 !important;
}

.s-footer strong {
    font-size: 13px !important;
    display: block !important;
    color: #111 !important;
    font-weight: 700 !important;
}

.s-footer span {
    font-size: 11px !important;
    color: #999 !important;
    display: block !important;
}

/* Related Section Title */
.related-from-columnists .section-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
    color: #111 !important;
    text-align: left !important;
}



/* Hidden by default on Desktop */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background-color: #000000;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    display: none;
    /* Changed via media query */
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    padding: 0 10px;
}

/* Visibility Logic */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Add padding to the bottom of the body so the nav doesn't hide content */
    body {
        padding-bottom: 75px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-family: "Neue Haas Grotesk Display Pro", sans-serif;
    transition: all 0.2s ease;
    flex: 1;
}

.nav-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    /* Default icon color */
    margin-bottom: 5px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 700;
    /* Bold as per image */
    text-align: center;
}

/* Active State Styles */
.nav-item.active {
    color: #E11B22;
    /* Prudent Red */
}

.nav-item.active .nav-icon {
    fill: #E11B22;
    /* Active Icon Color */
}

/* Optional: Slight feedback when clicking */
.nav-item:active {
    transform: scale(0.92);
}

/* ============================================================
   STRICT FULLY MOBILE RESPONSIVE CODE
   ============================================================ */

@media (max-width: 991px) {
    /* 1. Global Container Fix */
    .main-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        overflow-x: hidden !important;
    }

    /* 2. Main Layout Stacking: Left (Article) First, Right (Sidebar) Second */
    .main-content-flex {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .left-col, .right-col {
        width: 100% !important;
    }

    /* 3. Typography Adjustments */
    .post-title {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }

    .post-content p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    /* 4. Post Header & Share Buttons */
    .author-share-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    .post-share-btns {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .icon-btn {
        width: 42px !important; /* Slightly larger for easier tapping */
        height: 42px !important;
    }

    /* 5. Main Image & Content Quotes */
    .post-main-image {
        width: 100% !important;
        margin-bottom: 25px !important;
    }

    .content-quote {
        padding: 20px !important;
        font-size: 15px !important;
    }

    /* 6. Sidebar (Author Bio & More List) */
    .right-col {
        margin-top: 20px !important;
    }

    .stat-box {
        padding: 10px !important;
    }

    .stat-box .val {
        font-size: 18px !important;
    }

    /* 7. Tags Section */
    .post-footer-area {
        width: 100% !important;
    }

    .post-tags {
        gap: 8px !important;
    }

    .post-tags .tag {
        padding: 6px 15px !important;
        font-size: 12px !important;
    }

    /* 8. Related Columnists Grid (Strict 1-Column Fix) */
    .related-from-columnists {
        padding-top: 30px !important;
    }

    .blog-standard-grid {
        grid-template-columns: 1fr !important; /* Force single column */
        width: 100% !important;
        gap: 25px !important;
        padding-bottom: 30px !important;
    }

    .s-card {
        width: 100% !important;
        height: auto !important; /* Remove fixed height for mobile wrap */
        max-width: 100% !important;
    }

    .s-img-box {
        width: 100% !important; /* Full width image on mobile */
        height: auto !important;
        aspect-ratio: 16 / 9 !important; /* Maintain shape */
        margin: 0 0 15px 0 !important; /* Remove top padding centering */
    }

    .s-info {
        padding: 0 15px 20px 15px !important;
    }

    .s-card h3 {
        -webkit-line-clamp: unset !important; /* Show full title on mobile */
        font-size: 18px !important;
    }

    .s-card p {
        -webkit-line-clamp: unset !important; /* Show full text on mobile */
    }

    /* 9. Bottom Navigation Bar Padding */
    body {
        padding-bottom: 90px !important; /* Ensure content doesn't get cut by Nav */
    }
}

/* Specific Small Phone Adjustments */
@media (max-width: 480px) {
    .post-title {
        font-size: 22px !important;
    }

    .author-share-row.bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .post-share-btns {
        gap: 8px !important;
    }
}

/* --- STRICT MOBILE BACKGROUND FIX --- */

@media (max-width: 991px) {
    /* 1. Force Body and Main Containers to White */
    body.blog-display-body,
    .blog-display-mt,
    .main-container,
    .main-content-flex,
    .left-col,
    .right-col {
        background-color: #ffffff !important;
    }

    /* 2. Force Article Sections to White */
    .post-header,
    .post-content,
    .post-footer-area,
    .related-from-columnists {
        background-color: #ffffff !important;
    }

    /* 3. Ensure Text is Dark and Visible (Prevents invisible text) */
    .post-title,
    .post-content h3,
    .author-meta strong,
    .s-card h3,
    .s-footer strong,
    .related-from-columnists .section-title {
        color: #111111 !important;
    }

    .post-intro,
    .post-content p,
    .s-card p {
        color: #333333 !important;
    }

    .author-meta span,
    .detail-meta,
    .s-footer span {
        color: #666666 !important;
    }

    /* 4. Fix Share Icon Colors */
    .icon-btn {
        background-color: #ffffff !important;
        border-color: #373737 !important;
    }

    .icon-btn i {
        color: #373737 !important;
    }
}