/* ==============================================================
   BLOG DETAIL PAGES — STYLESHEET
   Gayatri Modern Inter College (GMIC)
   Contains ONLY blog-detail-page styling. Site-wide/global styles
   (nav, footer, breadcrumb-hero, section-title, etc.) live in the
   main stylesheet and are intentionally NOT duplicated here.
   ============================================================== */

:root {
    --primary: #1a3165;
    --primary-dark: #151d30;
    --accent: #f3c340;
    --accent-dark: #d99a00;
    --highlight: #ffcc33;
    --white: #ffffff;
    --text-dark: #1f2a44;
    --text-muted: #6b7280;
    --overlay: rgba(15, 23, 42, 0.533);
    --glass: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.35);
    /* --font-main: 'Poppins', sans-serif; */
    --font-main: 'Futura Light BT';
    /* --font-display: 'Bebas Neue', sans-serif; */
    --font-display: 'Futura Light BT';
    --r-xl: 20px;
    --r-lg: 15px;
    --r-md: 10px;
    --r-pill: 40px;
    --ease: all 0.3s ease;
    --ease-cb: all 0.5s cubic-bezier(0.51, 0.026, 0.368, 1.016);
    --section: 80px 0;
    /* Title scale — responsive overrides live in the media queries below */
    --title-xl: 52px;
    /* hero / page-level             */
    --title-lg: 42px;
    /* every section heading         */
    --title-md: 20px;
    /* card / sub-headings           */
}

/* ==============================================================
   1. LAYOUT SHELL
   ============================================================== */
.blog-detail {
    padding: var(--section);
    background: var(--white);
}

.blog-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 760px) 300px;
    gap: 60px;
    align-items: start;
}

@media (max-width: 991px) {
    .blog-detail__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==============================================================
   2. ARTICLE META (category chip, date, read time)
   ============================================================== */
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.blog-meta__chip {
    display: inline-flex;
    align-items: center;
    background: rgba(26, 49, 101, 0.07);
    color: var(--primary);
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    padding: 7px 18px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(26, 49, 101, 0.15);
}

.blog-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 14px;
}

.blog-meta__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    display: inline-block;
}

/* ==============================================================
   3. ARTICLE BODY TYPOGRAPHY
   ============================================================== */
.blog-article {
    color: var(--text-dark);
}

.blog-article__lead {
    font-size: 21px;
    line-height: 1.75;
    color: var(--text-dark);
    font-weight: 500;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(26, 49, 101, 0.12);
}

.blog-article__body h2 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--primary);
    margin: 46px 0 18px;
    padding-left: 20px;
    position: relative;
    line-height: 1.3;
}

.blog-article__body h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

.blog-article__body h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--primary-dark);
    margin: 30px 0 14px;
}

.blog-article__body p {
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.blog-article__body p strong,
.blog-article__body strong {
    color: var(--primary);
    font-weight: 700;
}

.blog-article__body ul,
.blog-article__body ol {
    margin: 0 0 22px 0;
    padding-left: 0;
    list-style: none;
}

.blog-article__body ul li,
.blog-article__body ol li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text-muted);
}

.blog-article__body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--accent);
    transform: rotate(45deg);
}

.blog-article__body ol {
    counter-reset: blog-ol;
}

.blog-article__body ol li::before {
    counter-increment: blog-ol;
    content: counter(blog-ol);
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==============================================================
   4. PULL-QUOTE / CALLOUT BOX
   ============================================================== */
.blog-callout {
    background: rgba(26, 49, 101, 0.04);
    border-left: 4px solid var(--accent);
    border-radius: var(--r-md);
    padding: 26px 30px;
    margin: 34px 0;
}

.blog-callout p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--primary-dark);
    font-style: italic;
}

.blog-callout p:before {
    content: "\201C";
    font-family: Georgia, serif;
    color: var(--accent-dark);
    font-size: 30px;
    line-height: 0;
    vertical-align: -6px;
    margin-right: 4px;
    font-style: normal;
}

/* ==============================================================
   5. NUMBERED SKILL / POINT CARDS (used on listicle-style posts)
   ============================================================== */
.blog-point {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 0;
    border-bottom: 1px dashed rgba(26, 49, 101, 0.15);
}

.blog-point:last-child {
    border-bottom: none;
}

.blog-point__num {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-point__body h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--primary);
}

