/*
Theme Name: SOSHF
Theme URI: https://kkcsi.com/
Author: kkcsi.com
Author URI: https://kkcsi.com/
Description: Self-contained frontend theme for Society For The Sabah Heart Fund.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: soshf
*/

:root {
  --soshf-red: #d71920;
  --soshf-dark-red: #a90f17;
  --soshf-maroon: #4c0519;
  --soshf-deep-maroon: #3b0312;
  --soshf-blue: #1d4d8f;
  --soshf-navy: #16325c;
  --soshf-ink: #222b36;
  --soshf-muted: #687383;
  --soshf-soft: #f6f8fb;
  --soshf-line: #e6eaf0;
  --soshf-white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--soshf-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--soshf-white);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
}

button {
  font-family: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, #d71920 0%, #881337 55%, #4c0519 100%);
  border-bottom: 3px solid #f59e0b;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.25),
    0 10px 20px -2px rgba(76, 5, 25, 0.4),
    0 2px 0 0 rgba(251, 191, 36, 0.4),
    inset 0 -1px 0 0 rgba(180, 83, 9, 0.6);
  transition: box-shadow 0.3s ease;
}

body.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  width: min(1280px, calc(100% - 28px));
  min-height: 74px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 58px minmax(260px, 390px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo img {
  width: 58px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.08) rotate(-2deg);
}

.brand-logo:hover img {
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.5));
}

.site-title-block {
  display: block;
  min-width: 0;
  color: var(--soshf-white);
  line-height: 1.12;
  text-transform: uppercase;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .28);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  transform-origin: left center;
  text-decoration: none;
}

.site-title-block:hover {
  transform: translateY(-2px) scale(1.025);
  filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.45));
}

.site-title-block span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s ease, letter-spacing 0.25s ease, text-shadow 0.25s ease;
}

.site-title-block:hover .site-title-ms {
  color: #fef08a;
}

.site-title-block:hover .site-title-en {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.45), 0 2px 5px rgba(0, 0, 0, .35);
}

.site-title-block:hover .site-title-zh {
  color: #ffffff;
  letter-spacing: .34em;
}

.site-title-ms {
  font-size: clamp(.72rem, 1vw, .9rem);
  font-weight: 800;
  letter-spacing: .01em;
}

.site-title-en {
  margin-top: 2px;
  font-size: clamp(.92rem, 1.3vw, 1.18rem);
  font-weight: 900;
}

