/*
Theme Name: Shiddhanto
Theme URI: https://shiddhanto.local
Author: Shiddhanto
Description: Bangla parenting-advice blog theme (সন্তান লালন ও কিশোরদের মনস্তত্ত্ব). Converted from the static Shiddhanto mockups.
Version: 3.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: shiddhanto
*/


/* ===================== Fonts (self-hosted) =====================
   Anek Bangla is a variable font: one file per script covers weights 400-800, so there is nothing to trim by weight.
   Licence: SIL Open Font License 1.1, see assets/fonts/OFL.txt. Latin-extended is left out on purpose (a Bangla site
   only needs it for accented European letters, which fall back to the system font). */
@font-face {
  font-family: "Anek Bangla"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/anek-bangla-bengali.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1;
}
@font-face {
  font-family: "Anek Bangla"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/anek-bangla-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===================== Tokens ===================== */
:root {
  /* Brand palette, pulled from the Shiddhanto logo */
  --logo-cyan: #3ee4ff;
  --logo-purple: #776df2;
  --logo-pink: #f998c4;
  --logo-green: #24e27f;
  --logo-orange: #ff8302;
  --logo-navy: #022249;

  --primary: #5b4fe0; /* darker than the logo purple so white text on it passes AA (5.8:1) */
  --primary-text: var(--primary); /* purple used AS TEXT; lightened in dark mode */
  --hot-text: #a94e00; /* orange used as text on light surfaces (5.0:1) */
  --accent-text: #0a7a43; /* green used as text on light surfaces (4.8:1) */
  --primary-2: var(--logo-cyan);
  --accent: var(--logo-green);
  --hot: var(--logo-orange);
  --grad: linear-gradient(100deg, #1f1a5c 0%, #4b3fd1 45%, #5b4fe0 100%);

  --bg: #f1f2f7;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --text: var(--logo-navy);
  --text-2: #4b4d63;
  --muted: #666985; /* 4.8:1 on every light surface (was #8a8ca3, 3:1) */
  --border: #e6e7ef;
  --shadow: 0 6px 24px rgba(23, 23, 64, 0.06);
  --shadow-lg: 0 14px 40px rgba(23, 23, 64, 0.14);

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1240px;
  --font: "Anek Bangla", "Nirmala UI", "Noto Sans Bengali", "Kohinoor Bangla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0d0d1f;
  --surface: #17172e;
  --surface-2: #1f1f3a;
  --text: #f1f1fa;
  --text-2: #c2c3d6;
  --muted: #8a8ca8;
  --primary-text: #a79fff;
  --hot-text: var(--logo-orange);
  --accent-text: var(--logo-green);
  --border: #2a2a48;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.5);
}

/* ===================== Base ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===================== Top bar ===================== */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 12px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 10px; }
.topbar .icon { width: 15px; height: 15px; }
.topbar__btn { font-weight: 700; color: var(--text); padding-left: 10px; border-left: 1px solid var(--border); }
.topbar__btn:hover { color: var(--primary-text); }
.topbar__label { font-weight: 500; }
.socials { display: flex; gap: 6px; }
.socials a {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  color: var(--text-2); transition: .2s;
}
.socials svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.socials a:hover { background: var(--primary); color: #fff; }

/* ===================== Ticker ===================== */
.ticker { background: var(--surface); border-bottom: 1px solid var(--border); }
.ticker__inner { display: flex; align-items: center; gap: 16px; min-height: 52px; }
.ticker__badge {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-weight: 700; font-size: 12px; text-transform: none;
}
.ticker__bolt {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(91, 61, 245, .15);
}
.ticker__bolt svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.ticker__track { position: relative; flex: 1; height: 34px; overflow: hidden; }
.ticker__item {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(100%); transition: transform .5s ease, opacity .5s ease;
  white-space: nowrap;
}
.ticker__item.is-active { opacity: 1; transform: translateY(0); }
.ticker__item.is-leaving { opacity: 0; transform: translateY(-100%); }
.ticker__item img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ticker__date {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0;
}
.ticker__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ticker__item:hover .ticker__title { color: var(--primary-text); }
.ticker__nav { display: flex; gap: 6px; }
.ticker__btn {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--border); transition: .2s;
}
.ticker__btn svg { width: 16px; height: 16px; }
.ticker__btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===================== Header ===================== */
.header { position: sticky; top: 0; z-index: 50; padding: 14px 0; background: transparent; transition: padding .3s; }
.header__inner {
  display: flex; align-items: center; gap: 40px;
  background: var(--grad); color: #fff;
  border-radius: 16px; padding: 10px 20px; box-shadow: 0 10px 30px rgba(75, 47, 214, .3);
  width: calc(100% - 40px); max-width: calc(var(--container) - 40px);
}
.header.is-stuck { padding: 8px 0; }
.header__brand { display: flex; align-items: center; gap: 22px; }

.datebox {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .14); border-radius: 10px; padding: 6px 10px;
}
.datebox__day { font-size: 24px; font-weight: 800; line-height: 1; }
.datebox__my { font-size: 11px; font-weight: 600; line-height: 1.15; text-transform: none; opacity: .9; }

