/*
 * Public visual refresh
 * Design read: calm, trust-first learning portal for students and families.
 * Dials: variance 4, motion 3, density 4.
 * Shape rule: 16px content surfaces, 12px controls, full pills only for filters.
 */

:root {
  color-scheme: light only;
  --primary: #145c3d;
  --primary-strong: #0f4930;
  --secondary: #1f7a52;
  --accent: #145c3d;
  --background: #f7f9f7;
  --surface: #ffffff;
  --surface-soft: #eef4f0;
  --surface-strong: #e2ece6;
  --text-dark: #14211b;
  --text-muted: #58675f;
  --text-accent: #145c3d;
  --heading-accent: #145c3d;
  --border: #d9e3dd;
  --border-strong: #c2d2c8;
  --focus: #b7791f;
  --success: #145c3d;
  --danger: #a82d2d;
  --shadow: 0 24px 60px rgba(20, 92, 61, 0.1);
  --shadow-small: 0 12px 28px rgba(20, 92, 61, 0.07);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 16px;
  --container: 1200px;
  --section-space: clamp(64px, 7vw, 96px);
}

html {
  font-size: 15px;
  scroll-padding-top: 124px;
}

body {
  overflow-x: clip;
  background: var(--background);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.65;
}

body::before {
  display: none !important;
}

main,
main > *,
.container,
.container > *,
[class*="-grid"],
[class*="-layout"] {
  min-width: 0;
}

.container {
  width: min(calc(100% - 48px), var(--container));
}

h1,
h2,
h3 {
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a,
button,
input,
select,
textarea,
summary,
[tabindex="0"] {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, textarea, summary, [tabindex="0"]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 68%, white);
  outline-offset: 3px;
}

::selection {
  background: #cfe4d7;
  color: var(--text-dark);
}

.text-gradient,
.text-accent,
.sambutan-profil-title-accent {
  background: none !important;
  color: color-mix(in srgb, var(--primary) 86%, var(--text-dark)) !important;
  -webkit-text-fill-color: currentColor !important;
}

.eyebrow,
.gallery-preview .eyebrow {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.skip-link {
  z-index: 120;
  border-radius: var(--radius-sm);
  background: var(--primary-strong);
  color: #f8fbf9;
}

/* Shared actions */
.btn {
  min-height: 48px;
  gap: 9px;
  border-radius: var(--radius-sm);
  padding: 12px 19px;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #f8fbf9;
}

.btn-primary:hover {
  border-color: var(--primary-strong);
  background: var(--primary-strong);
  color: #ffffff;
}

.btn-secondary,
.btn-outline {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text-dark);
}

.btn-secondary:hover,
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--surface-soft);
  color: var(--primary-strong);
}

.btn-ghost {
  color: var(--primary-strong);
}

