/* ==========================================================================
   Sobha Aranya Blog
   Tokens taken directly from the main site's main.css so /blog/ and /
   render as one brand. Do not introduce new colours or typefaces here.
   ========================================================================== */

:root {
  /* Palette — extracted from the main site */
  --sa-maroon:       #971d24;   /* --bs-primary */
  --sa-maroon-hover: #80191f;   /* .btn-primary hover */
  --sa-maroon-deep:  #79171d;   /* .btn-primary active */
  --sa-blue:         #084a7b;   /* --bs-secondary */
  --sa-rose:         #cb8e92;   /* accent used on the main site */
  --sa-ink:          #212529;
  --sa-body:         #495057;
  --sa-muted:        #6c757d;
  --sa-soft:         #adb5bd;
  --sa-line:         #dee2e6;
  --sa-line-soft:    #e9ecef;
  --sa-light:        #f8f9fa;
  --sa-white:        #fff;
  --sa-whatsapp:     #25d366;
  --sa-phone:        #0abf53;

  /* Type — Poppins only, matching the main site. No serif display face. */
  --sa-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --sa-step--1: clamp(.8125rem, .78rem + .16vw, .875rem);
  --sa-step-0:  clamp(.9375rem, .91rem + .18vw, 1rem);
  --sa-step-1:  clamp(1.0625rem, 1.02rem + .24vw, 1.1875rem);
  --sa-step-2:  clamp(1.3125rem, 1.2rem + .55vw, 1.625rem);
  --sa-step-3:  clamp(1.625rem, 1.42rem + .95vw, 2.25rem);
  --sa-step-4:  clamp(1.875rem, 1.55rem + 1.55vw, 2.875rem);

  --sa-gap:    1.5rem;
  --sa-shell:  1200px;
  --sa-read:   740px;
  --sa-radius: .375rem;
  --sa-shadow: 0 2px 14px rgba(151, 29, 36, .08);
  --sa-lift:   0 10px 30px rgba(33, 37, 41, .13);
}

/* Faces are pulled from the main site's /fonts/ directory. Note the mixed
   formats: regular ships as .woff, semibold as .woff2. Both verified live. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local(""), url("../fonts/poppins-v20-latin-regular.woff") format("woff");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local(""), url("../fonts/poppins-v20-latin-600.woff2") format("woff2");
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sa-sans);
  font-size: var(--sa-step-0);
  line-height: 1.72;
  color: var(--sa-body);
  background: var(--sa-white);
  -webkit-font-smoothing: antialiased;
}

img, picture, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

/* Poppins 600 carries all headings — the main site has no serif face,
   so weight and tracking do the work instead of a second family. */
h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: var(--sa-sans);
  font-weight: 600;
  color: var(--sa-ink);
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
}
h1, .h1 { font-size: var(--sa-step-4); }
h2, .h2 { font-size: var(--sa-step-3); }
h3, .h3 { font-size: var(--sa-step-2); }
h4      { font-size: var(--sa-step-1); }

p { margin: 0 0 1.15rem; }

a { color: var(--sa-maroon); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--sa-maroon-hover); }

:focus-visible { outline: 3px solid var(--sa-maroon); outline-offset: 2px; border-radius: 2px; }

.sa-shell { width: min(100% - 2.5rem, var(--sa-shell)); margin-inline: auto; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--sa-maroon); color: #fff; padding: .75rem 1.25rem; z-index: 999; }
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------- header -- */
.sa-header { background: #fff; border-bottom: 1px solid var(--sa-line-soft); position: sticky; top: 0; z-index: 50; }
.sa-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.sa-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.sa-brand img { height: 52px; width: auto; }
.sa-header__right { display: flex; align-items: center; gap: .65rem; }

.sa-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--sa-maroon); font-weight: 600; font-size: var(--sa-step--1);
  text-decoration: none; white-space: nowrap;
}
.sa-phone:hover { color: var(--sa-maroon-hover); }
.sa-phone svg { width: 16px; height: 16px; fill: currentColor; }

