﻿/* ============================================
   SK SERI GELIGA — Design System (styles.css)
   Based on: Seri Geliga Academic Identity
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Primary — School Green */
  --primary: #00450d;
  --on-primary: #ffffff;
  --primary-container: #1b5e20;
  --on-primary-container: #90d689;
  --inverse-primary: #91d78a;
  --primary-fixed: #acf4a4;
  --primary-fixed-dim: #91d78a;

  /* Secondary — Royal Blue */
  --secondary: #2b5bb5;
  --on-secondary: #ffffff;
  --secondary-container: #759efd;
  --on-secondary-container: #00337c;
  --secondary-fixed: #d9e2ff;
  --secondary-fixed-dim: #b0c6ff;

  /* Tertiary — Golden Yellow */
  --tertiary: #705d00;
  --on-tertiary: #ffffff;
  --tertiary-container: #caa900;
  --on-tertiary-container: #4c3e00;
  --tertiary-fixed: #ffe170;
  --tertiary-fixed-dim: #e9c400;

  /* Error / Accent — Professional Red */
  --error: #ba1a1a;
  --on-error: #ffffff;
  --error-container: #ffdad6;
  --on-error-container: #93000a;

  /* Surfaces */
  --surface: #f8f9fa;
  --surface-dim: #d9dadb;
  --surface-bright: #f8f9fa;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f3f4f5;
  --surface-container: #edeeef;
  --surface-container-high: #e7e8e9;
  --surface-container-highest: #e1e3e4;
  --on-surface: #191c1d;
  --on-surface-variant: #41493e;
  --inverse-surface: #2e3132;
  --inverse-on-surface: #f0f1f2;
  --outline: #717a6d;
  --outline-variant: #c0c9bb;
  --surface-tint: #2a6b2c;
  --background: #f8f9fa;
  --on-background: #191c1d;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --gutter: 24px;
  --margin-desktop: 80px;
  --margin-mobile: 20px;
  --max-width: 1280px;

  /* Rounded */
  --rounded-sm: 0.125rem;
  --rounded: 0.25rem;
  --rounded-md: 0.375rem;
  --rounded-lg: 0.5rem;
  --rounded-xl: 0.75rem;
  --rounded-full: 9999px;

  /* Shadows */
  --shadow-elevated: 0px 4px 20px rgba(0,0,0,0.05);
  --shadow-card: 0px 2px 12px rgba(0,0,0,0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--on-surface);
  background-color: var(--background);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: none;
}

/* ---- Typography ---- */
.display-lg {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 64px;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}

.headline-md {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.body-lg {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.body-md {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.label-md {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.label-sm {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 64px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

h4 {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

p {
  font-size: 16px;
  line-height: 24px;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin-desktop);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.section {
  padding: var(--space-12) 0;
}

.section--compact {
  padding: var(--space-8) 0;
}

/* ---- Star Motif Background Pattern ---- */
.star-pattern {
  position: relative;
}

.star-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5l4.09 12.59h13.23l-10.7 7.78 4.08 12.58L30 30.17l-10.7 7.78 4.08-12.58-10.7-7.78h13.23L30 5z' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}

.star-pattern > * {
  position: relative;
  z-index: 1;
}

/* ---- Navigation ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-container-lowest);
  border-bottom: 1px solid var(--outline-variant);
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-elevated);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo {
  width: 36px;
  height: 36px;
  border-radius: var(--rounded-full);
  object-fit: cover;
}

.navbar__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-container);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  padding: 8px 14px;
  border-radius: var(--rounded);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.navbar__link:hover {
  color: var(--primary-container);
  background-color: rgba(27, 94, 32, 0.06);
}

.navbar__link--active {
  color: var(--primary-container);
  font-weight: 600;
}

.navbar__link--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 3px;
  background: var(--primary-container);
  border-radius: 3px 3px 0 0;
}

/* Hamburger (mobile) */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--on-surface);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface-container-lowest);
  padding: var(--space-3);
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  animation: slideDown 0.3s ease;
}

.navbar__mobile-menu.active {
  display: flex;
}

.navbar__mobile-menu .navbar__link {
  font-size: 16px;
  padding: 14px 16px;
  border-radius: var(--rounded-lg);
}

.navbar__mobile-menu .navbar__link--active::after {
  display: none;
}

.navbar__mobile-menu .navbar__link--active {
  background-color: rgba(27, 94, 32, 0.08);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 10px 24px;
  border-radius: var(--rounded);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary-container);
  color: var(--on-primary);
  border: 2px solid var(--primary-container);
}

.btn--primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 69, 13, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--on-surface);
  border: 2px solid var(--outline-variant);
}

