﻿:root {
  --brand: #0b76d1;
  --brand-strong: #075fa9;
  --brand-soft: #e8f3ff;
  --ink: #0f172a;
  --muted: #475569;
  --surface: rgba(255, 255, 255, 0.93);
  --surface-solid: #ffffff;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius-lg: 14px;
  --radius-md: 10px;
}

html[data-theme="dark"] {
  --brand: #38bdf8;
  --brand-strong: #0ea5e9;
  --brand-soft: rgba(56, 189, 248, 0.18);
  --ink: #e2e8f0;
  --muted: #cbd5f5;
  --surface: rgba(15, 23, 42, 0.92);
  --surface-solid: #0f172a;
  --shadow: 0 12px 32px rgba(2, 6, 23, 0.5);
}

* {
  box-sizing: border-box;
}

:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.7);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(0.95rem, 0.18vw + 0.9rem, 1.05rem);
  color: var(--ink);
  line-height: 1.65;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(7, 95, 169, 0.12), rgba(7, 95, 169, 0.08)),
    url('../img/WhatsApp Image 2026-01-19 at 21.52.59.jpeg') center/cover fixed no-repeat;
}

html[data-theme="dark"] body,
body[data-theme="dark"] {
  color: #e2e8f0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)),
    url('../img/WhatsApp Image 2026-01-19 at 21.52.59.jpeg') center/cover fixed no-repeat;
}

html[data-theme="dark"] .navbar,
body[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.92) !important;
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .navbar .nav-link,
body[data-theme="dark"] .navbar .nav-link {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] a,
body[data-theme="dark"] a {
  color: #7dd3fc;
}

html[data-theme="dark"] .btn-outline-secondary,
body[data-theme="dark"] .btn-outline-secondary {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.5);
}

html[data-theme="dark"] .btn-outline-secondary:hover,
body[data-theme="dark"] .btn-outline-secondary:hover {
  background: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] section,
html[data-theme="dark"] .content-surface,
html[data-theme="dark"] .card,
html[data-theme="dark"] .panel-card,
body[data-theme="dark"] section,
body[data-theme="dark"] .content-surface,
body[data-theme="dark"] .card,
body[data-theme="dark"] .panel-card {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.25);
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .card-text,
html[data-theme="dark"] small,
body[data-theme="dark"] .text-muted,
body[data-theme="dark"] .card-text,
body[data-theme="dark"] small {
  color: #cbd5f5 !important;
}

html[data-theme="dark"] .badge,
body[data-theme="dark"] .badge {
  background: rgba(30, 41, 59, 0.8) !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

html[data-theme="dark"] .news-comment-item,
html[data-theme="dark"] .news-reply-item,
html[data-theme="dark"] .article-comments-section,
body[data-theme="dark"] .news-comment-item,
body[data-theme="dark"] .news-reply-item,
body[data-theme="dark"] .article-comments-section {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.3);
}

html[data-theme="dark"] .navbar-collapse,
body[data-theme="dark"] .navbar-collapse {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.25);
}

