/* main stylesheet, part 1 of 6: tokens, fonts, layout, header, mega menu, home and public pages.
   Loaded in this order by templates/base.html; the parts are one cascade, order matters. */
@font-face {
  font-family: "Peyda";
  src: url("/static/fonts/peyda/fanum/PeydaFaNumWeb-Regular.834c1f672281.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Peyda";
  src: url("/static/fonts/peyda/fanum/PeydaFaNumWeb-Medium.3af15ffc5aed.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Peyda";
  src: url("/static/fonts/peyda/fanum/PeydaFaNumWeb-SemiBold.c1535164616f.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Peyda";
  src: url("/static/fonts/peyda/fanum/PeydaFaNumWeb-Bold.d098c9ee6202.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f1eb;
  --surface: #f8f8f8;
  --text: #1e1e1e;
  --muted: rgba(30, 30, 30, 0.66);
  --accent: #de3f82;
  --accent-strong: #259193;
  --accent-soft: rgba(222, 63, 130, 0.15);
  --border: rgba(37, 145, 147, 0.12);
  --danger: #b42828;
  --content-width: 1320px;
  /* Shared scales (R70). New rules use these; old literals move over gradually. */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-card: 0 18px 40px rgba(33, 50, 58, 0.06);
  --shadow-card-strong: 0 18px 40px rgba(33, 50, 58, 0.08);
  --shadow-popover: 0 0 0 1px rgba(37, 145, 147, 0.14), 0 20px 45px rgba(33, 50, 58, 0.18);
  --z-dropdown: 30;
  --z-modal: 1500;
  /* Teal tints (the accent at a given opacity) */
  --teal-03: rgba(37, 145, 147, 0.03);
  --teal-04: rgba(37, 145, 147, 0.04);
  --teal-05: rgba(37, 145, 147, 0.05);
  --teal-06: rgba(37, 145, 147, 0.06);
  --teal-07: rgba(37, 145, 147, 0.07);
  --teal-08: rgba(37, 145, 147, 0.08);
  --teal-09: rgba(37, 145, 147, 0.09);
  --teal-10: rgba(37, 145, 147, 0.1);
  --teal-12: rgba(37, 145, 147, 0.12);
  --teal-14: rgba(37, 145, 147, 0.14);
  --teal-16: rgba(37, 145, 147, 0.16);
  --teal-18: rgba(37, 145, 147, 0.18);
  --teal-30: rgba(37, 145, 147, 0.3);
  /* Font sizes in use, named by hundredths of a rem (--fs-85 = 0.85rem).
     Next step is to fold neighbours together (0.84/0.85/0.86) on purpose. */
  --fs-72: 0.72rem;
  --fs-74: 0.74rem;
  --fs-75: 0.75rem;
  --fs-76: 0.76rem;
  --fs-78: 0.78rem;
  --fs-80: 0.8rem;
  --fs-82: 0.82rem;
  --fs-84: 0.84rem;
  --fs-85: 0.85rem;
  --fs-86: 0.86rem;
  --fs-88: 0.88rem;
  --fs-90: 0.9rem;
  --fs-92: 0.92rem;
  --fs-95: 0.95rem;
  --fs-100: 1rem;
  --fs-105: 1.05rem;
  --fs-120: 1.2rem;
  --radius-2xs: 0.4rem;
  --radius-sm2: 0.6rem;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

html {
  direction: rtl;
}

body {
  margin: 0;
  font-family: "Peyda", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(222, 63, 130, 0.1), transparent 28%),
    radial-gradient(circle at bottom left, var(--teal-07), transparent 28%),
    linear-gradient(180deg, #f8f8f8 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  right: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm2);
  background: var(--accent-strong);
  color: white;
  font-weight: 600;
  font-size: var(--fs-90);
  transition: top 0.15s ease;
}

.skip-link:focus-visible {
  top: 0.75rem;
}

h1, h2, h3 {
  text-wrap: balance;
}

p {
  margin-top: 0;
  text-wrap: pretty;
}

.container {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-footer {
  margin-top: 4rem;
  background: linear-gradient(180deg, var(--accent-strong) 0%, var(--text) 100%);
  color: rgba(255, 255, 255, 0.92);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: var(--accent-strong);
  color: var(--accent);
  font-size: var(--fs-85);
}

.brand-text {
  font-size: var(--fs-120);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1;
  margin-right: -5px;
}

.brand-logo {
  height: 3.6rem;
  overflow: hidden;
  width: auto;
  display: block;
}

.menu {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1rem;
  color: var(--muted);
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  color: var(--accent-strong);
  background: var(--teal-08);
  transition: background 0.15s ease;
}

.nav-toggle:hover {
  background: var(--teal-14);
}

/* #58: «تغییر فرزند» beside the account button, families with 2+ children */
.nav-switch-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  color: var(--accent-strong);
  background: var(--teal-08);
  transition: background 0.15s ease;
}

.nav-switch-child:hover {
  background: var(--teal-14);
}

.nav-switch-child svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}

.nav-toggle-icon-close {
  display: none;
}

.nav-toggle.open .nav-toggle-icon-menu {
  display: none;
}

.nav-toggle.open .nav-toggle-icon-close {
  display: block;
}

.menu > a,
.menu-item > a {
  position: relative;
  padding: 0.35rem 0.15rem;
  color: var(--muted);
  font-weight: 400;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.menu > a::after,
.menu-item > a::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0.05rem;
  height: 1px;
  background: var(--accent-strong);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.22s ease;
  opacity: 0.75;
}

.menu > a:hover,
.menu > a.nav-active,
.menu-item > a:hover,
.menu-item > a.nav-active {
  color: var(--accent-strong);
  text-shadow: 0 0 0.01px currentColor;
}

.menu > a:hover::after,
.menu > a.nav-active::after,
.menu-item > a:hover::after,
.menu-item > a.nav-active::after {
  transform: scaleX(1);
}

.menu > a.nav-active::after,
.menu-item > a.nav-active::after {
  height: 2px;
  opacity: 1;
}

/* ── Mega menu (hover waterfall dropdown) ─────────────────────────────────── */

.menu-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* Invisible hit-box: touches the trigger link with zero gap (top: 100%) so the
   cursor never leaves hoverable territory while travelling down to the card.
   The visual spacing before the card is padding-top, which is still inside
   this box and still hoverable. */
.mega-menu {
  position: absolute;
  top: 100%;
  right: var(--mega-menu-offset, 0px);
  width: min(22rem, calc(100vw - 2rem));
  padding-top: 0.7rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  z-index: 110;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0s linear;
}

.mega-menu-card {
  padding: 1rem 0.9rem 0.85rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(222, 63, 130, 0.08), transparent 55%),
    radial-gradient(circle at 0% 100%, var(--teal-07), transparent 50%),
    rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 50px rgba(30, 30, 30, 0.16);
  transform: translateY(0.4rem);
  transition: transform 0.25s ease;
}

.has-mega:hover .mega-menu-card,
.has-mega:focus-within .mega-menu-card {
  transform: translateY(0);
}

.mega-menu-group + .mega-menu-group {
  margin-top: 0.75rem;
}

.mega-menu-category {
  display: block;
  width: fit-content;
  padding: 0 0.6rem 0.4rem;
  font-size: var(--fs-72);
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.mega-menu-category:hover,
.mega-menu-category:focus-visible {
  color: var(--accent);
}

.mega-menu-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* dashed waterfall line threading through every bullet */
.mega-menu-list::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  bottom: 1.35rem;
  right: 0.94rem;
  border-right: 1.5px dashed var(--accent);
  opacity: 0.35;
}

.mega-menu-row {
  position: relative;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
  transition-delay: 0s;
}

.has-mega:hover .mega-menu-row,
.has-mega:focus-within .mega-menu-row {
  opacity: 1;
  transform: translateY(0);
}

.has-mega:hover .mega-menu-row:nth-child(1),
.has-mega:focus-within .mega-menu-row:nth-child(1) { transition-delay: 0.03s; }
.has-mega:hover .mega-menu-row:nth-child(2),
.has-mega:focus-within .mega-menu-row:nth-child(2) { transition-delay: 0.07s; }
.has-mega:hover .mega-menu-row:nth-child(3),
.has-mega:focus-within .mega-menu-row:nth-child(3) { transition-delay: 0.11s; }
.has-mega:hover .mega-menu-row:nth-child(4),
.has-mega:focus-within .mega-menu-row:nth-child(4) { transition-delay: 0.15s; }
.has-mega:hover .mega-menu-row:nth-child(5),
.has-mega:focus-within .mega-menu-row:nth-child(5) { transition-delay: 0.19s; }
.has-mega:hover .mega-menu-row:nth-child(6),
.has-mega:focus-within .mega-menu-row:nth-child(6) { transition-delay: 0.23s; }

.mega-menu-marker {
  position: absolute;
  top: 1.15rem;
  right: 0.72rem;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
}

.mega-menu-row:hover .mega-menu-marker {
  transform: scale(1.25);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.mega-menu-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 1.55rem 0.55rem 0.6rem;
  border-radius: var(--radius-sm2);
  transition: background-color 0.15s ease;
}

.mega-menu-row:hover .mega-menu-item,
.mega-menu-item:focus-visible {
  background: var(--accent-soft);
}

.mega-menu-item-title {
  font-weight: 600;
  font-size: var(--fs-95);
  color: var(--accent-strong);
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mega-menu-row:hover .mega-menu-item-title,
.mega-menu-item:focus-visible .mega-menu-item-title {
  color: var(--accent);
}

.mega-menu-item-desc {
  font-size: var(--fs-78);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mega-menu-viewall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
  font-size: var(--fs-85);
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateY(-0.35rem);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.15s ease;
  transition-delay: 0s;
}

.has-mega:hover .mega-menu-viewall,
.has-mega:focus-within .mega-menu-viewall {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.27s;
}

.mega-menu-viewall:hover,
.mega-menu-viewall:focus-visible {
  color: var(--accent-strong);
}

@media (max-width: 1100px) {
  .mega-menu {
    display: none;
  }
}

/* ── End mega menu ─────────────────────────────────────────────────────────── */

.button-small {
  padding: 0.7rem 1rem;
  font-size: var(--fs-95);
}

.page {
  padding: 0 0 3rem;
  overflow-x: clip;
}

/* ── Challenge ticker ── */
.challenge-ticker {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  height: 3.25rem;
  background: var(--teal-10);
  overflow: hidden;
  display: flex;
  align-items: center;
  direction: ltr;
}

.challenge-ticker-track {
  display: inline-flex;
  align-items: center;
  direction: ltr;
  white-space: nowrap;
  will-change: transform;
  animation: challenge-ticker-scroll 550s linear infinite;
}

@keyframes challenge-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .challenge-ticker-track {
    animation: none;
  }
}

.challenge-ticker-item {
  font-size: var(--fs-80);
  font-weight: 500;
  color: var(--accent-strong);
  padding: 0 1.25rem;
  white-space: nowrap;
  direction: rtl;
}

.challenge-ticker-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.55;
}

.page-sections {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0.5rem;
}

.footer-logo {
  font-size: var(--fs-105);
  font-weight: 700;
  color: white;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-badges {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* White card: the badge is designed for a light background. */
.footer-badge {
  display: flex;
  padding: 0.375rem 0.25rem;
  border-radius: var(--radius-sm);
  background: white;
  transition: opacity 0.2s;
}

.footer-badge:hover {
  opacity: 0.9;
}

.footer-badge img {
  display: block;
  height: 6rem;
  width: auto;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.footer-links h3 {
  margin: 0 0 0.35rem;
  color: white;
  font-size: var(--fs-105);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--fs-90);
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact {
  display: grid;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.84);
}

.footer-contact h3 {
  margin: 0 0 0.25rem;
  font-size: var(--fs-105);
  color: white;
}

.footer-contact p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.84);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}

.contact-item strong {
  display: block;
  font-size: var(--fs-95);
  color: white;
}

.contact-item span span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.footer-phone-link {
  color: inherit;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: bidi-override;
  display: inline-block;
  white-space: nowrap;
}

.footer-phone-link:hover {
  color: white;
}

.footer-phone-sep {
  padding: 0 0.55rem;
  opacity: 0.35;
  user-select: none;
}

.footer-phone-list {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  direction: ltr;
  unicode-bidi: isolate;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.1);
}

.contact-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  color: white;
}

