/* =========================================================
   YPGS — Design system & global styles
   ========================================================= */

:root {
  --primary-red: #e52521;
  --dark-red: #b71918;
  --deep-red: #8f1010;
  --light-red: #fff3f2;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #eeeeee;
  --gray: #6c757d;
  --dark: #202124;
  --black: #111111;
  --footer-bg: #191919;
  --text: #2b2d31;
  --text-muted: #6c757d;
  --border: #e6e8eb;
  --shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  --shadow-soft: 0 8px 24px rgba(17, 17, 17, 0.06);
  --shadow-hover: 0 18px 40px rgba(17, 17, 17, 0.12);
  --radius: 10px;
  --radius-sm: 8px;
  --container: 1320px;
  --nav-height: 88px;
  --nav-height-scrolled: 72px;
  --topbar-height: 40px;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --transition: 0.25s ease;
  --transition-med: 0.35s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

button,
input,
textarea,
select {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid rgba(229, 37, 33, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 2000;
  background: var(--primary-red);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

h1,
h2,
h3,
h4,
h5,
.section-title,
.hero-title,
.page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.container-ypgs {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.section-sm {
  padding: 80px 0;
}

.bg-off {
  background: var(--off-white);
}

/* ---------- Section labels ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 14px;
}

.section-label::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--primary-red);
}

.section-title {
  font-size: clamp(30px, 3.2vw, 42px);
  margin: 0 0 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0;
}

.section-head {
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
}

.section-head.center .section-label {
  justify-content: center;
}

.section-head.center .section-label::before {
  display: none;
}

.section-head.center .section-subtitle {
  margin-inline: auto;
}

.section-head.center .section-label::after {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--primary-red);
}

/* ---------- Buttons ---------- */
.btn-primary-ypgs,
.btn-secondary-ypgs,
.btn-ghost-ypgs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary-ypgs .bi,
.btn-secondary-ypgs .bi,
.btn-ghost-ypgs .bi {
  transition: transform var(--transition);
}

.btn-primary-ypgs:hover .bi,
.btn-secondary-ypgs:hover .bi,
.btn-ghost-ypgs:hover .bi {
  transform: translateX(4px);
}

.btn-primary-ypgs {
  background: var(--primary-red);
  color: var(--white);
}

.btn-primary-ypgs:hover {
  background: var(--dark-red);
  color: var(--white);
}

.btn-secondary-ypgs {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-secondary-ypgs:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-ghost-ypgs {
  background: transparent;
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-ghost-ypgs:hover {
  background: var(--primary-red);
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--dark);
  color: #d7d8db;
  font-size: 13px;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
}

.topbar a {
  color: #d7d8db;
}

.topbar a:hover {
  color: var(--white);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  padding: 8px 0;
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.topbar-meta span,
.topbar-meta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-meta i {
  color: var(--primary-red);
}

.topbar-social {
  display: flex;
  gap: 6px;
}

.topbar-social a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.topbar-social a:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
}

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
}

.navbar-ypgs {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition-med), min-height var(--transition-med);
}

.navbar-ypgs.is-scrolled {
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
}

.navbar-ypgs .navbar {
  min-height: var(--nav-height);
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-ypgs.is-scrolled .navbar {
  min-height: var(--nav-height-scrolled);
}

.brand-ypgs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-ypgs img {
  width: auto;
  height: 52px;
  object-fit: contain;
  transition: height var(--transition-med);
}

.navbar-ypgs.is-scrolled .brand-ypgs img {
  height: 42px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.navbar-ypgs .nav-link {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark) !important;
  padding: 10px 12px !important;
  position: relative;
}

.navbar-ypgs .nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--primary-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.navbar-ypgs .nav-link:hover::after,
.navbar-ypgs .nav-link.active::after,
.navbar-ypgs .nav-item.dropdown.show .nav-link::after {
  transform: scaleX(1);
}

.navbar-ypgs .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 260px;
}

.navbar-ypgs .dropdown-item {
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 6px;
}

.navbar-ypgs .dropdown-item:hover,
.navbar-ypgs .dropdown-item:focus {
  background: var(--light-red);
  color: var(--dark-red);
}


.navbar-toggler {
  position: relative;
  z-index: 2;
  border: 0;
  padding: 0;
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--dark);
  background: transparent;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.offcanvas-ypgs {
  z-index: 1080;
  pointer-events: none;
}

.offcanvas-ypgs.show {
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.offcanvas-ypgs .offcanvas-header {
  border-bottom: 1px solid var(--border);
}

.offcanvas-ypgs .nav-link {
  padding: 12px 0 !important;
}

.offcanvas-ypgs .dropdown-menu {
  box-shadow: none;
  border: 0;
  padding-left: 8px;
}

.offcanvas-ypgs .collapse {
  padding: 0 0 8px 12px;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1070;
  background: rgba(17, 17, 17, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
}

.hero-swiper,
.hero-swiper .swiper-slide {
  min-height: max(680px, calc(100vh - var(--nav-height) - var(--topbar-height)));
}

.hero-slide {
  position: relative;
  min-height: inherit;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
}

.hero-slide-1 { background-image: url("../images/hero/hero-01.jpg"); }
.hero-slide-2 { background-image: url("../images/hero/hero-02.jpg"); }
.hero-slide-3 { background-image: url("../images/hero/hero-03.jpg"); }

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.78), rgba(20, 20, 20, 0.28));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 80px 0 140px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffd7d4;
  margin-bottom: 16px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(36px, 5vw, 60px);
  margin: 0 0 18px;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
}

.hero-nav {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  z-index: 3;
  overflow: hidden;
  transition: background var(--transition);
}

.hero-nav:hover {
  background: var(--primary-red);
  color: var(--white);
}

.hero-nav.hero-prev,
.hero-nav.swiper-button-prev {
  left: 20px;
  right: auto;
}

.hero-nav.hero-next,
.hero-nav.swiper-button-next {
  right: 20px;
  left: auto;
}

.hero-nav::after {
  content: none;
  display: none;
}

.hero-nav i {
  font-size: 18px;
  line-height: 1;
}

.hero-pagination {
  bottom: 92px !important;
  left: max(20px, calc((100% - var(--container)) / 2)) !important;
  width: auto !important;
  display: flex;
  gap: 8px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  border-radius: 50%;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--primary-red);
  width: 26px;
  border-radius: 99px;
}

.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
  z-index: 3;
}

