:root {
  --stc-red: #e4002b;
  --stc-red-dark: #b8001f;
  --stc-navy: #1a1a2e;
  --stc-text: #2d2d2d;
  --stc-muted: #5c5c5c;
  --stc-bg: #ffffff;
  --stc-bg-soft: #f4f4f6;
  --stc-border: #e2e2e8;
  --stc-radius: 12px;
  --stc-shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
  --stc-font: 'Sarabun', sans-serif;
}

.charity-site {
  --bs-body-font-family: var(--stc-font);
  --bs-font-sans-serif: var(--stc-font);
  --bs-primary: var(--stc-red);
  --bs-primary-rgb: 228, 0, 43;
  --bs-link-color: var(--stc-red);
  --bs-link-hover-color: var(--stc-red-dark);
  --bs-border-radius: var(--stc-radius);
  --bs-border-radius-pill: 999px;
  font-family: var(--stc-font);
  color: var(--stc-text);
  background: var(--stc-bg);
  line-height: 1.65;
}

.charity-site .btn-primary {
  --bs-btn-bg: var(--stc-red);
  --bs-btn-border-color: var(--stc-red);
  --bs-btn-hover-bg: var(--stc-red-dark);
  --bs-btn-hover-border-color: var(--stc-red-dark);
  --bs-btn-active-bg: var(--stc-red-dark);
  --bs-btn-active-border-color: var(--stc-red-dark);
}

.charity-site .wrapbox,
.charity-site .wrapsemibox,
.charity-site .toparea,
.charity-site .wowmenu,
.charity-site .semiboxshadow,
.charity-site .pageheader-default {
  all: unset;
  display: contents;
}

.charity-site img {
  max-width: 100%;
  height: auto;
}

.stc-topbar {
  background: var(--stc-navy);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.stc-navbar {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.stc-logo {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--stc-navy);
  line-height: 1.25;
  max-width: 16rem;
  white-space: normal;
}

.stc-logo:hover,
.stc-logo:focus {
  color: var(--stc-red);
}

.stc-navbar .nav-link {
  font-weight: 500;
  color: var(--stc-text);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}

.stc-navbar .nav-link:hover,
.stc-navbar .nav-link:focus {
  color: var(--stc-red);
  background: var(--stc-bg-soft);
}

.stc-navbar .navbar-toggler {
  border-color: var(--stc-border);
}

.stc-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(228, 0, 43, 0.15);
}

.stc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.stc-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.stc-btn--primary {
  background: var(--stc-red);
  color: #fff;
}

.stc-btn--primary:hover {
  background: var(--stc-red-dark);
  color: #fff;
}

.stc-btn--outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.stc-btn--outline:hover {
  background: #fff;
  color: var(--stc-red);
}

.stc-btn--light {
  background: #fff;
  color: var(--stc-red);
}

.stc-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(120deg, rgba(26, 26, 46, 0.82), rgba(228, 0, 43, 0.55)),
    url('../images/472299559_1153116686462943_3012542912174090509_n.jpg') top center/cover no-repeat;
}

.stc-hero--compact {
  min-height: 220px;
}

.stc-hero__grid {
  padding: 4rem 0;
}

.stc-hero--compact .stc-hero__grid {
  padding: 2.5rem 0;
}

.stc-hero__logo {
  width: clamp(140px, 22vw, 320px);
  height: auto;
}

.stc-hero--compact .stc-hero__logo img {
  width: clamp(100px, 16vw, 200px);
}

.stc-hero__content {
  flex: 1;
  min-width: 0;
}

.stc-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.stc-hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.stc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stc-hero__btn {
  --bs-btn-bg: var(--stc-red);
  --bs-btn-border-color: var(--stc-red);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--stc-red-dark);
  --bs-btn-hover-border-color: var(--stc-red-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--stc-red-dark);
  --bs-btn-active-border-color: var(--stc-red-dark);
  --bs-btn-active-color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
}

.stc-section {
  padding: 4rem 0;
}

.stc-section--soft {
  background: var(--stc-bg-soft);
}

.stc-section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--stc-navy);
  margin-bottom: 0.75rem;
}

.stc-section__lead {
  color: var(--stc-muted);
  max-width: 720px;
  margin-bottom: 2rem;
}

.stc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.stc-stat {
  background: #fff;
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius);
  padding: 1.5rem;
  box-shadow: var(--stc-shadow);
}