.footer-socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.social-icon {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-icon::before {
  content: "";
  position: absolute;
  inset: -0.3rem;
}

.social-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  display: block;
}

.social-icon img {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.social-icon:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.social-icon:hover img {
  filter: brightness(0) invert(1);
}

.stack {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 9rem;
}

.stack:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: grid;
  gap: 0.25rem;
}

.section-heading h2,
.hero h1,
.card h3,
.simple-page h1 {
  margin: 0;
}

.section-heading p,
.hero-lead,
.card p {
  color: var(--muted);
}

.hero,
.simple-page,
.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.hero {
  width: 100vw;
  margin: -5.5rem calc(50% - 50vw) 1.75rem;
  padding: 20rem 0 12rem;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(222, 63, 130, 0.18), transparent 18%),
    radial-gradient(circle at 18% 82%, rgba(84, 133, 122, 0.38), transparent 28%),
    radial-gradient(circle at top right, rgba(84, 133, 122, 0.22), transparent 34%),
    radial-gradient(circle at bottom left, rgba(222, 63, 130, 0.06), transparent 30%),
    linear-gradient(180deg, #f8f8f8 0%, var(--bg) 100%);
  box-shadow:
    inset 0 -22px 30px var(--teal-07),
    inset 0 16px 18px rgba(255, 255, 255, 0.18);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(84, 133, 122, 0.05) 0%, transparent 38%),
    radial-gradient(circle at 72% 22%, rgba(222, 63, 130, 0.14) 0%, transparent 24%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 8%;
  right: 6%;
  z-index: 0;
  width: min(40vw, 28rem);
  height: min(40vw, 28rem);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(222, 63, 130, 0.26) 0%, rgba(222, 63, 130, 0.1) 30%, transparent 70%),
    radial-gradient(circle at 40% 40%, rgba(84, 133, 122, 0.34) 0%, transparent 65%);
  filter: blur(50px);
  opacity: 0.8;
  pointer-events: none;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto 50% -3rem auto;
  width: min(24vw, 18rem);
  height: min(24vw, 18rem);
  transform: translateX(50%);
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--teal-12) 0%, transparent 70%);
  filter: blur(42px);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 88rem;
  margin: 0 auto;
  text-align: center;
  padding: 0.5rem 0 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  font-size: var(--fs-95);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: var(--radius-pill);
  background: currentColor;
}

