/* Aturan halaman isi; dimuat terpisah dari Beranda dan Struktur. */
:is(.news-section, .profil, .history-section, .event-section, .gallery, .materi, .oprec-section) {
  --content-gap: 24px;
  --content-border: #e6e6e6;
  --content-shadow: 0 4px 16px rgb(0 0 0 / 5%);
  display: block;
  min-height: 0;
  margin: 0;
  padding: clamp(40px, 5vw, 64px) 0 32px;
  background: #fff;
  color: #222;
  font-size: 1rem;
  line-height: 1.7;
}

:is(.news-section, .profil, .history-section, .event-section, .gallery, .materi, .oprec-section) > .container {
  width: min(1120px, calc(100% - 48px));
  max-width: none;
  margin-inline: auto;
  padding: 0;
}

:is(.profil, .history-section, .event-section, .gallery, .materi, .oprec-section) > .container > :is(.section-title, .profil-title, .materi-title, .oprec-title) {
  margin: 0 0 32px;
  color: #111;
  font-size: clamp(1.75rem, 2.65vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: break-word;
}

.news-section > .container > h2 {
  margin: 40px 0 24px;
  color: #111;
  font-size: 1.5rem;
  line-height: 1.35;
}
.news-section > .container > h2:first-child {
  margin-top: 0;
  font-size: clamp(1.75rem, 2.65vw, 2.25rem);
}
.news-section h2::after {
  width: 56px;
  height: 3px;
  margin-top: 12px;
}

.news-section .news-list,
.profil .profil-list,
.event-section .event-list,
.gallery .gallery-list,
.materi .materi-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--content-gap);
  margin: 0;
  align-items: stretch;
}
.news-section .news-list,
.materi .materi-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-symbol .profil-list { grid-template-columns: 1fr; }
.event-section .event-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.news-section .news-card,
.profil .profil-box,
.page-symbol .symbol-item,
.event-section .event-card,
.gallery .gallery-box,
.materi .materi-list > .box,
.oprec-section .materi-box,
.history-section .history-content {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--content-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--content-shadow);
  overflow-wrap: break-word;
}
.profil .profil-box { display: flex; flex-direction: column; align-items: flex-start; }
.profil .profil-box > .btn-yellow { margin-top: auto; }
.profil .profil-box > p { margin-bottom: 20px; }

.news-section .news-card h3,
.profil .profil-box h3,
.page-symbol .symbol-item h2,
.event-section .event-title,
.gallery .gallery-box h2,
.materi .materi-list > .box h2,
.oprec-section .materi-box h3 {
  margin: 0 0 12px;
  color: #222;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}
.profil .profil-box h3::after,
.page-symbol .symbol-item h2::after { width: 40px; height: 3px; margin-top: 10px; }
.news-section .news-card p,
.profil .profil-box p,
.event-section .event-description,
.gallery .gallery-box p,
.materi .materi-list > .box p,
.oprec-section .materi-box p {
  margin: 0 0 12px;
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}
.news-section .news-card p:last-child,
.gallery .gallery-box p:last-child,
.oprec-section .materi-box p:last-child { margin-bottom: 0; }
.news-section .news-card p:empty { display: none; }

.profil .btn-yellow,
.event-section .event-link,
.materi .btn-preview,
.oprec-section .btn-preview,
.oprec-section .btn-yellow,
.materi .filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #ffd31a;
  color: #111;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.materi .filter-btn { border-color: #dedede; background: #fff; cursor: pointer; }
.materi .filter-btn.active { border-color: #e0b900; background: #ffd31a; color: #111; }
.profil .btn-yellow:hover,
.event-section .event-link:hover,
.materi .btn-preview:hover,
.oprec-section .btn-preview:hover,
.oprec-section .btn-yellow:hover,
.materi .filter-btn:hover { background: #f2c600; color: #111; }
:is(.profil, .event-section, .gallery, .materi, .oprec-section) :is(a, button):focus-visible {
  outline: 3px solid indigo;
  outline-offset: 4px;
}
.materi .filter-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 32px; }
.materi .materi-btn,
.oprec-section .materi-btn { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.event-section .event-card {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
}
.event-section .event-card .event-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  object-fit: contain;
  background: #fff;
}
.event-section .event-info { padding: 24px; }
.event-section .event-description:empty { display: none; }
.gallery .gallery-box { align-items: stretch; text-decoration: none; color: #222; }
.gallery .gallery-box img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0 0 20px;
  border-radius: 8px;
  object-fit: cover;
}
.gallery .gallery-box img[src*="comingsoon"] { object-fit: contain; }
.gallery .gallery-box h2,
.gallery .gallery-box p { text-align: left; }

.history-section .history-image,
.history-section .history-content,
.page-symbol #symbol-content,
.oprec-section .oprec-info,
.oprec-section .oprec-materi { width: 100%; max-width: 880px; margin-inline: auto; }
.history-section .history-image { margin-bottom: 32px; }
.history-section .history-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: none;
}
.history-section .history-content { font-size: 1rem; line-height: 1.85; }
.history-section .history-content p + p { margin-top: 20px; }
.page-symbol .symbol-logo { margin: 0 auto 40px; }
.page-symbol .symbol-logo img { display: block; width: min(100%, 320px); max-width: 100%; height: auto; margin-inline: auto; object-fit: contain; }
.page-symbol .symbol-item ul { padding-left: 22px; }
.page-symbol .symbol-item li { padding-left: 4px; line-height: 1.8; }
.page-symbol .symbol-item li + li { margin-top: 8px; }
.oprec-section .oprec-subtitle { max-width: 880px; margin: -12px auto 40px; font-size: 1rem; line-height: 1.8; }
.oprec-section .oprec-info { gap: 28px; margin-bottom: 40px; }
.oprec-section .oprec-box h2,
.oprec-section .materi-title { font-size: 1.375rem; line-height: 1.4; }
.oprec-section .oprec-box p { line-height: 1.85; }
.oprec-section .oprec-materi { margin-top: 40px; }
.oprec-section .oprec-materi > .materi-title { margin-bottom: 24px; text-align: center; }
.oprec-section .materi-list { display: flex; flex-direction: column; gap: 20px; margin: 0; }

@media (hover: hover) {
  .news-section .news-card:hover,
  .profil .profil-box:hover,
  .event-section .event-card:hover,
  .gallery .gallery-box:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgb(0 0 0 / 9%); }
}
@media (max-width: 900px) {
  .profil .profil-list,
  .gallery .gallery-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-symbol .profil-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :is(.news-section, .profil, .history-section, .event-section, .gallery, .materi, .oprec-section) > .container { width: calc(100% - 40px); }
  .news-section .news-list,
  .profil .profil-list,
  .gallery .gallery-list,
  .materi .materi-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .news-section .news-card,
  .profil .profil-box,
  .page-symbol .symbol-item,
  .gallery .gallery-box,
  .materi .materi-list > .box,
  .oprec-section .materi-box,
  .history-section .history-content,
  .event-section .event-info { padding: 20px; }
}
