/* ==========================================================================
   Sapiens Main-Theme Care Pillar Pages (.sht-care-pillar)
   Covers: care-move-better, care-live-better, care-look-better
   Follows .agent/rules/design-system.md Canonical Design Tokens
   ========================================================================== */

.sht-care-pillar {
  --sht-blue: #0758b7;
  --sht-navy: #102b51;
  --sht-accent: #1794dd;
  --sht-ink: #183442;
  --sht-muted: #526b7e;
  --sht-ice: #edf6fc;
  --sht-soft: #dceeff;
  --sht-cream: #f7f6f2;
  --sht-line: #dfe4e3;
  --sht-radius-card: 16px;
  --sht-radius-sm: 12px;
  --sht-radius-pill: 999px;
  font-family: "Kanit", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  color: var(--sht-ink);
  background: #ffffff;
  line-height: 1.8;
  font-size: 16px;
}

.sht-care-pillar *,
.sht-care-pillar *::before,
.sht-care-pillar *::after {
  box-sizing: border-box;
}

.sht-care-pillar .sht-container {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.sht-care-pillar a {
  color: var(--sht-blue);
  text-decoration: none;
}

.sht-care-pillar a:focus-visible,
.sht-care-pillar summary:focus-visible {
  outline: 3px solid var(--sht-accent);
  outline-offset: 4px;
}

/* ---------- Breadcrumb & Eyebrow ---------- */
.sht-care-pillar .sht-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #c9dff2;
  margin-bottom: 28px;
}

.sht-care-pillar .sht-breadcrumb a {
  color: #dceeff;
}

.sht-care-pillar .sht-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.sht-care-pillar .sht-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.1px;
  text-transform: uppercase;
  color: var(--sht-blue);
  margin-bottom: 10px;
}

/* ---------- Hero Section ---------- */
.sht-pillar-hero {
  background: linear-gradient(115deg, #102b51 0%, #14396b 62%, #0758b7 100%);
  color: #ffffff;
  padding: 36px 0 76px;
}

.sht-pillar-hero .sht-eyebrow {
  color: #a5dfff;
}

.sht-pillar-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.sht-pillar-hero h1 {
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -1px;
  color: #ffffff;
  margin: 0 0 18px;
}

.sht-pillar-hero .sht-hero-english {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(22px, 2.4vw, 32px);
  color: #dceeff;
  font-weight: 400;
  margin-top: 6px;
}

.sht-pillar-hero .sht-lead {
  font-size: 18px;
  line-height: 1.9;
  color: #e4f1fb;
  margin: 0 0 24px;
  max-width: 600px;
}

.sht-pillar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.sht-pillar-chips li {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--sht-radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(220, 238, 255, 0.32);
  color: #ffffff;
}

.sht-pillar-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.sht-care-pillar .sht-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--sht-radius-pill);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sht-care-pillar .sht-button--primary {
  background: var(--sht-blue);
  color: #ffffff;
  border: 1px solid #4d94e6;
}

.sht-care-pillar .sht-button--primary:hover {
  background: var(--sht-accent);
  border-color: var(--sht-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.sht-care-pillar .sht-button--secondary {
  background: var(--sht-soft);
  color: var(--sht-navy);
  border: 1px solid var(--sht-soft);
}

.sht-care-pillar .sht-button--secondary:hover {
  background: var(--sht-ice);
  border-color: #ffffff;
  color: var(--sht-navy);
}

.sht-pillar-hero__media {
  background: #ffffff;
  border-radius: var(--sht-radius-card);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(5, 20, 40, 0.28);
}

.sht-pillar-hero__img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.sht-sample-figure {
  position: relative;
  overflow: hidden;
}

.sht-sample-note {
  display: block;
  padding: 7px 12px;
  background: rgba(16, 43, 81, 0.9);
  color: #dceeff;
  font-size: 11.5px;
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sht-pillar-hero__caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--sht-navy);
  color: #dceeff;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Placeholder Visual Box ---------- */
.sht-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 360px;
  padding: 28px;
  background: linear-gradient(135deg, #edf6fc 0%, #dceeff 100%);
  color: var(--sht-navy);
}

.sht-media-placeholder--card {
  min-height: 200px;
  padding: 18px;
}

.sht-media-placeholder__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  padding: 4px 10px;
  border-radius: var(--sht-radius-pill);
  background: var(--sht-blue);
  color: #ffffff;
}

.sht-media-placeholder strong {
  font-size: 16px;
  font-weight: 500;
}

.sht-media-placeholder small {
  font-size: 12.5px;
  color: var(--sht-muted);
}

/* ---------- Sections & Headings ---------- */
.sht-section {
  padding: 88px 0;
}

.sht-section--white {
  background: #ffffff;
}

.sht-section--cream {
  background: var(--sht-cream);
}

.sht-section--ice {
  background: var(--sht-ice);
}

.sht-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}

.sht-section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.7px;
  color: var(--sht-navy);
  margin: 0;
}

.sht-section-sub {
  margin: 0;
  font-size: 15px;
  color: var(--sht-muted);
  max-width: 460px;
}