.hero h1 {
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  line-height: 1.25;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-lead {
  font-size: var(--fs-105);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 0;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.2rem;
  border-radius: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(33, 50, 58, 0.08);
}

.button.primary {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.button.secondary {
  background: transparent;
  color: var(--accent-strong);
  /*border: 1px solid var(--teal-18);*/
}

.button.secondary:hover {
  transform: none;
  box-shadow: none;
  background: rgba(30, 30, 30, 0.05);
}

.button-flat {
  background: transparent;
  color: var(--accent-strong);
  border: 0;
  border-radius: 0.65rem;
  box-shadow: none;
}

.button-flat:hover {
  transform: none;
  box-shadow: none;
  background: var(--teal-06);
}

.button-login {
  padding: 0.45rem 0.95rem;
  border-radius: 0.9rem;
  font-weight: 500;
}

.button-login:hover {
  transform: none;
  box-shadow: none;
  background: var(--teal-06);
}

.button-reserve {
  padding: 0.42rem 0.9rem;
  border-radius: 0.55rem;
  font-weight: 600;
}

.user-account-link {
  max-width: 12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
}

.button-reserve:hover {
  transform: none;
  box-shadow: none;
}

.button:active,
.button-flat:active,
.button-login:active,
.button-reserve:active {
  transform: scale(0.96);
  box-shadow: none;
}

.hero-points {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-points li {
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: var(--fs-95);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 13rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  background: linear-gradient(180deg, #f8f8f8 0%, rgba(245, 241, 235, 0.92) 100%);
}

.blog-card {
  display: grid;
  gap: 0.85rem;
}

.services-section {
  gap: 1.25rem;
}

.how-we-work-section {
  padding: 2.75rem 0 0.5rem;
  margin-bottom: 5.5rem;
}

.how-we-work-panel {
  background: var(--teal-05);
  border-radius: 1.25rem;
  padding: 3rem 3rem;
}

.how-we-work {
  max-width: 42rem;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
  text-align: center;
}

.how-we-work h2 {
  margin: 0;
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  font-weight: 700;
  color: var(--accent-strong);
}

.how-we-work p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.section-action-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-action-heading h2 {
  margin: 0;
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  line-height: 1.3;
  font-weight: 700;
}

.section-more {
  flex: 0 0 auto;
  padding: 0.45rem 0.95rem;
  color: rgba(37, 145, 147, 0.72);
  font-size: var(--fs-90);
  font-weight: 500;
  border-color: var(--teal-12);
  border-radius: 0.9rem;
}

.section-more:hover {
  transform: none;
  box-shadow: none;
  background: var(--teal-06);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-tile {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  min-height: 17rem;
  display: grid;
  align-content: end;
  gap: 0.7rem;
  padding: 1.25rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #e8e2d7;
  color: white;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Was transparent 24% -> 86% opaque by the bottom — tuned only against
     the highest-contrast photo in the set, so most other tiles' photos
     were essentially invisible under it. Starts later and caps lower so
     the photo stays legible while the title still has enough contrast. */
  background: linear-gradient(180deg, transparent 45%, rgba(37, 145, 147, 0.72) 100%);
}

.service-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.service-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.service-title {
  position: relative;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
}

.service-tile p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.articles-section {
  gap: 1.25rem;
}

.articles-grid {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.92fr) minmax(0, 0.92fr) minmax(0, 1.15fr);
  grid-template-areas:
    "article-left-top article-feature article-feature article-right-top"
    "article-left-bottom article-feature article-feature article-right-bottom";
  gap: 1rem;
}

.article-tile {
  min-width: 0;
  position: relative;
  display: grid;
  align-content: end;
  aspect-ratio: 1;
  min-height: 16rem;
  direction: rtl;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #e8e2d7;
  color: white;
  box-shadow: var(--shadow-card-strong);
  isolation: isolate;
}

.article-tile:nth-of-type(2) {
  grid-area: article-right-top;
}

.article-tile:nth-of-type(3) {
  grid-area: article-right-bottom;
}

.article-tile:nth-of-type(4) {
  grid-area: article-left-top;
}

.article-tile:nth-of-type(5) {
  grid-area: article-left-bottom;
}

.article-tile-featured {
  grid-area: article-feature;
  aspect-ratio: auto;
  min-height: 100%;
}

.article-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, var(--teal-18), var(--teal-04)),
    linear-gradient(145deg, #f8f8f8 0%, #f1dc8b 48%, #d8e0d8 100%);
}

.article-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.article-tile:nth-of-type(2) .article-image,
.article-tile:nth-of-type(5) .article-image {
  background:
    linear-gradient(135deg, var(--teal-16), var(--teal-04)),
    linear-gradient(145deg, #e2ece6 0%, #f4e3a4 58%, #f8f8f8 100%);
}

.article-tile:nth-of-type(3) .article-image,
.article-tile:nth-of-type(4) .article-image {
  background:
    linear-gradient(135deg, var(--teal-18), var(--teal-04)),
    linear-gradient(145deg, #f8f8f8 0%, #e6d5bd 52%, #d7e5e4 100%);
}

.article-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 45%, rgba(37, 145, 147, 0.62) 100%);
}

.article-content {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.article-tile-featured .article-content {
  padding: 1.35rem;
}

.article-title {
  font-weight: 700;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-excerpt {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-92);
  line-height: 1.7;
}

.article-tile:not(.article-tile-featured) .article-excerpt {
  display: none;
}

.cta-card {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(2.2rem, 7vw, 6rem) 1.5rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.38), transparent 32%),
    radial-gradient(circle at bottom left, var(--teal-08), transparent 36%),
    linear-gradient(135deg, #e84a8f 0%, var(--accent) 54%, #cc3475 100%);
  color: white;
  text-align: center;
  box-shadow: 0 24px 60px var(--teal-12);
  overflow: hidden;
  margin-top: 50px;
}

.cta-card h2 {
  max-width: 36ch;
  margin: 6px 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.35;
}

.cta-card p {
  max-width: 43rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.cta-button {
  margin-top: 0.4rem;
  background: var(--accent-strong);
  color: white;
  border: 1px solid var(--teal-14);
  box-shadow: 0 12px 30px var(--teal-18);
}

.card h2,
.simple-page h1,
.hero h1 {
  margin-top: 0;
}

.page-hero {
  display: grid;
  gap: 0.65rem;
  width: 100vw;
  margin: 0 calc(50% - 50vw) 2.25rem;
  padding-block: 6.5rem 2.75rem;
  padding-inline: max(1rem, calc((100vw - var(--content-width)) / 2));
  border-radius: 0;
  /* Back close to the original bold pink (too pale once combined with a
     lighter base + a strong glow) — just a small white touch on the
     left, where the page-hero's h1/breadcrumb/summary (right-aligned
     under RTL) leave empty space. */
  background:
    radial-gradient(ellipse at left, rgba(255, 255, 255, 0.1), transparent 35%),
    linear-gradient(135deg, #e84a8f 0%, var(--accent) 55%, #cc3475 100%);
  box-shadow: 0 18px 40px rgba(33, 50, 58, 0.12);
}

.page-hero-compact {
  margin-bottom: 1.75rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.25;
  color: #fff;
}

.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-90);
  line-height: 1.6;
}

.page-breadcrumb a {
  color: #fff;
}

.page-breadcrumb span {
  white-space: nowrap;
}

.page-summary {
  width: 100%;
  max-width: none;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.95;
}

/* .page-hero's background became a pink gradient with the panel/public
   header redesign, and its h1/breadcrumb were updated for that (white,
   translucent white) — .page-summary's color was missed, leaving the
   --muted token (tuned for the light page background) stranded on pink.
   Scoped here rather than changed on .page-summary itself, since that
   class is also used outside .page-hero (e.g. test_start.html's white
   intro-text card), where the original --muted color is correct. */
.page-hero .page-summary {
  color: rgba(255, 255, 255, 0.88);
}

.blogs-page {
  padding-bottom: 1rem;
}

.services-page {
  padding-bottom: 1rem;
}

.challenges-page {
  padding-bottom: 1rem;
}

.challenges-wrap {
  position: relative;
}

.counselors-page {
  padding-bottom: 1rem;
}

.about-page {
  padding-bottom: 1rem;
}

.blogs-empty-state {
  display: grid;
  place-items: center;
  gap: 1rem;
  padding: 4rem 1rem;
  text-align: center;
  color: var(--muted);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--teal-09);
  color: var(--accent-strong);
  font-size: var(--fs-78);
  font-weight: 500;
}

.post-tags-cover {
  gap: 0.4rem;
}

.post-tag-cover {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  padding: 0.22rem 0.7rem;
  font-size: 0.83rem;
  backdrop-filter: blur(6px);
}

.blogs-toolbar {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin-bottom: 1.4rem;
}

.blogs-controls {
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(10rem, 0.65fr) minmax(10rem, 0.65fr) minmax(0, 1.35fr);
  grid-template-areas: "category sort search";
  gap: 0.75rem;
}

.blogs-controls > * {
  min-width: 0;
}

.search-field {
  grid-area: search;
}

.blogs-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.85rem;
  align-self: stretch;
  border-radius: 0.7rem;
  border: 1px solid var(--teal-14);
  background: white;
  color: var(--accent-strong);
  transition: background 0.15s ease;
}

.blogs-filter-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.blogs-filter-toggle:hover {
  background: var(--teal-06);
}

.blogs-filter-toggle[aria-expanded="true"] {
  background: var(--teal-10);
  border-color: var(--teal-30);
}

.sort-field-category {
  grid-area: category;
}

.sort-field-sort {
  grid-area: sort;
}

@keyframes blogs-filter-field-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-field,
.sort-field {
  direction: rtl;
}

.search-field {
  position: relative;
}

.search-icon {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(37, 145, 147, 0.55);
  pointer-events: none;
}

.search-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.search-field input,
.sort-field select {
  width: 100%;
  min-height: 2.85rem;
  border-radius: 0.7rem;
  border: 1px solid var(--teal-14);
  background: white;
  color: var(--text);
  padding: 0.7rem 0.95rem;
  font: inherit;
  outline: none;
}

.sort-field select {
  padding-inline-start: 0.95rem;
  padding-inline-end: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23133333' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: 0.95rem 50%;
  background-size: 0.95rem 0.95rem;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.search-field input {
  padding-inline-start: 2.5rem;
  padding-inline-end: 0.95rem;
}

.search-field input:focus,
.sort-field select:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--teal-30);
  outline: none;
}

