/* ── Design tokens (MyPTProvider identity + SAAC-inspired layout) ── */
:root {
  --brand-red: #e32626;
  --brand-red-dark: #e32626;
  --brand-red-darker: #e32626;
  --brand-red-light: #e3262607;
  --text-primary: #1a1a1a;
  --text-body: #444444;
  --text-muted: #666666;
  --surface: #ffffff;
  --surface-alt: #f5f6f8;
  --border: #e4e7ec;
  --border-light: #eef0f3;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --container-max: 1400px;
  --section-py: 4rem;
  --nav-height: 72px;
  --transition: 0.2s ease;
  --motion-fast: 180ms;
  --motion-base: 280ms;
  --motion-slow: 420ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Global styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-body);
  background-color: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

/* Layout helpers */
.container {
  width: min(var(--container-max), 100% - 3rem);
  margin-inline: auto;
}

/* ── Header / navbar ─────────────────────────────────────────── */
.top-header {
  position: sticky;
  top: var(--site-header-offset, var(--official-bar-height, 0px));
  z-index: 1100;
  background-color: var(--surface);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border-bottom: none;
  transition: box-shadow var(--motion-base) var(--ease-out);
}

.top-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.top-header.is-scrolled .nav-container {
  min-height: 62px;
  padding-block: 0.45rem;
}

.top-header.is-scrolled .logo .text-brand-mark {
  font-size: 1.45rem;
  transition: font-size var(--motion-base) var(--ease-out);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--nav-height);
  padding-block: 0.65rem;
  transition: min-height var(--motion-base) var(--ease-out),
    padding var(--motion-base) var(--ease-out);
}

.logo {
  display: flex;
  flex-shrink: 0;
  line-height: 1.1;
}

.logo a,
.logo .text-brand-mark,
a.text-brand-mark.text-brand-mark--header {
  text-decoration: none;
  border: none;
  box-shadow: none;
}

.logo a:hover,
.logo a:focus,
.logo a:visited,
.logo a:active {
  text-decoration: none;
  border: none;
  box-shadow: none;
}

.logo img {
  max-height: 52px;
  width: auto;
  display: block;
  transition: max-height var(--motion-base) var(--ease-out);
}

.logo-main {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-main span {
  color: var(--brand-red);
}

.logo-sub {
  font-size: 0.75rem;
  color: #777777;
}

/* Navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.main-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-body);
  font-weight: 400;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
  position: relative;
}

.nav-item > a::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background-color: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-base) var(--ease-out);
}

.main-nav a i {
  font-size: 0.85rem;
  color: var(--brand-red);
}

/* Chevron for dropdown parents (SAAC-style) */
.nav-item.has-dropdown > a::after {
  content: "";
  margin-left: 2px;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: border-color var(--transition);
}

.nav-item:not(.has-dropdown) > a::after {
  display: none;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav a.is-active {
  color: var(--brand-red);
  background-color: var(--brand-red-light);
}

.nav-item > a:hover::before,
.nav-item > a.is-active::before {
  transform: scaleX(1);
}

.nav-item.has-dropdown:hover > a::after {
  border-color: var(--brand-red);
}

/* Buttons */
.btn-primary,
.btn-outline {
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  border: none;
  transition: background-color var(--transition), color var(--transition),
    transform 0.1s ease, box-shadow var(--transition);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-red);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(227, 38, 38, 0.25);
}

.btn-primary:hover {
  background-color: var(--brand-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(227, 38, 38, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-red);
  border: 1.5px solid var(--brand-red);
  margin-right: 0.5rem;
}

.btn-outline:hover {
  background-color: var(--brand-red);
  color: #ffffff;
}

/* Toggle buttons */
.toggle-btn {
  background-color: var(--surface);
  border: 1.5px solid var(--brand-red);
  color: var(--brand-red);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color var(--transition), color var(--transition);
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.toggle-btn::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--motion-base) var(--ease-out);
  flex-shrink: 0;
}

.toggle-btn.is-open::after {
  transform: rotate(-135deg);
}

.toggle-btn:hover {
  background-color: var(--brand-red);
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
  gap: 0.65rem;
}
.nav-actions .site-header-tools {
  margin-left: 0;
}

.hamburger {
  display: none;
  width: 36px;
  height: 28px;
  margin-left: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background-color: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero section ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 2.5rem 0;
  min-height: 210px;
  display: flex;
  align-items: center;
  background: url('images/hero-bg.png') center center / cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(210, 32, 32, 0.78);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero-text {
  max-width: none;
  animation: heroFadeIn var(--motion-slow) var(--ease-out) both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-heading-title {
  margin: 0;
  font-size: clamp(1.1rem, 1.75vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.hero-heading .hero-link {
  margin-top: 14px;
}

.hero-heading-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 0.15em;
  display: block;
  object-fit: contain;
}

.hero-heading-subtitle {
  margin: 0 0 14px;
  font-size: clamp(0.92rem, 1.2vw, 1.1rem);
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
}

.hero-desc {
  margin: 0;
  max-width: 100%;
  width: 100%;
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  line-height: 1.48;
  color: #444444;
  font-weight: 400;
  text-align: justify;
}

.hero-below .hero-desc {
  padding-left: 38px;
  padding-right: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-below {
  background: #ffffff;
  padding: 2rem 0 2.5rem;
}

.hero-below-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  max-width: 100%;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 700;
  line-height: 1.4;
  color: #000000;
}

.hero-below-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.hero-below .hero-numbers-title {
  color: #000000;
}

.hero-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--motion-fast) var(--ease-out);
}

.hero-numbers {
  margin-top: 22px;
}

.hero-numbers-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
}

.hero-numbers-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.admin-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 960px;
}