html[data-theme="dark"] .content-surface .form-label,
html[data-theme="dark"] .form-label,
body[data-theme="dark"] .content-surface .form-label,
body[data-theme="dark"] .form-label {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .section-subtitle,
body[data-theme="dark"] .section-subtitle {
  color: #e2e8f0 !important;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

html[data-theme="dark"] .readable-text,
html[data-theme="dark"] .profile-text,
html[data-theme="dark"] .profile-info-card p,
body[data-theme="dark"] .readable-text,
body[data-theme="dark"] .profile-text,
body[data-theme="dark"] .profile-info-card p {
  color: #e2e8f0;
}

html[data-theme="dark"] .character-card,
html[data-theme="dark"] .content-surface .list-group-item,
body[data-theme="dark"] .character-card,
body[data-theme="dark"] .content-surface .list-group-item {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

html[data-theme="dark"] .character-card p,
body[data-theme="dark"] .character-card p {
  color: #cbd5f5;
}

html[data-theme="dark"] .panca-jiwa,
body[data-theme="dark"] .panca-jiwa {
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

html[data-theme="dark"] .program-gallery-media,
html[data-theme="dark"] .program-gallery-media-empty,
body[data-theme="dark"] .program-gallery-media,
body[data-theme="dark"] .program-gallery-media-empty {
  background: rgba(30, 41, 59, 0.7);
  color: #cbd5f5;
  border-color: rgba(148, 163, 184, 0.25);
}

html[data-theme="dark"] .news-engagement-meta,
html[data-theme="dark"] .comment-sticker-title,
html[data-theme="dark"] .news-comment-meta span,
html[data-theme="dark"] .news-reply-count,
body[data-theme="dark"] .news-engagement-meta,
body[data-theme="dark"] .comment-sticker-title,
body[data-theme="dark"] .news-comment-meta span,
body[data-theme="dark"] .news-reply-count {
  color: #cbd5f5;
}

html[data-theme="dark"] .news-comment-meta strong,
body[data-theme="dark"] .news-comment-meta strong {
  color: #e2e8f0;
}

html[data-theme="dark"] .comment-sticker-btn,
body[data-theme="dark"] .comment-sticker-btn {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(148, 163, 184, 0.25);
}

html[data-theme="dark"] .comment-sticker-search,
body[data-theme="dark"] .comment-sticker-search {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.3);
}

html[data-theme="dark"] .swipe-btn,
body[data-theme="dark"] .swipe-btn {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

html[data-theme="dark"] .swipe-btn:hover,
body[data-theme="dark"] .swipe-btn:hover {
  background: var(--brand);
  color: #ffffff;
}

html[data-theme="dark"] .swipe-empty,
body[data-theme="dark"] .swipe-empty {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.25);
  color: #cbd5f5;
}

html[data-theme="dark"] .article-html,
body[data-theme="dark"] .article-html {
  color: #e2e8f0;
}

html[data-theme="dark"] .article-html h1,
html[data-theme="dark"] .article-html h2,
html[data-theme="dark"] .article-html h3,
html[data-theme="dark"] .article-html h4,
html[data-theme="dark"] .article-html h5,
html[data-theme="dark"] .article-html h6,
body[data-theme="dark"] .article-html h1,
body[data-theme="dark"] .article-html h2,
body[data-theme="dark"] .article-html h3,
body[data-theme="dark"] .article-html h4,
body[data-theme="dark"] .article-html h5,
body[data-theme="dark"] .article-html h6 {
  color: #f1f5f9;
}

html[data-theme="dark"] .bg-light,
html[data-theme="dark"] section.bg-light,
body[data-theme="dark"] .bg-light,
body[data-theme="dark"] section.bg-light {
  background: rgba(15, 23, 42, 0.9) !important;
}

html[data-theme="dark"] .program-gallery-album .card-body,
body[data-theme="dark"] .program-gallery-album .card-body {
  background: rgba(30, 41, 59, 0.5);
}

html[data-theme="dark"] .program-gallery-album .card-title::after,
body[data-theme="dark"] .program-gallery-album .card-title::after {
  border-color: rgba(148, 163, 184, 0.35);
  color: #7dd3fc;
}

html[data-theme="dark"] .news-reply-admin,
body[data-theme="dark"] .news-reply-admin {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.35);
}

html[data-theme="dark"] .avatar-circle,
body[data-theme="dark"] .avatar-circle {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.25);
}

html[data-theme="dark"] .table tbody tr:hover,
body[data-theme="dark"] .table tbody tr:hover {
  background: rgba(56, 189, 248, 0.12);
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
body[data-theme="dark"] input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] select {
  background: #0b1220 !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}

html[data-theme="dark"] .table,
body[data-theme="dark"] .table {
  color: #e2e8f0;
}

html[data-theme="dark"] footer,
body[data-theme="dark"] footer {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.95);
  border-top-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 -10px 25px rgba(2, 6, 23, 0.4);
}

html[data-theme="dark"] footer a,
body[data-theme="dark"] footer a {
  color: #7dd3fc;
}

html[data-theme="dark"] footer a:hover,
body[data-theme="dark"] footer a:hover {
  color: #38bdf8;
}

h1,
.h1,
.display-4 {
  font-size: clamp(1.72rem, 4.2vw, 3.2rem);
  line-height: 1.2;
}

h2,
.h2 {
  font-size: clamp(1.42rem, 3.3vw, 2.35rem);
  line-height: 1.25;
}

h3,
.h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.82rem);
  line-height: 1.3;
}