/* Custom dropdown for the public site (blogs page tag/sort filters) — a
   <details>/<summary> disclosure, same pattern as the panel's own custom
   selects (see .panel-select), but a separate class/rule set on purpose:
   public and panel styling should stay independent so a tweak to one
   never silently bleeds into the other. */
.site-select {
  position: relative;
  direction: rtl;
}

.site-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.7rem;
  border: 1px solid var(--teal-14);
  background: white;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-select-trigger::-webkit-details-marker {
  display: none;
}

.site-select-trigger:hover {
  border-color: var(--teal-30);
}

.site-select[open] > .site-select-trigger {
  border-color: rgba(37, 145, 147, 0.28);
  box-shadow: 0 0 0 4px var(--teal-06);
}

.site-select-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-select-chevron {
  flex-shrink: 0;
  color: var(--accent-strong);
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1);
}

.site-select[open] .site-select-chevron {
  transform: rotate(180deg);
}

.site-select-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  left: 0;
  z-index: 20;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
  padding: 0.35rem;
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  gap: 0.1rem;
}

.site-select-option {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  font-size: var(--fs-85);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.12s ease;
}

.site-select-option:hover {
  background: var(--teal-08);
}

.site-select-option.active {
  background: var(--teal-12);
  color: var(--accent-strong);
  font-weight: 600;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.services-category-section {
  margin-bottom: 3rem;
  scroll-margin-top: 6rem;
}

.services-category-section:last-child {
  margin-bottom: 0;
}

.services-category-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  color: var(--accent-strong);
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(37, 145, 147, 0.15);
  position: relative;
}

