:root{
  /* Canvas */
  --bg:#f3f6fa;
  --bg2:#e9eef6;
  --card:#ffffff;
  --line:#d7dfeb;
  --muted:#5b6b80;
  --text:#0e1828;

  /* Accents */
  --accent:#ffca2c;

  /* Surfaces */
  --chip:#eef3fa;
  --pill:#e9f1fb;

  --max:1560px;
  --shadow:0 10px 30px rgba(16,28,45,.08), 0 1px 0 rgba(16,28,45,.04);
  --shadow-lg:0 14px 40px rgba(16,28,45,.12), 0 2px 0 rgba(16,28,45,.04);
  --rad:22px;
}

/* ───────────────────────────────── Reset & base ─────────────────────────── */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:linear-gradient(180deg,var(--bg),var(--bg2) 38%,var(--bg));
  color:var(--text);
  font:16px/1.55 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit}

/* Accessible focus ring */
:where(a,button,input,[role="button"],.v3-chip,.v3-pill,.v3-article,.v3-rowcard):focus{outline:none}
:where(a,button,input,[role="button"],.v3-chip,.v3-pill,.v3-article,.v3-rowcard):focus-visible{
  outline:2px solid rgba(255,202,44,.7);
  outline-offset:2px;
  border-radius:12px;
}

/* Shell */
.v3-body{min-height:100dvh;display:flex;flex-direction:column}
.v3-body--center{min-height:100dvh;display:flex;flex-direction:column;justify-content:center}

/* ───────────────────────────────── Top bar ──────────────────────────────── */
.v3-topbar{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line)}
.v3-topbar__inner{
  max-width:var(--max);margin:0 auto;display:flex;gap:12px;
  align-items:center;justify-content:space-between;padding:14px 24px;
  height: 50px;
}
.v3-brand{display:flex;gap:10px;align-items:center}
.v3-logo{height:55px}
.v3-logo--lg{height:64px;margin:0 auto 12px}
.v3-site-name{font-weight:700;letter-spacing:.3px}

/* ───────────────────────────────── Search ──────────────────────────────── */
.v3-search{
  display:flex;align-items:center;background:#fff;border:1px solid var(--line);
  border-radius:999px;padding:6px 6px 6px 16px;min-width:300px;box-shadow:var(--shadow);overflow:hidden;
  height: 35px;
}
.v3-search--xl{max-width:760px;margin:10px auto 0}

.v3-searchpage-wrap .v3-search{
  display:flex;align-items:center;background:#fff;border:1px solid var(--line);
  border-radius:999px;padding:6px 6px 6px 16px;min-width:50%;box-shadow:var(--shadow);overflow:hidden
}
.v3-searchpage-wrap .v3-search--xl{max-width:50%;margin:10px auto 0}