.sa-wa {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--sa-whatsapp); color: #fff;
  padding: .58rem 1.05rem; border-radius: var(--sa-radius);
  font-size: var(--sa-step--1); font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: filter .18s ease;
}
.sa-wa:hover { filter: brightness(.93); color: #fff; }
.sa-wa svg { width: 17px; height: 17px; fill: currentColor; }

.sa-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.sa-nav a {
  font-size: var(--sa-step--1); font-weight: 600;
  color: var(--sa-ink); text-decoration: none;
  padding: .35rem 0; display: inline-block; border-bottom: 2px solid transparent;
}
.sa-nav a:hover, .sa-nav .current-menu-item > a { color: var(--sa-maroon); border-bottom-color: var(--sa-maroon); }

.sa-nav-toggle {
  display: none; background: none; border: 1px solid var(--sa-line);
  border-radius: var(--sa-radius); padding: .45rem .65rem; cursor: pointer; color: var(--sa-maroon);
}
.sa-nav-toggle svg { width: 21px; height: 21px; fill: currentColor; display: block; }

@media (max-width: 920px) {
  .sa-nav-toggle { display: inline-flex; }
  .sa-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--sa-line); padding: 1rem 1.25rem 1.4rem;
  }
  .sa-nav.is-open { display: block; }
  .sa-nav ul { flex-direction: column; gap: 0; }
  .sa-nav a { padding: .65rem 0; border-bottom: 1px solid var(--sa-line-soft); width: 100%; }
  .sa-wa span, .sa-phone span { display: none; }
  .sa-wa { padding: .58rem .75rem; }
  .sa-brand img { height: 42px; }
}

/* ---------------------------------------------------------- page intro -- */
.sa-intro {
  background: var(--sa-maroon);
  background-image: linear-gradient(135deg, var(--sa-maroon) 0%, var(--sa-maroon-deep) 100%);
  color: #fff; padding: clamp(2.25rem, 5.5vw, 4rem) 0;
}
.sa-intro h1 { color: #fff; margin-bottom: .4rem; }
.sa-intro p { color: rgba(255,255,255,.82); max-width: 62ch; margin: 0; }
.sa-intro__eyebrow {
  display: block; font-size: var(--sa-step--1); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--sa-rose); margin-bottom: .55rem;
}

/* ------------------------------------------------------------- layout -- */
.sa-main { padding: clamp(2rem, 5vw, 3.25rem) 0; }
.sa-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(2rem,4vw,3.25rem); align-items: start; }
@media (max-width: 980px) { .sa-layout { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- post cards -- */
.sa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px,1fr)); gap: var(--sa-gap); }