.services-category-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: var(--accent-line-width, 3rem);
  height: 2px;
  background: var(--accent-strong);
  border-radius: 2px;
}

.services-category-wrap {
  position: relative;
}

.services-category-empty {
  margin: 0;
  padding: 1.5rem 1.25rem;
  color: var(--muted);
  font-size: var(--fs-95);
  border: 1px dashed rgba(37, 145, 147, 0.2);
  border-radius: var(--radius-md);
  text-align: center;
}

/* ── Services peek / expand ── */
.services-grid-clip {
  position: relative;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-mask-image: linear-gradient(
    to top,
    transparent 0%,
    rgba(0,0,0,0.03) 6%,
    rgba(0,0,0,0.10) 13%,
    rgba(0,0,0,0.25) 21%,
    rgba(0,0,0,0.48) 30%,
    rgba(0,0,0,0.70) 39%,
    rgba(0,0,0,0.87) 48%,
    rgba(0,0,0,0.96) 55%,
    black 62%
  );
  mask-image: linear-gradient(
    to top,
    transparent 0%,
    rgba(0,0,0,0.03) 6%,
    rgba(0,0,0,0.10) 13%,
    rgba(0,0,0,0.25) 21%,
    rgba(0,0,0,0.48) 30%,
    rgba(0,0,0,0.70) 39%,
    rgba(0,0,0,0.87) 48%,
    rgba(0,0,0,0.96) 55%,
    black 62%
  );
}

