/* ===== IOAI Home sections ===== */
.hero { padding: 72px 0 64px; background: radial-gradient(1200px 600px at 85% -10%, var(--ioai-primary-soft) 0%, rgba(232,240,249,0) 60%), #fff; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0.4rem 0 1rem; }
.hero__lead { font-size: 1.2rem; color: var(--ioai-text-secondary); max-width: 560px; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero__badge { position: absolute; left: 18px; bottom: 18px; background: rgba(255,255,255,0.95); border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 0.9rem; color: var(--ioai-primary-dark); box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 48px 0 40px; } }

.editions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
@media (max-width: 800px) { .editions { grid-template-columns: 1fr; } }

.pathway { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pathway img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (max-width: 900px) { .pathway { grid-template-columns: 1fr; } }

.roadmap-figure { background: #fff; border: 1px solid var(--ioai-border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.roadmap-figure img { margin: 0 auto; }

/* ===== FLL Journey Blog ===== */
.topbar { background: #000; color: rgba(255,255,255,0.8); font-size: 0.85rem; text-align: center; padding: 6px 16px; }
.topbar a { color: #ff8a80; }
.nav { background: rgba(17,17,17,0.97); border-bottom-color: rgba(255,255,255,0.08); }
.nav__links a, .nav__links button { color: #fff; font-weight: 500; }
.nav__links a:hover, .nav__links a.is-active { background: rgba(255,255,255,0.12); color: #fff; }
.nav__toggle { background: transparent; border-color: rgba(255,255,255,0.3); }
.nav__toggle span { background: #fff; }
.nav__brand { white-space: nowrap; font-family: var(--font-serif); font-weight: 700; color: #fff; font-size: 1.15rem; letter-spacing: 0.04em; display: flex; align-items: center; gap: 10px; }
.nav__brand img { width: 34px; height: 34px; border-radius: 4px; }
.nav__brand:hover { text-decoration: none; color: #fff; }
@media (max-width: 960px) { .nav__links { background: #111; border-bottom-color: rgba(255,255,255,0.08); } }
.masthead { background: #111; color: #fff; text-align: center; padding: 48px 0 44px; }
.masthead img { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 6px; }
.masthead h1 { font-family: var(--font-serif); color: #fff; letter-spacing: 0.06em; margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.masthead p { color: rgba(255,255,255,0.8); margin: 10px auto 0; max-width: 640px; }
h1, h2, .post-card h3 { font-family: var(--font-serif); }
.section-title { font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 2px solid #111; padding-bottom: 6px; margin: 0 0 22px; font-family: var(--font-body); }
/* category colours */
.cat { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; color: #fff; background: #555; text-decoration: none; }
.cat:hover { text-decoration: none; filter: brightness(1.1); color: #fff; }
.cat--core-value { background: #c62828; } .cat--innovation-project { background: #1565c0; } .cat--robot-design { background: #b88a00; }
.cat--robot-game { background: #2e7d32; } .cat--highlights { background: #6a1b9a; } .cat--share { background: #c2185b; }
.cat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-row .cat { font-size: 0.9rem; padding: 8px 16px; }
/* post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px 22px; }
.post-card { display: block; color: inherit; text-decoration: none; }
.post-card:hover { text-decoration: none; }
.post-card:hover h3 { text-decoration: underline; }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #eee; margin: 0 0 10px; }
.post-card h3 { font-size: 1.08rem; line-height: 1.35; margin: 6px 0 4px; color: var(--ioai-text); }
.post-card p { font-size: 0.9rem; color: var(--ioai-text-secondary); margin: 0; }
.post-card .meta { font-size: 0.8rem; color: var(--ioai-text-muted); margin-top: 4px; }
.latest { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; }
.latest .post-grid { grid-template-columns: 1fr 1fr; }
.latest > .post-card h3 { font-size: 1.6rem; }
.latest > .post-card img { aspect-ratio: 16 / 11; }
@media (max-width: 900px) { .latest { grid-template-columns: 1fr; } }
.year-head { margin: 2.4rem 0 1rem; }
/* single post */
.post-head { background: #111; color: #fff; padding: 44px 0 36px; text-align: center; }
.post-head h1 { color: #fff; max-width: 860px; margin: 12px auto 8px; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.post-head .meta { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.post-body { max-width: 780px; margin: 0 auto; font-size: 1.06rem; }
.post-body img { height: auto; border-radius: 6px; margin: 0 auto; }
.post-body figure { margin: 1.4rem 0; }
.post-body figcaption, .post-body .wp-element-caption { font-size: 0.88rem; color: var(--ioai-text-muted); text-align: center; margin-top: 6px; }
.post-body .aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
.post-body .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.post-body .wp-block-gallery > figure { flex: 1 1 calc(33% - 10px); min-width: 160px; margin: 0; }
.post-body .wp-block-gallery > figure img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.post-body .wp-block-gallery.columns-2 > figure { flex-basis: calc(50% - 10px); }
.post-body .wp-block-separator { border: 0; border-top: 1px solid var(--ioai-border); margin: 2rem 0; }
.post-body .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.post-body .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.post-body pre { background: #f5f5f5; padding: 14px; border-radius: 6px; overflow-x: auto; font-size: 0.9rem; }
.post-body .wp-block-jetpack-timeline { list-style: none; padding: 0 0 0 22px; border-left: 3px solid var(--ioai-primary); }
.post-body .wp-block-jetpack-timeline-item { position: relative; margin: 0 0 1.2rem; padding: 12px 16px; background: var(--ioai-bg-soft); border-radius: 8px; }
.post-body .wp-block-jetpack-timeline-item::before { content: ""; position: absolute; left: -31px; top: 18px; width: 13px; height: 13px; border-radius: 50%; background: var(--ioai-primary); }
.post-body .wp-block-columns { display: flex; flex-wrap: wrap; gap: 20px; }
.post-body .wp-block-column { flex: 1 1 240px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; max-width: 780px; margin: 2.5rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--ioai-border); font-size: 0.95rem; }
.post-nav a { max-width: 48%; }
.post-nav .next { text-align: right; margin-left: auto; }