.btn--secondary:hover {
  border-color: var(--primary-container);
  color: var(--primary-container);
  background: rgba(27, 94, 32, 0.04);
}

/* ---- Cards ---- */
.card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--rounded-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-elevated);
}

.card--elevated {
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.card--elevated:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--rounded-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-2);
}

.card__icon--green {
  background: rgba(27, 94, 32, 0.08);
  color: var(--primary-container);
}

.card__icon--blue {
  background: rgba(43, 91, 181, 0.08);
  color: var(--secondary);
}

.card__icon--yellow {
  background: rgba(112, 93, 0, 0.08);
  color: var(--tertiary);
}

.card__icon--red {
  background: rgba(186, 26, 26, 0.06);
  color: var(--error);
}

.card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--on-surface);
  margin-bottom: var(--space-1);
}

.card__subtitle {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-2);
}

.card__text {
  font-size: 15px;
  line-height: 24px;
  color: var(--on-surface-variant);
}

/* ---- Hero Section ---- */
.hero {
  background: var(--primary-container);
  color: var(--on-primary);
  padding: var(--space-12) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero--lg {
  padding: 120px 0 100px;
}

.hero--welcome {
  min-height: calc(100svh - 64px);
  background:
    linear-gradient(rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.78)),
    url("assets/images/Screenshot%202026-06-01%20130255.png") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero--welcome .hero__content {
  max-width: 820px;
  padding: var(--space-5) var(--margin-mobile) var(--space-10);
}

.hero__welcome-logo {
  width: 112px;
  height: 118px;
  object-fit: contain;
  margin: 0 auto var(--space-2);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.24));
}

.hero__welcome-label {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.hero--welcome .hero__welcome-logo,
.hero--welcome .hero__welcome-label,
.hero--welcome .hero__title,
.hero--welcome .hero__subtitle,
.hero__scroll-cue {
  opacity: 0;
  animation: welcome-rise 0.8s ease forwards;
}

.hero--welcome .hero__welcome-logo { animation-delay: 0.08s; }
.hero--welcome .hero__welcome-label { animation-delay: 0.2s; }
.hero--welcome .hero__title { animation-delay: 0.38s; }
.hero--welcome .hero__subtitle { animation-delay: 0.56s; }

.hero__scroll-cue {
  position: absolute !important;
  bottom: 24px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.84);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
  animation: welcome-cue 0.8s ease 1s forwards;
}

.hero__scroll-cue svg {
  width: 22px;
  height: 22px;
  animation: scroll-bounce 1.6s ease-in-out 1.8s infinite;
}

@keyframes welcome-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes welcome-cue {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: var(--rounded-full);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--space-3);
  color: rgba(255,255,255,0.9);
}

.hero__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 64px;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  color: #ffffff;
}

.hero--welcome .hero__title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin-bottom: var(--space-2);
}

.hero__subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto var(--space-5);
}

/* Page hero (smaller) */
.page-hero {
  background: var(--primary-container);
  color: var(--on-primary);
  padding: var(--space-8) 0 var(--space-6);
  position: relative;
  overflow: hidden;
}

.hero--welcome .hero__subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 0;
}

.page-hero--profile {
  min-height: 560px;
  padding: 124px 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.5)),
    url("assets/images/Screenshot%202026-06-01%20130255.png") center center / cover no-repeat;
  display: flex;
  align-items: center;
}

.page-hero--profile .page-hero__grid {
  display: block;
}

.page-hero--profile .page-hero__desc {
  max-width: 820px;
  color: rgba(255,255,255,0.92);
  font-size: 17px;
  line-height: 30px;
}

.profile-hero__eyebrow {
  color: rgba(255,255,255,0.74);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.page-hero--profile .page-hero__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin-bottom: var(--space-3);
}