.services-expandable.is-expanded .services-grid-clip {
  -webkit-mask-image: none;
  mask-image: none;
}

.services-expand-wrap {
  display: flex;
  justify-content: center;
  padding-top: 1.1rem;
}

.services-expand-btn {
  gap: 0.4rem;
  padding: 0.55rem 1.6rem;
  font-family: inherit;
  font-size: var(--fs-90);
  cursor: pointer;
}

.services-expand-icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.35s ease;
}

.services-expandable.is-expanded .services-expand-icon {
  transform: rotate(180deg);
}


.about-page-card {
  display: grid;
  gap: 2rem;
  width: 100%;
  padding: 1.75rem;
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at top right, rgba(222, 63, 130, 0.08), transparent 24%),
    linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
  border: 1px solid var(--teal-09);
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .about-page-card {
    grid-template-columns: 17rem 1fr;
    align-items: start;
    gap: 3.5rem;
    padding: 3rem;
  }
}

.about-page-card-header {
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 900px) {
  .about-page-card-header {
    position: sticky;
    top: 6.5rem;
  }
}

.about-page-card-header h2 {
  margin: 0;
  color: var(--accent-strong);
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  line-height: 1.45;
}

.about-page-card-header h3 {
  margin: 0;
  color: rgba(37, 145, 147, 0.72);
  font-size: var(--fs-95);
  font-weight: 500;
  line-height: 1.8;
}

.about-page-card-content {
  display: grid;
  gap: 1.35rem;
}

.about-page-card-content p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-100);
  line-height: 2;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.about-page-card-content p:first-of-type {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 500;
}

.counselors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.blog-card-vertical,
.service-card-vertical {
  position: relative;
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--teal-09);
  box-shadow: var(--shadow-card);
}

.counselor-card-vertical {
  position: relative;
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--teal-09);
  box-shadow: var(--shadow-card);
}

/* Whole-card click target: each card's own "more" link's ::after is
   stretched (via position:relative on the card above) to cover the full
   card, so clicking anywhere on services/blogs/tests/challenges/counselor
   cards navigates like clicking the visible button — a bigger, easier hit
   target, especially on mobile. Deliberately keeps the default cursor over
   the stretched area (cursor:default below) rather than pointer, so the
   card doesn't visually read as "the whole thing is a button" — only the
   real button (lifted above the overlay via z-index) shows the hand
   cursor, same as before. */
.service-card-more::after,
.blog-card-more::after,
.counselor-card-more::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: default;
}

.service-card-more-label,
.service-card-more-icon,
.blog-card-more-label,
.blog-card-more-icon,
.counselor-card-more-label,
.counselor-card-more-icon {
  position: relative;
  z-index: 2;
}

.blog-card-image,
.service-card-image {
  aspect-ratio: 1 / 0.8;
  overflow: hidden;
  background: linear-gradient(145deg, #f8f8f8 0%, #e8e2d7 100%);
}

.counselor-card-image {
  aspect-ratio: 1 / 0.8;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.26), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(135deg, #fef2f6 0%, #fce4ee 42%, #f7cfe0 72%, #f2bcd3 100%);
}

.test-card-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.8;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.42), transparent 22%),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(135deg, #fdf8fa 0%, #faeef4 38%, #f6e3ed 72%, #f1d8e7 100%);
}

.test-card-visual .test-card-icon {
  width: 2.7rem;
  height: 2.7rem;
  display: block;
  position: relative;
  z-index: 1;
  object-fit: contain;
  transform: scale(2.05);
  transform-origin: center;
  filter: brightness(0) saturate(0%) invert(22%) sepia(13%) saturate(1106%) hue-rotate(131deg) brightness(94%) contrast(92%);
  opacity: 0.95;
  /* The parent also carries .service-card-image (shared with real photo
     cards), whose img rule adds an inset frame meant to define a photo's
     edge — wrong here, since this is a small centered icon, not a
     full-bleed photo, and the frame showed as a faint square around it. */
  box-shadow: none;
}

.counselor-card-avatar {
  aspect-ratio: 1 / 0.8;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #fef2f6 0%, #fce4ee 46%, #f7cfe0 100%);
  color: white;
}

.counselor-card-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.counselor-card-avatar span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.counselor-card-avatar span svg {
  width: 42%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.blog-card-image img,
.service-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.blog-card-body,
.service-card-body {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.1rem 1.2rem;
  background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
}

.counselor-card-body {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem 1.1rem 1.2rem;
  background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
}

.blog-card-footer,
.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  direction: rtl;
  gap: 0.75rem;
}

.counselor-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  direction: rtl;
  gap: 0.6rem;
}

.service-card-footer {
  justify-content: flex-end;
}

.test-card-footer {
  justify-content: space-between;
}

.blog-card-text,
.service-card-text {
  display: grid;
  gap: 0.45rem;
}

.counselor-card-text {
  display: grid;
  gap: 0.35rem;
}

.counselor-card-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.counselor-card-heading-row .counselor-badge {
  align-self: flex-end;
}