h4,
.h4 {
  font-size: clamp(1.05rem, 1.85vw, 1.42rem);
  line-height: 1.35;
}

h5,
h6 {
  line-height: 1.4;
}

p,
li,
.card-text,
.small,
.text-muted {
  overflow-wrap: anywhere;
}

.navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 118, 209, 0.14);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.navbar .nav-link {
  color: #1e293b !important;
  font-weight: 600;
  padding: 0.45rem 0.7rem !important;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--brand) !important;
  background: rgba(11, 118, 209, 0.1);
}

.navbar-brand img {
  width: clamp(124px, 30vw, 220px);
  height: auto !important;
  max-width: 100%;
}

section {
  margin: 0;
  padding-top: 3.1rem;
  padding-bottom: 3.1rem;
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(11, 118, 209, 0.1);
  box-shadow: var(--shadow);
}

section.container {
  padding-top: clamp(16px, 2.4vw, 28px);
  padding-bottom: clamp(16px, 2.4vw, 28px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 118, 209, 0.16);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  border-radius: 18px;
}

.content-surface {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 118, 209, 0.16);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  padding: clamp(16px, 2.4vw, 28px);
}

section.container.content-surface {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(11, 118, 209, 0.16) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
  border-radius: 18px;
  padding: clamp(16px, 2.4vw, 28px);
}

.content-surface .form-label {
  color: #0f172a !important;
}

.section-subtitle {
  color: #1f2937 !important;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  display: inline-block;
  padding: 6px 12px;
}

.section-title-wrap {
  margin-bottom: clamp(1.2rem, 2.5vw, 2.1rem);
}

.section-title-wrap h2 {
  margin-bottom: 0.55rem;
}

.readable-text,
.profile-text {
  color: #1f2937;
  font-size: clamp(0.98rem, 0.45vw + 0.86rem, 1.08rem);
  line-height: 1.75;
}

.profile-text li {
  margin-bottom: 0.55rem;
}

.profile-info-card p {
  color: #1f2937;
  margin-bottom: 0.45rem;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.character-card {
  background: #ffffff;
  border: 1px solid rgba(11, 118, 209, 0.14);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  padding: 18px 16px;
}

.character-card h4 {
  margin: 0 0 8px;
}

.character-card p {
  margin: 0;
  color: #334155;
}

.accent-start-card {
  border-left: 5px solid #0096ff !important;
}

.stat-number {
  font-size: clamp(1.9rem, 5.8vw, 3rem) !important;
  line-height: 1.1;
}

.content-surface .list-group-item {
  color: #334155;
  background: rgba(255, 255, 255, 0.88);
}

section.bg-light,
.bg-light {
  background: rgba(248, 252, 255, 0.97) !important;
}

.hero-carousel {
  margin-bottom: 2rem !important;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.hero-spacing {
  margin-bottom: 2.6rem !important;
}

.hero-slide {
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.38), rgba(2, 6, 23, 0.46));
}

.hero-slide .container {
  position: relative;
  z-index: 2;
}

.hero-slide h1 {
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font-weight: 800;
}

.hero-slide .lead {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.hero-content {
  max-width: min(780px, 92vw);
  margin: 0 auto;
  padding: 0 12px;
}

.hero-indicators {
  margin-bottom: 1rem;
  gap: 8px;
}

.hero-indicators [data-bs-target] {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background-color: rgba(255, 255, 255, 0.55);
}

.carousel-control-prev,
.carousel-control-next {
  width: 52px;
  height: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  opacity: 0.85;
  z-index: 5;
}

.carousel-control-prev {
  left: 18px;
}

.carousel-control-next {
  right: 18px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(11, 118, 209, 0.9);
}

.panca-jiwa {
  margin-top: 0;
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  border-radius: 12px;
}

.text-primary,
.btn-link.text-primary {
  color: var(--brand) !important;
}

.bg-primary-light {
  background: rgba(11, 118, 209, 0.14) !important;
}

.fw-800 {
  font-weight: 800 !important;
}

.card {
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), #20a5ff);
}

