/* ========================================
   AdsPower Blog Clone - Complete Stylesheet
   Pure CSS with semantic class names
   ======================================== */

/* --- CSS Variables --- */
:root {
  --blue: #1E4DFF;
  --blue-hover: #004EFF;
  --blue-dark: #0049C8;
  --blue-btn: #2E6EFF;
  --blue-light: #D2DBFF;
  --blue-bg: #F4F6FF;
  --text: #1F2542;
  --text-gray: #666E94;
  --text-muted: #8F92A0;
  --text-disabled: #CBCCD1;
  --placeholder: #BCBEC6;
  --border-light: rgba(0,0,0,0.04);
  --footer-bg: #000343;
  --white: #fff;
  --black: #000;
  --shadow-nav: 0 -3px 22px rgba(0,0,0,.1);
  --shadow-card: 0 6px 18px rgba(175,179,196,.2);
  --shadow-dropdown: 0 8px 24px rgba(160,164,177,.2);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --font-body: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --font-heading: 'Manrope','AlibabaPuHui','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --max-w: 1200px;
  --header-h: 72px;
  --header-h-mobile: 52px;
  --transition: .3s ease;
}

/* --- Reset --- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 14px; color: var(--text); background: var(--white); min-height: 100vh; display: flex; flex-direction: column; }
h1,h2,h3,h4,h5,h6 { font-size: inherit; font-weight: inherit; }
h1,h2 { font-family: var(--font-heading); }
h1 { font-weight: 800 !important; }
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; border: 0; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
input { font: inherit; color: inherit; border: none; outline: none; background: transparent; }
input::placeholder { color: var(--placeholder); }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: none; }
::-webkit-scrollbar-thumb { background: rgba(31,37,66,.2); border-radius: 12px; }
::-webkit-scrollbar-thumb:hover { background: rgba(31,37,66,.5); }

/* --- Layout Helpers --- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; width: 100%; }
@media(min-width:1200px) { .wrap { padding: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- SVG Icon Base --- */
.icon { display: inline-block; width: 24px; height: 24px; vertical-align: middle; fill: currentColor; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 18px; height: 18px; }

/* =====================
   TOP BANNER
   ===================== */
.top-banner { position: fixed; top: 0; left: 0; z-index: 50; width: 100%; }
.top-banner__bar { display: block; background: #322D74; }
.top-banner__link { display: flex; align-items: center; justify-content: center; width: 100%; cursor: pointer; }
.top-banner__img { display: none; width: 100%; height: auto; }
@media(max-width:500px)                        { .top-banner__img--sm { display: block; } }
@media(min-width:501px) and (max-width:992px)  { .top-banner__img--md { display: block; } }
@media(min-width:993px) and (max-width:1920px) { .top-banner__img--lg { display: block; } }
@media(min-width:1921px)                       { .top-banner__img--xl { display: block; } }

/* =====================
   HEADER
   ===================== */
.header { position: sticky; top: 0; z-index: 1000; height: var(--header-h); display: flex; justify-content: center; background: var(--white); box-shadow: var(--shadow-nav); }
.header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--max-w); padding: 0 12px; background: var(--white); }
@media(min-width:1200px) { .header__inner { padding: 0; } }

/* Logo */
.header__logo { display: flex; align-items: center; margin-right: 56px; height: 100%; }
.header__logo img { height: var(--header-h); width: auto; }

/* Desktop Nav */
.header__nav { display: flex; flex: 1; height: 100%; align-items: center; }
.nav { display: flex; height: 100%; width: 100%; align-items: center; justify-content: space-between; }
.nav__list { display: flex; height: 100%; align-items: center; gap: 0; }
.nav__item { position: relative; display: flex; height: 100%; align-items: center; padding: 0 12px; font-size: 1rem; color: var(--text); cursor: pointer; transition: color var(--transition); white-space: nowrap; }
.nav__item:hover, .nav__item--active { color: var(--blue-hover); }
.nav__item .icon-sm { margin-left: 4px; transition: transform var(--transition); transform: rotate(90deg); }
.nav__item:hover .icon-sm { transform: rotate(270deg); }