.blog-card-text h2,
.service-card-text h2,
.blog-card-text h3,
.service-card-text h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--accent-strong);
}

.counselor-card-text h2 {
  margin: 0;
  font-size: var(--fs-105);
  line-height: 1.5;
  color: var(--accent-strong);
}

.blog-card-text p,
.service-card-text p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-92);
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.counselor-card-text p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-92);
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.counselor-card-role {
  color: rgba(37, 145, 147, 0.82);
  font-size: var(--fs-92);
  font-weight: 600;
}

.counselor-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: fit-content;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-72);
  font-weight: 600;
  background: rgba(222, 63, 130, 0.1);
  color: var(--accent);
}

.counselor-card-meta {
  display: none;
}

.counselor-card-label {
  color: rgba(37, 145, 147, 0.58);
  font-size: var(--fs-78);
}

.counselor-card-specialization {
  color: var(--accent-strong);
  font-size: var(--fs-90);
  font-weight: 500;
}

.blog-card-more {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  direction: ltr;
  gap: 0.35rem;
  width: fit-content;
  white-space: nowrap;
  padding: 0.32rem 0.68rem;
  font-size: var(--fs-84);
}

.service-card-more {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  direction: ltr;
  gap: 0.35rem;
  width: fit-content;
  white-space: nowrap;
  padding: 0.32rem 0.68rem;
  font-size: var(--fs-84);
}

.counselor-card-more {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  direction: ltr;
  gap: 0.35rem;
  width: fit-content;
  white-space: nowrap;
  padding: 0.32rem 0.68rem;
  font-size: var(--fs-84);
}

.blog-card-date {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: var(--fs-82);
  white-space: nowrap;
}

.test-card-duration {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: var(--fs-82);
  white-space: nowrap;
}

.test-card-duration-icon {
  width: 0.92rem;
  height: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(37, 145, 147, 0.55);
}

.test-card-duration-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.service-card-more-label,
.blog-card-more-label,
.counselor-card-more-label {
  direction: rtl;
  unicode-bidi: plaintext;
}

.service-card-more-icon {
  width: 0.36rem;
  height: 0.36rem;
  display: inline-block;
  border-left: 1.3px solid currentColor;
  border-bottom: 1.3px solid currentColor;
  transform: rotate(45deg);
  margin-top: 0.01rem;
  flex: 0 0 auto;
}

.counselor-card-more-icon {
  width: 0.36rem;
  height: 0.36rem;
  display: inline-block;
  border-left: 1.3px solid currentColor;
  border-bottom: 1.3px solid currentColor;
  transform: rotate(45deg);
  margin-top: 0.01rem;
  flex: 0 0 auto;
}

.test-card-vertical .service-card-text h2 {
  font-size: var(--fs-105);
}

.blog-card-more-icon {
  width: 0.36rem;
  height: 0.36rem;
  display: inline-block;
  border-left: 1.3px solid currentColor;
  border-bottom: 1.3px solid currentColor;
  transform: rotate(45deg);
  margin-top: 0.01rem;
  flex: 0 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Service detail page ──────────────────────────────────── */

.service-detail-cover {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  position: relative;
  min-height: 26rem;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}

.service-detail-cover-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.service-detail-cover-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.04);
}

.service-detail-cover-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    var(--teal-08) 0%,
    rgba(37, 145, 147, 0.55) 55%,
    rgba(37, 145, 147, 0.88) 100%
  );
}

.service-detail-cover-inner {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  color: white;
  display: grid;
  gap: 0.65rem;
}

.service-detail-breadcrumb {
  color: rgba(255, 255, 255, 0.72);
}

.service-detail-breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
}

.service-detail-cover-inner h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  line-height: 1.25;
}

.service-detail-cover-lead {
  margin: 0;
  font-size: var(--fs-105);
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.85;
}

.service-detail-page {
  padding-bottom: 1rem;
}

.service-detail-body {
  margin: 2.5rem 0 3rem;
}

.service-detail-prose {
  font-size: var(--fs-105);
  line-height: 2.1;
  color: var(--text);
  text-align: justify;
  text-justify: inter-word;
}

.service-detail-prose p {
  margin-bottom: 1.4rem;
}

.service-detail-prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.4;
  color: var(--accent-strong);
}

.service-detail-prose h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--accent-strong);
}

.service-detail-prose h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: var(--fs-100);
  font-weight: 600;
  color: var(--accent-strong);
}

.service-detail-prose ul,
.service-detail-prose ol {
  margin: 0 1.5rem 1.4rem 0;
  padding: 0;
  color: var(--text);
}

.service-detail-prose li {
  margin-bottom: 0.4rem;
  line-height: 1.95;
}

.service-detail-prose strong {
  font-weight: 700;
  color: var(--accent-strong);
}

.service-detail-prose a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-detail-prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.service-detail-counselors {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .service-detail-cover {
    aspect-ratio: auto;
    min-height: 20rem;
    width: 100%;
    margin-inline: 0;
  }
}

/* ── Blog detail page ────────────────────────────────────── */

.blog-detail-cover {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  position: relative;
  min-height: 26rem;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}

.blog-detail-cover-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.blog-detail-cover-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.04);
}

.blog-detail-cover-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    var(--teal-08) 0%,
    rgba(37, 145, 147, 0.55) 55%,
    rgba(37, 145, 147, 0.88) 100%
  );
}

.blog-detail-cover-inner {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  color: white;
  display: grid;
  gap: 0.65rem;
}

.blog-detail-breadcrumb {
  color: rgba(255, 255, 255, 0.72);
}

.blog-detail-breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
}