.admin-dash-stats--hero {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 100%;
}

.hero-pt-items {
  margin-top: 2.25rem;
}

.hero-programs-schedule {
  margin-top: 2.25rem;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-inline: max(1.5rem, calc((100vw - var(--container-max)) / 2));
  box-sizing: border-box;
}

.hero-below .hero-programs-schedule .hero-numbers-title {
  color: #000000;
  max-width: min(var(--container-max), 100% - 3rem);
  margin-inline: auto;
  width: 100%;
  padding-inline: 0;
}

.hero-schedule-table-wrap {
  margin-top: 12px;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.hero-schedule-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-schedule-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 15px;
  background: #fff;
}

.hero-schedule-card-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.hero-schedule-field {
  flex: 0 0 auto;
  min-width: 58px;
  max-width: 88px;
}

.hero-schedule-field--wide {
  min-width: 120px;
  max-width: 150px;
}

.hero-schedule-field--code {
  min-width: 130px;
  max-width: 160px;
}

.hero-schedule-field--xwide {
  min-width: 180px;
  max-width: 240px;
}

.hero-schedule-field-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1.25;
  color: #333;
}

.hero-schedule-field-value {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
}

.hero-schedule-card-status {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  width: 188px;
}

.hero-schedule-status,
.hero-schedule-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  box-sizing: border-box;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.hero-schedule-status {
  width: 100%;
  border-radius: 999px;
  color: #fff;
  white-space: normal;
}

.hero-schedule-status--open {
  background: #2e9e4d;
}

.hero-schedule-status--closed {
  background: #e32626;
}

.hero-schedule-details-btn {
  width: 100%;
  border: 1px solid #e32626;
  border-radius: 6px;
  background: #fff;
  color: #e32626;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}

.hero-schedule-details-btn:hover {
  background: #e32626;
  color: #fff;
  text-decoration: none;
}

/* Program details page */
.program-details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px 36px;
  align-items: start;
}

.program-details-section-title {
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #111;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
}

.program-details-program-name {
  margin: 0 0 10px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  line-height: 1.35;
  color: #111;
}

.program-details-meta {
  margin: 0 0 6px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #333;
}

.program-details-meta span {
  font-weight: 600;
}

.program-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 18px 0 22px;
}

.program-details-grid-item dt {
  margin: 0 0 3px;
  font-size: 0.72rem;
  font-weight: 400;
  color: #555;
}

.program-details-grid-item dd {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
}

.program-details-enrol-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 22px;
  border-radius: 8px;
  background: #2e9e4d;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition);
}

.program-details-enrol-btn:hover {
  background: #268a42;
  color: #fff;
  text-decoration: none;
}

.program-details-status-badge {
  margin-left: 6px;
  font-weight: 700;
}

.program-details-status-badge--ongoing {
  color: #2e9e4d;
}

.program-details-status-badge--completed {
  color: #666;
}

.program-details-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 4px;
  position: relative;
}

.program-details-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #ccc;
}

.program-details-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 6px;
  padding: 0 0 14px 0;
}

.program-details-timeline-item:last-child {
  padding-bottom: 0;
}

.program-details-timeline-icon {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
  color: #111;
  font-size: 0.82rem;
  z-index: 1;
}