.page-hero__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.page-hero__desc {
  font-size: 16px;
  line-height: 26px;
  color: rgba(255,255,255,0.8);
  max-width: 700px;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-header__overline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-container);
  margin-bottom: var(--space-1);
}

.section-header__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  color: var(--on-surface);
  margin-bottom: var(--space-2);
}

.section-header__desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface-variant);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Data Tables ---- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--outline-variant);
  border-radius: var(--rounded-lg);
  overflow: hidden;
}

.data-table thead th {
  background: var(--primary-container);
  color: var(--on-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 20px;
  text-align: left;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 14px 20px;
  font-size: 15px;
  line-height: 22px;
  border-bottom: 1px solid var(--outline-variant);
  color: var(--on-surface);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(27, 94, 32, 0.02);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(27, 94, 32, 0.04);
}

/* Category badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--rounded);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge--green {
  background: rgba(27, 94, 32, 0.1);
  color: var(--primary-container);
}

.badge--blue {
  background: rgba(43, 91, 181, 0.1);
  color: var(--secondary);
}

.badge--yellow {
  background: rgba(112, 93, 0, 0.1);
  color: var(--tertiary);
}

.badge--red {
  background: rgba(186, 26, 26, 0.08);
  color: var(--error);
}

.badge--gray {
  background: var(--surface-container-high);
  color: var(--on-surface-variant);
}

/* ---- Staff / Org Cards ---- */
.staff-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--rounded-lg);
  padding: var(--space-4);
  text-align: center;
  transition: all var(--transition-base);
}

.staff-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.staff-card__photo {
  width: 100px;
  height: 100px;
  border-radius: var(--rounded-lg);
  object-fit: cover;
  margin: 0 auto var(--space-2);
  border: 3px solid var(--surface-container-high);
}

.staff-card__photo--lg {
  width: 130px;
  height: 130px;
}

.staff-card__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.staff-card__role {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-container);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Guru Besar card (large, featured) */
.staff-card--featured {
  background: var(--surface-container-lowest);
  border: 2px solid var(--primary-container);
  padding: var(--space-5);
}

.staff-card--featured .staff-card__photo {
  width: 140px;
  height: 140px;
  border-color: var(--primary-container);
}

/* ---- Org chart connector ---- */
.org-chart__connector {
  display: flex;
  justify-content: center;
  padding: var(--space-3) 0;
}

.org-chart__line {
  width: 2px;
  height: 40px;
  background: var(--outline-variant);
}

.org-chart__branches {
  display: flex;
  justify-content: center;
  position: relative;
  gap: var(--gutter);
  flex-wrap: wrap;
}

.org-chart__branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--outline-variant);
}

/* ---- Stats Cards ---- */
.stat-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--rounded-lg);
  padding: var(--space-4);
  text-align: center;
}

.stat-card__icon {
  font-size: 28px;
  margin-bottom: var(--space-1);
  color: var(--secondary);
}

.stat-card__number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  color: var(--on-surface);
}

.stat-card__label {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 20px;
}

/* CTA stat card */
.stat-card--cta {
  background: var(--primary-container);
  border-color: var(--primary-container);
  color: var(--on-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card--cta .stat-card__label {
  color: rgba(255,255,255,0.8);
}

/* ---- Banner / Highlight Section ---- */
.banner {
  background: var(--surface-container);
  border-radius: var(--rounded-xl);
  padding: var(--space-6) var(--space-5);
  position: relative;
  overflow: hidden;
}

.banner--green {
  background: linear-gradient(135deg, rgba(27,94,32,0.06) 0%, rgba(27,94,32,0.02) 100%);
  border: 1px solid rgba(27,94,32,0.12);
}

.banner__overline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-container);
  margin-bottom: var(--space-2);
}

.banner__text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-style: italic;
  line-height: 28px;
  color: var(--on-surface-variant);
}

/* ---- Announcements ---- */
.announce {
  border-bottom: 1px solid var(--outline-variant);
  padding: var(--space-2) 0;
}

.announce:last-child {
  border-bottom: none;
}

.announce__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--error);
  margin-bottom: 2px;
}

.announce__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.announce__desc {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 20px;
}

