/* -------------------------------------
SEO / BLOG PREMIUM STYLES
Uses existing theme variables from main site:
--bg --card --text --muted --line --accent --accent2 --shadow --radius
------------------------------------- */

:root{
  --seo-max: 1180px;
  --article-max: 760px;
  --soft-bg: rgba(255,255,255,.55);
  --soft-wash: linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.35));
  --soft-border: 1px solid rgba(0,0,0,.07);
  --soft-shadow: 0 18px 40px rgba(0,0,0,.08);
}

/* -------------------------------------
GENERAL PAGE WRAPPERS
------------------------------------- */

.article-shell,
.seo-shell{
  max-width: var(--seo-max);
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.article-wrap{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.article-main,
.seo-main{
  min-width: 0;
}

.article-main{
  max-width: var(--article-max);
  background: var(--soft-wash);
  border: var(--soft-border);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
  padding: 28px;
  backdrop-filter: blur(6px);
}

.article-side{
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.side-card,
.callout,
.toc{
  background: rgba(255,255,255,.72);
  border: var(--soft-border);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.callout,
.toc{
  padding: 18px;
}

/* -------------------------------------
BREADCRUMBS
------------------------------------- */

.breadcrumbs{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumbs a{
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: opacity .18s ease, color .18s ease;
}

.breadcrumbs a:hover{
  opacity: .72;
}

.crumb-sep{
  opacity: .45;
  font-weight: 700;
}

.crumb-current{
  color: var(--muted);
  font-weight: 700;
}

/* -------------------------------------
HERO / INTRO AREA
------------------------------------- */

.article-hero,
.seo-hero{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}

.article-hero img,
.seo-hero img{
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.kdot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255,45,45,.12);
}

.article-main h1,
.seo-main h1{
  font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  color: var(--text);
}

.lead{
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 62ch;
  margin: 0 0 24px;
}

.article-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .9rem;
}

.article-meta span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}

.inline-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

/* -------------------------------------
CONTENT TYPOGRAPHY
------------------------------------- */

.article-main p,
.seo-main p,
.seo-container p{
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 72ch;
}

.article-main h2,
.seo-main h2,
.seo-container h2{
  font-size: clamp(1.36rem, 1.22rem + .45vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 36px 0 12px;
  color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.article-main h3,
.seo-main h3,
.seo-container h3{
  font-size: 1.14rem;
  margin: 22px 0 8px;
  color: var(--text);
}

.article-main ul,
.article-main ol,
.seo-main ul,
.seo-main ol,
.seo-container ul,
.seo-container ol{
  margin: 14px 0 20px 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.article-main li,
.seo-main li,
.seo-container li{
  margin-bottom: 6px;
}

.article-main a,
.seo-main a,
.seo-container a{
  color: var(--text);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.article-main a:hover,
.seo-main a:hover,
.seo-container a:hover{
  opacity: .78;
}

.article-main img,
.seo-main img,
.seo-container img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  margin: 20px 0;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article-main section{
  margin-bottom: 22px;
}

/* -------------------------------------
SECTION DIVIDERS / MICRO LAYOUT
------------------------------------- */

.section-kicker{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.section-badge,
.toc-label{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,176,0,.14);
  color: var(--text);
  font-weight: 700;
  font-size: .88rem;
  border: 1px solid rgba(255,176,0,.18);
  line-height: 1.2;
  white-space: nowrap;
}

.toc-label{
  justify-self: start;
  margin-bottom: 2px;
}

.article-divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.10), transparent);
  margin: 26px 0;
}

/* -------------------------------------
TOC / SIDEBAR
------------------------------------- */

.toc h3{
  margin: 0 0 10px;
  font-size: 1rem;
}

.toc a{
  display: block;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid rgba(0,0,0,.06);
  font-size: .96rem;
  line-height: 1.45;
}

.toc a:first-of-type{
  border-top: 0;
  padding-top: 0;
}

.toc a:hover{
  color: var(--accent);
}

.callout{
  background: rgba(255,176,0,.08);
  border-left: 4px solid var(--accent2);
  padding: 16px 18px;
  margin: 26px 0;
  border-radius: 10px;
}

.callout strong{
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.callout p{
  margin: 0;
  font-size: .96rem;
  line-height: 1.72;
}

/* -------------------------------------
FAQ BLOCKS
------------------------------------- */

.faq-compact{
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.faq-compact details{
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 14px 16px;
}

.faq-compact summary{
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}

.faq-compact summary::-webkit-details-marker{
  display: none;
}

.faq-compact p{
  margin: 10px 0 0;
  font-size: .96rem;
}

/* -------------------------------------
STANDARD CARD GRID
------------------------------------- */

.blog-grid,
.related-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.card{
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(0,0,0,.13);
  border-color: rgba(0,0,0,.11);
}

.card img,
.related-grid .card img{
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.card h3{
  font-size: 1.15rem;
  line-height: 1.26;
  margin: 16px 18px 8px;
}

.card h3 a{
  color: var(--text);
  text-decoration: none;
}

.card h3 a:hover{
  text-decoration: underline;
}

.card p{
  margin: 0 18px 14px;
  font-size: .96rem;
  line-height: 1.7;
}

.card .btn{
  margin: 0 18px 18px;
  align-self: flex-start;
}

/* -------------------------------------
MAGAZINE BLOG LIST
------------------------------------- */

.featured-articles{
  margin-top: 34px;
}

.magazine-list{
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.mag-card{
  display: grid;
  grid-template-columns: minmax(260px, 34%) 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.mag-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(0,0,0,.14);
  border-color: rgba(0,0,0,.12);
}

.mag-card-media{
  display: block;
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
}

.mag-card-media img{
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform .35s ease;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.mag-card:hover .mag-card-media img{
  transform: scale(1.03);
}

.mag-card-body{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 26px;
}

.mag-meta{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: .88rem;
  color: var(--muted);
}

.mag-tag{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,176,0,.14);
  color: var(--text);
  font-weight: 700;
  line-height: 1;
}

.mag-dot{
  opacity: .55;
}

.mag-date{
  opacity: .9;
}

.mag-card-body h3{
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 1rem + .65vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -.01em;
}

.mag-card-body h3 a{
  color: var(--text);
  text-decoration: none;
}

.mag-card-body h3 a:hover{
  text-decoration: underline;
}

.mag-card-body p{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.72;
  max-width: 68ch;
  font-size: 1rem;
}

.mag-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

.mag-actions .btn{
  align-self: flex-start;
}

.mag-readmore{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.mag-readmore:hover{
  text-decoration: underline;
}

/* -------------------------------------
PREMIUM KEEP READING CARDS
------------------------------------- */

.keep-reading{
  margin-top: 8px;
}

.card-featured-link{
  overflow: hidden;
}

.card-featured-link .card-media{
  display: block;
  overflow: hidden;
  background: #f3f3f3;
}

.card-featured-link .card-media img{
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease;
}

.card-featured-link:hover .card-media img{
  transform: scale(1.03);
}

.card-featured-link .card-body{
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
}

.card-meta{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 18px 8px;
  font-size: .84rem;
  color: var(--muted);
}

.card-tag{
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,176,0,.14);
  color: var(--text);
  font-weight: 700;
  line-height: 1;
}

.card-dot{
  opacity: .5;
}

.card-type{
  opacity: .9;
}

.card-featured-link h3{
  margin-top: 0;
}

.card-featured-link p{
  margin-bottom: 16px;
}

.card-featured-link .btn{
  margin-top: auto;
}

/* -------------------------------------
BLOG INDEX INTRO
------------------------------------- */

.blog-intro{
  max-width: 760px;
  margin-bottom: 26px;
}

.blog-intro p{
  line-height: 1.8;
}

/* -------------------------------------
UTILITY
------------------------------------- */

.muted-note{
  font-size: .95rem;
  color: var(--muted);
}

.kicker-row{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* -------------------------------------
RESPONSIVE
------------------------------------- */

@media (max-width: 1080px){
  .article-wrap{
    grid-template-columns: 1fr;
  }

  .article-side{
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 980px){
  .mag-card{
    grid-template-columns: minmax(220px, 36%) 1fr;
  }

  .mag-card-media img{
    min-height: 210px;
  }

  .mag-card-body{
    padding: 20px 22px;
  }

  .article-hero,
  .seo-hero{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px){
  .article-shell,
  .seo-shell{
    padding: 22px 14px 52px;
  }

  .article-main{
    padding: 18px;
    border-radius: 22px;
  }

  .mag-card{
    grid-template-columns: 1fr;
  }

  .mag-card-media img{
    min-height: 0;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .mag-card-body{
    padding: 18px;
  }

  .mag-card-body p{
    max-width: none;
  }

  .section-kicker{
    align-items: flex-start;
  }

  .article-main h1,
  .seo-main h1{
    line-height: 1.08;
  }
}

@media (max-width: 520px){
  .article-meta{
    gap: 8px;
  }

  .article-meta span{
    padding: 6px 10px;
    font-size: .84rem;
  }

  .inline-actions,
  .mag-actions{
    flex-direction: column;
    align-items: flex-start;
  }

  .card h3{
    font-size: 1.08rem;
  }
}

.blog-index-wrap{
  display: flex;
  justify-content: center;
}

.blog-index-main{
  width: 100%;
  max-width: 1120px;
}
.blog-index-wrap{
  display: flex;
  justify-content: center;
}

.blog-index-main{
  width: 100%;
  max-width: 1120px;
}
.blog-index-main .article-hero{
  align-items: center;
}
.blog-index-main .article-hero > div:first-child{
  max-width: 620px;
}
.blog-index-main .article-hero{
  align-items: center;
}

.blog-index-main .article-hero > div:first-child{
  max-width: 620px;
}

/* -------------------------------------
Editorial paragraph style
------------------------------------- */

.article-main p{
  text-indent: 1.2em;      /* first-line indent */
  text-align: justify;     /* justified text */
  text-wrap: pretty;       /* avoid awkward spacing */
  hyphens: auto;           /* soft hyphenation */
}

/* No indent for first paragraph after headings */

.article-main h1 + p,
.article-main h2 + p,
.article-main h3 + p,
.article-main .lead{
  text-indent: 0;
}

@media (max-width: 640px){
  .article-main p{
    text-align: left;
    text-indent: 0;
  }
}

/* -------------------------------------
Premium editorial typography
------------------------------------- */

.article-main{
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

/* Paragraph refinement */

.article-main p{
  font-size: 1.05rem;
  line-height: 1.82;
  letter-spacing: 0.01em;
  text-indent: 1.2em;
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
}

/* First paragraph after headings should not indent */

.article-main h1 + p,
.article-main h2 + p,
.article-main h3 + p,
.article-main .lead{
  text-indent: 0;
}

/* Slightly stronger headings for contrast */

.article-main h2{
  font-weight: 700;
  letter-spacing: -0.01em;
}


.article-main .lead::first-letter{
  font-size: 2.6em;
  font-weight: 700;
  float: left;
  line-height: 0.9;
  padding-right: 6px;
}

.blog-lang-switch{
  display:flex;
  gap:10px;
  margin:20px 0 25px;
  flex-wrap:wrap;
}

.blog-lang-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line,#ddd);
  color:var(--text,#111);
  text-decoration:none;
  font-weight:600;
  transition:all .2s ease;
}

.blog-lang-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.blog-lang-btn.active{
  background:var(--accent,#e53935);
  color:#fff;
  border-color:var(--accent,#e53935);
}