.blog-detail-cover-inner h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  line-height: 1.25;
}

.blog-detail-cover-meta {
  margin: 0;
  font-size: var(--fs-90);
  color: rgba(255, 255, 255, 0.65);
  direction: ltr;
  text-align: right;
}

.blog-detail-cover-lead {
  margin: 0;
  font-size: var(--fs-105);
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.85;
}

.blog-detail-page {
  padding-bottom: 1rem;
}

.blog-detail-body {
  margin: 2.5rem 0 3rem;
}

.blog-detail-prose {
  font-size: var(--fs-105);
  line-height: 2.1;
  color: var(--text);
  text-align: justify;
  text-justify: inter-word;
}

.blog-detail-prose p {
  margin-bottom: 1.4rem;
}

.blog-detail-prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.4;
  color: var(--accent-strong);
}

.blog-detail-prose h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--accent-strong);
}

.blog-detail-prose h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: var(--fs-100);
  font-weight: 600;
  color: var(--accent-strong);
}

.blog-detail-prose ul,
.blog-detail-prose ol {
  margin: 0 1.5rem 1.4rem 0;
  padding: 0;
  color: var(--text);
}

.blog-detail-prose li {
  margin-bottom: 0.4rem;
  line-height: 1.95;
}

.blog-detail-prose strong {
  font-weight: 700;
  color: var(--accent-strong);
}

.blog-detail-prose a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-detail-prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

@media (max-width: 600px) {
  .blog-detail-cover {
    aspect-ratio: auto;
    min-height: 20rem;
    width: 100%;
    margin-inline: 0;
  }
}

/* ── Counselor detail page ───────────────────────────────── */

.counselor-detail-header {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  position: relative;
  padding: 3rem 0 3.5rem;
  isolation: isolate;
  overflow: hidden;
}

.counselor-detail-header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 20%, rgba(222, 63, 130, 0.22), transparent 35%),
    radial-gradient(circle at 20% 80%, var(--teal-18), transparent 35%),
    linear-gradient(135deg, #f8f8f8 0%, #fce4ee 55%, #e0f4f4 100%);
}

.counselor-detail-header-inner {
  display: grid;
  gap: 1.25rem;
}

.counselor-detail-breadcrumb {
  color: rgba(37, 145, 147, 0.72);
}

.counselor-detail-breadcrumb a {
  color: var(--accent-strong);
}

.counselor-detail-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}

.counselor-detail-photo {
  width: min(14rem, 38vw);
  height: min(14rem, 38vw);
  border-radius: 1.75rem;
  overflow: hidden;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #fef2f6 0%, #fce4ee 46%, #f7cfe0 100%);
  box-shadow:
    0 24px 60px rgba(222, 63, 130, 0.15),
    0 0 0 4px rgba(255, 255, 255, 0.7);
}

.counselor-detail-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.counselor-detail-photo span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.counselor-detail-photo span svg {
  width: 45%;
  height: 45%;
}

.counselor-detail-identity {
  display: grid;
  gap: 0.6rem;
  align-content: center;
}

.counselor-detail-identity h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.25;
  color: var(--accent-strong);
}

.counselor-detail-role-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.counselor-detail-role {
  margin: 0;
  font-size: var(--fs-105);
  font-weight: 600;
  color: var(--accent);
}

.counselor-detail-specialization {
  margin: 0;
  font-size: var(--fs-95);
  color: var(--muted);
  line-height: 1.7;
}

.counselor-detail-reserve {
  margin-top: 0.35rem;
  width: fit-content;
  padding: 0.55rem 1.4rem;
  font-size: 0.97rem;
  border-radius: 0.65rem;
}

.counselor-detail-page {
  padding-bottom: 1rem;
}

.counselor-detail-section {
  margin: 2.5rem 0 2rem;
  padding: 2rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(222, 63, 130, 0.05), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
  border: 1px solid var(--teal-09);
  box-shadow: var(--shadow-card);
}

.counselor-detail-section-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--accent-strong);
  line-height: 1.4;
}

.counselor-detail-prose {
  font-size: 1.03rem;
  line-height: 2.05;
  color: var(--text);
  text-align: justify;
  text-justify: inter-word;
}

.counselor-detail-prose p { margin-bottom: 1.25rem; }

.counselor-detail-prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--accent-strong);
}

.counselor-detail-prose h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: var(--fs-105);
  color: var(--accent-strong);
}

.counselor-detail-prose strong {
  font-weight: 700;
  color: var(--accent-strong);
}

.counselor-detail-prose ul,
.counselor-detail-prose ol {
  margin: 0 1.5rem 1.25rem 0;
  padding: 0;
}

.counselor-detail-prose li {
  margin-bottom: 0.35rem;
  line-height: 1.9;
}

.counselor-detail-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.counselor-detail-service-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--teal-10);
  color: var(--accent-strong);
  font-size: var(--fs-84);
  font-weight: 500;
  transition: background 0.2s ease;
}

.counselor-detail-service-tag:hover {
  background: var(--teal-18);
}

.counselor-card-specialization-tag {
  margin: 0;
  font-size: var(--fs-84);
  color: rgba(37, 145, 147, 0.75);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .counselor-detail-profile {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .counselor-detail-photo {
    width: min(12rem, 55vw);
    height: min(12rem, 55vw);
  }

  .counselor-detail-role-row {
    justify-content: center;
  }

  .counselor-detail-reserve {
    margin: 0.2rem auto 0;
  }

  .counselor-detail-section {
    padding: 1.25rem;
  }

  .counselor-detail-header {
    width: 100%;
    margin-inline: 0;
  }
}