.hero-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary-red);
  transform-origin: left;
}

/* ---------- Floating info ---------- */
.info-bar-wrap {
  position: relative;
  z-index: 4;
  margin-top: -72px;
  margin-bottom: 20px;
}

.info-bar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.info-item {
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-right: 1px solid var(--light-gray);
}

.info-item:last-child {
  border-right: 0;
}

.info-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--light-red);
  color: var(--primary-red);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.info-item h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.info-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- About ---------- */
.about-media {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-main {
  width: 86%;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-main img,
.about-overlap img,
.image-wrapper img,
.unit-card img,
.news-card img,
.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-wrapper,
.about-main,
.about-overlap,
.unit-card .unit-thumb,
.news-thumb,
.profile-photo {
  overflow: hidden;
}

.image-wrapper:hover img,
.about-main:hover img,
.about-overlap:hover img,
.unit-card:hover img,
.news-card:hover img,
.profile-card:hover img {
  transform: scale(1.05);
}

.about-overlap {
  position: absolute;
  width: 48%;
  right: 0;
  bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
}

.about-frame {
  position: absolute;
  left: -14px;
  top: 28px;
  width: 120px;
  height: 120px;
  border-left: 3px solid var(--primary-red);
  border-top: 3px solid var(--primary-red);
  pointer-events: none;
  z-index: 2;
}

.building-stage {
  width: 100%;
  height: 500px;
  perspective: 1600px;
  display: grid;
  place-items: center;
}

.building-cylinder {
  --cylinder-z: 190px;
  position: relative;
  width: min(100%, 320px);
  height: 420px;
  transform-style: preserve-3d;
  animation: cylinder-spin 16s linear infinite;
}

.building-stage:hover .building-cylinder,
.building-stage:focus-within .building-cylinder {
  animation-play-state: paused;
}

.building-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backface-visibility: hidden;
}

.building-face:nth-child(1) { transform: rotateY(0deg) translateZ(var(--cylinder-z)); }
.building-face:nth-child(2) { transform: rotateY(120deg) translateZ(var(--cylinder-z)); }
.building-face:nth-child(3) { transform: rotateY(240deg) translateZ(var(--cylinder-z)); }

.building-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.building-face figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 16px 16px;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.82), transparent);
  color: var(--white);
}

.building-face strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
}

.building-face span {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.82);
}

@keyframes cylinder-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .building-cylinder {
    animation: none;
  }

  .building-face:nth-child(2),
  .building-face:nth-child(3) {
    display: none;
  }

  .building-face:nth-child(1) {
    transform: none;
  }
}