.card-header {
  border-bottom: 0;
  background: linear-gradient(90deg, var(--brand), #20a5ff) !important;
  color: #ffffff;
}

.card-title {
  font-weight: 700;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
}

.card-text,
small {
  color: var(--muted) !important;
}

.text-muted {
  color: #334155 !important;
}

.program-gallery-img {
  width: 100%;
  height: clamp(180px, 28vw, 250px);
  object-fit: cover;
}

.program-gallery-card .card-body {
  padding: 0.95rem 0.9rem;
}

.program-gallery-album .card-body {
  background: linear-gradient(180deg, rgba(11, 118, 209, 0.08), rgba(11, 118, 209, 0.02));
}

.program-gallery-album .card-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.program-gallery-album .card-title::after {
  content: 'Album';
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(11, 118, 209, 0.2);
  color: var(--brand);
}

.program-gallery-media {
  width: 100%;
  background: #f0f7ff;
}

.program-gallery-media iframe,
.program-gallery-media video {
  width: 100%;
  height: 100%;
  display: block;
}

.program-gallery-media-link,
.program-gallery-media-empty {
  min-height: clamp(140px, 28vw, 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
}

.program-gallery-media-empty {
  color: #64748b;
  border-bottom: 1px dashed rgba(11, 118, 209, 0.22);
}

.news-tools .card-body {
  padding: 0.9rem;
}

.news-action-buttons .btn {
  white-space: nowrap;
}

.news-engagement-meta {
  font-size: 0.86rem;
  color: #475569;
}

.news-engagement-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-comments-section {
  background: rgba(248, 252, 255, 0.72);
  border-radius: 12px;
  padding: 14px;
}

.news-comments-list {
  display: grid;
  gap: 10px;
}

.news-comment-item {
  background: #ffffff;
  border: 1px solid rgba(11, 118, 209, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
}

.comment-sticker-list {
  display: grid;
  gap: 10px;
}

.comment-sticker-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.comment-sticker-search {
  max-width: 280px;
}

.comment-sticker-scroll {
  max-height: 250px;
  overflow: auto;
  padding-right: 4px;
}

.comment-sticker-summary {
  font-size: 0.76rem;
  color: #64748b;
}

.comment-sticker-group {
  display: grid;
  gap: 6px;
}

.comment-sticker-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.comment-sticker-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28px, 28px));
  gap: 3px;
}

.comment-sticker-btn {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  border-radius: 5px;
  border: 1px solid rgba(11, 118, 209, 0.2);
  background: #f8fbff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 2px;
  position: relative;
  overflow: hidden;
  flex: 0 0 28px !important;
}

.comment-sticker-btn.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(11, 118, 209, 0.2);
}

.comment-sticker-check {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: rgba(11, 118, 209, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 2;
}

.comment-sticker-check::before {
  content: "✓";
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.comment-sticker-btn.active .comment-sticker-check {
  opacity: 1;
  transform: scale(1);
}

.comment-sticker-btn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  border-radius: 3px;
  display: block;
  position: relative;
  z-index: 1;
}

#commentModal .comment-sticker-row,
#detail-comment-sticker-wrap .comment-sticker-row {
  grid-template-columns: repeat(auto-fill, minmax(28px, 28px)) !important;
  gap: 3px !important;
}

#commentModal .comment-sticker-btn,
#detail-comment-sticker-wrap .comment-sticker-btn {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  flex: 0 0 28px !important;
  padding: 2px !important;
}

.comment-sticker-panel.is-hidden {
  display: none !important;
}

.comment-sticker-selected-indicator {
  display: none !important;
}