.v3-search__input{
  flex:1;background:transparent;border:0;outline:0;color:var(--text);
  font-size:15px;padding:10px 8px
}
.v3-search__btn{
  flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--accent);color:#111;
  width:38px;height:38px;border-radius:50%;border:0;cursor:pointer;
  transition:background .2s ease, transform .12s ease, box-shadow .2s ease;margin-left:6px;
  height: 25px;width: 25px;
}
.v3-search__btn svg{width:16px;height:16px;stroke-width:2}
.v3-search__btn:hover{background:#ffd84f;transform:translateY(-1px);box-shadow:0 6px 16px rgba(255,202,44,.35)}
.v3-search__btn:active{transform:translateY(0);box-shadow:none}

/* ──────────────────────────────── Category chips row ───────────────────── */
.v3-cats-scroll{
  overflow:auto;white-space:nowrap;border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  background:#f7f9fd
}
.v3-cats-scroll__rail{
  max-width:var(--max);margin:0 auto;padding:10px 24px;display:flex;gap:10px;position:relative;height: 50px;
}
.v3-chip{
  display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:var(--chip);
  border:1px solid var(--line);transition:background .2s ease, box-shadow .2s ease, transform .12s ease;height: 32px;
}
.v3-chip:hover{background:#f2f6ff;box-shadow:0 6px 16px rgba(22,40,72,.06)}
.v3-chip:active{transform:translateY(1px)}
/* .v3-cats-scroll__rail::after{
  content:"";position:absolute;right:0;top:0;bottom:0;width:42px;
  background:linear-gradient(270deg, rgba(243,246,250,1), rgba(243,246,250,0));
  pointer-events:none
} */

/* ───────────────────────────────── Shell container ─────────────────────── */
.v3-shell{max-width:var(--max);margin:28px auto;padding:0 24px;flex:1;width:100%}

/* ───────────────────────────────── Hero ──────────────────────── */
.v3-hero{
  background:
    radial-gradient(1600px 520px at 20% -25%, rgba(90,140,220,.16), transparent),
    linear-gradient(180deg, #e9f1fb, rgba(255,255,255,.55));
  border:1px solid var(--line);border-radius:24px;padding:40px;box-shadow:var(--shadow)
}
.v3-hero__text h1{margin:0 0 6px;font-size:34px}

/* ───────────────────────────────── Grid layouts ────────────────────────── */
.v3-grid{display:grid;grid-template-columns:320px 1fr 360px;gap:24px;margin-top:22px}
.v3-grid--cat{grid-template-columns:320px 1fr 380px}
@media (max-width:1024px){
  .v3-grid,.v3-grid--cat{grid-template-columns:1fr}
  .v3-main{order:1}
  .v3-aside{order:2}
  .v3-aside--right{order:3}
}
.v3-aside{display:flex;flex-direction:column;gap:18px}

/* Category pages grid with right sidebar fixed */
.v3-grid--catpage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:24px;
  align-items:start;
  margin-top:22px;
}
.v3-grid--catpage .v3-aside--right{position:relative;top:0}
@media (max-width:1024px){
  .v3-grid--catpage{grid-template-columns:1fr}
  .v3-grid--catpage .v3-aside--right{position:static;margin-top:18px}
}

/* ───────────────────────────────── Cards & panels ──────────────────────── */
.v3-card{
  background:var(--card);border:1px solid var(--line);border-radius:20px;
  box-shadow:var(--shadow);transition:box-shadow .2s ease, transform .12s ease
}
.v3-card--panel{padding:18px}
.v3-card--panel:hover{box-shadow:var(--shadow-lg)}
.v3-h{margin:0 0 2px;font-size:18px}

/* ───────────── Pills (Browse by Category / sidebars / article footer) ───────────── */
.v3-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
}
.v3-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:var(--pill);
  border:1px solid var(--line);
  line-height:1;
  white-space:nowrap;
  transition:background .2s ease, box-shadow .2s ease, transform .12s ease;
}
.v3-pill:hover{background:#f3f7ff;box-shadow:0 6px 16px rgba(22,40,72,.06)}
.v3-pill:active{transform:translateY(1px)}
.v3-pill.active{outline:2px solid var(--accent)}

/* ───────────────────────────── Latest / Recent lists ───────────────────── */
.v3-list{display:flex;flex-direction:column;margin:0;padding:0}
.v3-list--thumbs .v3-list__item{
  display:flex;gap:14px;align-items:flex-start;
  padding:8px 0;background:none;border:0;border-radius:0;box-shadow:none;
  transition:background .15s ease, transform .12s ease
}
.v3-list--thumbs .v3-list__item + .v3-list__item{border-top:1px solid var(--line)}
.v3-list--thumbs .v3-list__item:hover{background:rgba(14,24,35,.04);transform:translateY(-1px)}
.v3-thumb{width:70px;height:70px;object-fit:cover;border-radius:12px;flex:0 0 70px}
.v3-list__meta{flex:1 1 auto;min-width:0;position:relative;top:2px}
.v3-kicker{
  display:inline-block;font-size:11px;font-weight:700;line-height:1.2;
  color:#111;background:var(--accent);padding:3px 8px;border-radius:999px;
  margin-bottom:4px;margin-left:-2px;text-transform:lowercase
}
.v3-ellipsis{
  white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  font-weight:600;line-height:1.3;margin-top:0
}

/* Recent Posts (clean dividers) */
.v3-list--bullets{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.v3-list--bullets li{padding:10px 0;border-bottom:1px solid var(--line)}
.v3-list--bullets li:last-child{border-bottom:none}
.v3-list--bullets a{
  display:block;text-decoration:none;color:var(--text);line-height:1.4;
  transition:color .15s ease,text-decoration-color .15s ease
}
.v3-list--bullets a:hover{color:#000;text-decoration:underline}
.v3-list--bullets a:active{opacity:.85}

/* ───────────────────────── Home: full-bleed image cards ────────────────── */
.v3-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(360px, 1fr));
  gap:18px;
}
@media (max-width:700px){.v3-cards{grid-template-columns:1fr}}

.v3-article{
  position:relative;display:block;overflow:hidden;border-radius:var(--rad);
  box-shadow:var(--shadow);border:1px solid var(--line);background:#000;
  transition:transform .15s ease, box-shadow .2s ease
}
.v3-article::before{content:"";display:block;padding-top:66%}
.v3-article__media{position:static}
.v3-article__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.v3-article::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg, rgba(0,0,0,0) 46%, rgba(0,0,0,.56) 82%, rgba(0,0,0,.88) 100%);
}
.v3-article__body{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  padding:16px 16px 18px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35);
  display:flex;flex-direction:column;align-items:flex-start;gap:5px
}
.v3-tag{display:inline-block;background:var(--accent);color:#111;font-weight:700;font-size:12px;line-height:1;padding:6px 10px;border-radius:999px}
.v3-article__title{
  margin:0;font-size:18px;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  word-break:break-word;overflow-wrap:anywhere
}
.v3-article:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.v3-article:hover .v3-article__media img{transform:scale(1.04)}

/* ───────────── Category pages: compact & uniform row cards ─────────────── */
.v3-sectionhead{margin-bottom:12px}
.v3-title{margin:0 0 6px}
.v3-sub{margin:0 0 12px}
.v3-sub--muted{color:var(--muted)}
.v3-cards--list{display:flex;flex-direction:column;gap:16px}

.v3-rowcard{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:box-shadow .2s ease, transform .12s ease;
  min-height:210px;
}
.v3-rowcard:hover{box-shadow:var(--shadow-lg);transform:translateY(-1px)}

.v3-rowcard__media{display:block;height:210px}
.v3-rowcard__media img{width:100%;height:100%;object-fit:cover;min-height:210px}
@media (max-width:900px){
  .v3-rowcard{grid-template-columns:1fr}
  .v3-rowcard__media{height:220px}
  .v3-rowcard__media img{min-height:220px}
}

.v3-rowcard__body{
  padding:12px 14px;
  display:flex;flex-direction:column;justify-content:flex-start;
  gap:8px;min-width:0;
}
.v3-rowcard__title{
  font-weight:800;margin:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  word-break:break-word;overflow-wrap:anywhere
}
.v3-rowcard__meta{
  display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;margin:0;flex-wrap:wrap
}
.v3-dot{opacity:.6}
.v3-rowcard__excerpt{
  margin:0;color:#273a55;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
}
.v3-rowcard__cta{
  display:inline-flex !important;align-self:flex-start;max-width:fit-content;white-space:nowrap;
  background:var(--accent);color:#111;padding:8px 12px;border-radius:10px;font-size:13px;
  transition:transform .12s ease, box-shadow .2s ease
}
.v3-rowcard__cta:hover{box-shadow:0 8px 20px rgba(255,202,44,.35);transform:translateY(-1px)}
.v3-rowcard__cta:active{transform:translateY(0)}

/* ───────────────────────────── Pagination ──────────────────────────────── */
.v3-pagination{display:flex;gap:10px;justify-content:center;margin:20px 0}
.v3-page{
  display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;border-radius:12px;background:#fff;
  border:1px solid var(--line);box-shadow:var(--shadow);
  transition:background .15s ease, transform .12s ease, box-shadow .2s ease
}
.v3-page:hover{background:#f7fbff;box-shadow:0 8px 20px rgba(22,40,72,.08);transform:translateY(-1px)}
.v3-page:active{transform:translateY(0)}
.v3-page.active{background:var(--accent);color:#111;font-weight:700}

/* ─────────────────────────── Article page layout ───────────────────────── */
.v3-articlepage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 380px;
  grid-template-areas:
    "head   rail"
    "hero   rail"
    "body   rail"
    "related rail";
  gap:24px;
  align-items:start;
}
.v3-articlepage__head{grid-area:head}
.v3-articlepage__title{margin:6px 0;font-size:28px}
.v3-articlepage__hero{
  grid-area:hero;
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  margin:14px 0 0; /* clean spacing under header */
}
.v3-articlepage__hero img{
  width:100%;
height: 150px;
  object-fit:cover;
}
.v3-articlepage__body{
  /* grid-area:body; */
  background:#fff;
  border-radius:20px;
  border:1px solid var(--line);
  padding:22px;
  box-shadow:var(--shadow);
     /* margin-top: -47px; */
}
.v3-chip--cat{background:var(--accent);color:#111;font-weight:700}
.v3-related{grid-area:related;margin:18px 0}
.v3-rail{
  grid-area:rail;display:flex;flex-direction:column;gap:16px;position:sticky;top:88px;
}
@media (max-width:1100px){
  .v3-articlepage{
    grid-template-columns:1fr;
    grid-template-areas:
      "head" "hero" "body" "related" "rail";
  }
  .v3-rail{position:static}
}

/* ───────────────────────────── Static pages ─────────────────────────────── */
.v3-static .v3-prose{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:var(--shadow)}

/* ───────────────────────────── Footer ──────────────────────────────────── */
.v3-footer{border-top:1px solid var(--line);margin-top:28px;padding:18px 16px;color:#657791;background:#fff}
.v3-footer--sticky{position:sticky;bottom:0;background:rgba(255,255,255,.9);backdrop-filter:blur(6px)}
.v3-footer__links{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-bottom:6px}
.v3-footnote{text-align:center;margin:0}

/* ───────────────────────────── Search page only ─────────────────────────── */
.v3-searchpage-wrap{
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}
.v3-searchpage{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:16px;
  padding:40px 24px;
}
.v3-footer--search{
  margin-top:auto; /* pins footer to bottom on search page */
}
@media (max-width:768px){
  .v3-searchpage{padding:60px 16px}
  .v3-searchpage .v3-search{width:100%;max-width:100%}
}

/* ───────────────────────────── Mobile header polish ────────────────────── */
@media (max-width:768px){
  .v3-topbar__inner{flex-direction:column;gap:10px}
  .v3-brand{justify-content:center;width:100%}
  .v3-logo{height:40px}
  .v3-search{width:100%}
  .v3-cats-scroll{border-top:0}
  .v3-cats-scroll__rail{padding-top:6px}
}

/* ───────────────────────────── Taboola container ───────────────────────── */
.taboola-article-thumbnails-container {
  margin-left: 20.5%;
  margin-right: 20.5%;
  margin-top: 15px;
}
@media (max-width: 1024px) {
  .taboola-article-thumbnails-container {
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
  }
     .v3-topbar__inner {
        max-width: var(--max);
        margin: 0 auto;
        display: flex;
        gap: 0px;
        align-items: center;
        justify-content: space-between;
        padding: 23px 24px;
        height: 115px;
    }
    .v3-cats-scroll__rail{
      height: 45px;
    }
   .v3-articlepage {
    display: grid;
 
    gap: 0px;
    align-items: start;
}
.v3-articlepage__title {
    margin: 2px 0;
    font-size: 22px;
}
.v3-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    transition: background .2s 
ease, box-shadow .2s 
ease, transform .12s 
ease;
    height: 25px;
}
.v3-articlepage__hero img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.v3-articlepage__body {
    grid-area: body;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--line);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-top: 0px;
}
}
.taboola-article-thumbnails-container {
  min-height: 1px; /* just to avoid 0-height edge cases */
}

/* ───────────────────────────── Minor typography tweaks ─────────────────── */
.v3-articlepage__meta{
  margin-top: 0;
}
h3{
  margin-block-end: 0em;
  margin-block-start: 10px;
}
p{
  margin-block-start: 5px;
  margin-block-end: 5px;
}
ul{
  margin-block-start: 3px;
  margin-block-end: 3px;
}

/* default: desktop */
#taboola-articlepage__hero-desktop {
  display: block;
}

#taboola-articlepage__hero-mobile {
  display: none;
}

/* mobile: swap which hero is visible */
@media (max-width: 768px) {
  #taboola-articlepage__hero-desktop {
    display: none;
  }

  #taboola-articlepage__hero-mobile {
    display: block;
    margin-top: 12px; /* tweak if you want spacing above hero */
  }
}