.sht-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--sht-blue);
  white-space: nowrap;
}

.sht-text-link:hover {
  color: var(--sht-navy);
  text-decoration: underline;
}

/* ---------- Grids & Cards ---------- */
.sht-grid {
  display: grid;
  gap: 24px;
}

.sht-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sht-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sht-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sht-mb-32 {
  margin-bottom: 32px;
}

.sht-mb-48 {
  margin-bottom: 48px;
}

.sht-card {
  background: #ffffff;
  border: 1px solid var(--sht-line);
  border-radius: var(--sht-radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.sht-card:hover {
  border-color: #b7d4ec;
  box-shadow: 0 12px 28px rgba(16, 43, 81, 0.07);
  transform: translateY(-2px);
}

.sht-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sht-ice);
  color: var(--sht-blue);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.sht-card h3 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--sht-navy);
  margin: 0 0 10px;
}

.sht-card h3 a {
  color: inherit;
}

.sht-card h3 a:hover {
  color: var(--sht-blue);
}

.sht-card p {
  font-size: 15px;
  color: var(--sht-muted);
  margin: 0 0 16px;
}

.sht-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--sht-radius-pill);
  background: var(--sht-soft);
  color: var(--sht-navy);
  margin-bottom: 12px;
}

.sht-badge--ice {
  background: var(--sht-ice);
  color: var(--sht-blue);
}

.sht-card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--sht-blue);
}

/* Department Pill Cards */
.sht-dept-pill-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid var(--sht-line);
  border-radius: var(--sht-radius-sm);
  color: var(--sht-navy) !important;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sht-dept-pill-card:hover {
  background: var(--sht-ice);
  border-color: var(--sht-blue);
}

.sht-dept-pill-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--sht-ice);
  color: var(--sht-blue);
  font-weight: 700;
  flex-shrink: 0;
}

.sht-dept-pill-card__title {
  font-size: 16px;
  line-height: 1.45;
}

.sht-dept-pill-card__arrow {
  margin-left: auto;
  color: var(--sht-blue);
}

/* Clinical Split */
.sht-clinical-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.sht-clinical-box {
  padding: 32px;
  border: 1px solid var(--sht-line);
  border-radius: var(--sht-radius-card);
  background: #ffffff;
}

.sht-clinical-box--ice {
  background: var(--sht-ice);
}

.sht-clinical-box h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--sht-navy);
  margin: 0 0 20px;
}

.sht-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 14px;
}

.sht-check-list li {
  position: relative;
  padding: 14px 16px 14px 40px;
  background: #ffffff;
  border: 1px solid var(--sht-line);
  border-radius: var(--sht-radius-sm);
}

.sht-check-list li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 15px;
  color: var(--sht-blue);
  font-weight: 700;
}

.sht-check-list strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--sht-navy);
  margin-bottom: 3px;
}

.sht-check-list span {
  display: block;
  font-size: 14px;
  color: var(--sht-muted);
}

/* Package Cards */
.sht-card--package {
  padding: 0;
  overflow: hidden;
}

.sht-card--package .sht-card__media img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.sht-card--package .sht-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sht-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--sht-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sht-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--sht-navy);
}

.sht-fine-print {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--sht-muted);
}

/* Doctor Cards */
.sht-card--doctor {
  padding: 20px;
  border-radius: var(--sht-radius-sm);
  align-items: center;
  text-align: center;
}

.sht-card--doctor__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sht-ice);
  margin-bottom: 14px;
}

.sht-card--doctor__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.sht-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--sht-blue);
  background: var(--sht-soft);
}

.sht-card--doctor__info h3 {
  font-size: 17.5px;
  margin-bottom: 6px;
}

.sht-card--doctor__info p {
  font-size: 13.5px;
  margin-bottom: 10px;
}

/* FAQ */
.sht-faq-block {
  border-top: 1px solid var(--sht-line);
  padding-top: 48px;
}

.sht-faq-list {
  display: grid;
  gap: 12px;
}

.sht-faq-item {
  border: 1px solid var(--sht-line);
  border-radius: var(--sht-radius-sm);
  padding: 18px 22px;
  background: #ffffff;
}

.sht-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--sht-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.sht-faq-item summary::after {
  content: "+";
  color: var(--sht-blue);
  font-size: 20px;
}

.sht-faq-item[open] summary::after {
  content: "−";
}

.sht-faq-item p {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--sht-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .sht-pillar-hero__grid,
  .sht-clinical-split,
  .sht-grid--3,
  .sht-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sht-pillar-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .sht-care-pillar .sht-container {
    width: calc(100% - 36px);
  }
  .sht-section {
    padding: 56px 0;
  }
  .sht-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .sht-grid--2,
  .sht-grid--3,
  .sht-grid--4,
  .sht-clinical-split {
    grid-template-columns: 1fr;
  }
  .sht-pillar-hero {
    padding: 24px 0 48px;
  }
  .sht-pillar-hero__img {
    height: 260px;
  }
}