.about-copy p {
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 32px 0 28px;
}

.stat-card {
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  border-left: 3px solid var(--primary-red);
}

.stat-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--primary-red);
  line-height: 1.1;
}

.stat-card span {
  font-size: 13px;
  color: var(--gray);
}

.profile-flipbook {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.profile-flipbook iframe {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  border: 0;
}

.profile-flipbook-actions {
  margin-top: 18px;
}

/* ---------- Units ---------- */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.unit-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.unit-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--primary-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.unit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.unit-card:hover::after {
  transform: scaleX(1);
}

.unit-thumb {
  height: 180px;
  background: var(--dark);
}

.unit-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.unit-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 6px;
}

.unit-body h3 {
  font-size: 20px;
  margin: 0 0 10px;
}

.unit-body p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 16px;
  flex: 1;
}

.unit-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.unit-card:hover .unit-link .bi {
  transform: translateX(5px);
}

.unit-link .bi {
  transition: transform 0.3s ease;
}

/* ---------- Vision ---------- */
.vision-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.vision-kicker {
  font-family: var(--font-heading);
  font-size: clamp(56px, 8vw, 92px);
  color: var(--primary-red);
  line-height: 0.9;
  margin: 0;
}

.vision-text {
  font-size: 22px;
  line-height: 1.55;
  color: var(--dark);
  margin: 0;
  font-weight: 500;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mission-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.mission-num {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--primary-red);
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.mission-card p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

/* ---------- Advantages ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.adv-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.adv-card i {
  font-size: 26px;
  color: var(--primary-red);
  margin-bottom: 14px;
  display: inline-block;
}

.adv-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.adv-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Org chart ---------- */
.org-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.org-level {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
}

.org-card {
  width: min(100%, 260px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.org-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.org-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 10px;
  transition: transform 0.35s ease;
}

.org-card:hover img {
  transform: scale(1.06);
}

.org-role {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-red);
}

.org-card strong {
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

.org-connector {
  width: 2px;
  height: 28px;
  background: #d0d3d8;
}

.org-ketua-assist {
  position: relative;
  width: min(100%, 640px);
  min-height: 132px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.org-ketua-assist::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d0d3d8;
}

.org-ketua-assist::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(50% - 12px);
  height: 2px;
  background: #d0d3d8;
}

.org-ketua-assist .org-card {
  grid-column: 2;
  justify-self: start;
  margin-left: 24px;
  position: relative;
  z-index: 1;
}

.org-branch {
  position: relative;
  display: flex;
  justify-content: center;
  width: min(100%, 900px);
  padding-top: 28px;
}

.org-branch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 2px;
  background: #d0d3d8;
}

.org-branch .org-card {
  position: relative;
}

.org-branch .org-card::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  width: 2px;
  height: 28px;
  background: #d0d3d8;
}

.org-actions {
  text-align: center;
  margin-top: 36px;
}

.org-tree-full .org-level {
  margin-bottom: 8px;
}

/* ---------- Profiles ---------- */
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  position: relative;
}

.profile-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--primary-red);
}

.profile-photo {
  aspect-ratio: 4 / 5;
  background: var(--light-gray);
  position: relative;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
}

.profile-card:hover .profile-overlay {
  opacity: 1;
}

.profile-body {
  padding: 16px 18px 20px;
}

.profile-body h3 {
  font-size: 17px;
  margin: 0 0 4px;
}

.profile-body span {
  color: var(--primary-red);
  font-size: 13px;
  font-weight: 600;
}

.profile-body p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.profile-nav {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 42px;
  height: 42px;
  margin: 0;
  transform: none;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--dark);
  display: grid;
  place-items: center;
}

.profile-nav.swiper-button-prev,
.profile-nav.swiper-button-next {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin: 0;
  transform: none;
}

.profile-nav::after {
  content: none;
  display: none;
}

.profile-nav i {
  font-size: 16px;
  line-height: 1;
}

.profile-pagination {
  margin-top: 24px;
}

.swiper-pagination-bullet-active {
  background: var(--primary-red);
}

.mgmt-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn,
.cat-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.is-active,
.cat-btn.is-active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
}