.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo__img { height: 34px; width: auto; display: block; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

.nav { flex: 1; }
.nav__list { display: flex; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px;
  font-weight: 600; font-size: 15px; position: relative; opacity: .92;
}
.nav__link:hover, .nav__link.is-active { opacity: 1; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: #fff; border-radius: 2px;
}
.chev { width: 14px; height: 14px; transition: transform .2s; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 200px; padding: 8px;
  background: var(--surface); color: var(--text); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .chev { transform: rotate(180deg); }
.dropdown a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.dropdown a:hover { background: var(--surface-2); color: var(--primary-text); }

.header__actions { display: flex; gap: 6px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff; transition: .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .26); }
.icon-btn--dark { background: var(--surface-2); color: var(--text); }
.icon-btn--dark:hover { background: var(--border); }
.icon-btn--menu { display: none; }
.i-moon { display: none; }
[data-theme="dark"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: block; }

/* ===================== Hero ===================== */
.site-main { padding-top: 8px; }
.hero { display: grid; grid-template-columns: 300px 1fr; gap: 24px; }

.block-title {
  font-size: 18px; font-weight: 800; position: relative; padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.block-title::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 3px;
  background: var(--primary); border-radius: 3px;
}

.trending { padding: 22px; align-self: start; }
.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px;
  border-left: 1px dashed var(--border);
}
.timeline li { position: relative; padding: 0 0 18px 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
}
.timeline li.is-hot::before { border-color: var(--hot); }
.timeline time { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.timeline a { font-weight: 700; font-size: 14.5px; line-height: 1.4; transition: color .2s; }
.timeline a:hover { color: var(--primary-text); }

.hero__main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.slider { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8.6; background: #111; box-shadow: var(--shadow); }
.slide { position: absolute; inset: 0; display: none; opacity: 0; transition: opacity .7s ease, display .7s allow-discrete; }
.slide.is-active { display: block; opacity: 1; }
@starting-style { .slide.is-active { opacity: 0; } }
.slide > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s ease; }
.slide.is-active > img { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 30, 0) 35%, rgba(10, 10, 30, .85) 100%);
}
.slide__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 32px; color: #fff; }
.slide__title { font-size: clamp(22px, 3vw, 34px); font-weight: 800; margin: 12px 0 14px; max-width: 760px; }
.slide__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s; }
.slide__title a:hover { background-size: 100% 2px; }
.slider__dots { position: absolute; right: 24px; bottom: 28px; z-index: 3; display: flex; gap: 6px; }
.slider__dots button { width: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .5); transition: .3s; }
.slider__dots button.is-active { width: 24px; background: #fff; }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: none; line-height: 1.4;
}
.badge--apps { background: var(--logo-cyan); color: var(--logo-navy); }
.badge--tech { background: #4b3fd1; }
.badge--deals { background: var(--logo-orange); }
.badge--gaming { background: var(--logo-pink); color: var(--logo-navy); }
.badge--pillar1 { background: var(--primary); color: #fff; }
.badge--pillar2 { background: var(--logo-pink); color: var(--logo-navy); }

.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.meta--light { color: rgba(255, 255, 255, .88); }
.meta strong { color: #fff; font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .7); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }

.mini-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini {
  display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mini img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.mini h3 { font-size: 14px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini time { font-size: 12px; color: var(--muted); }
.mini:hover h3 { color: var(--primary-text); }

/* ===================== Main layout ===================== */
.layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 48px; padding-bottom: 60px; }
.layout__main { min-width: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.section-head .block-title { border: 0; margin: 0; }
.section-head--spaced { margin-top: 48px; }
.see-all { font-weight: 600; font-size: 14px; color: var(--primary-text); padding-bottom: 12px; }

.tabs { display: flex; gap: 4px; padding-bottom: 10px; flex-wrap: wrap; }
.tab { padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: .2s; }
.tab:hover { color: var(--primary-text); }
.tab.is-active { background: var(--primary); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post { overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post.is-hidden { display: none; }
.post.fade-in { animation: fadeUp .45s ease both; }
.post__thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post:hover .post__thumb img, .row-post:hover img { transform: scale(1.06); }
.post__thumb .badge { position: absolute; left: 14px; top: 14px; }
.post__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__title { font-size: 18px; font-weight: 800; }
.post__title a:hover { color: var(--primary-text); }
.post__excerpt { margin: 0; color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post .meta, .row-post .meta { margin-top: auto; }
.post .avatar, .row-post .avatar { border-color: var(--border); width: 26px; height: 26px; }

.load-more { text-align: center; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px;
  transition: .2s;
}
.btn:hover { background: var(--primary-2); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--primary-text); border: 1.5px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn:disabled, .btn:disabled:hover { opacity: .6; cursor: default; background: transparent; color: var(--muted); border-color: var(--border); }

.list { display: flex; flex-direction: column; gap: 20px; }
.row-post { display: grid; grid-template-columns: 280px 1fr; overflow: hidden; transition: box-shadow .25s; }
.row-post:hover { box-shadow: var(--shadow-lg); }
.row-post__thumb { overflow: hidden; }
.row-post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; min-height: 190px; }
.row-post__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ===================== Sidebar ===================== */
.layout__side { display: flex; flex-direction: column; gap: 24px; }
.widget { padding: 22px; }
.popular { display: flex; flex-direction: column; gap: 16px; }
.popular a { display: flex; gap: 12px; align-items: center; position: relative; }
.popular img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.popular__num {
  position: absolute; left: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
  background: var(--primary); border: 2px solid var(--surface);
}
.popular h3 { font-size: 14px; font-weight: 700; line-height: 1.4; }
.popular time { font-size: 12px; color: var(--muted); }
.popular a:hover h3 { color: var(--primary-text); }

.newsletter { text-align: center; background: var(--grad); color: #fff; }
.newsletter__icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.newsletter__icon svg { width: 26px; height: 26px; }
.newsletter h2 { font-size: 20px; font-weight: 800; }
.newsletter p { margin: 6px 0 16px; font-size: 14px; opacity: .88; }
.newsletter form { display: flex; flex-direction: column; gap: 10px; }
.newsletter input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 0; font: inherit; font-size: 14px;
  background: #fff; color: #14142b;
}
.newsletter .btn { background: #14142b; }
.newsletter .btn:hover { background: #000; }
.form-msg { font-size: 13px; min-height: 1em; }

.cats li + li { border-top: 1px solid var(--border); }
.cats a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-weight: 600; font-size: 14px; }
.cats a:hover { color: var(--primary-text); }
.cats b { font-size: 12px; min-width: 30px; text-align: center; padding: 2px 8px; border-radius: 20px; background: var(--surface-2); color: var(--text-2); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--text-2); transition: .2s; }
.tags a:hover { background: var(--primary); color: #fff; }

/* ===================== Footer ===================== */
.footer { background: #0f0f24; color: #b9bad0; padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(auto-fit, minmax(130px, 1fr)); /* adapts to however many columns the footer has */ gap: 32px; padding-bottom: 40px; }
.footer .logo { color: #fff; }
.footer__about { font-size: 14px; margin: 16px 0; max-width: 320px; }
.footer h2 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer ul a:hover { color: #fff; }
.socials--footer a { background: rgba(255, 255, 255, .08); color: #fff; width: 34px; height: 34px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }

/* ===================== Drawer / Search / To-top ===================== */
.overlay { position: fixed; inset: 0; background: rgba(8, 8, 24, .55); backdrop-filter: blur(2px); z-index: 90; opacity: 0; visibility: hidden; transition: .3s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); z-index: 100;
  background: var(--surface); padding: 20px; transform: translateX(100%); transition: transform .35s ease; overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer__nav > li { border-bottom: 1px solid var(--border); }
.drawer__nav a, .drawer__toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 0; font-weight: 700; text-align: left; }
.drawer__nav a:hover, .drawer__toggle:hover { color: var(--primary-text); }
.drawer__sub { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding-left: 14px; }
.drawer__sub a { font-weight: 500; padding: 8px 0; color: var(--text-2); }
.has-sub.is-open .drawer__sub { max-height: 300px; }
.has-sub.is-open .chev { transform: rotate(180deg); }

.search-overlay { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(13, 13, 40, .92); opacity: 0; visibility: hidden; transition: .3s; }
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search__form { display: flex; gap: 10px; width: min(680px, 100%); transform: translateY(20px); transition: .3s; }
.search-overlay.is-open .search__form { transform: translateY(0); }
.search-overlay input { flex: 1; min-width: 0; padding: 16px 18px; border-radius: 12px; border: 0; font: inherit; font-size: 17px; }
.search__close { position: absolute; top: 20px; right: 20px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ===================== Responsive ===================== */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .trending { order: 2; }
  .timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .timeline::before { display: none; }
  .timeline li { padding-bottom: 16px; }
  .layout { grid-template-columns: 1fr; }
  .layout__side { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .nav, .datebox { display: none; }
  .icon-btn--menu { display: grid; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 14px; }
  .container { padding: 0 14px; }

  /* Top bar: only socials, like the mobile design */
  .topbar__left { display: none; }
  .topbar__inner { justify-content: center; min-height: 36px; }

  .ticker__inner { gap: 10px; min-height: 46px; }
  .ticker__badge { font-size: 0; gap: 0; }
  .ticker__date, .ticker__nav { display: none; }
  .ticker__item img { width: 26px; height: 26px; }
  .ticker__title { font-size: 13px; }

  .header { padding: 14px 0; }
  .header__inner { padding: 11px 14px; border-radius: 20px; width: calc(100% - 28px); }
  .logo__img { height: 39px; }
  .header__actions #searchOpen { display: none; }
  /* Mobile header enlarged 40% (icons, logo, pill shape) per founder request, 2026-10-20.
     Base values (36px button / 18px icon glyph / 14px radius) are unchanged for desktop. */
  .icon-btn { width: 50px; height: 50px; border-radius: 14px; }
  .header .icon-btn svg { width: 25px; height: 25px; }

  .hero { gap: 16px; }
  .slider { aspect-ratio: 4 / 5; }
  .slide__body { padding: 20px; }
  .slide__title { font-size: 24px; }
  .slider__dots { top: 16px; right: 16px; bottom: auto; }

  /* Small cards become a swipeable row */
  .mini-row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -14px; padding: 4px 14px 10px; scroll-padding-left: 14px; scrollbar-width: none;
  }
  .mini-row::-webkit-scrollbar { display: none; }
  .mini { flex: 0 0 80%; scroll-snap-align: start; }

  .timeline { grid-template-columns: 1fr; }
  .layout { margin-top: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .row-post { grid-template-columns: 1fr; }
  .row-post__thumb img { aspect-ratio: 16 / 10; min-height: 0; }
  .layout__side { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .search__form { flex-direction: column; }
}

/* ===================== Single post ===================== */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 18px 0; }
.breadcrumb a { color: var(--text-2); font-weight: 600; }
.breadcrumb a:hover { color: var(--primary-text); }
.breadcrumb span.sep { opacity: .6; }
.breadcrumb span.current { color: var(--text); font-weight: 600; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.post-hero { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.post-hero__badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.read-time { font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 10px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.post-hero__title { font-size: clamp(26px, 4vw, 40px); line-height: 1.25; }
.post-hero__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/8; }
.post-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.article { font-size: 16px; line-height: 1.9; color: var(--text); }
.article h2 { font-size: 22px; margin: 36px 0 14px; padding-top: 4px; }
.article p { margin: 0 0 18px; color: var(--text-2); }
.article p:first-of-type { font-size: 17px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li strong { color: var(--text); }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; }
.article th, .article td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article th { background: var(--surface-2); font-weight: 700; }

.callout {
  margin: 0 0 24px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface-2); border-left: 4px solid var(--primary);
}
.callout h3 { font-size: 15px; margin-bottom: 8px; }
.callout ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.callout--disclaimer { border-left-color: var(--hot); }
.callout--disclaimer p { margin: 0; font-size: 14px; color: var(--text-2); }

.refs { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.refs strong { color: var(--text-2); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }

.author-box {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; margin: 28px 0 8px;
  background: var(--surface-2); border-radius: var(--radius); border: 1px solid var(--border);
}
.author-box img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box__name { font-size: 15px; }
.author-box__name a:hover { color: var(--primary-text); }
.author-box p { margin: 6px 0 0; font-size: 14px; color: var(--text-2); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0; }
.post-nav a {
  display: block; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface);
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.post-nav a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.post-nav span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.post-nav strong { font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav .post-nav__next { text-align: right; grid-column: 2; }

.related h2 { margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }

@media (max-width: 700px) {
  .post-hero__media { aspect-ratio: 4/3; }
  .article { font-size: 15px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .post-nav__next { grid-column: 1; text-align: left; }
  .related-grid { grid-template-columns: 1fr; }
  .breadcrumb span.current { max-width: 200px; }
}

/* ===================== About / team ===================== */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0 40px; }
.team-card { padding: 24px; text-align: center; }
.team-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.team-card h3 { font-size: 18px; }
.team-card .team-role { color: var(--primary-text); font-weight: 700; font-size: 13px; margin: 4px 0 14px; }
.team-card p { color: var(--text-2); font-size: 14px; line-height: 1.8; text-align: left; margin: 0; }

.promise-box {
  text-align: center; padding: 36px 24px; border-radius: var(--radius); margin: 32px 0 8px;
  background: var(--grad); color: #fff;
}
.promise-box h2 { font-size: 22px; margin-bottom: 10px; }
.promise-box p { margin: 0 0 6px; opacity: .95; }
.promise-box p:last-child { font-weight: 700; font-size: 17px; margin-top: 10px; }

@media (max-width: 700px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ===================== Contact page ===================== */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; margin: 24px 0 48px; }
.contact-form-card { padding: 28px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 14px; font-weight: 700; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 14.5px; resize: vertical;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.form-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8ca3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.form-field select:invalid { color: var(--muted); }
.contact-form .form-msg { font-size: 14px; color: var(--accent-text); min-height: 1.2em; }
.contact-form .btn { align-self: flex-start; }

.contact-info-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .icon-circle {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--primary-text);
}
.contact-info-item .icon-circle svg { width: 18px; height: 18px; }
.contact-info-item h3 { font-size: 14px; }
.contact-info-item p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }

@media (max-width: 700px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ===================== 404 page ===================== */
.error-page {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 60px 20px 80px; max-width: 560px; margin: 0 auto;
}
.error-page__code {
  font-size: clamp(72px, 14vw, 120px); font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page h1 { font-size: 24px; margin: 16px 0 10px; }
.error-page p { color: var(--text-2); font-size: 15px; margin: 0 0 28px; }
.error-page .search__form { max-width: 440px; width: 100%; margin-bottom: 28px; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ===================== Author profile page ===================== */
.author-hero { display: flex; gap: 24px; align-items: flex-start; margin: 8px 0 40px; }
.author-hero img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--surface); box-shadow: var(--shadow); }
.author-hero__body h1 { font-size: 26px; margin-bottom: 4px; }
.author-hero__role { color: var(--primary-text); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.author-hero__body p { color: var(--text-2); font-size: 15.5px; line-height: 1.85; margin: 0; max-width: 680px; }

@media (max-width: 700px) {
  .author-hero { flex-direction: column; align-items: center; text-align: center; }
  .author-hero img { width: 96px; height: 96px; }
  .author-hero__body p { max-width: 100%; }
}


.media-note {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text-2); font-size: 13.5px; margin-bottom: 28px;
}
.media-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary-text); }

@media (max-width: 920px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .video-grid { grid-template-columns: 1fr; } }

/* ===================== Live courses page ===================== */
.courses-intro { margin: 8px 0 28px; max-width: 720px; }
.courses-intro p { color: var(--text-2); font-size: 16px; line-height: 1.8; margin-top: 10px; }

.course-jumpnav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.course-jumpnav a {
  padding: 9px 16px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 700; color: var(--text-2); transition: .2s;
}
.course-jumpnav a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.course-entry {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; margin-bottom: 28px; overflow: hidden;
  scroll-margin-top: 90px; border-top: 5px solid var(--primary);
}
.course-entry--pillar2 { border-top-color: var(--logo-pink); }
.course-entry__body { padding: 28px 30px; }
.course-entry__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.course-entry__status {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  color: var(--muted); padding: 4px 10px; border-radius: 6px; background: var(--surface-2);
}
.course-entry__status svg { width: 13px; height: 13px; }
.course-entry h2 { font-size: 21px; line-height: 1.35; margin-bottom: 8px; }
.course-entry__pitch { color: var(--text-2); font-size: 14.5px; line-height: 1.8; margin-bottom: 18px; }

.course-entry__highlights { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.course-entry__highlights li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.course-entry__highlights svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent-text); margin-top: 2px; }

.course-entry__presenter { display: flex; align-items: center; gap: 10px; }
.course-entry__presenter img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.course-entry__presenter div { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.course-entry__presenter strong { display: block; font-size: 13.5px; color: var(--text); }

.course-entry__info {
  background: var(--surface-2); padding: 28px 26px; display: flex; flex-direction: column; gap: 16px;
  border-left: 1px solid var(--border);
}
.course-entry__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.course-entry__facts div { font-size: 12px; color: var(--muted); }
.course-entry__facts strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); margin-top: 2px; }
.course-entry__price { font-size: 26px; font-weight: 800; color: var(--primary-text); }
.course-entry__price span { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: line-through; margin-right: 6px; }
.course-entry__seats { font-size: 12.5px; color: var(--hot-text); font-weight: 700; }
.course-entry__info .btn { width: 100%; }

.course-section { margin: 44px 0; }
.course-section h2 { font-size: 22px; margin-bottom: 16px; }

.faq-item { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq-item summary {
  cursor: pointer; padding: 14px 4px; font-weight: 700; font-size: 14.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--primary-text); flex-shrink: 0; transition: transform .25s ease; }
.faq-item[open] summary::after { content: "+"; transform: rotate(135deg); }
.faq-item__panel { max-height: 0; overflow: hidden; transition: max-height .3s ease, opacity .25s ease; opacity: 0; }
.faq-item[open] .faq-item__panel { opacity: 1; }
.faq-item__panel p { margin: 0 0 16px; padding: 0 4px; color: var(--text-2); font-size: 14px; line-height: 1.8; }

@media (max-width: 820px) {
  .course-entry { grid-template-columns: 1fr; }
  .course-entry__info { border-left: none; border-top: 1px solid var(--border); }
}


/* ===================== WordPress additions ===================== */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus, .skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100000;
  top: 8px; left: 8px; padding: 12px 20px; background: var(--surface); color: var(--text); border-radius: 8px; box-shadow: var(--shadow-lg);
}
/* Sticky header sits below the WP admin bar when logged in */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
/* Posts without a featured image */
.thumb-ph { display: block; width: 100%; height: 100%; min-height: 64px; background: linear-gradient(135deg, var(--surface-2), var(--border)); }
/* Homepage hero when no post is marked Trending */
.hero--no-trending { grid-template-columns: 1fr; }
/* Footer widget column matches the hand-built columns */
.footer__widget ul { padding: 0; list-style: none; }

/* Single post: layout without the homepage's top gap */
.layout--flush { margin-top: 0; }

/* Article block styles (editor: Group > Callout / Callout: disclaimer, Paragraph > References) mirror .callout / .refs */
.article .is-style-callout, .article .is-style-callout-disclaimer {
  margin: 0 0 24px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface-2); border-left: 4px solid var(--primary);
}
.article .is-style-callout-disclaimer { border-left-color: var(--hot); }
.article .is-style-callout h3 { font-size: 15px; margin-bottom: 8px; }
.article .is-style-callout ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.article .is-style-callout-disclaimer p { margin: 0; font-size: 14px; color: var(--text-2); }
.article p.is-style-refs { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.article p.is-style-refs strong { color: var(--text-2); }
/* Content the editor can insert beyond the mockup's text: images, quotes, links */
.article a { color: var(--primary-text); text-decoration: underline; text-underline-offset: 2px; }
.article img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article figure { margin: 0 0 22px; }
.article figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.article blockquote { margin: 0 0 22px; padding: 4px 0 4px 18px; border-left: 4px solid var(--logo-pink); color: var(--text-2); }
.article .alignleft { float: left; margin: 0 20px 14px 0; }
.article .alignright { float: right; margin: 0 0 14px 20px; }
.article .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.article::after { content: ""; display: table; clear: both; }

/* Mockup bug: `.meta strong` is white for the on-image slider byline, which made the author name
   invisible on light backgrounds (single post). Only the .meta--light variant keeps white. */
.meta:not(.meta--light) strong { color: var(--text); }

/* ===================== Archives (category, subcategory, tag) ===================== */
.archive-desc { color: var(--text-2); font-size: 16px; max-width: 760px; }
.archive-desc p { margin: 0 0 8px; }
.archive-empty { color: var(--text-2); padding: 24px 0; }
/* Tag label in the archive hero: neutral, not tied to a pillar colour */
.badge--tag { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

/* Numbered pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 36px 0 8px; }
.pagination .page-numbers {
  min-width: 40px; height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border); transition: .2s;
}
.pagination a.page-numbers:hover { color: var(--primary-text); border-color: var(--primary); transform: translateY(-1px); }
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-numbers.dots { background: transparent; border-color: transparent; min-width: 24px; padding: 0; }

/* ===================== Search results + 404 ===================== */
/* In-page search forms (the base .search__form styling is tuned for the full-screen overlay) */
.post-hero .search__form, .error-page .search__form { transform: none; }
.post-hero .search__form { max-width: 520px; margin-top: 4px; }
.post-hero .search__form input, .error-page .search__form input {
  flex: 1; min-width: 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px;
}
.post-hero .search__form input:focus, .error-page .search__form input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
/* "No results" box */
.callout--empty { text-align: center; }
.callout--empty p { color: var(--text-2); margin: 8px 0 0; }

/* ===================== About + Contact pages ===================== */
.page-lead { color: var(--text-2); font-size: 16px; max-width: 760px; margin: 0; }
.page-lead[lang="en"] { font-size: 18px; font-weight: 600; }
.contact-section { margin-top: 0; padding-bottom: 20px; }
/* Honeypot: invisible to people, tempting to bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Team grid + promise box inside article content: undo the article typography that would otherwise leak in */
.article .team-card p { font-size: 14px; line-height: 1.8; text-align: left; margin: 0; }
.article .team-card img { border-radius: 50%; }
.article .team-card a { color: inherit; text-decoration: none; }
.article .team-card a:hover { color: var(--primary-text); }
.article .team-grid { margin: 24px 0 40px; }
.article h2.block-title { font-size: 18px; margin: 36px 0 18px; }
/* Block style: Group > Promise (editor), mirrors .promise-box */
.article .is-style-promise {
  text-align: center; padding: 36px 24px; border-radius: var(--radius); margin: 32px 0 8px;
  background: var(--grad); color: #fff;
}
.article .is-style-promise h2 { font-size: 22px; margin: 0 0 10px; padding: 0; color: #fff; }
.article .is-style-promise p { margin: 0 0 6px; color: #fff; opacity: .95; }
.article .is-style-promise p:last-child { font-weight: 700; font-size: 17px; margin-top: 10px; }

/* ===================== Live courses ===================== */
.container--narrow { max-width: 980px; }
/* Heading blocks inside the FAQ keep the .block-title look */
.course-faq h2 { font-size: 22px; margin-bottom: 16px; }
.course-faq .faq-item__panel > p { margin: 0 0 16px; padding: 0 4px; color: var(--text-2); font-size: 14px; line-height: 1.8; }

/* ===================== Accessibility ===================== */
/* Pause / play controls for the auto-rotating ticker and hero slider */
.ticker__pause { margin-left: 6px; flex-shrink: 0; }
.ticker__pause .i-play, .ticker__pause.is-paused .i-pause { display: none; }
.ticker__pause.is-paused .i-play { display: block; fill: currentColor; stroke: none; }
.slider__pause {
  position: absolute; top: 16px; left: 16px; z-index: 4; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .4);
  cursor: pointer; transition: background .2s;
}
.slider__pause:hover { background: rgba(0, 0, 0, .78); }
.slider__pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.slider__pause .i-play, .slider__pause.is-paused .i-pause { display: none; }
.slider__pause.is-paused .i-play { display: block; fill: currentColor; stroke: none; }
/* Mobile menu: the "all posts" link for a category that has sub-items */
.drawer__sub .drawer__all a { font-weight: 700; color: var(--primary-text); }
/* Keyboard focus is always visible; white on the purple/dark surfaces where purple would vanish */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--primary-text); outline-offset: 2px;
}
.header :focus-visible, .newsletter :focus-visible, .promise-box :focus-visible, .footer :focus-visible, .slider :focus-visible, .is-style-promise :focus-visible {
  outline-color: #fff;
}
/* People who ask their device for less motion get no animation and no auto-rotation (the scripts honour it too) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* Site name shown as text where a custom logo has no matching variant (mobile menu, light mode) */
.logo__text { font-size: 22px; font-weight: 800; color: var(--text); height: auto; line-height: 1.2; }

/* Header and footer are block template parts: keep their paragraphs and headings flush like the old markup */
.topbar p, .footer__bottom p { margin: 0; }
.topbar__msg { display: flex; align-items: center; gap: 10px; }
.topbar__msg::before {
  content: ""; width: 15px; height: 15px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21a1 1 0 0 1-1 1h-5v-7h-6v7H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21a1 1 0 0 1-1 1h-5v-7h-6v7H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* WordPress wraps a Group's children in an extra inner div; make it invisible to layout so flex/grid rows work as designed */
.topbar .wp-block-group__inner-container, .header .wp-block-group__inner-container, .footer .wp-block-group__inner-container { display: contents; }

/* Live courses block / [shiddhanto_courses]: the full course cards */
.course-entries__all { margin: 4px 0 0; text-align: center; }
.course-entries { container-type: inline-size; }
.course-entry a.btn, .course-entries__all a.btn { color: #fff; } /* beats the page-content link colour */
@container (max-width: 760px) {
  .course-entry { grid-template-columns: 1fr; }
  .course-entry__info { border-left: 0; border-top: 1px solid var(--border); }
}
/* inside page content the card keeps its own type sizes (page text styles would enlarge it) */
.course-entries { line-height: 1.6; }
.course-entries .course-entry__pitch, .article .course-entries .course-entry__pitch { font-size: 14.5px; line-height: 1.8; }

/* Pre-filled pages: the page content is the page. Designed sections keep their own look inside it. */
.page-blocks > :first-child { margin-top: 0; }
.page-blocks .contact-layout, .page-blocks .course-entry, .page-blocks .course-jumpnav { text-align: left; }

/* YouTube click-to-play (inc/youtube-embed.php; the swap to the real player is in main.js) */
.yt-embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 24px 0; }
.yt-embed .yt-embed__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.yt-embed .yt-embed__btn img { width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; display: block; }
.yt-embed .yt-embed__play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--primary); display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: transform .2s;
}
.yt-embed .yt-embed__play svg { width: 28px; height: 28px; margin-left: 3px; fill: currentColor; stroke: none; }
.yt-embed .yt-embed__btn:hover .yt-embed__play { transform: scale(1.08); }
.yt-embed .yt-embed__btn:focus-visible { outline: 3px solid var(--primary-text); outline-offset: -3px; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; border: 0; }
.yt-embed .yt-embed__fallback { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(0,0,0,.78); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 13px; }
/* Inside core's embed block, core already reserves the 16:9 space, so fill that space (the way core treats its own iframes) instead of adding a second box on top. */
.wp-has-aspect-ratio .wp-block-embed__wrapper > .yt-embed { position: absolute; inset: 0; aspect-ratio: auto; margin: 0; }
figure.wp-block-embed .yt-embed { margin: 0; }
@media (prefers-reduced-motion: reduce) { .yt-embed .yt-embed__play { transition: none; } }

/* Share buttons (template-parts/share-buttons.php; copy + phone share sheet are in main.js) */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 28px 0 8px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share__label { font-weight: 700; font-size: 14px; color: var(--text-2); }
.share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share .share__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px;
  font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s;
}
.share .share__btn:hover { background: var(--border); }
.share .share__btn:focus-visible { outline: 3px solid var(--primary-text); outline-offset: 2px; }
.share .share__btn[hidden] { display: none; }
.share .share__btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.share .share__btn--wa svg { fill: #16a34a; stroke: none; }
.share .share__btn--fb svg { fill: #1877f2; stroke: none; }
@media (max-width: 700px) {
  .share__btns { flex: 1 1 100%; }
  .share .share__btn { flex: 1 1 auto; justify-content: center; }
}

/* Promote one course (inc/courses.php shiddhanto_course_promo_html): the same card as the Live courses page, with breathing room inside a post */
.course-promo { margin: 28px 0; }
/* Compact course promo (template-parts/course-promo.php) */
.course-promo-card { padding: 20px 22px; border-top: 5px solid var(--primary); }
.course-promo-card--pillar2 { border-top-color: var(--logo-pink); }
.course-promo-card .course-entry__top { margin-bottom: 10px; }
.course-promo-card__title { margin: 0 0 6px; font-size: 18px; font-weight: 800; line-height: 1.4; color: var(--text); }
.course-promo-card__pitch { margin: 0 0 14px; font-size: 14.5px; line-height: 1.75; color: var(--text-2); }
.course-promo-card__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; }
.course-promo-card .course-entry__price { font-size: 22px; }
.article .course-promo-card a.btn { color: #fff; text-decoration: none; }
@media (max-width: 700px) { .course-promo-card__foot .btn { flex: 1 1 100%; } }

/* Reviewed-by badge (inc/reviewed-by.php) */
.reviewed-by { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0; padding: 14px 16px; border: 1px solid var(--border); border-inline-start: 4px solid var(--primary); border-radius: var(--radius-sm); background: var(--surface); }
.reviewed-by__icon { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--primary-text); }
.reviewed-by__icon svg { width: 22px; height: 22px; }
.reviewed-by__text { min-width: 0; line-height: 1.5; font-size: 14px; color: var(--text-2); }
.reviewed-by__label, .reviewed-by__role, .reviewed-by__when { display: block; font-size: 12.5px; color: var(--muted); }
.reviewed-by__name { display: block; font-size: 16px; font-weight: 800; color: var(--text); }
.reviewed-by__name a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.reviewed-by__role { font-size: 13.5px; color: var(--text-2); }
.reviewed-by__when { margin-top: 4px; }

/* Key points box: the block style "Key points box" on a Group (starter pattern in inc/patterns.php) */
.is-style-key-points { margin: 24px 0; padding: 18px 20px 16px; background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--primary); border-radius: var(--radius-sm); }
.is-style-key-points :is(h2, h3, h4), .article .is-style-key-points :is(h2, h3, h4) { margin: 0 0 12px; padding: 0; font-size: 16px; line-height: 1.4; font-weight: 800; color: var(--text); }
.is-style-key-points ul, .article .is-style-key-points ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.is-style-key-points li, .article .is-style-key-points li { position: relative; padding-inline-start: 28px; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.is-style-key-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 18px; height: 18px; background: var(--primary-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Helpline box: the block style "Helpline box" on a Group (starter pattern in inc/patterns.php). Phone numbers are big tap-to-call buttons. */
.is-style-helpline { margin: 24px 0; padding: 18px 20px; background: var(--surface-2); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid var(--border); border-inline-start: 4px solid var(--accent); border-radius: var(--radius-sm); }
.is-style-helpline :is(h2, h3, h4), .article .is-style-helpline :is(h2, h3, h4) { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 0; font-size: 18px; line-height: 1.4; font-weight: 800; color: var(--text); }
.is-style-helpline :is(h2, h3, h4)::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.is-style-helpline p, .article .is-style-helpline p { margin: 0 0 12px; font-size: 15px; line-height: 1.75; color: var(--text-2); }
.is-style-helpline p:last-child, .article .is-style-helpline p:last-child { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.is-style-helpline ul, .article .is-style-helpline ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.is-style-helpline li, .article .is-style-helpline li { padding: 14px 0; font-size: 15px; line-height: 1.7; color: var(--text); border-top: 1px solid var(--border); }
.is-style-helpline li:first-child, .article .is-style-helpline li:first-child { border-top: 0; padding-top: 4px; }
/* every phone number is its own big, thumb-sized button on its own line (44px minimum) */
.is-style-helpline a[href^="tel:"], .article .is-style-helpline a[href^="tel:"] { display: flex; align-items: center; justify-content: center; width: fit-content; min-width: 44px; min-height: 44px; margin: 8px 0; padding: 6px 20px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 18px; font-weight: 800; letter-spacing: .02em; text-decoration: none; }
.is-style-helpline a[href^="tel:"]:focus-visible { outline: 3px solid var(--primary-text); outline-offset: 2px; }

/* References box: the block style "References box" on a Group (starter pattern in inc/patterns.php; citations in inc/references.php) */
.is-style-references { margin: 32px 0 8px; padding: 18px 20px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.is-style-references :is(h2, h3, h4), .article .is-style-references :is(h2, h3, h4) { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0; font-size: 16px; line-height: 1.4; font-weight: 800; color: var(--text); }
.is-style-references :is(h2, h3, h4)::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; background: var(--primary-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.is-style-references ol, .article .is-style-references ol, .is-style-references ul, .article .is-style-references ul { list-style: bengali; margin: 0; padding-inline-start: 26px; display: flex; flex-direction: column; gap: 10px; }
.is-style-references ul, .article .is-style-references ul { list-style: disc; }
.is-style-references li, .article .is-style-references li { padding-inline-start: 2px; font-size: 14px; line-height: 1.7; color: var(--text-2); overflow-wrap: anywhere; }
.is-style-references li::marker { color: var(--muted); font-weight: 700; }
.is-style-references a, .article .is-style-references a { color: var(--primary-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Newsletter signup inside an article (block "Newsletter signup", inc/newsletter.php): the sidebar card, adapted to sit in article text */
.newsletter--inline { margin: 28px 0; }
.newsletter--inline .newsletter__title, .article .newsletter--inline .newsletter__title { margin: 0 0 6px; font-size: 20px; font-weight: 800; line-height: 1.4; color: #fff; opacity: 1; }
.newsletter--inline .newsletter__text, .article .newsletter--inline .newsletter__text { margin: 0 0 16px; font-size: 14.5px; line-height: 1.7; color: #fff; opacity: .9; }
@media (min-width: 600px) {
  .newsletter--inline form { flex-direction: row; flex-wrap: wrap; }
  .newsletter--inline input[type="email"] { flex: 1 1 260px; width: auto; }
  .newsletter--inline .btn { flex: 0 0 auto; }
  .newsletter--inline .form-msg { flex: 1 1 100%; }
}

/* Read this next (inc/read-next.php): one single link stretched over the whole card, so the whole card is a big tap target */
.read-next { position: relative; display: flex; align-items: center; gap: 14px; margin: 28px 0; padding: 12px; }
.read-next .read-next__thumb { flex: 0 0 96px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.read-next .read-next__thumb img, .read-next .read-next__thumb .thumb-ph { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.read-next__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.read-next__label { font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--primary-text); }
.read-next .read-next__title, .article .read-next .read-next__title { font-size: 16px; font-weight: 800; line-height: 1.45; color: var(--text); text-decoration: none; }
.read-next .read-next__title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.read-next .read-next__title:focus-visible { outline: none; }
.read-next .read-next__title:focus-visible::after { outline: 3px solid var(--primary-text); outline-offset: 2px; }
.read-next__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 380px) { .read-next .read-next__thumb { flex-basis: 84px; } }
