/* ================================================================
   Blog styles — shared by /blog/ (listing) and every blog post.

   Kept as one stylesheet rather than inlined per page: the listing
   and every post share the same chrome, so a change here updates the
   whole section. Deliberately NOT placed in /assets/, which is served
   with a 1-year immutable Cache-Control by netlify.toml.

   The palette, fonts, navbar and footer rules mirror the other
   standalone pages (refer.html, youth-ai-bootcamp.html) so the blog
   is visually identical to the rest of the site.
   ================================================================ */

:root {
    /* Brand palette — aligned with dallasdatascienceacademy.ai */
    --navy: #005B99;        /* brand primary blue */
    --navy-deep: #003e7e;   /* brand deep blue */
    --navy-soft: #0077c2;   /* lighter brand blue */
    --orange: #F28C38;      /* brand accent orange */
    --orange-dark: #d9742a;
    --cream: #f9fafb;       /* brand light background */
    --paper: #ffffff;
    --ink: #1a1a1a;         /* brand text */
    --muted: #6b7280;       /* brand muted text */
    --green: #0a9d91;       /* brand teal accent */
    --radius: 16px;
    --shadow-sm: 0 4px 16px rgba(17, 38, 76, 0.06);
    --shadow-md: 0 14px 40px rgba(17, 38, 76, 0.10);
    /* height of the sticky header, used for scroll offset */
    --nav-h: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4 {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 700;
    overflow-wrap: break-word;
    word-break: break-word;
}

img { max-width: 100%; display: block; }

/* Skip link for keyboard users — visible only when focused. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1100;
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus { left: 0; }

/* ================================
   NAVIGATION — sticky, in flow
================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(150%) blur(10px);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid rgba(26, 58, 110, 0.10);
    box-shadow: 0 2px 18px rgba(17, 38, 76, 0.05);
}

.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: var(--nav-h);
    padding: 12px clamp(18px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    flex: 0 1 auto;
    text-decoration: none;
    line-height: 1.12;
}

.logo-line1 {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1rem, 2.6vw, 1.25rem);
    color: #005B99;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.logo-line2 {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(0.78rem, 2vw, 0.92rem);
    color: #005B99;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Link row. Scrolls horizontally on narrow screens rather than
   collapsing into a JS-driven menu, so the nav needs no scripting. */
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.6vw, 22px);
    list-style: none;
    margin: 0 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--navy);
    border-bottom-color: var(--orange);
}

.nav-links a[aria-current="page"] {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

.nav-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
    background: var(--orange);
    color: #fff;
    padding: 11px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 6px 16px rgba(224, 112, 32, 0.32);
}

.nav-cta:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(224, 112, 32, 0.42);
}

/* ================================
   HERO
================================ */
.hero {
    position: relative;
    padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 60px) clamp(28px, 4vw, 44px);
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(60% 55% at 18% 8%, rgba(43, 92, 168, 0.14), transparent 60%),
        radial-gradient(55% 50% at 88% 14%, rgba(224, 112, 32, 0.14), transparent 60%),
        var(--cream);
}

/* faint dotted grid for depth */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(26, 58, 110, 0.10) 1.2px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 35%, transparent 75%);
            mask-image: radial-gradient(70% 60% at 50% 30%, #000 35%, transparent 75%);
    opacity: 0.55;
    pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--paper);
    border: 1px solid rgba(26, 58, 110, 0.12);
    color: var(--navy);
    padding: 8px 18px;
    border-radius: 50px;
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 26px;
    box-shadow: var(--shadow-sm);
}

.hero-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px rgba(224, 112, 32, 0.18);
}

.hero h1 {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--navy);
    margin: 0 auto 20px;
    letter-spacing: -1.2px;
    line-height: 1.14;
    padding-bottom: 0.04em;
    max-width: 24ch;
    font-size: clamp(2rem, 5.6vw, 3.4rem);
    overflow-wrap: break-word;
}

.hero-subheadline {
    color: var(--muted);
    font-size: clamp(1rem, 2.1vw, 1.15rem);
    margin: 0 auto;
    font-weight: 600;
    line-height: 1.55;
    max-width: 62ch;
}

/* ================================
   LAYOUT
================================ */
.section {
    padding: clamp(28px, 5vw, 52px) clamp(20px, 5vw, 60px) clamp(48px, 7vw, 80px);
}

.wrap {
    max-width: 940px;
    margin: 0 auto;
}

/* ================================
   POST LIST (listing page)
================================ */
.post-list {
    display: grid;
    gap: clamp(18px, 2.4vw, 24px);
    list-style: none;
}

.post-card {
    background: var(--paper);
    border: 1px solid rgba(26, 58, 110, 0.10);
    border-radius: var(--radius);
    padding: clamp(22px, 3vw, 32px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 91, 153, 0.28);
}