.news-comment-sticker {
  width: 56px;
  height: 56px;
  display: block;
  margin-bottom: 6px;
}

.news-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.news-comment-meta strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.news-comment-meta span {
  color: #64748b;
  font-size: 0.78rem;
}

.news-comment-actions .btn-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.news-reply-count {
  font-size: 0.76rem;
  color: #64748b;
}

.news-comment-replies {
  display: grid;
  gap: 8px;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 2px solid rgba(11, 118, 209, 0.18);
}

.news-reply-item {
  background: #f8fafc;
  border: 1px solid rgba(11, 118, 209, 0.12);
  border-radius: 10px;
  padding: 9px 11px;
}

.news-reply-admin {
  border-color: rgba(8, 102, 181, 0.3);
  background: #eef6ff;
}

.news-reply-form .form-control-sm {
  font-size: 0.82rem;
}

.news-video,
.news-video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.news-cover-image {
  width: 100%;
  max-height: clamp(200px, 38vw, 320px);
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.article-cover-image {
  width: 100%;
  max-height: clamp(240px, 48vw, 450px);
  object-fit: cover;
}

.map-embed {
  height: clamp(280px, 44vw, 450px) !important;
}

.news-sidebar-sticky {
  top: 82px !important;
}

.guru-hero {
  padding: clamp(34px, 8vw, 64px) 20px !important;
}

.guru-hero-inner {
  margin-top: clamp(8px, 3.8vw, 50px) !important;
  margin-bottom: clamp(8px, 3.8vw, 50px) !important;
}

.guru-category-count {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.swipe-section {
  margin-bottom: 2rem;
}

.swipe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}

.swipe-controls {
  display: inline-flex;
  gap: 8px;
}

.swipe-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(11, 118, 209, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand);
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.swipe-btn:hover {
  background: var(--brand);
  color: #ffffff;
}

.swipe-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 2px 2px 10px;
  cursor: grab;
}

.swipe-track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.swipe-track::-webkit-scrollbar {
  height: 8px;
}

.swipe-track::-webkit-scrollbar-thumb {
  background: rgba(11, 118, 209, 0.35);
  border-radius: 999px;
}

.swipe-card {
  flex: 0 0 min(420px, 90vw);
  scroll-snap-align: start;
}

.swipe-empty {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed rgba(11, 118, 209, 0.25);
  border-radius: 12px;
  color: #475569;
}

.avatar-circle {
  border-radius: 50%;
  background: #e8f4ff;
  border: 2px solid #e8f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  object-fit: cover;
}

.avatar-circle.avatar-md {
  width: clamp(60px, 16vw, 72px);
  height: clamp(60px, 16vw, 72px);
}

.avatar-circle.avatar-lg {
  width: clamp(72px, 20vw, 88px);
  height: clamp(72px, 20vw, 88px);
}

.avatar-circle.avatar-xl {
  width: clamp(82px, 24vw, 100px);
  height: clamp(82px, 24vw, 100px);
}

.avatar-icon {
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
}

.article-html {
  color: #1f2937;
  line-height: 1.75;
}

.article-html h1,
.article-html h2,
.article-html h3,
.article-html h4,
.article-html h5,
.article-html h6 {
  color: #0f172a;
  margin-top: 1.2rem;
  margin-bottom: 0.7rem;
}

.article-html img {
  max-width: 100%;
  border-radius: 12px;
  height: auto;
}

.article-inline-image {
  width: 100%;
  max-height: clamp(220px, 46vw, 460px);
  object-fit: cover;
}

.article-inline-link a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.article-inline-link a:hover {
  text-decoration: underline;
}

.btn-primary {
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--brand), #20a5ff);
  padding: 0.65rem 1.25rem;
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--brand-strong), var(--brand));
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(11, 118, 209, 0.28);
}