.program-details-timeline-date {
  font-size: 0.78rem;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.program-details-timeline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 14px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  color: #111;
  width: fit-content;
}

.program-details-timeline-item.is-active .program-details-timeline-pill {
  background: #2e9e4d;
  border-color: #2e9e4d;
  color: #fff;
}

.program-details-timeline-item.is-past .program-details-timeline-pill {
  color: #444;
}

@media (max-width: 992px) {
  .hero-schedule-card {
    flex-direction: column;
  }

  .hero-schedule-card-status {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-schedule-status,
  .hero-schedule-details-btn {
    flex: 1 1 auto;
  }

  .program-details-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .program-details-grid {
    grid-template-columns: 1fr;
  }
}

.hero-latest-news {
  margin-top: 2.25rem;
}

.hero-below .hero-latest-news .hero-numbers-title {
  color: #000000;
}

.hero-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 100%;
}

.hero-news-card {
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 18px 16px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  border-color: #e3262607;
}

.hero-news-body {
  flex: 1 1 auto;
  min-height: 72px;
}

.hero-news-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
}

.hero-news-preview {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #444;
}

.hero-news-photo {
  display: block;
  max-width: 100%;
  max-height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.hero-news-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #666;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.3;
}

.hero-news-date i {
  color: #e32626;
  font-size: 0.95rem;
  line-height: 1;
}

.hero-news-date-text {
  min-width: 1ch;
  min-height: 1em;
}

.hero-news-read-more {
  display: inline-block;
  margin-top: 10px;
  color: #e32626;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  align-self: flex-start;
  transition: color var(--transition);
}

.hero-news-read-more:hover {
  color: #b81c1c;
  text-decoration: underline;
}

.admin-dash-stats--pt-items-first {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-dash-stats--pt-items-second {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 100%;
  margin: 12px 0 0;
}

.admin-dash-stats--pt-items-first .admin-dash-stat-value,
.admin-dash-stats--pt-items-second .admin-dash-stat-value {
  min-width: 72px;
  padding: 5px 10px;
  font-size: 0.82rem;
}

.admin-dash-stat-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  border-color: #e3262607;
}

.admin-dash-stats--hero .admin-dash-stat-card {
  padding: 0;
  min-height: 68px;
  overflow: hidden;
}

.admin-dash-stat-card--reveal {
  position: relative;
  display: block;
}

.admin-dash-stat-card--reveal:hover {
  transform: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.admin-dash-stat-face {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 12px 10px;
  font-weight: 500;
  font-size: 0.78rem;
  line-height: 1.3;
  color: #000;
  text-align: center;
  background: #fff;
  transition: opacity var(--motion-base) var(--ease-out);
}

.admin-dash-stat-card--reveal:hover .admin-dash-stat-face,
.admin-dash-stat-card--reveal:focus-within .admin-dash-stat-face {
  opacity: 0;
}

.admin-dash-stat-reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  background: #fff;
  transform: translateY(100%);
  transition: transform var(--motion-base) var(--ease-out);
}

.admin-dash-stat-card--reveal:hover .admin-dash-stat-reveal,
.admin-dash-stat-card--reveal:focus-within .admin-dash-stat-reveal {
  transform: translateY(0);
}
.admin-dash-stat-card--reveal .admin-dash-stat-title {
  margin-bottom: 0;
}

.admin-dash-stat-card--reveal .admin-dash-stat-body {
  gap: 8px;
}

.admin-dash-stat-title {
  font-weight: 500;
  font-size: 0.95rem;
  color: #000;
  margin-bottom: 15px;
}

.admin-dash-stats--hero .admin-dash-stat-title {
  font-size: 0.78rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.admin-dash-stat-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.admin-dash-stats--hero .admin-dash-stat-body {
  gap: 8px;
}

.admin-dash-stat-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e3262607;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 1.25rem;
  line-height: 1;
}

.admin-dash-stats--hero .admin-dash-stat-icon {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.admin-dash-stat-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 5px 25px;
  border-radius: 8px;
  background: #e31e24;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.admin-dash-stats--hero .admin-dash-stat-value {
  min-width: 56px;
  padding: 5px 12px;
  font-size: 0.9rem;
}

.hero-link:hover {
  color: #ffffff;
  opacity: 0.9;
  transform: translateX(4px);
}

/* ── Sections ────────────────────────────────────────────────── */
.section {
  padding: var(--section-py) 0;
}

.reveal-section {
  /* Section wrapper — child headings/cards animate individually */
}