.sa-card {
  background: #fff; border: 1px solid var(--sa-line-soft);
  border-radius: var(--sa-radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sa-card:hover { transform: translateY(-3px); box-shadow: var(--sa-lift); border-color: var(--sa-rose); }

.sa-card__media { position: relative; aspect-ratio: 16/10; background: var(--sa-light); overflow: hidden; }
.sa-card__media img { width: 100%; height: 100%; object-fit: cover; }

.sa-card__body { padding: 1.2rem 1.3rem 1.45rem; display: flex; flex-direction: column; flex: 1; }

.sa-card__cat { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sa-maroon); margin-bottom: .5rem; }
.sa-card__cat a { color: inherit; text-decoration: none; }
.sa-card__cat a:hover { text-decoration: underline; }

.sa-card__title { font-size: var(--sa-step-1); margin: 0 0 .5rem; line-height: 1.35; }
.sa-card__title a { text-decoration: none; color: var(--sa-ink); }
.sa-card__title a:hover { color: var(--sa-maroon); }

.sa-card__excerpt { font-size: var(--sa-step--1); color: var(--sa-muted); margin: 0 0 1rem; }
.sa-card__meta { margin-top: auto; font-size: .78rem; color: var(--sa-soft); display: flex; flex-wrap: wrap; gap: .35rem .85rem; }

.sa-card--wide { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .sa-card--wide { flex-direction: row; }
  .sa-card--wide .sa-card__media { flex: 0 0 45%; aspect-ratio: auto; }
  .sa-card--wide .sa-card__body { padding: 2rem 2.15rem; justify-content: center; }
  .sa-card--wide .sa-card__title { font-size: var(--sa-step-2); }
}

/* --------------------------------------------------------- single post -- */
.sa-article { max-width: var(--sa-read); }
.sa-layout .sa-article { max-width: none; }

.sa-article__meta {
  display: flex; flex-wrap: wrap; gap: .35rem 1.05rem;
  font-size: var(--sa-step--1); color: var(--sa-soft);
  padding-bottom: 1.15rem; margin-bottom: 1.65rem; border-bottom: 1px solid var(--sa-line-soft);
}
.sa-article__hero { margin: 0 0 1.9rem; border-radius: var(--sa-radius); overflow: hidden; }
.sa-article__hero img { width: 100%; }
.sa-article__hero figcaption { font-size: .8rem; color: var(--sa-soft); padding: .55rem .2rem 0; }

.sa-content { font-size: var(--sa-step-0); }
.sa-content > * + * { margin-top: 1.1rem; }
.sa-content h2 { margin-top: 2.3rem; font-size: var(--sa-step-2); }
.sa-content h3 { margin-top: 1.8rem; font-size: var(--sa-step-1); }
.sa-content ul, .sa-content ol { padding-left: 1.3rem; }
.sa-content li { margin-bottom: .42rem; }
.sa-content li::marker { color: var(--sa-maroon); }

.sa-content blockquote {
  margin: 1.9rem 0; padding: .9rem 1.3rem;
  border-left: 3px solid var(--sa-maroon);
  background: var(--sa-light);
  font-size: var(--sa-step-1); color: var(--sa-ink); line-height: 1.55;
}
.sa-content blockquote p:last-child { margin-bottom: 0; }

.sa-content table { width: 100%; border-collapse: collapse; font-size: var(--sa-step--1); margin: 1.65rem 0; }
.sa-content th, .sa-content td { border: 1px solid var(--sa-line); padding: .68rem .8rem; text-align: left; }
.sa-content th { background: var(--sa-maroon); color: #fff; font-weight: 600; border-color: var(--sa-maroon); }
.sa-content tbody tr:nth-child(even) { background: var(--sa-light); }

.sa-content figure { margin: 1.9rem 0; }
.sa-content figcaption { font-size: .8rem; color: var(--sa-soft); margin-top: .45rem; }
.sa-content code { background: var(--sa-light); padding: .12em .38em; border-radius: 3px; font-size: .9em; }

.wp-block-image img, .alignwide img, .alignfull img { border-radius: var(--sa-radius); }
.alignleft { float: left; margin: .4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }

.sa-tags { margin-top: 2.3rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.sa-tags a {
  font-size: .78rem; padding: .32rem .8rem; background: var(--sa-light);
  border: 1px solid var(--sa-line-soft); border-radius: 100px;
  color: var(--sa-muted); text-decoration: none;
}
.sa-tags a:hover { background: var(--sa-maroon); color: #fff; border-color: var(--sa-maroon); }

.sa-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.75rem; padding-top: 1.9rem; border-top: 1px solid var(--sa-line-soft); }
@media (max-width: 620px) { .sa-postnav { grid-template-columns: 1fr; } }
.sa-postnav a { display: block; padding: 1rem 1.15rem; border: 1px solid var(--sa-line-soft); border-radius: var(--sa-radius); text-decoration: none; transition: border-color .18s ease; }
.sa-postnav a:hover { border-color: var(--sa-maroon); }
.sa-postnav span { display: block; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--sa-soft); margin-bottom: .3rem; }
.sa-postnav strong { font-weight: 600; color: var(--sa-ink); }
.sa-postnav .is-next { text-align: right; }

/* ------------------------------------------------------------ sidebar -- */
.sa-sidebar { position: sticky; top: 100px; }
@media (max-width: 980px) { .sa-sidebar { position: static; } }

.sa-cta {
  background: var(--sa-maroon);
  background-image: linear-gradient(160deg, var(--sa-maroon) 0%, var(--sa-maroon-deep) 100%);
  color: #fff; border-radius: var(--sa-radius); padding: 1.65rem 1.5rem;
}
.sa-cta h2 { color: #fff; font-size: var(--sa-step-2); margin-bottom: .3rem; }
.sa-cta__sub { color: var(--sa-rose); font-size: var(--sa-step--1); font-weight: 600; margin-bottom: 1.15rem; }
.sa-cta__stats { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.sa-cta__stats li { display: flex; justify-content: space-between; gap: 1rem; padding: .48rem 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: var(--sa-step--1); }
.sa-cta__stats li:last-child { border-bottom: 0; }
.sa-cta__stats span { color: rgba(255,255,255,.66); }
.sa-cta__stats strong { font-weight: 600; text-align: right; }

.sa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .78rem 1.2rem;
  background: #fff; color: var(--sa-maroon);
  border: 0; border-radius: var(--sa-radius);
  font-family: inherit; font-size: var(--sa-step-0); font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background .18s ease;
}
.sa-btn:hover { background: rgba(255,255,255,.88); color: var(--sa-maroon-deep); }
.sa-btn--maroon { background: var(--sa-maroon); color: #fff; }
.sa-btn--maroon:hover { background: var(--sa-maroon-hover); color: #fff; }

.sa-search { display: flex; gap: .45rem; }
.sa-search input[type="search"] {
  flex: 1; min-width: 0; padding: .62rem .8rem;
  border: 1px solid var(--sa-line); border-radius: var(--sa-radius);
  font-family: inherit; font-size: var(--sa-step--1); color: var(--sa-ink); background: #fff;
}
.sa-search input[type="search"]:focus { border-color: var(--sa-maroon); outline: none; box-shadow: 0 0 0 3px rgba(151,29,36,.13); }
.sa-search button { padding: .62rem 1rem; background: var(--sa-maroon); color: #fff; border: 0; border-radius: var(--sa-radius); cursor: pointer; font-family: inherit; font-size: var(--sa-step--1); font-weight: 600; }
.sa-search button:hover { background: var(--sa-maroon-hover); }

/* ---------------------------------------------------------- pagination -- */
.sa-pagination { margin-top: 2.5rem; }
.sa-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.sa-pagination .page-numbers {
  min-width: 40px; height: 40px; padding: 0 .65rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--sa-line); border-radius: var(--sa-radius);
  text-decoration: none; color: var(--sa-ink); font-size: var(--sa-step--1);
}
.sa-pagination .page-numbers:hover { border-color: var(--sa-maroon); color: var(--sa-maroon); }
.sa-pagination .page-numbers.current { background: var(--sa-maroon); color: #fff; border-color: var(--sa-maroon); }
.sa-pagination .dots { border-color: transparent; }

/* -------------------------------------------------------- breadcrumbs -- */
.sa-crumbs { font-size: var(--sa-step--1); color: rgba(255,255,255,.68); margin-bottom: .9rem; }
.sa-crumbs a { color: rgba(255,255,255,.86); text-decoration: none; }
.sa-crumbs a:hover { color: #fff; text-decoration: underline; }
.sa-crumbs span[aria-current] { color: #fff; }

/* ------------------------------------------------------------ footer -- */
.sa-footer { background: var(--sa-ink); color: rgba(255,255,255,.7); padding: clamp(2.25rem,5vw,3rem) 0 1.6rem; font-size: var(--sa-step--1); }
.sa-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.4rem; padding-bottom: 1.9rem; border-bottom: 1px solid rgba(255,255,255,.13); }
@media (max-width: 820px) { .sa-footer__top { grid-template-columns: 1fr; gap: 1.6rem; } }
.sa-footer h2 { color: #fff; font-size: var(--sa-step-1); margin-bottom: .85rem; }
.sa-footer ul { list-style: none; margin: 0; padding: 0; }
.sa-footer li { margin-bottom: .45rem; }
.sa-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.sa-footer a:hover { color: #fff; text-decoration: underline; }
.sa-footer__brand img { height: 48px; width: auto; margin-bottom: .9rem; filter: brightness(0) invert(1); }
.sa-footer__bottom { padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center; font-size: .8rem; color: rgba(255,255,255,.52); }
.sa-footer__bottom nav { display: flex; flex-wrap: wrap; gap: .4rem .85rem; }

.sa-float { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 40; display: flex; flex-direction: column; gap: .6rem; }
.sa-float a { width: 50px; height: 50px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--sa-lift); }
.sa-float .is-wa { background: var(--sa-whatsapp); }
.sa-float .is-call { background: var(--sa-phone); }
.sa-float svg { width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 600px) { .sa-float { right: 1rem; bottom: 1rem; } }

/* --------------------------------------------------------------- misc -- */
.sa-empty { text-align: center; padding: 3.5rem 1rem; }
.sa-empty h2 { margin-bottom: .5rem; }
.sa-empty p { color: var(--sa-muted); margin-bottom: 1.6rem; }
.sa-empty .sa-search { max-width: 420px; margin-inline: auto; }
.sa-404__code { font-weight: 600; font-size: clamp(4.5rem, 16vw, 9rem); color: var(--sa-light); line-height: .9; margin-bottom: .4rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .sa-card:hover { transform: none; }
}

@media print {
  .sa-header, .sa-footer, .sa-sidebar, .sa-float, .sa-postnav { display: none !important; }
  body { color: #000; }
}