.btn-outline-primary {
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.table {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table thead th {
  background: linear-gradient(90deg, var(--brand), #20a5ff);
  color: #ffffff;
  border: 0;
}

.table tbody tr:hover {
  background: var(--brand-soft);
}

.guru-table th,
.guru-table td {
  vertical-align: top;
}

.data-stats-section .stats-grid {
  row-gap: 0.15rem;
}

.form-label {
  color: #1e293b;
  font-weight: 700;
}

.form-control,
.form-select {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(11, 118, 209, 0.18);
}

footer {
  background: rgba(255, 255, 255, 0.96);
  border-top: 3px solid rgba(11, 118, 209, 0.22);
  box-shadow: 0 -10px 25px rgba(15, 23, 42, 0.07);
}

footer a {
  color: var(--brand);
}

footer a:hover {
  color: var(--brand-strong);
}

@media (max-width: 992px) {
  body {
    background-attachment: scroll;
  }

  .navbar .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .navbar-collapse {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(11, 118, 209, 0.14);
    background: rgba(255, 255, 255, 0.98);
  }

  .navbar .nav-link {
    margin-bottom: 0.3rem;
  }

  .news-sidebar-sticky {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 768px) {
  body {
    min-height: 100dvh;
    background:
      linear-gradient(180deg, rgba(7, 95, 169, 0.11), rgba(7, 95, 169, 0.07)),
      url('../img/WhatsApp Image 2026-01-19 at 21.52.59.jpeg') top center / 100% auto repeat-y;
    background-attachment: scroll;
    background-color: #eaf3fb;
  }

  .hero-slide {
    min-height: 410px;
  }

  .hero-slide .container {
    padding-top: 86px;
    padding-bottom: 72px;
    padding-left: 54px;
    padding-right: 54px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0;
  }

  .hero-slide h1 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .guru-hero {
    padding: 28px 14px !important;
  }

  section {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
  }

  section.container,
  .content-surface,
  section.container.content-surface {
    padding: 14px;
    border-radius: 12px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 42px;
    height: 42px;
  }

  .hero-indicators {
    margin-bottom: 0.75rem;
  }

  section {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  }

  table,
  .table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .card {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  }

  .card .card-body {
    padding: 0.9rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    padding: 5px 10px;
  }

  .swipe-card {
    flex-basis: min(82vw, 320px);
  }

  .swipe-btn {
    width: 34px;
    height: 34px;
  }

  .swipe-section {
    margin-bottom: 1.5rem;
  }

  .swipe-head h2 {
    font-size: clamp(1.08rem, 4.9vw, 1.3rem);
  }

  .swipe-card .card .card-body {
    padding: 0.82rem;
  }

  .avatar-circle.avatar-md {
    width: 60px;
    height: 60px;
  }

  .avatar-circle.avatar-lg {
    width: 72px;
    height: 72px;
  }

  .avatar-circle.avatar-xl {
    width: 80px;
    height: 80px;
  }

  #akademik-container table,
  #akademik-container .table {
    display: table;
    width: 100%;
    min-width: 0;
    white-space: normal;
    font-size: 0.74rem;
    table-layout: fixed;
  }

  #akademik-container .table-responsive {
    border-radius: 10px;
    overflow-x: hidden;
  }

  #akademik-container .table th,
  #akademik-container .table td {
    padding: 0.3rem 0.34rem;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  #akademik-container .table th {
    font-size: 0.68rem;
    letter-spacing: 0.01em;
    font-weight: 700;
  }

  #akademik-container .table td {
    font-size: 0.72rem;
  }

  #akademik-container .guru-table th:nth-child(1),
  #akademik-container .guru-table td:nth-child(1) {
    width: 9%;
  }

  #akademik-container .guru-table th:nth-child(2),
  #akademik-container .guru-table td:nth-child(2) {
    width: 25%;
  }

  #akademik-container .guru-table th:nth-child(3),
  #akademik-container .guru-table td:nth-child(3) {
    width: 22%;
  }

  #akademik-container .guru-table th:nth-child(4),
  #akademik-container .guru-table td:nth-child(4) {
    width: 22%;
  }

  #akademik-container .guru-table th:nth-child(5),
  #akademik-container .guru-table td:nth-child(5) {
    width: 22%;
  }

  .data-stats-section h2 {
    margin-bottom: 1.3rem !important;
  }

  .data-stats-section .stats-grid > [class*="col-"] {
    margin-bottom: 0.8rem !important;
  }

  .data-stats-section .card {
    border-radius: 10px;
  }

  .data-stats-section .card .card-body {
    padding: 0.82rem 0.72rem;
  }

  .data-stats-section .stat-number {
    font-size: clamp(1.24rem, 6.2vw, 1.7rem) !important;
    margin-bottom: 0.2rem;
  }

  .data-stats-section .card p {
    font-size: 0.82rem;
    line-height: 1.3;
    margin-bottom: 0;
  }

  .stat-number {
    font-size: clamp(1.45rem, 8.4vw, 1.95rem) !important;
  }

  .program-gallery-img {
    height: clamp(104px, 30vw, 170px);
  }

  .program-gallery-media-link,
  .program-gallery-media-empty {
    min-height: clamp(104px, 30vw, 170px);
  }

  .program-gallery-card .card-body {
    padding: 0.82rem 0.72rem;
  }

  .program-gallery-card .card-title {
    font-size: 0.9rem;
  }

  .news-cover-image {
    max-height: clamp(170px, 54vw, 260px);
  }

  .map-embed {
    height: clamp(220px, 66vw, 320px) !important;
  }
}