/* Section headings — rise from bottom */
.reveal-heading {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--motion-slow) var(--ease-out),
    transform var(--motion-slow) var(--ease-out);
}

.reveal-heading.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Cards — flip + rise on scroll */
.reveal-card {
  opacity: 0;
  transform: perspective(1100px) rotateX(16deg) translateY(52px);
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: opacity 0.6s var(--ease-out), transform 0.72s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-card.is-revealed {
  opacity: 1;
  transform: perspective(1100px) rotateX(0deg) translateY(0);
}

@keyframes revealRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-card.is-revealed > h3,
.reveal-card.is-revealed > p,
.reveal-card.is-revealed > .toggle-btn,
.reveal-card.is-revealed > a,
.reveal-card.is-revealed h4 {
  animation: revealRise 0.58s var(--ease-out) both;
}

.reveal-card.is-revealed > h3,
.reveal-card.is-revealed h3 {
  animation-delay: calc(var(--reveal-delay, 0ms) + 140ms);
}

.reveal-card.is-revealed > p,
.reveal-card.is-revealed p {
  animation-delay: calc(var(--reveal-delay, 0ms) + 220ms);
}

.reveal-card.is-revealed > .toggle-btn {
  animation-delay: calc(var(--reveal-delay, 0ms) + 300ms);
}

.reveal-card.is-revealed > a {
  animation-delay: calc(var(--reveal-delay, 0ms) + 180ms);
}

.reveal-card.is-revealed > h4 {
  animation-delay: calc(var(--reveal-delay, 0ms) + 120ms);
}

.reveal-card.is-revealed > ul li {
  animation: revealRise 0.48s var(--ease-out) both;
  animation-delay: calc(var(--reveal-delay, 0ms) + 200ms);
}

.reveal-card:not(.is-revealed) > h3,
.reveal-card:not(.is-revealed) > p,
.reveal-card:not(.is-revealed) > .toggle-btn,
.reveal-card:not(.is-revealed) > a,
.reveal-card:not(.is-revealed) > h4,
.reveal-card:not(.is-revealed) > ul li {
  opacity: 0;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--motion-base) var(--ease-out),
    opacity var(--motion-fast) ease,
    padding var(--motion-base) var(--ease-out);
}

.accordion-panel.is-open {
  max-height: 6000px;
  opacity: 1;
}

.faq-category.is-open {
  border-color: #e3262607;
  box-shadow: var(--shadow-md);
}

.faq-category.is-open h3 {
  background-color: var(--brand-red-light);
}

.about-item.is-open {
  border-color: #e3262607;
}

.section.light {
  background-color: var(--surface-alt);
}

.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--brand-red);
  display: inline-block;
  line-height: 1.3;
}

.section p {
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* About content */
.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-item {
  background-color: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition),
    transform 0.72s var(--ease-out);
  transform-style: preserve-3d;
}

.about-item:hover {
  box-shadow: var(--shadow-md);
  border-color: #e3262607;
}

.about-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-red-light);
}

.about-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.toggle-content {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
}

.toggle-content.accordion-panel.is-open {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top-color: var(--border);
}

.toggle-content ul {
  list-style: none;
  padding-left: 0;
}

.toggle-content li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.toggle-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-red);
}

.toggle-content a {
  color: var(--brand-red);
  text-decoration: none;
  font-weight: 500;
}

.toggle-content a:hover {
  text-decoration: underline;
}

/* Program cards — curtain rises on hover */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.program-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.program-card-inner {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.25rem;
  transition: color 0.35s ease;
}

.program-card-curtain {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #e32626;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.program-card:hover .program-card-curtain {
  transform: translateY(0);
}

.program-card-inner h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-primary);
  transition: color 0.35s ease;
}

.program-card-inner i {
  color: #e32626;
  font-size: 1.15rem;
  width: 1.25rem;
  text-align: center;
  transition: color 0.35s ease;
}

.program-card-inner p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  transition: color 0.35s ease;
}

.program-card:hover {
  border-color: #e3262607;
  box-shadow: var(--shadow-md);
}

.program-card:hover .program-card-inner h3,
.program-card:hover .program-card-inner p,
.program-card:hover .program-card-inner i {
  color: #fff;
}

/* FAQ */
.faq-category {
  margin-bottom: 1rem;
  background-color: var(--surface);
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform 0.72s var(--ease-out);
  transform-style: preserve-3d;
}

.faq-category:hover {
  box-shadow: var(--shadow-md);
}