/* ---- Footer ---- */
.footer {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  padding: var(--space-6) 0 var(--space-4);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin-desktop);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.footer__brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.footer__brand-desc {
  font-size: 13px;
  color: rgba(240,241,242,0.6);
  line-height: 20px;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
  color: rgba(240,241,242,0.5);
}

.footer__link {
  display: block;
  font-size: 14px;
  color: rgba(240,241,242,0.8);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--primary-fixed-dim);
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-3);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(240,241,242,0.4);
}

/* ---- Visi Misi Cards ---- */
.visi-misi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

.vision-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-top: 4px solid var(--primary-container);
  border-radius: var(--rounded-lg);
  padding: var(--space-5);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.vision-card--mission {
  border-top-color: var(--secondary);
}

.vision-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.vision-card__icon {
  width: 36px;
  height: 36px;
  color: var(--primary-container);
  margin-bottom: var(--space-3);
  stroke-width: 1.6;
}

.vision-card--mission .vision-card__icon {
  color: var(--secondary);
}

.vision-card__label {
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.vision-card__title {
  color: var(--on-surface);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 36px;
  margin-bottom: var(--space-2);
}

.vision-card__text {
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 28px;
  max-width: 560px;
}

.visi-misi-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--rounded-lg);
  padding: var(--space-5);
}

.visi-misi-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--rounded-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  font-size: 22px;
}

.visi-misi-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.visi-misi-card__text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-style: italic;
  line-height: 28px;
  color: var(--on-surface-variant);
}

/* ---- Sekapur Sireh & News Grid ---- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter);
}

.sekapur-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--rounded-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 920px;
  margin: 0 auto;
}

.sekapur-card__label {
  font-size: 48px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--on-surface);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.sekapur-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.sekapur-card__text {
  font-size: 15px;
  line-height: 24px;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-3);
}

.sekapur-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: var(--space-2);
  border-top: 1px solid var(--outline-variant);
}

.sekapur-card__author-photo {
  width: 44px;
  height: 44px;
  border-radius: var(--rounded-full);
  object-fit: cover;
  border: 2px solid var(--surface-container-high);
}

.sekapur-card__author-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--on-surface);
}

.sekapur-card__author-role {
  font-size: 12px;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* ---- Profile / Identity Section ---- */
.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}

.identity-card {
  background: var(--surface-container-lowest);
  border: 1px solid rgba(113, 122, 109, 0.28);
  border-radius: var(--rounded-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.identity-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.identity-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--error);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.identity-card__title svg,
.footer__brand-name svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}

.hero__badge svg,
.card__icon svg,
.unit-card__icon svg,
.stat-card__icon svg,
.location-info__icon svg {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

.hero__badge svg {
  margin-right: 6px;
}

.btn svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.house-color {
  margin-bottom: 8px;
}

.house-color svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.house-color--green { color: #008000; }
.house-color--blue { color: #2b5bb5; }
.house-color--yellow { color: #caa900; }
.house-color--red { color: #ba1a1a; }

.identity-card__img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #f7f8f7;
  border-radius: var(--rounded-lg);
  margin-bottom: var(--space-3);
  padding: var(--space-2);
}

.identity-card__text {
  font-size: 15px;
  line-height: 25px;
  color: var(--on-surface-variant);
}

.identity-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---- Logo Detail Page ---- */
.detail-back-link {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.logo-detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: var(--space-6);
  align-items: start;
}

.logo-detail__media {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--rounded-lg);
  padding: var(--space-5);
  text-align: center;
  position: sticky;
  top: 92px;
}

.logo-detail__img {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto var(--space-3);
}

.flag-detail__img {
  display: block;
  width: 100%;
  margin: 0 auto var(--space-3);
}

.logo-detail__caption {
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 22px;
}

.logo-detail__content {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--rounded-lg);
  padding: var(--space-6);
}

.logo-detail__section + .logo-detail__section {
  border-top: 1px solid var(--outline-variant);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
}

.logo-detail__section h2 {
  color: var(--primary-container);
  font-size: 24px;
  margin-bottom: var(--space-2);
}

.logo-detail__section p {
  color: var(--on-surface-variant);
  line-height: 26px;
  margin-bottom: var(--space-2);
}

.logo-detail__section strong {
  color: var(--on-surface);
}

/* ---- Lyrics / Song Section ---- */
.profile-section--song {
  background: var(--surface-container-low);
}

.lyrics-section {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface-container-lowest);
  border: 1px solid rgba(113, 122, 109, 0.22);
  border-radius: var(--rounded-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}

.lyrics-section__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-container);
  letter-spacing: -0.035em;
  margin-bottom: var(--space-3);
}

