/* SCT blog pages — works with overlay header */
.sct-blog-hero {
  --sct-navy: #003973;
  --sct-ink: #092949;
  --sct-accent: #ef513d;
  position: relative;
  padding: clamp(140px, 18vw, 200px) 24px clamp(56px, 8vw, 88px);
  background:
    linear-gradient(180deg, rgba(9, 41, 73, 0.92), rgba(0, 57, 115, 0.88)),
    url("/images/patt-1.png") 0 0 / 54px auto,
    var(--sct-ink);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.sct-blog-hero__inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.sct-blog-hero__crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: Cabin, Sarabun, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.sct-blog-hero__crumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sct-blog-hero__crumb a:hover {
  color: #fff;
}

.sct-blog-hero__crumb span[aria-hidden="true"] {
  color: var(--sct-accent);
}

.sct-blog-hero h1 {
  margin: 0;
  font-family: Cabin, Sarabun, sans-serif;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.sct-blog-hero__meta {
  margin: 18px 0 0;
  font-family: Sarabun, Cabin, sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
}

.sct-blog-shell {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 110px);
}

.sct-blog-article {
  width: min(760px, 100%);
  margin: 0 auto;
}

.sct-blog-article__media {
  margin: -48px 0 36px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(9, 41, 73, 0.18);
}

.sct-blog-article__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sct-blog-prose {
  font-family: Sarabun, Cabin, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #3a4a5c;
}

.sct-blog-prose > *:first-child {
  margin-top: 0;
}

.sct-blog-prose p {
  margin: 0 0 1.15em;
}

.sct-blog-prose h2,
.sct-blog-prose h3 {
  margin: 1.6em 0 0.55em;
  font-family: Cabin, Sarabun, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #092949;
}

.sct-blog-prose a {
  color: #003973;
  text-underline-offset: 3px;
}

.sct-blog-prose ul,
.sct-blog-prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.25em;
}

.sct-blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 57, 115, 0.12);
}

.sct-blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-family: Cabin, Sarabun, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sct-blog-btn--navy {
  background: #003973;
  color: #fff;
}

.sct-blog-btn--navy:hover {
  background: #092949;
  color: #fff;
}

.sct-blog-btn--ghost {
  background: transparent;
  color: #003973;
  border: 1px solid rgba(0, 57, 115, 0.25);
}

.sct-blog-btn--ghost:hover {
  border-color: #ef513d;
  color: #ef513d;
}

.sct-blog-related {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid rgba(0, 57, 115, 0.12);
}

.sct-blog-related h2 {
  margin: 0 0 24px;
  font-family: Cabin, Sarabun, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: #092949;
}

.sct-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
}

.sct-blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0, 57, 115, 0.1);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.sct-blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 57, 115, 0.22);
  box-shadow: 0 16px 40px rgba(9, 41, 73, 0.12);
}

.sct-blog-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8eef5;
}

.sct-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.sct-blog-card:hover .sct-blog-card__media img {
  transform: scale(1.06);
}

.sct-blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 24px;
  flex: 1;
}

.sct-blog-card__date {
  font-family: Cabin, Sarabun, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ef513d;
}

.sct-blog-card__title {
  margin: 0;
  font-family: Cabin, Sarabun, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #092949;
}

.sct-blog-card__excerpt {
  margin: 0;
  font-family: Sarabun, Cabin, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5a6b7d;
}

@media (max-width: 900px) {
  .sct-blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sct-blog-article__media {
    margin-top: -28px;
  }
}

@media (max-width: 640px) {
  .sct-blog-grid {
    grid-template-columns: 1fr;
  }

  .sct-blog-shell {
    width: min(100% - 28px, 1100px);
  }
}