.faq-category h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 1.15rem 1.5rem;
  background-color: var(--surface);
  border-left: 4px solid var(--brand-red);
}

.faq-content {
  margin-top: 0;
  padding: 0 1.5rem;
  border-top: 1px solid transparent;
}

.faq-content.accordion-panel.is-open {
  padding: 0 1.5rem 1.25rem;
  border-top-color: var(--border-light);
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.faq-item:first-child {
  padding-top: 1.25rem;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0.5rem;
}

.faq-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  line-height: 1.65;
}

.faq-item ul {
  list-style: none;
  padding-left: 0;
}

.faq-item li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.faq-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-red);
}

.faq-item a {
  color: var(--brand-red);
  text-decoration: none;
  font-weight: 500;
}

.faq-item a:hover {
  text-decoration: underline;
}

/* Help links */
.link-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.link-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.link-list li:hover {
  border-color: #e3262607;
  box-shadow: var(--shadow-md);
}

.link-list a {
  display: block;
  text-decoration: none;
  color: var(--brand-red);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 1.15rem 1.25rem;
  transition: background-color var(--transition), padding-left var(--motion-base) var(--ease-out);
}

.link-list a::after {
  content: "→";
  margin-left: 0.35rem;
  display: inline-block;
  transition: transform var(--motion-base) var(--ease-out);
}

.link-list a:hover {
  background-color: var(--brand-red-light);
  text-decoration: none;
  padding-left: 1.45rem;
}

.link-list a:hover::after {
  transform: translateX(4px);
}

/* Dropdown menu */
.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 220px;
  background-color: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 900;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown li {
  width: 100%;
}

.dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-body);
  border-radius: 0;
  transform: translateX(0);
  transition: background-color var(--transition), color var(--transition),
    transform var(--motion-fast) var(--ease-out);
}

.dropdown a:hover {
  background-color: var(--brand-red-light);
  color: var(--brand-red);
  transform: translateX(4px);
}

.has-dropdown .dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 10px;
  height: 10px;
  background: var(--surface);
  border-left: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  transform: rotate(45deg);
}

.has-dropdown .dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
  background: transparent;
}

/* ── Footer (static — no scroll/motion animations) ───────────── */
.site-footer {
  position: relative;
  color: #ffffff;
  margin-top: 0;
  overflow: hidden;
  background-color: #e32626;
  background-image:
    linear-gradient(rgba(227, 38, 38, 0.78), rgba(227, 38, 38, 0.78)),
    url("images/hero-bg.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.site-footer,
.site-footer * {
  animation: none !important;
}

.site-footer .site-footer-shell,
.site-footer .site-footer-inner,
.site-footer .footer-copyright {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.site-footer h4,
.site-footer li,
.site-footer a,
.site-footer p,
.site-footer span {
  opacity: 1 !important;
  transform: none !important;
}

.site-footer-shell {
  position: relative;
  padding: 0.75rem 0 0.5rem;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(84px, 12%) minmax(0, 1fr);
  gap: 0.75rem 1.35rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  align-self: center;
}

.footer-brand-mark {
  font-family: var(--font-main);
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.footer-nav-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
}

.footer-block {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 0.18rem;
  padding-bottom: 0.16rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.95);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin: 0;
  line-height: 1.08;
}

.footer-list li + li {
  margin-top: 0;
}

.footer-list a {
  display: inline;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.66rem;
  font-weight: 400;
  line-height: inherit;
  transition: color var(--transition);
}

.footer-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-list--plain li {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.08;
}

.footer-list--plain a {
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
}

.footer-list--plain a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-social-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.28rem;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  box-sizing: border-box;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  color: #ffffff !important;
  font-size: 0.62rem;
  line-height: 1;
  text-decoration: none !important;
  background: transparent;
  transition: background-color var(--transition), border-color var(--transition);
}

.footer-social-link i {
  display: block;
  font-style: normal;
  line-height: 1;
  pointer-events: none;
}

.footer-social-link--x span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.footer-social-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  text-decoration: none !important;
}

.footer-copyright {
  margin: 0.45rem 0 0;
  padding: 0;
  text-align: right;
  font-size: 0.6rem;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .main-nav ul {
    gap: 0.1rem;
  }

  .main-nav a {
    font-size: 0.82rem;
    padding: 0.5rem 0.6rem;
  }
}