.lyrics-section__credits {
  color: var(--on-surface-variant);
  font-size: 13px;
  line-height: 22px;
  margin-top: var(--space-3);
}

.lyrics-section__text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 30px;
  color: var(--on-surface-variant);
  white-space: pre-line;
}

/* ---- Location Section ---- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: stretch;
}

.location-map {
  border-radius: var(--rounded-xl);
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-card);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.location-info {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  border-radius: var(--rounded-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-info__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.location-info__text {
  font-size: 15px;
  line-height: 24px;
  color: rgba(240,241,242,0.8);
  margin-bottom: var(--space-3);
}

.location-info__item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-2);
  font-size: 14px;
  color: rgba(240,241,242,0.8);
}

.location-info__item-icon {
  font-size: 18px;
  color: var(--primary-fixed-dim);
  width: 24px;
  text-align: center;
}

/* ---- Unit Page Grids ---- */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.unit-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--rounded-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
}

.unit-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.unit-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--rounded-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-2);
  background: rgba(27, 94, 32, 0.08);
  color: var(--primary-container);
}

.unit-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.unit-card__desc {
  font-size: 14px;
  line-height: 22px;
  color: var(--on-surface-variant);
}

/* ---- Scroll Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-container); }
.text-secondary { color: var(--secondary); }
.text-error { color: var(--error); }
.text-muted { color: var(--on-surface-variant); }
.text-white { color: #ffffff; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Page hero layout modifications */
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--gutter);
  align-items: center;
}
.page-hero__img {
  width: 100%;
  max-width: 440px;
  border-radius: var(--rounded-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-elevated);
  justify-self: end;
}


/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-5);
  }
  .navbar__inner {
    padding: 0 var(--space-5);
  }
  .footer__inner {
    padding: 0 var(--space-5);
  }
  h1, .hero__title {
    font-size: 40px;
    line-height: 48px;
  }
  .page-hero__title {
    font-size: 32px;
    line-height: 40px;
  }
  .unit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --margin-desktop: 20px;
  }

  .container {
    padding: 0 var(--margin-mobile);
  }
  .navbar__inner {
    padding: 0 var(--margin-mobile);
  }
  .footer__inner {
    padding: 0 var(--margin-mobile);
  }

  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  h1, .hero__title {
    font-size: 32px;
    line-height: 40px;
  }

  .hero--lg {
    padding: 80px 0 60px;
  }

  .hero--welcome {
    min-height: max(500px, calc(100svh - 64px));
  }

  .hero--welcome .hero__content {
    padding-bottom: var(--space-10);
  }

  .page-hero--profile {
    min-height: 460px;
    padding: 80px 0;
  }

  .section {
    padding: var(--space-8) 0;
  }

  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .page-hero__img {
    max-width: 100%;
    justify-self: center;
  }

  .intro-grid,
  .visi-misi-grid,
  .identity-grid,
  .logo-detail-layout,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .logo-detail__media {
    position: static;
  }


  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .org-chart__branches {
    flex-direction: column;
    align-items: center;
  }

  .org-chart__branches::before {
    display: none;
  }

  .unit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero__title {
    font-size: 28px;
    line-height: 36px;
  }

  .data-table {
    font-size: 14px;
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 10px 12px;
  }

  .stat-card__number {
    font-size: 36px;
    line-height: 44px;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__scroll-cue {
    bottom: 18px;
    font-size: 10px;
  }

  .hero__welcome-logo {
    width: 92px;
    height: 98px;
  }

  .unit-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--welcome .hero__welcome-logo,
  .hero--welcome .hero__welcome-label,
  .hero--welcome .hero__title,
  .hero--welcome .hero__subtitle,
  .hero__scroll-cue,
  .hero__scroll-cue svg {
    opacity: 1;
    animation: none;
  }
}