@media (max-width: 576px) {
  body {
    background:
      linear-gradient(180deg, rgba(7, 95, 169, 0.1), rgba(7, 95, 169, 0.06)),
      url('../img/WhatsApp Image 2026-01-19 at 21.52.59.jpeg') top center / 100% auto repeat-y;
    background-attachment: scroll;
  }

  .hero-slide {
    min-height: 380px;
  }

  .hero-slide .container {
    padding-top: 70px;
    padding-bottom: 62px;
    padding-left: 46px;
    padding-right: 46px;
  }

  section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-slide h1 {
    font-size: 1.65rem;
  }

  .hero-slide .lead {
    font-size: 0.95rem;
  }

  .hero-indicators {
    margin-bottom: 0.6rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 36px;
    height: 36px;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }

  .display-4 {
    font-size: clamp(1.45rem, 7vw, 1.9rem) !important;
  }

  .btn-group {
    display: flex;
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  .navbar {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .navbar-brand img {
    width: clamp(110px, 45vw, 154px);
  }

  .content-surface {
    border-radius: 14px;
  }

  section.container,
  .content-surface,
  section.container.content-surface {
    padding: 12px;
  }

  .card .card-body {
    padding: 0.78rem;
  }

  .swipe-card {
    flex-basis: min(84vw, 280px);
  }

  .swipe-card .card .card-body {
    padding: 0.72rem;
  }

  #akademik-container .table {
    min-width: 0;
    font-size: 0.66rem;
  }

  #akademik-container .table th,
  #akademik-container .table td {
    padding: 0.24rem 0.26rem;
    line-height: 1.25;
  }

  #akademik-container .table th {
    font-size: 0.6rem;
  }

  #akademik-container .table td {
    font-size: 0.65rem;
  }

  .data-stats-section .card .card-body {
    padding: 0.72rem 0.64rem;
  }

  .program-gallery-card .card-body {
    padding: 0.72rem 0.64rem;
  }

  .program-gallery-card .card-title {
    font-size: 0.86rem;
    margin-bottom: 0.34rem;
  }

  .program-gallery-card .card-text {
    font-size: 0.74rem;
    margin-bottom: 0;
  }

  .program-gallery-img {
    height: clamp(88px, 30vw, 126px);
  }

  .program-gallery-media-link,
  .program-gallery-media-empty {
    min-height: clamp(88px, 30vw, 126px);
    padding: 8px;
  }

  .data-stats-section .stat-number {
    font-size: clamp(1.12rem, 7vw, 1.45rem) !important;
  }

  .data-stats-section .stats-grid + .stats-grid {
    margin-top: 0.2rem !important;
  }

  .map-embed {
    height: clamp(240px, 70vw, 320px) !important;
  }
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

iframe {
  width: 100%;
  max-width: 100%;
}