/* Nav Actions */
.nav__actions { display: flex; align-items: center; gap: 12px; height: 100%; }
.nav__link { font-size: 1rem; color: var(--text); transition: color var(--transition); white-space: nowrap; }
.nav__link:hover { color: var(--blue-hover); }
.btn-register { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--blue-btn); color: var(--white); font-size: 14px; transition: background var(--transition); }
.btn-register:hover { background: var(--blue-dark); }

/* Language Switcher */
.lang { position: relative; cursor: pointer; padding: 16px 0; }
.lang__toggle { display: flex; align-items: center; gap: 4px; color: var(--text); transition: color var(--transition); }
.lang__toggle:hover { color: var(--blue-hover); }
.lang__toggle .icon { width: 20px; height: 20px; }
.lang__panel { position: absolute; top: 100%; right: 0; min-width: 120px; max-height: 0; overflow: hidden; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-dropdown); transition: max-height .35s ease, opacity .25s ease; opacity: 0; z-index: 100; }
.lang:hover .lang__panel { max-height: 400px; opacity: 1; }
.lang__option { padding: 8px 16px; font-size: 14px; white-space: nowrap; transition: background var(--transition); cursor: pointer; }
.lang__option:hover { background: var(--blue-bg); }

/* Mobile Menu */
.header__mobile { display: none; align-items: center; gap: 8px; }
.hamburger { position: relative; width: 24px; height: 24px; cursor: pointer; }
.hamburger span { position: absolute; left: 4px; width: 16px; height: 2px; background: var(--black); border-radius: var(--radius-full); transition: all var(--transition); }
.hamburger span:nth-child(1) { top: 5px; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 17px; }
.hamburger.is-open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Mobile Accordion Nav */
.mobile-nav { position: absolute; top: var(--header-h-mobile); left: 0; width: 100%; max-height: 0; overflow: hidden; background: var(--white); box-shadow: var(--shadow-dropdown); transition: max-height .4s ease; z-index: 999; }
.mobile-nav.is-open { max-height: calc(100vh - var(--header-h-mobile)); overflow-y: auto; }
.accordion { border-bottom: 1px solid var(--border-light); }
.accordion__head { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 12px; font-size: 1rem; color: var(--text); cursor: pointer; }
.accordion__head .icon-sm { transition: transform var(--transition); }
.accordion__head.is-open .icon-sm { transform: rotate(90deg); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion__body.is-open { max-height: 600px; }
.accordion__link { display: flex; align-items: center; height: 56px; padding: 0 12px 0 40px; font-size: 14px; color: var(--text); transition: background var(--transition); }
.accordion__link:hover { background: var(--blue-bg); }
.accordion__link .icon { margin-right: 12px; width: 32px; height: 32px; }

@media(max-width:991px) {
  .header { height: var(--header-h-mobile); }
  .header__logo { margin-right: 16px; }
  .header__logo img { height: var(--header-h-mobile); }
  .header__nav { display: none; }
  .header__mobile { display: flex; }
}

/* =====================
   HERO SECTION
   ===================== */
.hero { background: linear-gradient(180deg, var(--blue-bg) 0%, var(--white) 100%); padding: 20px 0 40px; }
.hero__title { text-align: center; font-size: 50px; font-weight: 700; line-height: 72px; color: var(--text); }
.hero__subtitle { margin-top: 12px; text-align: center; font-size: 20px; line-height: 1.6; color: var(--text); }
.hero__search { display: flex; justify-content: center; margin-top: 24px; padding: 0 20px; }
.search-box { display: flex; align-items: center; width: 100%; max-width: 600px; height: 52px; padding: 0 20px; background: var(--white); border: 1px solid #E8EAF0; border-radius: var(--radius-xl); box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: border-color var(--transition), box-shadow var(--transition); }
.search-box:hover, .search-box:focus-within { border-color: var(--blue); box-shadow: 0 2px 12px rgba(30,77,255,.1); }
.search-box .icon { flex-shrink: 0; margin-right: 8px; color: var(--blue-light); }
.search-box input { flex: 1; height: 24px; font-size: 1rem; }

@media(max-width:768px) {
  .hero__title { font-size: 32px; line-height: 44px; }
  .hero__subtitle { font-size: 16px; }
}
@media(max-width:500px) {
  .hero__title { font-size: 26px; line-height: 36px; }
}

/* =====================
   CATEGORY NAV
   ===================== */
.category-nav { background: var(--blue-bg); padding-top: 18px; }
.category-nav__list { display: flex; flex-wrap: wrap; gap: 0; }
.category-nav__item { display: inline-flex; align-items: center; margin-right: 40px; margin-bottom: 18px; font-size: 1rem; color: var(--text-muted); white-space: nowrap; transition: color var(--transition); }
.category-nav__item:hover { color: var(--text); text-decoration: underline; }
.category-nav__item--active { color: var(--text); font-weight: 500; }
.category-nav__item--active:hover { text-decoration: none; }
.category-nav__item--active .icon { margin-left: 2px; }

@media(max-width:768px) {
  .category-nav__item { margin-right: 20px; font-size: 14px; }
}
@media(max-width:500px) {
  .category-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .category-nav__list { flex-wrap: nowrap; padding-bottom: 4px; }
  .category-nav__item { margin-right: 16px; flex-shrink: 0; }
}

/* =====================
   BLOG GRID
   ===================== */
.blog-section { background: var(--white); padding: 60px 0 100px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 30px; }

/* Blog Card */
.blog-card { width: 100%; }
.blog-card__cover { position: relative; display: block; overflow: hidden; border-radius: var(--radius-xl); }
.blog-card__img-wrap { width: 100%; aspect-ratio: 380/220; overflow: hidden; }
.blog-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.blog-card:hover .blog-card__img { transform: scale(1.05); }
.blog-card__date { position: absolute; bottom: 12px; right: 12px; padding: 2px 8px; background: rgba(0,0,0,.6); color: var(--white); font-size: 12px; border-radius: 4px; }
.blog-card__category { display: block; margin-top: 4px; font-size: 1rem; color: var(--blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: text-decoration var(--transition); }
.blog-card__category:hover { text-decoration: underline; }
.blog-card__title { margin-top: 16px; font-size: 24px; font-weight: 500; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-height: 72px; transition: text-decoration var(--transition); }
.blog-card:hover .blog-card__title { text-decoration: underline; }
.blog-card__title a { color: inherit; }
.blog-card__excerpt { margin-top: 8px; font-size: 1rem; line-height: 1.5; color: var(--text-gray); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-height: 72px; }

@media(max-width:992px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}
@media(max-width:600px) {
  .blog-grid { grid-template-columns: 1fr; gap: 40px 0; }
  .blog-section { padding: 40px 0 60px; }
}

/* =====================
   PAGINATION
   ===================== */
.pagination { display: flex; justify-content: center; align-items: center; padding-top: 60px; gap: 4px; }
.pagination__btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-full); font-size: 14px; color: var(--text-muted); transition: all var(--transition); }
.pagination__btn:hover { color: var(--text); background: var(--blue-bg); }
.pagination__btn--active { color: var(--text); font-weight: 600; }
.pagination__btn--disabled { color: var(--text-disabled); cursor: not-allowed; background: #F3F3F3; }
.pagination__btn--disabled:hover { color: var(--text-disabled); background: #F3F3F3; }
.pagination__arrow { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-full); transition: all var(--transition); }
.pagination__arrow--prev { margin-right: 8px; background: #F3F3F3; color: var(--text-disabled); }
.pagination__arrow--next { margin-left: 8px; background: var(--blue); color: var(--white); }
.pagination__arrow--next:hover { background: var(--blue-dark); }
.pagination__arrow .icon-lg { width: 18px; height: 18px; }

/* =====================
   CTA BANNER
   ===================== */
.cta { display: flex; align-items: center; justify-content: center; min-height: 420px; padding: 40px 20px; background: linear-gradient(135deg, #161F49 0%, #0D1333 50%, #1a1040 100%); }
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: var(--max-w); }
.cta__title { font-size: 58px; font-weight: 700; color: var(--white); line-height: 1.3; }
.cta__btn { display: inline-flex; align-items: center; margin-top: 20px; height: 48px; padding: 0 44px; border-radius: var(--radius-xl); background: var(--white); color: #161F49; font-size: 1rem; font-weight: 500; transition: transform var(--transition), box-shadow var(--transition); }
.cta__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }

@media(max-width:768px) {
  .cta { min-height: 300px; }
  .cta__title { font-size: 36px; }
}
@media(max-width:500px) {
  .cta__title { font-size: 28px; }
  .cta__btn { padding: 0 32px; height: 44px; }
}

/* =====================
   FLOATING WIDGETS
   ===================== */
.floating { position: fixed; right: 25px; bottom: 93px; z-index: 10000; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* Back to Top */
.back-to-top { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-full); background: var(--text); color: var(--white); opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .4s ease, background var(--transition); cursor: pointer; pointer-events: none; }
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--blue); }

/* Activity Popover */
.activity { position: relative; cursor: pointer; }
.activity__trigger { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-full); transition: filter var(--transition); }
.activity__trigger img { width: 48px; height: 48px; }
.activity:hover .activity__trigger { filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
.activity__popup { position: absolute; right: 56px; top: 0; width: 208px; height: 262px; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.15); opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.activity:hover .activity__popup { opacity: 1; transform: translateX(0); pointer-events: auto; }
.activity__popup img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile Bottom Banner */
.mobile-banner { display: none; position: fixed; bottom: 8px; left: 0; z-index: 10000000; width: 100%; padding: 0 8px; transform: translateX(-100%); transition: transform .5s ease; }
.mobile-banner.is-visible { transform: translateX(0); }
.mobile-banner__inner { position: relative; overflow: hidden; border-radius: var(--radius-xl); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.mobile-banner__inner img { width: 100%; }
.mobile-banner__link { position: absolute; right: 0; top: 0; width: 32%; height: 100%; }

@media(max-width:768px) {
  .mobile-banner { display: block; }
}

/* =====================
   FOOTER
   ===================== */
.footer { background: var(--footer-bg); }

/* Desktop Footer */
.footer__desktop { padding: 80px 0 40px; }
.footer__desktop-inner { display: flex; gap: 16px; }
.footer__brand { flex-shrink: 0; margin-right: 60px; }
.footer__brand img { width: 232px; height: auto; }
.footer__social { display: grid; grid-template-columns: repeat(6, 34px); gap: 12px 12px; margin-top: 12px; }
.footer__social-link { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-md); background: rgba(255,255,255,.13); transition: background var(--transition); }
.footer__social-link:hover { background: rgba(255,255,255,.25); }
.footer__social-link img { width: 16px; height: 16px; }
.footer__columns { display: flex; flex: 1; gap: 16px; }
.footer__col { flex: 1; min-width: 0; }
.footer__col-title { margin-bottom: 24px; font-size: 18px; font-weight: 600; color: var(--white); }
.footer__col-link { display: block; margin-top: 16px; font-size: 14px; color: var(--white); opacity: .7; transition: opacity var(--transition); }
.footer__col-link:hover { opacity: 1; }

/* Mobile Footer */
.footer__mobile { display: none; padding: 40px 20px; }
.footer__mobile-logo { margin-bottom: 24px; }
.footer__mobile-logo img { width: 180px; }
.footer__mobile-accordion { border-bottom: 1px solid rgba(255,255,255,.11); }
.footer__mobile-head { display: flex; align-items: center; justify-content: space-between; height: 60px; color: var(--white); font-size: 18px; font-weight: 600; cursor: pointer; }
.footer__mobile-head .icon-sm { color: var(--white); transition: transform var(--transition); }
.footer__mobile-head.is-open .icon-sm { transform: rotate(180deg); }
.footer__mobile-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.footer__mobile-body.is-open { max-height: 400px; }
.footer__mobile-body a { display: block; padding: 8px 0; font-size: 14px; color: var(--white); opacity: .7; }
.footer__mobile-body a:hover { opacity: 1; }
.footer__mobile-social { display: flex; gap: 12px; margin-top: 24px; }

/* Footer Bottom */
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; flex-wrap: wrap; gap: 8px; }
.footer__copyright { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.footer__copyright span { font-size: 12px; color: var(--white); opacity: .4; }
.footer__copyright a { font-size: 12px; color: var(--white); opacity: .4; transition: opacity var(--transition); }
.footer__copyright a:hover { opacity: .7; }
.footer__legal { display: flex; gap: 16px; }
.footer__legal a { font-size: 14px; color: var(--white); opacity: .7; transition: opacity var(--transition); }
.footer__legal a:hover { opacity: 1; }

@media(max-width:874px) {
  .footer__desktop { display: none; }
  .footer__mobile { display: block; }
}
@media(max-width:600px) {
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* =====================
   ANIMATIONS & KEYFRAMES
   ===================== */

/* Loading bar (Nuxt-style) */
@keyframes loading-bar {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(.6); }
  100% { transform: scaleX(1); }
}
.loading-bar { position: fixed; top: 0; left: 0; z-index: 99999; width: 100%; height: 3px; background: var(--blue); transform-origin: left; animation: loading-bar .8s ease forwards; opacity: 0; pointer-events: none; }
.loading-bar.is-active { opacity: 1; }

/* Fade in up (for scroll reveal) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-in-up.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger children animation */
.stagger-children > * { opacity: 0; transform: translateY(20px); transition: opacity .4s ease, transform .4s ease; }
.stagger-children.is-visible > *:nth-child(1) { transition-delay: .05s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: .1s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: .15s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: .2s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: .25s; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: .3s; }
.stagger-children.is-visible > *:nth-child(7) { transition-delay: .35s; }
.stagger-children.is-visible > *:nth-child(8) { transition-delay: .4s; }
.stagger-children.is-visible > *:nth-child(9) { transition-delay: .45s; }
.stagger-children.is-visible > * { opacity: 1; transform: translateY(0); }

/* Pulse (for activity icon) */
@keyframes pulse-ring {
  0% { transform: scale(.8); opacity: .5; }
  80%,100% { transform: scale(1.4); opacity: 0; }
}
.activity__trigger::before { content: ''; position: absolute; inset: -4px; border-radius: var(--radius-full); background: rgba(30,77,255,.15); animation: pulse-ring 2s ease infinite; pointer-events: none; }

/* =====================
   PIXEL-PERFECT FIXES
   ===================== */

/* Fix 1: Header negative margin — content slides under header */
.header { margin-bottom: calc(var(--header-h) * -1); }
@media(max-width:991px) { .header { margin-bottom: calc(var(--header-h-mobile) * -1); } }

/* Fix 2: Hero subtitle line-height 32→28 */
.hero__subtitle { line-height: 28px; }

/* Fix 3: Register button 14px/400→16px/500 */
.btn-register { font-size: 16px; font-weight: 500; }

/* Fix 4: Pagination active weight 600→400 */
.pagination__btn { font-weight: 400; }
.pagination__btn--active { font-weight: 400; }

/* Fix 5: Footer col title 18px→16px, kill extra margin */
.footer__col-title { font-size: 16px; line-height: 24px; margin-bottom: 0; }
/* Footer col links: first link needs mt-24 to replace title margin */
.footer__col-link:first-of-type { margin-top: 24px; }

/* Fix 6: Footer desktop min-height */
.footer__desktop { min-height: 540px; padding: 80px 0 40px; }

/* Fix 7: Card excerpt max-height 48→72 */
.blog-card__excerpt { max-height: 72px; }

/* Fix 8: Search input bg transparent→white */
.search-box input { background-color: var(--white); }

/* Fix 9: Footer columns gap 16→24 */
.footer__columns { gap: 24px; }

/* Fix 10: Footer brand margin-right match original */
.footer__brand { margin-right: 100px; }

/* Fix 11: Footer social grid — original uses auto-fill 34px */
.footer__social { grid-template-columns: repeat(auto-fill, 34px); gap: 12px 12px; margin-top: 12px; }

/* Fix 12: Hero needs pt to clear sticky header */
.hero { padding-top: calc(var(--header-h) + 20px); }
@media(max-width:991px) { .hero { padding-top: calc(var(--header-h-mobile) + 16px); } }

/* Fix 13: Top banner placeholder spacing — push content below fixed banner */
.top-banner + .header { margin-top: 0; }