.blog-point__body p {
    margin: 0;
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==============================================================
   6. GMIC END-OF-ARTICLE BRAND STRIP
   ============================================================== */
.blog-brand-strip {
    margin-top: 40px;
    padding: 26px 28px;
    border-radius: var(--r-lg);
    background: var(--primary);
    display: flex;
    gap: 18px;
    align-items: center;
}

.blog-brand-strip__badge {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.blog-brand-strip p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
}

.blog-brand-strip strong {
    color: var(--white);
}

/* ==============================================================
   7. TAGS + SHARE ROW
   ============================================================== */
.blog-footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(26, 49, 101, 0.12);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-tags a {
    font-size: 13px;
    color: var(--primary);
    background: rgba(26, 49, 101, 0.06);
    padding: 6px 14px;
    border-radius: var(--r-pill);
    text-decoration: none;
    transition: var(--ease);
}

.blog-tags a:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.blog-share {
    display: flex;
    gap: 10px;
    align-items: center;
}

.blog-share span {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 4px;
}

.blog-share a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(26, 49, 101, 0.06);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ease);
    text-decoration: none;
}

.blog-share a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==============================================================
   8. SIDEBAR
   ============================================================== */
.blog-side {
    position: sticky;
    top: 100px;
}

.blog-side__block {
    background: var(--white);
    border: 1px solid rgba(26, 49, 101, 0.1);
    border-radius: var(--r-lg);
    padding: 26px;
    margin-bottom: 26px;
    box-shadow: 0 10px 30px rgba(21, 29, 48, 0.06);
}

.blog-side__title {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--primary);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* Quick nav / table of contents */
.blog-toc {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-toc li {
    margin-bottom: 10px;
}

.blog-toc a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--r-md);
    transition: var(--ease);
}

.blog-toc a:hover {
    background: rgba(26, 49, 101, 0.06);
    color: var(--primary);
}

/* Admissions CTA card */
.blog-side__cta {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: var(--white);
    text-align: center;
}

.blog-side__cta h4 {
    font-family: var(--font-display);
    font-size: 19px;
    margin: 0 0 10px;
    color: var(--white);
}

.blog-side__cta p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 18px;
    line-height: 1.6;
}

.blog-side__cta .btn-accent {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 26px;
    border-radius: var(--r-pill);
    text-decoration: none;
    transition: var(--ease);
}

.blog-side__cta .btn-accent:hover {
    background: var(--accent-dark);
    color: var(--white);
}

/* Related posts list (sidebar mini-cards) */
.blog-side__post {
    display: flex;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 16px;
    align-items: flex-start;
}

.blog-side__post:last-child {
    margin-bottom: 0;
}

.blog-side__post-num {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(26, 49, 101, 0.08);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-side__post-title {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
    transition: var(--ease);
}

.blog-side__post:hover .blog-side__post-title {
    color: var(--accent-dark);
}

/* ==============================================================
   9. RELATED ARTICLES (full-width grid, bottom of page)
   ============================================================== */
.blog-related {
    background: #f7f8fb;
    padding: var(--section);
}

.blog-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 991px) {
    .blog-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-related__grid {
        grid-template-columns: 1fr;
    }
}

.blog-related__card {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 30px 26px;
    text-decoration: none;
    display: block;
    border: 1px solid rgba(26, 49, 101, 0.08);
    transition: var(--ease-cb);
    height: 100%;
}

.blog-related__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(21, 29, 48, 0.12);
    border-color: transparent;
}

.blog-related__eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark);
    font-family: var(--font-display);
    margin-bottom: 14px;
}

.blog-related__card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    color: var(--primary);
    margin: 0 0 12px;
    line-height: 1.35;
}

.blog-related__card p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}

.blog-related__link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-related__card:hover .blog-related__link {
    color: var(--accent-dark);
}

/* ==============================================================
   10. RESPONSIVE TITLE SCALE OVERRIDES
   ============================================================== */
@media (max-width: 991px) {
    .blog-article__body h2 {
        font-size: 24px;
    }

    .blog-article__lead {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .blog-detail {
        padding: 50px 0;
    }

    .blog-article__body h2 {
        font-size: 21px;
        margin: 34px 0 14px;
    }

    .blog-article__lead {
        font-size: 17px;
    }

    .blog-brand-strip {
        flex-direction: column;
        text-align: center;
    }

    .blog-footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