@media (max-width: 992px) {
  .hero {
    padding: 3rem 0;
    min-height: 220px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .footer-brand {
    justify-content: flex-start;
  }

  .footer-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0.75rem;
  }

  .footer-social-bar {
    flex-wrap: wrap;
  }

  :root {
    --section-py: 3rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    padding: 1rem 1.5rem 1.5rem;
    background-color: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.25rem;
    align-items: stretch;
  }

  .main-nav a {
    width: 100%;
    padding: 0.65rem 0.75rem;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .btn-outline {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-heading-title {
    white-space: normal;
    font-size: 1.45rem;
  }

  .hero-desc {
    max-width: 100%;
    font-size: 0.84rem;
  }

  .hero-below .hero-desc {
    padding-left: 0;
    max-width: 100%;
  }

  .hero-news-grid {
    grid-template-columns: 1fr;
  }

  .admin-dash-stats--hero {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    overflow-x: auto;
    max-width: 100%;
  }

  .admin-dash-stats--pt-items-second {
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    padding-left: 0.75rem;
    margin-top: 0.15rem;
    border-radius: 0;
    border: none;
    background: var(--surface-alt);
    display: none;
  }

  .has-dropdown.is-expanded .dropdown {
    display: block;
  }

  .has-dropdown .dropdown::before,
  .has-dropdown .dropdown::after {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .section h2 {
    font-size: 1.45rem;
  }
}

@media (max-width: 600px) {
  .footer-row {
    grid-template-columns: 1fr;
  }

  .footer-copyright {
    text-align: center;
  }

  .link-list {
    grid-template-columns: 1fr;
  }
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.btn-primary:active,
.btn-outline:active,
.toggle-btn:active {
  transform: scale(0.98);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-section {
    opacity: 1;
    transform: none;
  }

  .reveal-heading,
  .reveal-card {
    opacity: 1;
    transform: none;
  }

  .reveal-card:not(.is-revealed) > h3,
  .reveal-card:not(.is-revealed) > p,
  .reveal-card:not(.is-revealed) > .toggle-btn,
  .reveal-card:not(.is-revealed) > a,
  .reveal-card:not(.is-revealed) h4,
  .reveal-card:not(.is-revealed) li {
    opacity: 1;
  }

  .reveal-card.is-revealed > h3,
  .reveal-card.is-revealed > p,
  .reveal-card.is-revealed > .toggle-btn,
  .reveal-card.is-revealed > a,
  .reveal-card.is-revealed h4,
  .reveal-card.is-revealed > ul li {
    animation: none;
  }

  .program-grid .program-card.program-flip-card.reveal-card,
  .program-grid .program-card.program-flip-card.reveal-card.is-revealed {
    opacity: 1;
    transform: none;
  }

  .program-grid .program-card.program-flip-card.is-revealed:hover {
    transform: none;
  }

  .hero-text {
    animation: none;
  }

  .accordion-panel {
    transition: none;
  }
}

/* ── Text brand logo ─────────────────────────────────────────── */
.text-brand-mark {
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.text-brand-mypt { color: #000; }
.text-brand-provider { color: #e32626; }
.text-brand-mark--header { font-size: 1.65rem; }

/* ── Official verify bar ─────────────────────────────────────── */
:root {
  --official-bar-height: 36px;
}
.official-verify-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}
.official-verify-bar {
  background: #fff;
  border-bottom: 1px solid #ececec;
}
.official-verify-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 8px 20px;
  min-height: var(--official-bar-height);
  box-sizing: border-box;
}
.official-verify-flag { flex-shrink: 0; display: inline-flex; color: #e32626; }
.official-verify-flag svg rect { fill: #e32626; }
.official-verify-text {
  margin: 0;
  font-size: 0.6rem;
  line-height: 1.45;
  color: #333;
  font-weight: 500;
}
.official-verify-toggle {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin-left: 4px;
  color: #e32626;
  font-weight: 700;
  font-size: 0.6rem;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-main);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.official-verify-toggle:hover { color: #c41f1f; }
.official-verify-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.official-verify-wrap.is-open .official-verify-chevron {
  transform: rotate(180deg);
}

/* Site header tools */
.site-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.site-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-icon-btn:hover {
  border-color: #e32626;
  color: #e32626;
}
.site-account-wrap { position: relative; }
.site-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
  z-index: 1300;
}
.site-account-menu a {
  display: block;
  padding: 9px 16px;
  color: #333;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
.site-account-menu a:hover {
  background: #e3262607;
  color: #e32626;
}
.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--site-header-offset, 36px) + 24px) 20px 20px;
}
.site-search-overlay[hidden] { display: none !important; }
.site-search-panel {
  position: relative;
  width: min(640px, 100%);
  background: #fff;
  border-radius: 10px;
  padding: 16px 48px 16px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.site-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-search-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.92rem;
  outline: none;
}
.site-search-input:focus { border-color: #e32626; }
.site-search-submit {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.site-search-submit:hover {
  border-color: #e32626;
  color: #e32626;
}
.site-search-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
}
.official-verify-panel {
  background: #e3262607;
  border-bottom: 1px solid #e3262607;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.official-verify-panel-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 20px 16px 20px;
}
.official-verify-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 0.6rem;
  line-height: 1.55;
  color: #444;
}
.official-verify-panel-item:last-child { margin-bottom: 0; }
.official-verify-panel-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 0;
  color: #e32626;
  line-height: 1;
}
.official-verify-panel-icon svg,
.official-verify-panel-svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

body.has-official-verify-bar {
  padding-top: var(--site-header-offset, var(--official-bar-height));
}

/* ── Public content pages (PDF design) ─────────────────────── */
.public-site-body {
  background: #fff;
}

.public-page-main {
  padding: 0 0 56px;
}

.public-page-head-band {
  background: #e3262607;
  margin: 0 0 18px;
  border-radius: 0;
}

.public-page-container {
  max-width: min(var(--container-max), 100% - 2rem);
}

.public-page-main > .public-page-container {
  padding-top: 24px;
}

.public-page-head {
  background: transparent;
  margin: 0;
  padding: 14px 0 16px;
  border-radius: 0;
}

.public-page-head .public-breadcrumb {
  margin-bottom: 10px;
}

.public-page-head .public-page-title {
  margin-bottom: 0;
}

.public-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #333;
}

.public-breadcrumb-link {
  color: var(--brand-red);
  font-weight: 400;
  text-decoration: none;
}

.public-breadcrumb-link:hover {
  text-decoration: underline;
}

.public-breadcrumb-current {
  color: #111;
  font-weight: 400;
}

.public-breadcrumb-sep {
  margin: 0 7px;
  color: #888;
  font-weight: 400;
}

.public-page-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  color: #111;
}

.public-news-article-date {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-news-article {
  margin-top: 24px;
}

.public-news-article-photo {
  display: block;
  max-width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.public-news-article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
  white-space: pre-wrap;
}

.public-news-article-back {
  margin: 28px 0 0;
}

/* SAAC-style horizontal tabs + borderless content */
.public-saac-content {
  color: #333;
}

.public-saac-lead {
  margin: 0 0 20px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #444;
}

.public-saac-tabs {
  margin: 0;
}

.public-saac-tabs-bar {
  margin-bottom: 0;
}

.public-saac-tab-btn {
  cursor: pointer;
  font-family: inherit;
}

.public-saac-tab-panel {
  display: none;
  border: none;
  padding: 20px 0 0;
  background: transparent;
}

.public-saac-tab-panel.is-active {
  display: block;
}

.public-saac-list {
  list-style: none;
  counter-reset: public-saac-counter;
  margin: 0;
  padding: 0;
}

.public-saac-list > li {
  counter-increment: public-saac-counter;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: #444;
}

.public-saac-list > li + li {
  margin-top: 10px;
}

.public-saac-list > li::before {
  content: counter(public-saac-counter) ".";
  flex-shrink: 0;
  min-width: 1.1rem;
  font-weight: 600;
  color: #111;
}

.public-saac-list a {
  color: var(--brand-red);
  text-decoration: none;
}

.public-saac-list a:hover {
  text-decoration: underline;
}

body.public-site-body .main-nav a {
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.55rem 0.85rem;
}

body.public-site-body .text-brand-mark--header {
  font-size: 1.65rem;
}

body.public-site-body .nav-container {
  min-height: var(--nav-height);
}

/* Sub-navigation — SAAC horizontal tabs (one gray line + red active segment) */
.public-subtabs {
  margin: 0 0 16px;
}

.public-subtabs--secondary {
  margin-top: 12px;
}

.public-subtabs-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.public-subtabs-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0 28px;
  width: max-content;
  min-width: 100%;
  padding-bottom: 12px;
  border-bottom: none;
  overflow: visible;
  background: none;
}

.public-subtab-link {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.35;
  color: #666;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.public-subtabs--materials .public-subtab-link {
  font-size: 0.86rem;
}

.public-subtab-link:hover {
  color: #333;
  text-decoration: none;
}

.public-subtab-link.is-active {
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.public-subtabs-line {
  position: relative;
  width: 100%;
  height: 2px;
  background-color: #c8c8c8;
  --subtab-active-left: 0px;
  --subtab-active-width: 0px;
}

.public-subtabs-line::after {
  content: '';
  position: absolute;
  top: -1px;
  left: var(--subtab-active-left);
  width: var(--subtab-active-width);
  height: 3px;
  background-color: var(--brand-red);
  z-index: 2;
  pointer-events: none;
  transition: left 0.15s ease, width 0.15s ease;
}

/* Visible fallback before JS measures tab width */
[data-public-subtabs]:not([data-line-ready]) .public-subtab-link.is-active,
[data-public-saac-tabs]:not([data-line-ready]) .public-saac-tab-btn.is-active {
  box-decoration-break: clone;
  background-image: linear-gradient(var(--brand-red), var(--brand-red));
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: 0 calc(100% + 12px);
}

.public-page-panel.module-tab-panel {
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-top: 16px;
  min-height: 0;
  overflow: visible;
}

.public-page-panel .module-tab-panel-content {
  padding: 0;
}

.public-page-panel {
  margin-top: 16px;
}

.public-page-panel--table .module-tab-panel-content {
  padding: 14px 12px 18px;
}

.public-prose {
  color: #333;
  font-size: 0.92rem;
  line-height: 1.65;
}

.public-prose p {
  margin: 0 0 12px;
}

.public-prose p:last-child {
  margin-bottom: 0;
}

.public-prose h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

.public-prose-section + .public-prose-section {
  margin-top: 22px;
}

.public-prose ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.public-prose li + li {
  margin-top: 6px;
}

.public-placeholder {
  margin: 0;
  padding: 28px 16px;
  border: 1px dashed #d8d8d8;
  border-radius: 8px;
  background: #fafafa;
  color: #666;
  text-align: center;
  font-size: 0.9rem;
}

.public-pdf-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.public-pdf-link {
  display: inline;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--brand-red);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.public-pdf-link:hover {
  color: var(--brand-red);
  background: none;
  border: none;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.public-schedule-table-wrap {
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
}

.public-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.public-contact-grid h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
}

.public-faq-item + .public-faq-item {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.public-faq-item h2 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #111;
}

.public-faq-page {
  margin-top: 4px;
}

.public-faq-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 520px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.public-faq-search-label {
  display: flex;
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

.public-faq-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font: inherit;
  font-size: 0.9rem;
  color: #111;
  background: transparent;
}

.public-faq-search-input::placeholder {
  color: #999;
}

.public-faq-search-empty {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: #666;
}

.public-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.public-faq-entry + .public-faq-entry {
  border-top: 1px solid #eee;
}

.public-faq-entry-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.public-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: none;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #111;
  transition: background-color 0.2s ease;
}

.public-faq-question:hover,
.public-faq-question.is-open {
  background: #fafafa;
}

.public-faq-question-text {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.public-faq-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.public-faq-question.is-open .public-faq-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.public-faq-answer.accordion-panel.is-open {
  padding: 0 18px 16px;
  border-top: 1px solid #f0f0f0;
}

.public-faq-answer-body {
  padding-top: 12px;
}

.public-faq-answer-body p,
.public-faq-answer-body ul {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #444;
}

.public-faq-answer-body ul {
  padding-left: 1.1rem;
}

.public-faq-answer-body li {
  margin-bottom: 6px;
}

.public-faq-answer-body a {
  color: var(--brand-red);
  text-decoration: none;
}

.public-faq-answer-body a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.public-search-page {
  margin-top: 4px;
}

.public-search-inline-form {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  max-width: 560px;
}

.public-search-inline-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
}

.public-search-inline-submit {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--brand-red);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.public-search-hint,
.public-search-empty,
.public-search-count {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: #555;
}

.public-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-search-result + .public-search-result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.public-search-result-link {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-red);
  text-decoration: none;
}

.public-search-result-link:hover {
  text-decoration: underline;
}

.public-search-result-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #555;
}

@media (max-width: 768px) {
  .public-page-main {
    padding: 18px 0 40px;
  }

  .public-subtab-link {
    padding-inline: 12px;
    font-size: 0.82rem;
  }

  .public-page-panel .module-tab-panel-content {
    padding: 14px 12px 18px;
  }

  .public-contact-grid {
    grid-template-columns: 1fr;
  }
}