.post-card h2 {
    font-size: clamp(1.2rem, 2.6vw, 1.55rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.post-card h2 a {
    color: var(--navy);
    text-decoration: none;
}

.post-card h2 a:hover { color: var(--navy-soft); }

/* Date sits above the title in the reading order of the card. */
.post-meta {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.post-summary {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
    max-width: 70ch;
}

.post-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--navy);
    text-decoration: none;
}

.post-more:hover { color: var(--orange-dark); }

/* Placeholder card for an empty section. Not used now that posts are
   published — kept for reuse if the list is ever emptied. */
.empty-state {
    background: var(--paper);
    border: 1px dashed rgba(26, 58, 110, 0.22);
    border-radius: var(--radius);
    padding: clamp(28px, 4vw, 44px);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.empty-state h2 {
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    color: var(--navy);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--muted);
    font-weight: 500;
    max-width: 56ch;
    margin: 0 auto 18px;
}

.empty-state .nav-cta { margin-top: 4px; }

/* ================================
   ARTICLE (post page)
================================ */
.breadcrumb {
    max-width: 760px;
    margin: 0 auto clamp(18px, 3vw, 26px);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--navy);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--orange-dark); }

.article {
    max-width: 760px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid rgba(26, 58, 110, 0.10);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 52px);
    box-shadow: var(--shadow-sm);
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(26, 58, 110, 0.10);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}

.article-byline .author { color: var(--navy); font-weight: 700; }

.article-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.18rem);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 26px;
}

/* Long-form prose defaults. Post bodies use plain h2/h3/p/ul/ol,
   so a post author never has to think about classes. */
.article-body > * + * { margin-top: 1.15em; }

.article-body h2 {
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-top: 1.9em;
}

.article-body h3 {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    color: var(--ink);
    margin-top: 1.6em;
}

.article-body p,
.article-body li {
    font-size: 1.03rem;
    line-height: 1.75;
    color: #33383f;
}

.article-body ul,
.article-body ol { padding-left: 1.3em; }

.article-body li + li { margin-top: 0.5em; }

.article-body a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover { color: var(--orange-dark); }

.article-body strong { font-weight: 700; color: var(--ink); }

.article-body img {
    border-radius: 12px;
    margin: 1.6em 0;
}

.article-body blockquote {
    border-left: 4px solid var(--orange);
    background: var(--cream);
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    color: #33383f;
    font-weight: 500;
}

.article-body figcaption {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    margin-top: -1em;
}

.article-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: var(--cream);
    border: 1px solid rgba(26, 58, 110, 0.10);
    border-radius: 6px;
    padding: 2px 6px;
}

.article-body pre {
    background: #0f2740;
    color: #e8f1f8;
    border-radius: 12px;
    padding: 18px 20px;
    overflow-x: auto;
}

.article-body pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

/* Closing call to action on a post, styled like the site's cards. */
.article-cta {
    max-width: 760px;
    margin: clamp(24px, 4vw, 36px) auto 0;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    padding: clamp(24px, 3.4vw, 38px);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.article-cta h2 {
    color: #fff;
    font-size: clamp(1.2rem, 2.6vw, 1.5rem);
    margin-bottom: 10px;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    max-width: 54ch;
    margin: 0 auto 20px;
}

.back-to-blog {
    display: block;
    max-width: 760px;
    margin: clamp(22px, 3vw, 32px) auto 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
    text-decoration: none;
}

.back-to-blog:hover { color: var(--orange-dark); }

/* ================================
   FOOTER
================================ */
footer {
    background: var(--navy-deep);
    color: #fff;
    padding: clamp(46px, 6vw, 64px) clamp(20px, 5vw, 60px) 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    max-width: 1160px;
    margin: 0 auto;
}

.footer-section h4 {
    font-family: 'Inter', 'Montserrat', sans-serif;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.footer-section p, .footer-section a {
    font-family: 'Inter', 'Montserrat', sans-serif;
    color: rgba(255,255,255,0.72);
    font-size: 0.92rem;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-section a:hover { color: var(--orange); }

.footer-bottom {
    text-align: center;
    padding-top: 38px;
    margin-top: 38px;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
    font-size: 0.84rem;
}

/* ================================
   RESPONSIVE TWEAKS
================================ */
@media (max-width: 980px) {
    .nav-inner { flex-wrap: wrap; }
    .nav-links {
        order: 3;
        width: 100%;
        margin: 0;
        padding-bottom: 2px;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .logo-line1 { font-size: 1rem; }
    .logo-line2 { font-size: 0.78rem; }
    .nav-cta { padding: 10px 16px; font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