.mgmt-grid,
.news-grid-page {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.mgmt-card-btn {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

/* ---------- Sambutan ---------- */
.sambutan-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.sambutan-photo {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.sambutan-photo::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -14px;
  width: 46%;
  height: 8px;
  background: var(--primary-red);
}

.sambutan-copy {
  position: relative;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 140px;
  line-height: 0.6;
  color: var(--light-red);
  position: absolute;
  top: -28px;
  left: -12px;
  z-index: 0;
}

.sambutan-quote {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.45;
  margin: 0 0 22px;
}

.sambutan-copy p {
  color: var(--text-muted);
}

.signature strong {
  display: block;
  font-family: var(--font-heading);
}

.signature span {
  font-size: 13px;
  color: var(--gray);
}

/* ---------- News ---------- */
.news-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.news-feature,
.news-side-item {
  display: grid;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-feature {
  grid-template-rows: 320px auto;
}

.news-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-side-item {
  grid-template-columns: 140px 1fr;
  min-height: 128px;
}

.news-thumb {
  background: var(--dark);
}

.news-body {
  padding: 18px 20px 20px;
}

.news-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.news-meta b {
  color: var(--primary-red);
  font-weight: 700;
}

.news-body h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.news-side-item h3 {
  font-size: 16px;
}

.news-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

.news-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-bottom: 28px;
}

.search-field {
  position: relative;
}

.search-field input,
.form-control-ypgs,
.form-select-ypgs {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px 0 42px;
  font-size: 15px;
}

.search-field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}

.pagination-ypgs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination-ypgs button {
  min-width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
}

.pagination-ypgs button.is-active,
.pagination-ypgs button:hover {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}

.article-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.article-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  max-height: 420px;
}

.article-hero-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.career-facts {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 22px;
}

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, var(--deep-red), var(--primary-red) 55%, var(--dark-red));
  color: var(--white);
  padding: 90px 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 40px solid rgba(255, 255, 255, 0.06);
  right: -80px;
  top: -80px;
  transform: rotate(18deg);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
}

.cta-inner .hero-actions {
  justify-content: center;
}

.btn-cta-light {
  background: var(--white);
  color: var(--deep-red);
  border-color: var(--white);
}

.btn-cta-light:hover {
  background: var(--off-white);
  color: var(--dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #c5c6c9;
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1.1fr;
  gap: 36px;
  padding-bottom: 48px;
}

.footer-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 18px;
  margin: 0 0 10px;
}

.footer-brand p {
  font-size: 14.5px;
  line-height: 1.7;
}

.site-footer h4 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 8px 0 18px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14.5px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14.5px;
}

.footer-contact i {
  color: var(--primary-red);
  margin-top: 4px;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.footer-social a:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-bottom nav {
  display: flex;
  gap: 16px;
}

/* ---------- Floating widgets ---------- */
.float-wa,
.back-to-top {
  position: fixed;
  right: 22px;
  z-index: 1030;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  border: 0;
}

.float-wa {
  bottom: 22px;
  background: #25d366;
  color: var(--white);
  font-size: 24px;
}

.float-wa span {
  position: absolute;
  right: 58px;
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity var(--transition), transform var(--transition);
}

.float-wa:hover span,
.float-wa:focus-visible span {
  opacity: 1;
  transform: none;
}

.back-to-top {
  bottom: 80px;
  background: var(--dark);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--primary-red);
  color: var(--white);
}

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-image: url("../images/inner-hero.svg");
  background-position: center;
  background-size: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.82), rgba(20, 20, 20, 0.4));
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 40px;
}

.page-hero .section-label {
  color: #ffd7d4;
}

.page-hero .section-label::before {
  background: #ffd7d4;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 12px;
}

.breadcrumb-ypgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb-ypgs a:hover {
  color: var(--white);
}

.timeline {
  border-left: 2px solid var(--light-gray);
  margin-left: 12px;
  padding-left: 28px;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-red);
}

.timeline-item strong {
  color: var(--primary-red);
  display: block;
  margin-bottom: 4px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.contact-card i {
  color: var(--primary-red);
  font-size: 20px;
}

.map-embed {
  border: 0;
  width: 100%;
  min-height: 280px;
  border-radius: var(--radius);
  filter: grayscale(0.2);
}

.form-ypgs label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-ypgs .form-control-ypgs,
.form-ypgs textarea {
  padding-left: 14px;
}

.form-ypgs textarea {
  min-height: 140px;
  padding-top: 12px;
}

.form-status {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--light-red);
  color: var(--deep-red);
  font-size: 14px;
}

.form-status.is-visible {
  display: block;
}

.modal-ypgs .modal-content {
  border-radius: var(--radius);
  border: 0;
}

.modal-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

section[id],
article[id],
.unit-card[id] {
  scroll-margin-top: 120px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