.site-title-zh {
  margin-top: 4px;
  font-size: clamp(.78rem, 1.05vw, 1rem);
  font-weight: 800;
  letter-spacing: .28em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.donate-button,
.menu-toggle,
.read-button,
.story-button,
.footer-donate,
.visitor-counter-btn,
.back-to-top {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.donate-button {
  padding: 10px 20px;
  color: var(--soshf-red);
  background: var(--soshf-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.donate-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.35);
  background: #ffffff;
  color: #b91c1c;
}

.donate-button:active {
  transform: translateY(0) scale(0.98);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #f59e0b;
  color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.menu-toggle svg {
  display: block;
  pointer-events: none;
}

.menu-toggle .icon-hamburger {
  display: block !important;
}

.menu-toggle .icon-close {
  display: none !important;
}

.menu-toggle.is-open {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #f59e0b;
}

.menu-toggle.is-open .icon-hamburger {
  display: none !important;
}

.menu-toggle.is-open .icon-close {
  display: block !important;
}

.read-button,
.story-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 12px 22px;
  color: var(--soshf-white);
  background: linear-gradient(135deg, #d71920 0%, #b91c1c 100%);
  box-shadow: 0 6px 18px rgba(215, 25, 32, 0.28);
  font-weight: 750;
  text-decoration: none;
}

.read-button:hover,
.story-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(215, 25, 32, 0.4);
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  color: #ffffff;
}

.read-button:active,
.story-button:active {
  transform: translateY(0) scale(0.98);
}

.primary-nav {
  min-width: 0;
}

.primary-nav > ul {
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  list-style: none;
}

.primary-nav li { position: relative; }
.primary-nav a,
.primary-nav .nav-label {
  display: block;
  padding: 22px 10px;
  color: var(--soshf-white);
  font-weight: 700;
  font-size: .86rem;
  line-height: 1.2;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.primary-nav > ul > li > a::after,
.primary-nav > ul > li > .nav-label::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  height: 2.5px;
  background: #f59e0b;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-nav > ul > li:hover > a,
.primary-nav > ul > li:hover > .nav-label,
.primary-nav > ul > li.current-menu-item > a {
  color: #fbbf24;
}

.primary-nav > ul > li:hover > a::after,
.primary-nav > ul > li:hover > .nav-label::after,
.primary-nav > ul > li.current-menu-item > a::after {
  transform: scaleX(1);
}

.primary-nav .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 40;
  min-width: 290px;
  max-height: calc(100vh - 84px);
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  list-style: none;
  background: var(--soshf-white);
  border-radius: 0 0 10px 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 36px rgba(22, 50, 92, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.22s ease;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu a {
  color: var(--soshf-ink);
  padding: 11px 18px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  transition: all 0.2s ease;
}

.primary-nav .sub-menu a:hover {
  color: var(--soshf-red);
  background: #fff4f4;
  padding-left: 24px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  padding: 72px 0 86px;
  background: var(--soshf-navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(59, 2, 2, 0.95) 0%, rgba(74, 4, 4, 0.88) 32%, rgba(127, 29, 29, 0.65) 60%, rgba(215, 25, 32, 0.22) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  height: 80px;
  background: var(--soshf-white);
  clip-path: polygon(0 58%, 100% 22%, 100% 100%, 0 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  color: var(--soshf-white);
}

.hero-kicker {
  margin: 0 0 14px;
  color: #ffd8d8;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.6rem, 5.2vw, 5.7rem);
  line-height: .98;
}

.hero-lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  text-decoration: none;
}

.hero-primary {
  border: 0;
  color: var(--soshf-red);
  background: var(--soshf-white);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .22);
}

.hero-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.32);
  color: #b91c1c;
  background: #ffffff;
}

.hero-primary:active {
  transform: translateY(0) scale(0.98);
}

.hero-secondary {
  color: var(--soshf-white);
  border: 1px solid rgba(255, 255, 255, .56);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}

.hero-secondary:hover {
  transform: translateY(-4px) scale(1.03);
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.hero-secondary:active {
  transform: translateY(0) scale(0.98);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 680px;
  margin-top: 34px;
}

.hero-stats div {
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.hero-stats div:hover {
  transform: translateY(-5px) scale(1.03);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1;
  transition: transform 0.25s ease;
}

.hero-stats div:hover strong {
  transform: scale(1.08);
  color: #fbbf24;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .9);
  font-size: .9rem;
  line-height: 1.35;
}

.hero-media {
  min-width: 0;
}

.slideshow {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.slide-card {
  display: none;
  overflow: hidden;
  border: 6px solid var(--soshf-white);
  border-radius: 12px;
  background: var(--soshf-white);
  box-shadow: 0 26px 58px rgba(0,0,0,.36);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.slide-card.is-active {
  display: block;
}

.slide-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 32px 64px rgba(0,0,0,.45);
}

.slide-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.slide-card:hover img {
  transform: scale(1.04);
}

.slide-caption {
  margin: 0;
  padding: 14px 20px;
  color: var(--soshf-white);
  font-weight: 700;
  background: rgba(12, 18, 30, .92);
}

.section {
  padding: 70px 0;
}

.section.alt { background: var(--soshf-soft); }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.section-title {
  margin: 0 0 6px;
  color: var(--soshf-red);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  text-align: center;
}

.section-subtitle {
  margin: 0 0 38px;
  color: var(--soshf-muted);
  text-align: center;
  font-weight: 700;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 34px 0 0;
}

.impact-card {
  padding: 26px 20px;
  color: var(--soshf-white);
  background: linear-gradient(135deg, #d71920 0%, #4c0519 100%);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(76, 5, 25, .18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
  cursor: default;
}

.impact-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 20px 40px rgba(76, 5, 25, 0.35);
  background: linear-gradient(135deg, #e11d48 0%, #3b0202 100%);
}

.impact-card strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.impact-card:hover strong {
  transform: scale(1.1);
  color: #fbbf24;
}

.impact-card span {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.content-lead {
  max-width: 880px;
  margin: 0 auto;
  color: #3f4a58;
  text-align: center;
  font-size: 1.08rem;
}

.pdf-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  margin: 28px 0 44px;
}

.pdf-magazine-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.pdf-magazine-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.pdf-magazine-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.pdf-magazine-card:hover img {
  transform: scale(1.03);
}

.pdf-feature {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 34px;
  align-items: center;
  margin-top: 34px;
}

.pdf-feature img {
  cursor: zoom-in;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pdf-feature img:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.content-box h2,
.content-box h3 {
  color: var(--soshf-navy);
}

.content-box .pdf-page-grid {
  grid-template-columns: repeat(2, 1fr);
}

.news-feature {
  position: relative;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 36px;
}

.news-feature::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 12%;
  bottom: 12%;
  background: var(--soshf-red);
  border-radius: 8px;
}

.news-cover,
.news-details {
  position: relative;
  z-index: 1;
}

.news-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 18px 36px rgba(0,0,0,.18);
}

.news-details {
  padding: 42px;
  background: var(--soshf-white);
  box-shadow: 0 18px 36px rgba(22, 50, 92, .12);
}

.news-details h2,
.page-content h1,
.archive-card h2 {
  margin: 0 0 16px;
  color: var(--soshf-navy);
  line-height: 1.2;
}

.read-button,
.story-button {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 20px;
  color: var(--soshf-white);
  background: var(--soshf-red);
}

.stories-grid,
.gallery-grid,
.archive-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.story-card,
.gallery-card,
.archive-card,
.info-card,
.story-archive-card {
  background: var(--soshf-white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.25s ease;
}

.story-card:hover,
.gallery-card:hover,
.archive-card:hover,
.info-card:hover,
.story-archive-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.story-archive-card img,
.story-card img,
.archive-card img,
.info-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-archive-card:hover img,
.story-card:hover img,
.archive-card:hover img,
.info-card:hover img {
  transform: scale(1.06);
}

.story-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 30px 0 46px;
}

.story-archive-card > a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.story-archive-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.story-archive-body h2 {
  margin: 0 0 8px;
  color: var(--soshf-navy);
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.story-archive-card:hover .story-archive-body h2 {
  color: var(--soshf-red);
}

.story-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.story-age-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.story-year-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.story-archive-body .read-button {
  align-self: flex-start;
  margin-top: auto;
}

.story-detail-copy {
  font-size: 1.05rem;
}

.story-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.story-detail-gallery img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--soshf-line);
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(22, 50, 92, .1);
}

/* News & Announcements Blog Grid */
.news-blog-intro {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 28px;
}

.news-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 10px;
}

.news-blog-card {
  background: var(--soshf-white);
  border: 1px solid var(--soshf-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(22, 50, 92, .06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.news-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(22, 50, 92, .12);
}

.news-blog-card a {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.news-blog-card-thumb {
  width: 100%;
  height: 200px;
  background: #f1f5f9;
  overflow: hidden;
}

.news-blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-blog-card:hover .news-blog-card-thumb img {
  transform: scale(1.04);
}

.news-blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-blog-date {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-blog-card-body h2 {
  font-size: 1.25rem;
  color: var(--soshf-navy);
  margin: 0 0 12px;
  line-height: 1.4;
}

.news-blog-card-body p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 18px;
}

.news-blog-card-body .read-button {
  margin-top: auto;
  align-self: flex-start;
}

/* Video Gallery Grid & Embeds */
.video-gallery-intro {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 28px;
}

.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 15px;
}

.video-card {
  background: var(--soshf-white);
  border: 1px solid var(--soshf-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(22, 50, 92, .07);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(22, 50, 92, .12);
}

.video-embed-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-embed-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-align: center;
  padding: 24px 20px;
  box-sizing: border-box;
}

.video-embed-placeholder.coming-soon {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.video-embed-placeholder.in-production {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
}

.video-embed-placeholder.archived {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.video-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.video-placeholder-content .placeholder-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.video-placeholder-content h3 {
  color: #f8fafc;
  font-size: 1.15rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.video-placeholder-content p {
  color: #94a3b8;
  font-size: 0.88rem;
  margin: 0;
  max-width: 260px;
  line-height: 1.4;
}

.video-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-card-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.video-card-badge.status-coming-soon {
  background: #fef3c7;
  color: #92400e;
}

.video-card-badge.status-in-production {
  background: #e0e7ff;
  color: #3730a3;
}

.video-card-badge.status-archived {
  background: #f1f5f9;
  color: #475569;
}

.video-card-body h2 {
  font-size: 1.25rem;
  color: var(--soshf-navy);
  margin: 0 0 10px;
  line-height: 1.4;
}

.video-card-body p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.download-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--soshf-line);
  border-radius: 8px;
  background: var(--soshf-white);
  box-shadow: 0 14px 34px rgba(22, 50, 92, .08);
}

.download-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--soshf-white);
  background: linear-gradient(135deg, #d71920 0%, #4c0519 100%);
  font-weight: 900;
}

.download-card h2 {
  margin: 0 0 8px;
  color: var(--soshf-navy);
  font-size: 1.2rem;
  line-height: 1.25;
}

.download-card p {
  margin: 0 0 18px;
}

.news-cuttings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  margin: 20px 0 54px;
}

.news-cutting-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: var(--soshf-white);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.news-cutting-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.news-cutting-thumb-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.news-cutting-thumb-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.news-cutting-card:hover .news-cutting-thumb-wrap img {
  transform: scale(1.05);
}

.news-cutting-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.news-cutting-card:hover .news-cutting-overlay {
  opacity: 1;
}

.news-cutting-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-source-tag {
  display: inline-block;
  color: #d71920;
  font-weight: 750;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.news-cutting-body h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
}

.news-cutting-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.news-click-prompt {
  color: #0284c7;
  font-size: 0.85rem;
  font-weight: 700;
}

.story-card {
  padding: 24px;
}

.story-image-link {
  display: block;
  width: 164px;
  height: 164px;
  margin: 0 auto 22px;
  border-radius: 50%;
}

.story-card img {
  width: 164px;
  height: 164px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.story-image-link:hover img {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(22, 50, 92, .18);
}

.story-name {
  display: block;
  color: var(--soshf-navy);
  font-weight: 800;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 30px 0 54px;
}

.album-card {
  overflow: hidden;
  border: 1px solid var(--soshf-line);
  border-radius: 8px;
  background: var(--soshf-white);
  box-shadow: 0 12px 26px rgba(22, 50, 92, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.album-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(22, 50, 92, .14);
}

.album-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.album-meta {
  padding: 18px;
}

.album-meta h2 {
  margin: 0 0 8px;
  color: var(--soshf-navy);
  font-size: 1.15rem;
  line-height: 1.25;
}

.album-meta span,
.album-meta small {
  display: block;
  color: var(--soshf-red);
  font-weight: 800;
}

.album-meta small {
  margin-top: 4px;
  color: var(--soshf-muted);
}

.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 10px;
}

.album-photo-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  background: #f1f5f9;
}

.album-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.album-photo-item:hover img {
  transform: scale(1.06);
}

.album-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.album-photo-item:hover .album-photo-overlay {
  opacity: 1;
}

.zoom-icon {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(6px);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.album-photo-item:hover .zoom-icon {
  transform: translateY(0);
}

.office-bearers-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: var(--soshf-white);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  margin-bottom: 30px;
}

.office-bearers-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.5;
}

.office-bearers-table th,
.office-bearers-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  vertical-align: top;
}

.office-bearers-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, #4a0404 0%, #7f1d1d 50%, #3b0202 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid #f59e0b;
  border-right: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}

.office-bearers-table td.col-year {
  text-align: center;
  vertical-align: middle;
}

.table-year-badge {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #fecaca;
  white-space: nowrap;
}

.office-bearers-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.office-bearers-table tbody tr:hover {
  background: #fff1f2;
}

.office-bearers-table td:last-child,
.office-bearers-table th:last-child {
  border-right: 0;
}

.office-bearers-table ol {
  margin: 0;
  padding-left: 18px;
}

.office-bearers-table li + li {
  margin-top: 5px;
}

.office-empty {
  color: #94a3b8;
  font-style: italic;
}

/* Sponsored Patients Modern Table Styling */
.sponsored-patients-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.patients-year-section {
  background: var(--soshf-white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.patients-year-section h3 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.patients-year-section h3::before {
  content: "🏥";
  font-size: 1.2rem;
}

.patients-grid-table {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.soshf-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: #334155;
}

.soshf-data-table th {
  background: linear-gradient(135deg, #4a0404 0%, #7f1d1d 50%, #3b0202 100%);
  color: #ffffff;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #f59e0b;
  text-align: left;
}

.soshf-data-table th:first-child,
.soshf-data-table td:first-child {
  width: 70px;
  text-align: center;
  font-weight: 750;
  color: #94a3b8;
}

.soshf-data-table th:last-child,
.soshf-data-table td:last-child {
  width: 140px;
  text-align: right;
  font-weight: 750;
  color: #0284c7;
}

.soshf-data-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
}

.soshf-data-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.soshf-data-table tbody tr:hover {
  background: #fff1f2;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.gallery-card {
  background: var(--soshf-white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.gallery-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-thumb-wrap img {
  transform: scale(1.05);
}

.gallery-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.gallery-meta {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.gallery-meta h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.35;
}

.gallery-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.gallery-date-pill {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
}

.gallery-view-text {
  color: #d71920;
  font-size: 0.92rem;
  font-weight: 750;
  transition: transform 0.2s ease;
}

.gallery-card:hover .gallery-view-text {
  transform: translateX(4px);
}

.page-hero {
  position: relative;
  padding: 78px 0 64px;
  color: var(--soshf-white);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.16), transparent 28%),
    linear-gradient(120deg, #d71920 0%, #881337 55%, #4c0519 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 46px;
  background: var(--soshf-white);
  clip-path: polygon(0 64%, 100% 18%, 100% 100%, 0 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.default-hero-title,
.album-hero-title {
  max-width: 940px;
}

.default-hero-title span,
.album-hero-title span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.default-hero-title p {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.55;
}

.story-hero-title {
  display: flex;
  align-items: center;
  gap: 28px;
}

.story-hero-title img {
  width: 150px;
  height: 150px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  box-shadow: 0 18px 34px rgba(20, 28, 44, .24);
}

.album-hero-title h1 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
}

.page-content {
  padding: 58px 0 78px;
}

.page-content .content-box {
  max-width: 920px;
  margin: 0 auto;
}

.page-content-wide .container {
  width: min(100% - 32px, 1280px);
}

.page-content .content-box-wide {
  max-width: none;
}

.office-bearers-intro {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

.content-box p,
.content-box li { color: #3f4a58; }

.content-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.content-box th,
.content-box td {
  padding: 12px;
  border: 1px solid var(--soshf-line);
  text-align: left;
}

.content-box .office-bearers-table {
  margin: 0;
  table-layout: fixed;
}

.content-box .office-bearers-table th,
.content-box .office-bearers-table td {
  padding: 12px 10px;
  border-top: 0;
  border-left: 0;
  text-align: left;
}

.site-footer {
  position: relative;
  color: var(--soshf-white);
  background: linear-gradient(180deg, #d9201e 0%, #881337 55%, #4c0519 100%);
  margin-top: 80px;
}

/* Curved Top & People Holding Hands Vector */
.footer-curve-container {
  position: absolute;
  top: -65px;
  left: 0;
  right: 0;
  height: 66px;
  color: #d9201e;
  pointer-events: none;
}

.footer-curve-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.footer-family-holder {
  position: absolute;
  right: min(10%, 120px);
  bottom: 12px;
  z-index: 5;
  pointer-events: none;
}

.footer-family-img {
  width: clamp(140px, 16vw, 220px);
  height: auto;
  display: block;
  filter: drop-shadow(0 -4px 10px rgba(0, 0, 0, 0.15));
}

/* Visitor Counter Button in Footer */
.footer-counter-wrap {
  display: flex;
  align-items: center;
}

.visitor-counter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--soshf-white);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.visitor-counter-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.counter-pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.counter-label {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.counter-value {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.counter-info-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Visitor Traffic Analytics Pop-up Window */
.traffic-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.traffic-overlay.is-open {
  display: flex;
  opacity: 1;
}

.traffic-modal {
  background: #ffffff;
  width: min(880px, 96vw);
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.traffic-overlay.is-open .traffic-modal {
  transform: scale(1);
}

.traffic-modal-header {
  padding: 22px 28px;
  background: linear-gradient(135deg, #d71920 0%, #4c0519 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.traffic-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.traffic-modal-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.traffic-modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.traffic-modal-header p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.close-traffic-modal {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.close-traffic-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.traffic-modal-body {
  padding: 26px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* KPI Grid */
.traffic-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-card {
  padding: 16px 18px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
}

.kpi-primary { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.kpi-success { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.kpi-info    { background: #fdf2f8; border-color: #fbcfe8; color: #831843; }
.kpi-warning { background: #f8fafc; border-color: #e2e8f0; color: #0f172a; }

.kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.kpi-number {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 6px 0 2px;
}

.pulse-green {
  color: #16a34a;
}

/* Traffic Spotlight Card (Highest Viewed Page) */
.traffic-spotlight-card {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 2px solid #fda4af;
  border-radius: 12px;
  padding: 16px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: #e11d48;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.3;
}

.spotlight-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.spotlight-title {
  display: block;
  font-size: 1.2rem;
  font-weight: 850;
  color: #881337;
  line-height: 1.3;
}

.spotlight-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #fecdd3;
  color: #be123c;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.spotlight-url:hover {
  background: #fff;
  border-color: #e11d48;
  color: #881337;
  text-decoration: underline;
}

.url-open-icon {
  font-size: 0.85rem;
  opacity: 0.8;
}

.traffic-page-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.traffic-page-link strong {
  color: #0f172a;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.traffic-page-link:hover strong {
  color: #d71920;
}

.traffic-code-url {
  color: #64748b;
  font-size: 0.76rem;
  font-family: monospace;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  max-width: fit-content;
}

.traffic-ranked-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.traffic-ranked-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.25;
  transition: color 0.2s;
}

.traffic-ranked-link:hover .traffic-ranked-name {
  color: #d71920;
}

.traffic-ranked-route {
  font-size: 0.76rem;
  color: #64748b;
  font-family: monospace;
}

.spotlight-stat {
  text-align: right;
}

.spotlight-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #be123c;
  line-height: 1;
}

.spotlight-label {
  font-size: 0.76rem;
  color: #9f1239;
  font-weight: 700;
  text-transform: uppercase;
}

/* Visitor Details Pills & Cells */
.traffic-ip-text {
  font-family: monospace;
  color: #1e293b;
  font-size: 0.86rem;
}

.traffic-country-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.traffic-telco-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.traffic-agent-cell {
  display: flex;
  flex-direction: column;
}

.traffic-browser {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.84rem;
}

.traffic-os {
  color: #64748b;
  font-size: 0.75rem;
}

.traffic-time-tag {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.traffic-rank-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 800;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.traffic-table-striped tbody tr:nth-child(even) {
  background: #f8fafc;
}

.section-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a;
  font-weight: 800;
}

.section-sub {
  font-size: 0.82rem;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

/* Bar Chart */
.traffic-bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  height: 160px;
  align-items: flex-end;
  margin-top: 20px;
  padding-top: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.bar-wrapper {
  flex: 1;
  width: 100%;
  max-width: 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.bar-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #d71920 0%, #4c0519 100%);
  border-radius: 6px 6px 0 0;
  min-height: 8px;
  transition: height 0.3s ease;
}

.bar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 8px;
}

/* Split Grid */
.traffic-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.traffic-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.traffic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.traffic-table th,
.traffic-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.traffic-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.traffic-table code {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.82rem;
  color: #0f172a;
}

.traffic-breakdown-list h4 {
  margin: 12px 0 8px;
  font-size: 0.85rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.breakdown-item {
  margin-bottom: 10px;
}

.breakdown-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #334155;
  margin-bottom: 4px;
}

.progress-bar {
  background: #e2e8f0;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  background: #d71920;
  height: 100%;
  border-radius: 999px;
}

.traffic-geo-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.traffic-geo-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
  color: #334155;
}

.traffic-modal-footer {
  padding: 16px 28px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.traffic-note {
  font-size: 0.8rem;
  color: #64748b;
}

.close-traffic-btn-bottom {
  background: #e2e8f0;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: #334155;
  transition: background 0.2s ease;
}

.close-traffic-btn-bottom:hover {
  background: #cbd5e1;
}

@media (max-width: 768px) {
  .traffic-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .traffic-split-grid {
    grid-template-columns: 1fr;
  }
  .traffic-modal-header h2 {
    font-size: 1.15rem;
  }
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1.05fr .75fr .95fr;
  gap: 34px;
  align-items: start;
  padding: 64px 0 36px;
}

.footer-logo {
  width: 88px;
  margin-bottom: 18px;
}

.footer-brand h2,
.footer-column h3 {
  margin: 0 0 14px;
}

.footer-brand h2 {
  max-width: 360px;
  font-size: 1.45rem;
  line-height: 1.18;
}

.footer-brand p,
.footer-column p,
.footer-bank small {
  color: rgba(255,255,255,.86);
}

.footer-column h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-column p {
  margin: 0 0 14px;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-menu a {
  color: rgba(255,255,255,.9);
  font-weight: 700;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover,
.footer-menu a:hover {
  color: #fbbf24;
  text-decoration: none;
  transform: translateX(4px);
}

.footer-donate {
  margin-top: 14px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  color: var(--soshf-red);
  background: var(--soshf-white);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.24s ease, background 0.24s ease;
}

.footer-donate:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 32px rgba(0,0,0,.28);
  background: #ffffff;
  color: #b91c1c;
}

.footer-donate:active {
  transform: translateY(0) scale(0.98);
}

.footer-visual > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(0,0,0,.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.footer-visual > img:hover {
  transform: scale(1.03);
  box-shadow: 0 24px 44px rgba(0,0,0,.26);
}

.footer-bank {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-bank:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
}

.footer-qr-button {
  display: block;
  width: 118px;
  margin: 0 0 14px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 8px;
  background: var(--soshf-white);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.footer-qr-button:hover {
  transform: scale(1.08) rotate(-1deg);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}

.footer-qr-button img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.footer-qr-button:hover {
  transform: translateY(-2px);
}

.footer-bank span,
.footer-bank small {
  display: block;
}

.footer-bank strong {
  display: block;
  margin: 4px 0;
  font-size: 1.4rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  text-align: right;
  font-size: 0.92rem;
}

.donation-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(13, 21, 34, .68);
}

.donation-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 90;
  display: none;
  width: min(780px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  grid-template-columns: 1fr 260px;
  gap: 26px;
  padding: 34px 30px 30px;
  background: var(--soshf-white);
  border-radius: 12px;
  box-shadow: 0 28px 60px rgba(0,0,0,.3);
  box-sizing: border-box;
}

.donation-modal.is-open,
.donation-overlay.is-open { display: grid; }
.donation-overlay.is-open { display: block; }

.donation-modal h2 {
  color: var(--soshf-red);
  margin-top: 0;
  font-size: 1.6rem;
}

.account-no {
  color: var(--soshf-navy);
  font-weight: 800;
  font-size: 1.1rem;
}

.donation-modal-qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.donation-modal-qr-wrap img {
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.close-donation {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.5rem;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.close-donation:hover {
  background: #fee2e2;
  color: #d71920;
  transform: rotate(90deg);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 90;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--soshf-white);
  background: var(--soshf-red);
  box-shadow: 0 8px 24px rgba(20, 28, 44, .28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease, box-shadow .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--soshf-dark-red); }

img.is-zoomable {
  cursor: zoom-in;
}

body.has-image-lightbox {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 12, 22, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

.image-lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(1300px, 94vw);
  max-height: 76vh;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
  background: #000000;
  touch-action: pan-y pinch-zoom;
}

.image-lightbox-img-wrap img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  cursor: zoom-out;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

/* Bottom Navigation Toolbar (underneath the image) */
.image-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.image-lightbox-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--soshf-white);
  background: var(--soshf-red);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(215, 25, 32, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.image-lightbox-nav:hover {
  background: var(--soshf-dark-red);
  transform: scale(1.08);
}

.image-lightbox-nav:active {
  transform: scale(0.92);
}

.image-lightbox-nav[hidden] {
  display: none !important;
}

.image-lightbox-toolbar[hidden] {
  display: none !important;
}

.image-lightbox-counter {
  color: var(--soshf-white);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0 8px;
}

.image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--soshf-white);
  background: var(--soshf-red);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.image-lightbox-close:hover {
  background: var(--soshf-dark-red);
  transform: scale(1.1) rotate(90deg);
}

.image-lightbox-close:active {
  transform: scale(0.92);
}

@media (max-width: 768px) {
  .image-lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .image-lightbox-img-wrap {
    max-width: 96vw;
    max-height: 68vh;
  }
  .image-lightbox-img-wrap img {
    max-height: 68vh;
  }
  .image-lightbox-toolbar {
    margin-top: 12px;
    padding: 6px 14px;
    gap: 12px;
  }
  .image-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* Slideshow Navigation Arrows & Indicator Dots */
.slideshow {
  position: relative;
}

.slide-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  padding: 0 0 2px;
}

.slide-prev-btn {
  left: 12px;
}

.slide-next-btn {
  right: 12px;
}

.slide-nav-btn:hover {
  background: #d71920;
  border-color: #d71920;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.slide-dots {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  z-index: 10;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-dot.is-active,
.slide-dot:hover {
  width: 28px;
  border-radius: 999px;
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

/* Floating WhatsApp Bubble Widget */
.whatsapp-floating-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: wa-pulse 3s infinite;
}

.whatsapp-floating-bubble:hover {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6), 0 6px 14px rgba(0, 0, 0, 0.2);
}

.whatsapp-floating-bubble:active {
  transform: scale(0.95);
}

.whatsapp-bubble-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #0f172a;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.whatsapp-bubble-tooltip::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 0 5px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #0f172a;
}

.whatsapp-floating-bubble:hover .whatsapp-bubble-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 8px 24px rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 8px 24px rgba(37, 211, 102, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 24px rgba(37, 211, 102, 0.45);
  }
}

.copy-bank-btn:hover {
  transform: scale(1.06);
  background: #f59e0b !important;
  color: #ffffff !important;
  border-color: #f59e0b !important;
}

/* Premium Contact Form Interactions */
.contact-form-premium-card input:focus,
.contact-form-premium-card select:focus,
.contact-form-premium-card textarea:focus {
  background: #ffffff !important;
  border-color: #d71920 !important;
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.12) !important;
}

#contact-submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(215, 25, 32, 0.45) !important;
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%) !important;
}

#contact-submit-btn:active {
  transform: translateY(0) scale(0.98);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1) !important;
  border-color: #cbd5e1 !important;
}

@media (max-width: 1180px) {
  .site-header { position: sticky; }
  .header-inner {
    width: min(100% - 24px, 1180px);
    min-height: 70px;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .brand-logo img { width: 50px; }
  .site-title-ms { font-size: .72rem; }
  .site-title-en { font-size: 1rem; }
  .site-title-zh { font-size: .82rem; letter-spacing: .18em; }
  .header-actions { justify-self: end; }
  .menu-toggle { display: inline-grid; }
  .donate-button { padding: 9px 14px; }
  .primary-nav {
    position: fixed;
    top: 70px;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 29;
    display: block;
    width: min(360px, 86vw);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, #173d78, var(--soshf-red));
    box-shadow: -18px 0 38px rgba(20, 28, 44, .24);
    opacity: 0;
    visibility: hidden;
    transform: translateX(105%);
    transition: transform .24s ease, opacity .24s ease, visibility .24s ease;
    -webkit-overflow-scrolling: touch;
  }
  body.admin-bar .primary-nav {
    top: 116px;
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  .primary-nav > ul {
    width: 100%;
    display: block;
    padding: 14px;
  }
  .primary-nav a,
  .primary-nav .nav-label {
    padding: 11px 12px;
    border-radius: 8px;
    font-size: .96rem;
    white-space: normal;
  }
  .primary-nav a:hover,
  .primary-nav .nav-label:hover {
    background: rgba(255,255,255,.12);
  }
  .primary-nav .sub-menu {
    position: static;
    min-width: 0;
    max-height: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,.11);
    border-radius: 8px;
    padding: 6px;
    margin: 2px 0 10px 12px;
  }
  .primary-nav .sub-menu a {
    color: var(--soshf-white);
    background: transparent;
    font-size: .9rem;
  }
  .hero {
    min-height: auto;
    padding: 54px 0 74px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero h1 {
    max-width: 780px;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .slideshow { padding-top: 0; }
  .news-feature,
  .impact-grid,
  .pdf-feature,
  .story-archive-grid,
  .story-detail-gallery,
  .downloads-grid,
  .news-cuttings-grid,
  .stories-grid,
  .gallery-grid,
  .album-grid,
  .album-photo-grid,
  .archive-grid,
  .info-grid,
  .footer-main,
  .donation-modal { grid-template-columns: 1fr; }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .copyright {
    text-align: left;
  }
  .pdf-page-grid,
  .content-box .pdf-page-grid { grid-template-columns: 1fr; }
  .news-feature::before { inset: 8% 0; }
  .office-bearers-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .office-bearers-table,
  .office-bearers-table thead,
  .office-bearers-table tbody,
  .office-bearers-table tr,
  .office-bearers-table th,
  .office-bearers-table td {
    display: block;
  }
  .office-bearers-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }
  .office-bearers-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .office-bearers-table tr {
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid var(--soshf-line);
    border-radius: 8px;
    background: var(--soshf-white);
    box-shadow: 0 14px 34px rgba(22, 50, 92, .08);
  }
  .office-bearers-table th,
  .office-bearers-table td,
  .office-bearers-table td:first-child,
  .office-bearers-table th:nth-child(7),
  .office-bearers-table td:nth-child(7) {
    width: auto;
    padding: 12px 16px;
    border-right: 0;
  }
  .office-bearers-table td {
    overflow-wrap: normal;
    word-break: normal;
  }
  .office-bearers-table ol {
    padding-left: 20px;
  }
  .office-bearers-table li {
    max-width: none;
  }
  .office-bearers-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--soshf-red);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
}

@media (max-width: 560px) {
  .header-inner { width: min(100% - 18px, 1180px); }
  .brand-logo img { width: 46px; }
  .site-title-ms { font-size: .58rem; }
  .site-title-en { font-size: .8rem; }
  .site-title-zh { font-size: .66rem; letter-spacing: .12em; }
  .donate-button { padding: 8px 12px; font-size: .9rem; }
  .menu-toggle { width: 42px; height: 42px; }
  .back-to-top { right: 16px; bottom: 82px; width: 42px; height: 42px; }
  .whatsapp-floating-bubble { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-floating-bubble svg { width: 28px; height: 28px; }
  .image-lightbox {
    padding-left: 12px;
    padding-right: 12px;
  }
  .image-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 2.3rem;
  }
  .image-lightbox-prev { left: 10px; }
  .image-lightbox-next { right: 10px; }
  .hero {
    padding: 42px 0 62px;
  }
  .hero-inner {
    width: min(100% - 24px, 1180px);
    gap: 28px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-primary,
  .hero-secondary {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .story-hero-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .story-hero-title img {
    width: 116px;
    height: 116px;
  }
  .page-hero {
    padding: 56px 0 48px;
  }
  .page-hero h1,
  .default-hero-title h1,
  .album-hero-title h1 {
    font-size: clamp(1.85rem, 9vw, 2.65rem);
  }
  .slide-card {
    border-width: 4px;
  }
  .slide-caption {
    padding: 11px 14px;
    font-size: .9rem;
  }
  .section { padding: 48px 0; }
  .news-details { padding: 26px; }
  .footer-main {
    gap: 28px;
    padding-top: 44px;
  }
  .footer-menu {
    flex-wrap: wrap;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  body.admin-bar .site-header {
    top: 0;
  }
  body.admin-bar .primary-nav {
    top: 70px;
  }
}

/* Sponsored Patients Data Tables */
.sponsored-patients-wrapper {
  margin-top: 10px;
}

.sponsored-patients-header-info {
  background: #f8fafc;
  border-left: 4px solid var(--soshf-red);
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 32px;
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.6;
}

.patients-year-section {
  margin-bottom: 36px;
  background: #ffffff;
  border: 1px solid var(--soshf-line);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(22, 50, 92, .04);
}

.patients-year-section h3 {
  margin: 0 0 16px;
  color: var(--soshf-navy);
  font-size: 1.35rem;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
}

.patients-year-section h4 {
  margin: 20px 0 12px;
  color: var(--soshf-red);
  font-size: 1.05rem;
}

.patients-grid-table {
  overflow-x: auto;
  margin-bottom: 12px;
}

.soshf-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.soshf-data-table th,
.soshf-data-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.soshf-data-table th {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
  border-top: 1px solid #e2e8f0;
  border-bottom: 2px solid #cbd5e1;
}

.soshf-data-table th:first-child,
.soshf-data-table td:first-child {
  width: 48px;
  text-align: center;
  font-weight: 600;
  color: #64748b;
}

.soshf-data-table th:last-child,
.soshf-data-table td:last-child {
  width: 130px;
  text-align: right;
  font-weight: 600;
  color: #0369a1;
}

.soshf-data-table tr:hover td {
  background: #f8fafc;
}

