
/* =================================================
   TRUTH PATHS — MAIN STYLESHEET
   ================================================= */

/* --- 1. Global Styles & Scroll Fix --- */
:root {
    --accent: #ff3c3c;
    --dark: #111;
    --light-bg: #f8f9fa;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 150px;
}

section[id] {
    scroll-margin-top: 150px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    transition: var(--transition);
}

/* --- 2. Header & Navigation --- */
.main-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--dark);
}

.nav-link {
    transition: var(--transition);
    position: relative;
    font-size: 13px;
    font-weight: 700;
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* --- 3. Scroll Progress Bar --- */
.progress-container {
    width: 100%;
    height: 4px;
    background: #eee;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
}

.progress-bar {
    height: 4px;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s ease-out;
}

/* --- 4. Section Titles --- */
.section-title {
    margin-bottom: 2rem;
    position: relative;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2rem;
    display: inline-block;
    padding-bottom: 12px;
    border-bottom: 4px solid var(--accent);
    margin-bottom: 0;
}

.text-center .section-title h2 {
    border-bottom-width: 4px;
}

/* --- 5. Hero Carousel --- */
.carousel-item {
    height: 70vh;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 100%);
    display: flex;
    align-items: center;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--accent);
}

/* --- 6. Content Cards & Hover Effects --- */
.card, .hover-lift {
    overflow: hidden;
    border-radius: 8px;
    transition: var(--transition);
    background: #fff;
}

.card:hover, .hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.category-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

/* --- 7. Govt Jobs / Sports Strip Items --- */
.border-start.border-danger.border-4 {
    transition: var(--transition);
}

.border-start.border-danger.border-4:hover {
    background-color: #fff5f5 !important;
}

/* --- 8. Shayari Section --- */
.shayari-box {
    background: var(--light-bg);
    padding: 60px 30px;
    border-radius: 20px;
    border: 1px dashed #ccc;
    position: relative;
}

/* --- 9. Sports Section --- */
.sports-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 280px;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.sports-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.85) 100%);
}

.sports-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.sports-card .category-badge {
    background: var(--accent);
}

.sports-score-strip {
    background: var(--dark);
    color: #fff;
    border-radius: 8px;
    padding: 16px 20px;
}

.sports-score-strip .vs {
    color: var(--accent);
    font-weight: 700;
}

/* --- 10. Footer --- */
.footer-dark {
    background: #0f0f0f;
    color: white;
}

.footer-nav a:hover {
    color: var(--accent) !important;
}

.social-links a, .social-links-top a {
    transition: var(--transition);
}

.social-links a:hover, .social-links-top a:hover {
    color: var(--accent) !important;
    transform: translateY(-3px);
}

/* --- 11. Marquee News Strip --- */
marquee span {
    display: inline-block;
}

/* --- 12. Responsive Adjustments --- */
@media (max-width: 991px) {
    html, section[id] {
        scroll-padding-top: 100px;
        scroll-margin-top: 100px;
    }

    .carousel-item {
        height: 55vh;
        min-height: 320px;
    }

    .sports-card {
        height: 220px;
    }
}

@media (max-width: 575px) {
    .section-title h2 {
        font-size: 1.5rem;
    }

    .carousel-item .display-4 {
        font-size: 1.8rem;
    }
}

/* Mobile nav collapse on the public site header */
@media (max-width: 767px) {
    #siteNavCollapse .nav {
        text-align: left;
        padding-top: 10px;
    }

    #siteNavCollapse .nav-link {
        padding: 10px 4px;
        border-bottom: 1px solid #f1f1f1;
    }
}

/* --- 13. Single Article / Blog Post Page --- */

/* Full, uncropped hero image (object-fit: contain keeps the whole image visible) */
.article-hero-img-wrap {
    background-color: #f3f3f3;
    text-align: center;
    max-height: 480px;
    overflow: hidden;
}

.article-hero-img-wrap img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.article-hero-info {
    padding: 28px 40px 8px;
    background: #fff;
}

.article-hero-badge {
    display: inline-block;
    margin-bottom: 14px;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1.25;
    margin-bottom: 14px;
    color: #181818;
}

.post-meta {
    font-size: 0.85rem;
    color: #777;
}

.post-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

/* Lead paragraph styled like a pull-quote / standfirst */
.article-lead {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: #222;
    border-left: 4px solid var(--accent);
    padding-left: 18px;
    margin-bottom: 28px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.08rem;
    line-height: 1.8;
    color: #333;
}

/* Drop cap on the first real paragraph of the body */
.article-content p.drop-cap::first-letter {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 3.4rem;
    line-height: 0.8;
    float: left;
    padding-right: 10px;
    color: var(--accent);
}

.article-content .drop-cap-letter {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 3.4rem;
    line-height: 0.8;
    float: left;
    padding-right: 10px;
    color: var(--accent);
}

.author-card {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 18px 20px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-title {
    font-weight: 700;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 20px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    text-decoration: none;
    color: inherit;
}

.recent-post-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background-color: #eee;
}

.recent-post-item:hover h6 {
    color: var(--accent);
    transition: 0.3s;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 8px;
    transition: 0.3s;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
    color: white;
}

.bg-fb { background: #3b5998; }
.bg-tw { background: #1da1f2; }
.bg-wa { background: #25d366; }

@media (max-width: 767px) {
    .article-hero-img-wrap {
        max-height: 220px;
    }

    .article-hero-img-wrap img {
        max-height: 220px;
    }

    .article-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .article-hero-info {
        padding: 18px 18px 4px;
    }

    .article-hero-badge {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }

    .post-meta {
        font-size: 0.78rem;
    }

    .article-lead {
        font-size: 1.05rem;
        padding-left: 14px;
        margin-bottom: 20px;
    }

    .article-content p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    .article-content p.drop-cap::first-letter,
    .article-content .drop-cap-letter {
        font-size: 2.2rem;
        padding-right: 6px;
    }

    .post-breadcrumb {
        font-size: 0.78rem;
        flex-wrap: wrap;
    }

    .post-breadcrumb .breadcrumb-item.active {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .share-btn {
        width: 34px;
        height: 34px;
        margin-right: 6px;
    }

    .author-card {
        padding: 14px 16px;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .sidebar-card {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .article-hero-img-wrap {
        max-height: 180px;
    }

    .article-hero-img-wrap img {
        max-height: 180px;
    }

    .article-title {
        font-size: 1.3rem;
    }

    /* Stack the "Tagged" row and share icons instead of squeezing them
       onto one line, and stop the badge pills from overflowing */
    .article-tagged-row {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