.stc-stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--stc-red);
  margin-bottom: 0.35rem;
}

.stc-donate-card {
  background: #fff;
  border-radius: var(--stc-radius);
  border: 1px solid var(--stc-border);
  box-shadow: var(--stc-shadow);
  padding: 2rem;
  text-align: center;
}

.stc-donate-card img {
  max-width: 220px;
  margin: 0 auto 1rem;
  border-radius: 8px;
}

.stc-card {
  background: #fff;
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius);
  overflow: hidden;
  box-shadow: var(--stc-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(26, 26, 46, 0.12);
}

.stc-card__image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--stc-bg-soft);
}

.stc-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.stc-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stc-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.stc-card__title a {
  color: var(--stc-navy);
  text-decoration: none;
}

.stc-card__title a:hover {
  color: var(--stc-red);
}

.stc-card__excerpt {
  color: var(--stc-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.stc-catalog-grid .stc-card__excerpt {
  font-size: 0.8rem;
  line-height: 1.35;
}

.stc-card__link {
  color: var(--stc-red);
  font-weight: 600;
  text-decoration: none;
}

.stc-pagination .pagination {
  gap: 0.35rem;
}

.stc-pagination .page-link {
  color: var(--stc-navy);
  border-color: var(--stc-border);
  border-radius: 999px;
  min-width: 2.4rem;
  text-align: center;
  font-weight: 600;
}

.stc-pagination .page-link:hover {
  color: var(--stc-red);
  border-color: var(--stc-red);
  background: var(--stc-bg-soft);
}

.stc-pagination .page-item.active .page-link {
  background: var(--stc-red);
  border-color: var(--stc-red);
}

.stc-content-box {
  background: #fff;
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius);
  padding: 2rem;
  box-shadow: var(--stc-shadow);
}

.stc-content-box h1,
.stc-content-box .bigtext {
  font-size: clamp(1.35rem, 2.7vw, 1.8rem);
  font-weight: 700;
  color: var(--stc-navy);
  margin-bottom: 1rem;
}

.stc-content-box .txtwebview,
.stc-content-box .txtwebcat,
.stc-content-box .txtwebprd,
.stc-content-box p {
  font-size: 1rem;
  line-height: 1.75;
}

.stc-content-box .txtpic {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--stc-muted);
  margin: 0.35rem 0 1.25rem;
}

.stc-view-image {
  display: inline-block;
  cursor: zoom-in;
}

.stc-view-image img {
  transition: opacity 0.2s ease;
}

.stc-view-image:hover img {
  opacity: 0.92;
}

.stc-sidebar {
  background: #fff;
  border: 1px solid var(--stc-border);
  border-radius: var(--stc-radius);
  padding: 1.25rem;
  box-shadow: var(--stc-shadow);
}

.stc-sidebar h2,
.stc-sidebar .bigtext {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--stc-navy);
  margin-bottom: 1rem;
}

.stc-sidebar__list .list-group-item {
  border-left: 0;
  border-right: 0;
  padding-left: 0;
  padding-right: 0;
  color: var(--stc-text);
  font-weight: 500;
}

.stc-sidebar__list .list-group-item:hover,
.stc-sidebar__list .list-group-item:focus {
  color: var(--stc-red);
  background: transparent;
}

.stc-footer {
  background: var(--stc-navy);
  color: #fff;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.stc-footer h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.stc-footer p,
.stc-footer li,
.stc-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.stc-footer a {
  text-decoration: none;
}

.stc-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.stc-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.charity-site .page2cat {
  border: 0;
  padding: 0;
  margin: 0;
}

.charity-site .page2cat p {
  margin: 0;
}

.charity-site .btn-default {
  background: var(--stc-red);
  border-color: var(--stc-red);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
}

.charity-site .btn-default:hover {
  background: var(--stc-red-dark);
  border-color: var(--stc-red-dark);
  color: #fff;
}

@media (max-width: 575px) {
  .stc-section {
    padding: 2.5rem 0;
  }

  .stc-hero__grid {
    padding: 2.5rem 0;
    text-align: center;
  }

  .stc-hero__actions {
    justify-content: center;
  }

  .stc-hero__logo {
    margin-inline: auto;
  }

  .stc-header__cta .stc-btn {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }
}