.text-link,
.home-module-cta,
.home-mapel-cta,
.announcement-panel-more,
.sambutan-profil-cta-link {
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover,
.home-module-cta:hover,
.home-mapel-cta:hover,
.announcement-panel-more:hover,
.sambutan-profil-cta-link:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

/* Institutional header */
.site-header {
  border: 0;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(20, 33, 27, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.is-scrolled {
  border: 0;
  box-shadow: 0 12px 32px rgba(20, 49, 36, 0.09), 0 1px 0 rgba(20, 33, 27, 0.08);
}

.site-utility {
  min-height: 34px;
  border: 0;
  background: var(--primary-strong);
  color: #f1f7f3;
}

.site-utility-inner {
  min-height: 34px;
}

.site-utility a,
.site-utility-contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f1f7f3;
  font-size: 0.72rem;
  font-weight: 700;
}

.site-utility a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header .navbar {
  min-height: 70px;
  gap: 18px;
}

.site-header .brand {
  flex: 0 1 auto;
  gap: 12px;
}

.site-header .brand-logo,
.site-header .brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
}

.site-header .brand strong {
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.site-header .brand small {
  margin-top: 4px;
  color: var(--primary);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-header .nav-links {
  gap: 12px;
}

.site-header .nav-links > a:not(.btn),
.site-header .nav-dropdown summary {
  color: #35443c;
  font-size: 0.79rem;
  font-weight: 700;
}

.site-header .nav-links > a:not(.btn):hover,
.site-header .nav-links > a:not(.btn).active,
.site-header .nav-dropdown summary:hover,
.site-header .nav-dropdown summary.active,
.site-header .nav-dropdown[open] summary {
  color: var(--primary-strong);
}

.site-header .nav-links > a:not(.btn)::after,
.site-header .nav-dropdown summary::before {
  height: 2px;
  background: var(--primary);
}

.site-header .nav-dropdown > div {
  top: calc(100% + 1px);
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.site-header .nav-dropdown > div a {
  border-radius: 10px;
  color: #44534b;
}

.site-header .nav-dropdown > div a:hover,
.site-header .nav-dropdown > div a:focus-visible {
  background: var(--surface-soft);
  color: var(--primary-strong);
}

.site-header .nav-links > .btn {
  min-height: 40px;
  padding-inline: 16px;
}

/* Shared page rhythm */
.section {
  padding-block: var(--section-space);
}

.section-compact {
  padding-top: clamp(42px, 5vw, 64px);
}

.section-tinted {
  background: var(--surface-soft);
}

.section-heading,
.facility-section-header,
.profile-v2-section-head {
  max-width: 720px;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.section-heading h2,
.facility-section-header h2,
.profile-v2-section-head h2,
.home-modules-header h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.16;
}

.section-heading p,
.facility-section-header p,
.profile-v2-section-head p,
.home-modules-header p {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.section-title-line {
  display: block;
}

.home-mapel-section .section-heading h2 {
  line-height: 1.02;
}

.section-action {
  margin-top: 32px;
}

.page-hero,
.modul-catalog-v2__hero,
.profile-v2-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.page-hero::before,
.modul-catalog-v2__hero::before,
.profile-v2-hero::before {
  display: none;
}

.page-hero > .container:not([class*="layout"]),
.page-hero .modul-catalog-v2__hero-layout,
.page-hero .profile-v2-hero-layout {
  padding-left: 0;
}

.page-hero h1,
.modul-catalog-v2__hero-copy h1,
.profile-v2-hero h1 {
  max-width: 17ch;
  margin: 7px 0 14px;
  color: var(--text-dark);
  font-size: clamp(2.7rem, 5vw, 4.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.page-hero p:not(.eyebrow),
.modul-catalog-v2__hero-copy .modul-page-lead,
.profile-v2-hero-layout > div > p:last-child {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  line-height: 1.7;
}

.breadcrumb {
  color: var(--text-muted);
}

/* Shared surfaces and states */
.empty-state,
.prose-card,
.public-card,
.class-card,
.kontak-form-panel,
.kontak-intro-card,
.kontak-channel,
.sidebar-widget,
.modul-filter-panel,
.berita-filter-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.empty-state {
  padding: clamp(32px, 5vw, 56px);
}

.empty-state h2,
.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  max-width: 54ch;
}

.ui-icon > i {
  display: block;
  font-size: inherit;
  line-height: 1;
}

.module-format-icon > i,
.module-provider-icon > i {
  display: block;
  font-size: 1rem;
  line-height: 1;
}

.badge,
.teacher-subject-tag,
.home-module-badge,
.announcement-badge,
.modul-format-chip {
  box-shadow: none;
}

input,
select,
textarea {
  border-color: var(--border-strong) !important;
  border-radius: var(--radius-sm) !important;
  background: #ffffff !important;
  color: var(--text-dark) !important;
}

input::placeholder,
textarea::placeholder {
  color: #6b7971;
  opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #9db2a5 !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(20, 92, 61, 0.13) !important;
  outline: 0;
}

/* Home hero */
.hero {
  min-height: min(720px, calc(100dvh - 112px));
  padding-block: clamp(52px, 6vw, 76px);
  background: #f4f8f5;
}

.hero::after {
  display: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  gap: clamp(52px, 7vw, 96px);
}

.hero-copy {
  max-width: 720px;
}

.hero-copy > .eyebrow {
  margin-bottom: 16px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.hero-copy h1 {
  max-width: 15.5ch;
  margin: 0 0 22px;
  color: var(--text-dark);
  font-size: clamp(2.65rem, 3.85vw, 3.55rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.hero-title-line {
  display: block;
}

@media (min-width: 761px) {
  .hero-title-line {
    white-space: normal;
  }
}

.hero-lead {
  max-width: 57ch;
  margin-bottom: 28px;
  color: #4d5f55;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.75;
}

.hero .button-group {
  gap: 10px;
}

.hero-visual {
  isolation: isolate;
}

.hero-visual::before {
  inset: 24px -18px -18px 24px;
  z-index: -1;
  border: 1px solid #c8d9ce;
  border-radius: var(--radius);
  background: #dfeae3;
}

.hero-visual img {
  aspect-ratio: 4 / 4.15;
  border: 1px solid rgba(20, 92, 61, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 28px 62px rgba(20, 61, 43, 0.16);
}

.hero-note {
  right: -18px;
  bottom: 22px;
  min-width: 188px;
  border-color: rgba(20, 92, 61, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-small);
}

.hero-note strong {
  color: var(--primary);
}

/* Home leadership */
.sambutan-profil-wrap,
.sambutan-profil-wrap--home {
  background: var(--background);
}

.sambutan-profil-stage {
  gap: clamp(28px, 5vw, 64px);
}

.sambutan-profil-portrait,
.sambutan-profil-photo,
.sambutan-profil-photo-placeholder,
.sambutan-profil-card {
  border-radius: var(--radius) !important;
}

.sambutan-profil-portrait,
.sambutan-profil-card {
  border-color: var(--border) !important;
  box-shadow: none !important;
}

.sambutan-profil-card {
  padding: clamp(28px, 4vw, 46px) !important;
  background: var(--surface) !important;
}

.sambutan-profil-card-head h2 {
  font-size: clamp(2rem, 3.25vw, 3.1rem) !important;
  font-weight: 700 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.01em !important;
}

.sambutan-profil-kicker {
  color: var(--primary) !important;
}

.sambutan-profil-body,
.sambutan-profil-body p {
  color: var(--text-muted) !important;
  line-height: 1.8 !important;
}

.sambutan-profil-photo-placeholder > i {
  font-size: 3.5rem;
}

/* Keep the home excerpt scrollable without drawing a focus card. */
.sambutan-profil--home .sambutan-profil-body:focus,
.sambutan-profil--home .sambutan-profil-body:focus-visible {
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

.sambutan-profil--home .sambutan-profil-body::selection,
.sambutan-profil--home .sambutan-profil-body *::selection {
  background: transparent;
  color: inherit;
}

/* Profile leadership: full reading flow without a nested card or scrollbar. */
.sambutan-profil-wrap--profil .sambutan-profil-stage {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(34px, 5vw, 68px);
}

.sambutan-profil-wrap--profil .sambutan-profil-visual {
  width: 100%;
  max-width: 360px;
}

.sambutan-profil-wrap--profil .sambutan-profil-card {
  gap: 26px;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sambutan-profil-wrap--profil .sambutan-profil-card-head {
  gap: 10px;
  padding-top: 2px;
}

.sambutan-profil-wrap--profil .sambutan-profil-body-wrap {
  min-height: 0;
  overflow: visible;
}

.sambutan-profil-wrap--profil .sambutan-profil-body {
  max-width: 70ch;
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
  scrollbar-gutter: auto !important;
}

.sambutan-profil-wrap--profil .sambutan-profil-body p,
.sambutan-profil-wrap--profil .sambutan-profil-body li {
  font-size: clamp(0.96rem, 1.1vw, 1.05rem);
  line-height: 1.85 !important;
}

.sambutan-profil-wrap--profil .sambutan-profil-body-fade {
  display: none;
}

.sambutan-profil-frame,
.sambutan-profil-letter,
.sambutan-panel-card {
  animation: none !important;
}

/* Home modules */
.home-modules-section {
  background: #fbfcfb;
}

.home-modules-header {
  max-width: 720px;
  margin-bottom: 36px;
}

.home-modules-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.home-module-card {
  grid-column: span 4;
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-module-card:first-child,
.home-module-card:nth-child(2) {
  grid-column: span 6;
}

.home-module-card:hover {
  border-color: #9dbca8;
  box-shadow: var(--shadow-small);
  transform: translateY(-2px);
}

.home-module-card::before {
  height: 3px;
  background: var(--primary);
}

.home-module-title {
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.35;
}

.home-module-desc,
.home-module-mapel,
.home-module-pengampu {
  color: var(--text-muted);
}

.home-module-mapel,
.home-module-pengampu,
.home-module-date {
  font-size: 0.72rem;
}

.home-module-date time,
.home-module-pengampu-label,
.home-mapel-stat,
.home-mapel-stat span {
  color: #4f6157 !important;
}

.home-module-meta-icon {
  color: var(--primary);
  font-size: 1rem;
}

.home-modules-empty-icon {
  color: var(--primary);
  font-size: 1.8rem;
}

/* Home learning formats */
.learning-types {
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
  gap: clamp(48px, 7vw, 90px);
}

.learning-types > div:first-child {
  align-self: center;
}

.learning-types h2 {
  max-width: 13ch;
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 3.8vw, 3.65rem);
  line-height: 1.06;
}

.learning-intro-list {
  gap: 10px;
  margin-top: 26px;
}

.learning-intro-list li {
  border-color: var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.76);
}

.learning-intro-list li > i {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.9rem;
}

.type-grid {
  gap: 14px;
}

.type-card {
  min-height: 182px;
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.type-card:hover {
  border-color: #9dbca8;
  box-shadow: var(--shadow-small);
  transform: translateY(-2px);
}

.type-card-featured {
  background: var(--primary-strong);
}

.type-icon {
  border-radius: 11px;
  font-size: 1.3rem;
}

/* Home learning path */
.learning-flow-section {
  background: var(--surface);
}

.learning-flow-heading {
  margin-inline: 0;
  text-align: left;
}

.academic-timeline-wrap {
  margin-top: 40px;
}

.academic-timeline {
  gap: 16px;
}

.timeline-step {
  min-width: 0;
}

.step-marker {
  margin-bottom: 14px;
}

.step-icon-wrap {
  border-color: #b9cec1;
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 0 0 7px var(--surface);
}

.step-card {
  min-height: 150px;
  border-color: var(--border);
  border-radius: var(--radius);
  background: #fbfcfb;
  box-shadow: none;
}

.step-card h3 {
  margin-top: 0;
}

/* Home subjects and teachers */
.home-mapel-section {
  background: var(--surface-soft);
}

.home-mapel-grid {
  gap: 16px;
}

.home-mapel-card,
.teacher-card {
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-mapel-card:hover,
.teacher-card:hover,
.teacher-card:focus-visible {
  border-color: #9dbca8;
  box-shadow: var(--shadow-small);
  transform: translateY(-2px);
}

.home-mapel-card h3 {
  font-weight: 700 !important;
  line-height: 1.24 !important;
  letter-spacing: -0.01em !important;
}

.home-mapel-icon,
.teacher-placeholder-monogram {
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--primary);
}

:root {
  --teacher-card-photo-ratio: 4 / 5;
  --teacher-photo-position: center 10%;
}

.teacher-row,
.teacher-grid {
  gap: 16px;
}

.teacher-card {
  overflow: hidden;
  cursor: pointer;
}

.teacher-card-visual {
  width: 100%;
  aspect-ratio: var(--teacher-card-photo-ratio);
  min-height: 0;
  overflow: hidden;
  background: #eef4f0;
}

.teacher-card-visual img,
.teacher-card-visual .teacher-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: var(--teacher-photo-position);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.teacher-card-visual img {
  display: block;
}

.teacher-card .teacher-placeholder {
  display: flex;
}

.teacher-card:hover img,
.teacher-card:hover .teacher-placeholder {
  transform: scale(1.04);
}

.teacher-card-visual img,
.teacher-placeholder {
  border-radius: 0;
}

.modul-detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.teacher-card-info {
  padding: 18px;
}

/* Home information and gallery */
.home-updates-section {
  background: #e8f0eb;
}

.home-updates {
  gap: clamp(34px, 6vw, 74px);
}

.news-row {
  border-color: #cbd8d0;
}

.announcement-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--primary-strong);
  box-shadow: 0 18px 40px rgba(15, 73, 48, 0.16);
}

.announcement-item {
  border-color: rgba(255, 255, 255, 0.13);
}

.announcement-badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

.announcement-panel-more,
.announcement-panel-more span {
  color: #ffffff !important;
}

.gallery-preview {
  background: #f7f9f7;
}

.gallery-strip {
  gap: 14px;
}

.gallery-button,
.gallery-button img {
  border-radius: var(--radius);
}

.gallery-button {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.gallery-button:hover {
  border-color: #9dbca8;
  box-shadow: var(--shadow-small);
  transform: translateY(-2px);
}

/* Public catalog pages */
.modul-catalog-v2,
.profile-v2-intro,
.profile-v2-history,
.profile-v2-facilities,
.berita-page,
.gallery-page,
.kontak-page,
.akademik-page {
  background: var(--background);
}

.kontak-intro-card {
  border-color: var(--primary-strong);
  background: var(--primary-strong);
  color: #f3f8f5;
}

.kontak-intro-card h2,
.kontak-intro-card p,
.kontak-intro-card li,
.kontak-intro-card span {
  color: #f3f8f5;
}

.kontak-intro-card .kontak-intro-badge,
.kontak-intro-card .kontak-intro-copy {
  color: #c8d9cf;
}

.kontak-intro-mark {
  display: grid;
  place-items: center;
}

.kontak-intro-mark i,
.kontak-channel-icon i,
.kontak-feedback-icon i {
  font-size: 1.25rem;
}

.kontak-intro-list li {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.kontak-intro-list li > i {
  color: #8fdbb4;
  font-size: 1rem;
}

.modul-catalog-v2__hero-layout,
.profile-v2-hero-layout {
  gap: clamp(34px, 6vw, 76px);
}

.modul-hero-stats,
.profile-v2-hero-stats {
  gap: 12px;
}

.modul-hero-stats > div,
.profile-v2-hero-stats > div {
  border-color: var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.modul-hero-stats i,
.profile-v2-hero-stats i {
  border-radius: 11px;
  background: var(--surface-strong);
  color: var(--primary);
}

.modul-catalog-v2 .modul-filter-panel,
.berita-filter-panel {
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.modul-catalog-v2 .modul-format-chip,
.berita-category-filters a {
  border-color: var(--border);
  background: #f8faf8;
  color: #415047;
}

.modul-catalog-v2 .modul-format-chip:hover,
.berita-category-filters a:hover {
  border-color: #9dbca8;
  background: var(--surface-soft);
  color: var(--primary-strong);
}

.modul-catalog-v2 .modul-format-chip.is-active,
.berita-category-filters a.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.modul-catalog-v2 .module-popular__card,
.modul-catalog-v2 .module-card,
.news-card,
.gallery-card {
  border-color: var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.modul-catalog-v2 .module-popular__card:hover,
.modul-catalog-v2 .module-card:hover,
.news-card:hover,
.gallery-card:hover {
  border-color: #9dbca8;
  box-shadow: var(--shadow-small);
  transform: translateY(-2px);
}

.modul-catalog-v2 .module-card {
  min-height: 370px;
  padding: 24px;
}

.modul-catalog-v2 .module-card-copy {
  margin-top: 24px;
}

.module-instant-results {
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

/* Profile page */
.profile-v2-intro-layout {
  gap: clamp(36px, 6vw, 76px);
}

.profile-v2-since {
  border-color: var(--border-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--primary);
}

.profile-v2-identity,
.profile-v2-history-card,
.profile-v2-direction-card,
.profile-v2-facility-grid article,
.profile-v2-land {
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.profile-v2-direction {
  background: var(--surface-soft);
}

.profile-v2-vision-quote {
  border-radius: var(--radius);
  background: var(--primary-strong);
  box-shadow: none;
}

.profile-v2-facility-grid article:hover {
  border-color: #9dbca8;
  box-shadow: var(--shadow-small);
  transform: translateY(-2px);
}

/* Articles and utility pages */
.article-page {
  background: var(--background);
}

.article-header h1 {
  max-width: 20ch;
  font-size: clamp(2.35rem, 4.8vw, 4.35rem);
  line-height: 1.05;
}

.article-cover,
.article-cover img,
.related-card,
.related-card img {
  border-radius: var(--radius);
}

.article-body {
  color: #35443c;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.85;
}

.rich-content :where(p, li) {
  color: inherit;
}

.public-card-grid,
.department-grid,
.class-grid,
.news-grid,
.gallery-page-grid {
  gap: 18px;
}

.public-card,
.class-card,
.department-grid > article,
.announcement-list > article {
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.department-grid h3,
.class-card h3,
.academic-timeline h3 {
  font-weight: 700 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.01em !important;
}

.subject-list span {
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.table-wrap,
.schedule-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  border-collapse: collapse;
}

th {
  background: var(--surface-soft);
  color: var(--text-dark);
}

td,
th {
  border-color: var(--border) !important;
}

/* Footer */
.site-footer {
  padding-top: 56px;
  background: #10231a;
}

.site-footer .footer-grid {
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: 44px;
}

.site-footer,
.site-footer p,
.site-footer a,
.site-footer .brand small {
  color: #b9c9c0;
}

.site-footer h2,
.site-footer .brand strong {
  color: #f2f7f4;
}

.site-footer .footer-links > a,
.site-footer .footer-contact > a {
  min-height: 34px;
  padding-block: 5px;
}

.site-footer .footer-grid .footer-links > a,
.site-footer .footer-grid .footer-contact > a,
.site-footer .footer-grid .footer-contact > a strong {
  color: #c4d1c9;
}

.site-footer .footer-links > a:hover,
.site-footer .footer-contact > a:hover {
  color: #ffffff;
  transform: none;
}

.site-footer .footer-bottom {
  border-color: rgba(255, 255, 255, 0.11);
}

.back-to-top {
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  background: var(--primary-strong);
  color: #ffffff;
  box-shadow: var(--shadow-small);
  font-size: 1.1rem;
}

@media (max-width: 1120px) {
  .site-utility {
    display: none;
  }

  .site-header .navbar {
    min-height: 72px;
  }

  body:not(.nav-open) .site-header {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header .nav-toggle {
    display: block;
    flex: 0 0 44px;
    border-color: var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
  }

  .site-header .nav-links {
    gap: 0;
  }

  .site-header .nav-links > a:not(.btn),
  .site-header .nav-dropdown summary {
    font-size: 0.9rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
    gap: 48px;
  }

  .learning-types {
    grid-template-columns: minmax(0, 0.82fr) minmax(450px, 1.18fr);
    gap: 46px;
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-utility {
    display: none;
  }

  .site-header .navbar {
    min-height: 72px;
  }

  body:not(.nav-open) .site-header {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header .nav-toggle {
    display: block;
    flex: 0 0 44px;
    border-color: var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
  }

  .site-header .nav-links {
    gap: 0;
  }

  .site-header .nav-links > a:not(.btn),
  .site-header .nav-dropdown summary {
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .learning-types,
  .home-updates {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    max-width: 790px;
  }

  .hero-copy h1 {
    max-width: 13ch;
  }

  .hero-visual {
    width: min(100%, 660px);
  }

  .hero-visual img {
    aspect-ratio: 16 / 10;
  }

  .learning-types {
    gap: 38px;
  }

  .learning-types h2 {
    max-width: 16ch;
  }

  .home-module-card,
  .home-module-card:first-child,
  .home-module-card:nth-child(2) {
    grid-column: span 6;
  }

  .home-module-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --teacher-mobile-photo-height: clamp(320px, 90vw, 410px);
  }

  :root {
    --section-space: 60px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .page-hero > .container:not([class*="layout"]),
  .page-hero .modul-catalog-v2__hero-layout,
  .page-hero .profile-v2-hero-layout {
    padding-left: 0;
  }

  .page-hero,
  .modul-catalog-v2__hero,
  .profile-v2-hero {
    padding-block: 42px;
  }

  .page-hero h1,
  .modul-catalog-v2__hero-copy h1,
  .profile-v2-hero h1 {
    max-width: 14ch;
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    line-height: 1.14;
  }

  .section-heading h2,
  .facility-section-header h2,
  .profile-v2-section-head h2,
  .home-modules-header h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.55rem);
  }

  .hero {
    padding-block: 44px 58px;
  }

  .hero-grid {
    gap: 38px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.65rem, 12.5vw, 3.45rem);
    line-height: 1.12;
  }

  .hero-title-line {
    max-width: 100%;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero .button-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .hero .btn {
    width: 100%;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-visual::before {
    inset: 14px -8px -10px 14px;
  }

  .hero-visual img {
    aspect-ratio: 4 / 3;
  }

  .hero-note {
    right: 10px;
    bottom: 10px;
    min-width: 166px;
    padding: 12px 14px;
  }

  .hero-note strong {
    font-size: 1.4rem;
  }

  .sambutan-profil-card {
    padding: 24px 20px !important;
  }

  .home-modules-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-module-card,
  .home-module-card:first-child,
  .home-module-card:nth-child(2),
  .home-module-card:last-child:nth-child(odd) {
    grid-column: auto;
    min-height: 0;
    padding: 20px;
  }

  .learning-types h2 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .type-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .type-card,
  .type-card-featured {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 0;
  }

  .academic-timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .academic-timeline::before {
    top: 0;
    bottom: 0;
    left: 21px;
    width: 2px;
    height: auto;
  }

  .timeline-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }

  .step-marker {
    margin: 0;
  }

  .step-icon-wrap {
    width: 44px;
    height: 44px;
    box-shadow: 0 0 0 5px var(--surface);
  }

  .step-card {
    min-height: 0;
    padding: 18px;
  }

  .teacher-row,
  .teacher-grid,
  .home-mapel-grid,
  .public-card-grid,
  .department-grid,
  .class-grid,
  .news-grid,
  .gallery-page-grid,
  .profile-v2-facility-grid,
  .profile-v2-direction-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .teacher-row .teacher-card,
  .teacher-grid .teacher-card-detailed {
    display: block;
  }

  .teacher-row .teacher-card-visual,
  .teacher-grid .teacher-card-detailed .teacher-card-visual {
    width: 100%;
    height: var(--teacher-mobile-photo-height);
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .teacher-row .teacher-card-visual img,
  .teacher-row .teacher-card-visual .teacher-placeholder,
  .teacher-grid .teacher-card-detailed .teacher-card-visual img,
  .teacher-grid .teacher-card-detailed .teacher-card-visual .teacher-placeholder {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: var(--teacher-photo-position);
  }

  .teacher-row .teacher-card-visual img,
  .teacher-grid .teacher-card-detailed .teacher-card-visual img {
    display: block;
  }

  .teacher-row .teacher-card-visual .teacher-placeholder,
  .teacher-grid .teacher-card-detailed .teacher-card-visual .teacher-placeholder {
    display: flex;
  }

  .modul-catalog-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding-top: 40px;
  }

  .site-footer .footer-grid {
    padding-bottom: 28px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .site-header .brand {
    max-width: calc(100vw - 92px);
  }

  .site-header .brand > span:last-child {
    min-width: 0;
  }

  .site-header .brand strong {
    overflow: hidden;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .brand small {
    font-size: 0.6rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3rem);
    letter-spacing: -0.01em;
  }

  .hero-note {
    position: static;
    width: 100%;
    margin-top: 10px;
    border-radius: var(--radius-sm);
  }

  .modul-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .modul-hero-stats > div {
    display: block;
    padding: 12px 10px;
  }

  .modul-hero-stats dt {
    display: block;
  }

  .modul-hero-stats dt i {
    display: grid;
    width: 34px;
    height: 34px;
    margin: 0 0 10px;
  }

  .modul-hero-stats dt span {
    display: block;
    color: var(--text-muted);
    font-size: 0.58rem;
    line-height: 1.35;
  }

  .modul-hero-stats dd {
    display: block;
    margin: 4px 0 0;
    color: var(--text-dark);
    font-size: 0.9rem;
  }

  .profile-v2-hero-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .modul-catalog-v2 .modul-filter-actions,
  .berita-filter-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .modul-catalog-v2 .modul-filter-actions .btn,
  .berita-filter-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .hero-note {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Module detail and teacher dialog
 * Targeted evolution dials: variance 3, motion 2, density 5.
 */
.modul-detail-hero {
  padding-block: clamp(46px, 5vw, 68px);
}

.modul-detail-breadcrumb {
  display: flex;
  min-width: 0;
  margin-bottom: 28px;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.modul-detail-breadcrumb a {
  color: var(--primary);
}

.modul-detail-intro {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.modul-detail-copy h1 {
  max-width: 16ch;
  margin: 8px 0 12px;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.modul-detail-path {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
}

.modul-detail-meta {
  gap: 10px 22px;
  margin-top: 18px;
}

.modul-meta-chip {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.modul-detail-author {
  gap: 8px;
  padding: 5px 0 5px 20px;
  border-left: 3px solid var(--primary);
}

.modul-detail-author > strong {
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.5;
}

.modul-detail-page {
  background: var(--background);
}

.modul-detail-page.section.section-compact {
  padding-block: clamp(48px, 6vw, 76px);
}

.modul-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 310px);
  gap: clamp(28px, 4vw, 46px);
}

.modul-detail-main,
.modul-sidebar-card {
  border-color: var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.modul-detail-main {
  padding: clamp(24px, 3vw, 36px);
}

.modul-detail-section-head {
  margin-bottom: 20px;
}

.modul-detail-section-head h2,
.modul-sidebar-card-head h2 {
  color: var(--text-dark);
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.modul-detail-section-head p,
.modul-sidebar-card-head p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.modul-bahan-list {
  gap: 20px;
}

.modul-bahan-card {
  border-color: var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.modul-bahan-card-head {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px 12px;
  padding: 16px 18px;
  border-color: var(--border);
  background: var(--surface);
}

.modul-bahan-card-head h3 {
  color: var(--text-dark);
  font-size: 0.94rem;
  line-height: 1.45;
}

.modul-bahan-card-foot {
  display: flex;
  padding: 12px 18px;
  justify-content: flex-end;
  border-color: var(--border);
  background: var(--surface);
}

.modul-bahan-card-foot .btn {
  min-height: 42px;
}

.modul-media-preview {
  background: #182335;
}

.modul-media-preview--office iframe,
.modul-media-preview--google iframe,
.modul-media-preview--file iframe {
  min-height: min(62dvh, 560px);
}

.modul-audio-card {
  background: var(--surface-soft);
}

.modul-about-section,
.modul-mobile-summary {
  border-color: var(--border);
}

.modul-detail-desc {
  max-width: 74ch;
}

.modul-detail-desc > :first-child {
  margin-top: 0;
}

.modul-detail-desc > :last-child {
  margin-bottom: 0;
}

.modul-detail-sidebar {
  top: 124px;
}

.modul-sidebar-card {
  padding: 24px;
}

.modul-sidebar-bahan-item,
.modul-sidebar-facts div {
  border-color: var(--border);
}

.modul-sidebar-bahan-label {
  overflow-wrap: anywhere;
}

.modul-related-section {
  border-top: 1px solid var(--border);
}

.teacher-modal {
  padding: 0;
  overflow: hidden;
  border-color: var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(20, 33, 27, 0.24);
}

.teacher-modal::backdrop {
  background: rgba(20, 33, 27, 0.62);
  backdrop-filter: blur(5px);
}

.teacher-modal-grid {
  min-height: min(520px, calc(100dvh - 40px));
}

.teacher-modal-content {
  background: var(--surface);
}

.teacher-modal-visual,
.teacher-modal-visual img,
.teacher-modal-visual .teacher-placeholder {
  min-height: 0;
}

.teacher-modal-visual {
  position: relative;
  background: #eaf2ed;
}

.teacher-modal-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.teacher-modal-visual .teacher-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf2ed;
}

.teacher-modal-visual .teacher-placeholder-monogram {
  width: 96px;
  height: 96px;
  border: 1px solid #cbdcd1;
  border-radius: 16px;
  background: var(--surface);
  color: var(--primary);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.teacher-modal-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  padding: 48px 48px 36px;
  scrollbar-color: var(--border-strong) transparent;
}

.teacher-modal-label {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.teacher-modal-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--text-muted);
  line-height: 1;
  box-shadow: var(--shadow-small);
}

.teacher-modal-close:hover {
  background: var(--surface-soft);
  color: var(--primary);
}

.teacher-modal-name {
  margin: 0 0 6px;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.teacher-modal-role {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
}

.teacher-modal-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 22px;
}

.teacher-modal-bio {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.75;
}

.teacher-modal-body > .btn {
  position: static;
  width: 100%;
  margin-top: 26px;
  justify-content: center;
  box-shadow: none;
}

.teacher-modal-cta {
  gap: 10px;
}

.teacher-modal-cta i {
  font-size: 1rem;
  transition: transform 160ms ease;
}

.teacher-modal-cta:hover i {
  transform: translateX(2px);
}

@media (max-width: 960px) {
  .modul-detail-sidebar {
    display: none;
  }

  .modul-mobile-quick,
  .modul-mobile-summary {
    display: block;
  }

  .modul-mobile-quick {
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: none;
  }

  .modul-mobile-quick-copy {
    gap: 12px;
    margin-bottom: 16px;
  }

  .modul-mobile-quick-copy strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .modul-mobile-quick .btn {
    min-height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary);
  }

  .modul-summary-grid > div {
    border-color: var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
  }

  .modul-summary-grid dt {
    color: var(--text-muted);
  }
}

@media (max-width: 760px) {
  .modul-detail-hero {
    padding-block: 34px 40px;
  }

  .modul-detail-breadcrumb {
    margin-bottom: 22px;
    overflow: hidden;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .modul-detail-breadcrumb > :last-child {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
  }

  .modul-detail-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .modul-detail-copy h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    overflow-wrap: anywhere;
  }

  .modul-detail-path {
    font-size: 0.9rem;
  }

  .modul-detail-meta {
    gap: 8px 16px;
    margin-top: 14px;
  }

  .modul-detail-author {
    display: flex;
    padding: 16px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
  }

  .modul-detail-updated {
    align-self: auto;
    text-align: left;
  }

  .modul-detail-page.section.section-compact {
    padding-block: 28px 54px;
  }

  .modul-detail-main {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .modul-bahan-card-head {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 14px;
  }

  .modul-bahan-card-head .badge {
    justify-self: start;
  }

  .modul-bahan-card-head h3 {
    grid-column: 1 / -1;
    font-size: 0.92rem;
  }

  .modul-bahan-card-foot {
    padding: 12px 14px 14px;
  }

  .modul-bahan-card-foot .btn,
  .modul-detail-back .btn {
    width: 100%;
    justify-content: center;
  }

  .modul-media-preview--office iframe,
  .modul-media-preview--google iframe,
  .modul-media-preview--file iframe {
    min-height: 330px;
    max-height: 58dvh;
  }

  .modul-about-section {
    margin-top: 24px;
    padding: 22px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .modul-mobile-summary {
    margin-top: 20px;
    padding-top: 24px;
  }

  .teacher-modal {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-color: #d9e4dd;
    border-radius: 18px;
    overscroll-behavior: contain;
    box-shadow: 0 18px 54px rgba(11, 31, 20, 0.3);
  }

  .teacher-modal-content {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    overflow: hidden;
  }

  .teacher-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(260px, 76vw, 310px) minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .teacher-modal-visual {
    width: 100%;
    height: clamp(260px, 76vw, 310px);
    min-height: 0;
    max-height: none;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
  }

  .teacher-modal-visual img,
  .teacher-modal-visual .teacher-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-position: center 18%;
  }

  .teacher-modal-visual img {
    display: block;
    object-fit: cover;
  }

  .teacher-modal-visual .teacher-placeholder {
    display: flex;
    object-fit: cover;
  }

  .teacher-modal-body {
    --teacher-modal-inline: 20px;
    display: block;
    min-height: 0;
    padding: 22px var(--teacher-modal-inline) calc(22px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: auto;
    scroll-padding-top: 24px;
    -webkit-overflow-scrolling: touch;
  }

  .teacher-modal-close {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    width: 44px;
    height: 44px;
    border-color: rgba(20, 33, 27, 0.14);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(12, 30, 20, 0.14);
  }

  .teacher-modal-name {
    max-width: 100%;
    font-size: clamp(1.45rem, 6vw, 1.7rem);
  }

  .teacher-modal-role {
    margin-bottom: 16px;
  }

  .teacher-modal-subjects {
    flex-wrap: nowrap;
    gap: 8px;
    margin-right: calc(var(--teacher-modal-inline) * -1);
    margin-bottom: 18px;
    margin-left: calc(var(--teacher-modal-inline) * -1);
    padding: 0 var(--teacher-modal-inline) 3px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .teacher-modal-subjects::-webkit-scrollbar {
    display: none;
  }

  .teacher-modal-subjects .teacher-subject-tag {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .teacher-modal-bio {
    padding-top: 18px;
    font-size: 0.9rem;
    line-height: 1.68;
  }

  .teacher-modal-body > .btn {
    position: static;
    min-height: 48px;
    margin-top: 24px;
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  .modul-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .teacher-modal-grid {
    grid-template-rows: clamp(258px, 74vw, 296px) minmax(0, 1fr);
  }

  .teacher-modal-body {
    --teacher-modal-inline: 17px;
    padding-top: 20px;
  }

  .teacher-modal-visual,
  .teacher-modal-visual img,
  .teacher-modal-visual .teacher-placeholder {
    height: clamp(258px, 74vw, 296px);
  }
}

@media (max-width: 960px) {
  .sambutan-profil-wrap--profil .sambutan-profil-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .sambutan-profil-wrap--profil .sambutan-profil-visual {
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .sambutan-profil-wrap--profil .sambutan-profil-stage {
    gap: 28px;
  }

  .sambutan-profil-wrap--profil .sambutan-profil-visual {
    max-width: 280px;
  }

  .sambutan-profil-wrap--profil .sambutan-profil-card {
    gap: 22px;
  }

  .sambutan-profil-wrap--profil .sambutan-profil-card-head h2 {
    font-size: clamp(2rem, 10vw, 2.65rem) !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .teacher-modal-close,
  .modul-detail-author {
    background: var(--surface);
  }
}
