/* ----- RESET & BASE ----- */
* {
  font-family: 'DM Sans', sans-serif;
}

/* ----- BRAND COLORS ----- */
.gradient-brand {
  background: linear-gradient(135deg, #2F7CC0 0%, #5FCAFF 100%);
}
.gradient-brand-dark {
  background: linear-gradient(135deg, #1a5a96 0%, #2F7CC0 100%);
}
.text-brand {
  color: #2F7CC0;
}
.bg-brand {
  background-color: #2F7CC0;
}

/* ----- ANIMATIONS ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}

/* ----- SERVICE CARDS ----- */
.service-card {
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2F7CC0, #5FCAFF);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(47, 124, 192, 0.1);
  border-color: rgba(95, 202, 255, 0.35);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card--featured {
  background: linear-gradient(160deg, #fafcff 0%, #eef6fc 100%);
  border-color: rgba(47, 124, 192, 0.18);
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: none;
  border: none;
  box-shadow: none;
}
.service-icon::after {
  display: none;
}
.service-icon [data-lucide] {
  width: 2.125rem;
  height: 2.125rem;
  color: #2F7CC0;
  stroke-width: 1.5;
  transition: transform 0.35s ease, color 0.35s ease, filter 0.35s ease;
}
.service-card:hover .service-icon [data-lucide] {
  transform: translateY(-3px);
  color: #5FCAFF;
  filter: drop-shadow(0 8px 16px rgba(47, 124, 192, 0.2));
}
.service-icon--featured [data-lucide] {
  width: 2.5rem;
  height: 2.5rem;
  stroke-width: 1.65;
}
.service-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.service-desc {
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.45;
  max-width: 11rem;
}
.service-arrow {
  margin-top: 0.875rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: #2F7CC0;
}
.service-arrow [data-lucide] {
  width: 1rem;
  height: 1rem;
}
.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}
#kontak .service-desc {
  max-width: 100%;
  word-break: break-word;
}

/* ----- NAV LINK ----- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #5FCAFF;
  transition: width 0.3s;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-dropdown-toggle-btn::after {
  display: none;
}

/* ----- NAV DROPDOWN (DESKTOP) ----- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 14rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  padding: 0.5rem 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  pointer-events: none;
}
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown-chevron {
  transition: transform 0.35s ease;
}
.nav-dropdown.is-open .nav-dropdown-chevron {
  transform: rotate(180deg);
}
.nav-dropdown-item.is-active {
  background-color: #eff6ff;
  color: #2F7CC0;
  font-weight: 600;
}
.nav-dropdown-item {
  display: block;
  padding: 0.625rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
}
.site-nav-link:hover,
.site-nav-link.is-active {
  color: #2F7CC0;
}
.site-nav-link--cta {
  color: #fff !important;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #2F7CC0 0%, #5FCAFF 100%);
}
.site-nav-link--cta::after {
  display: none;
}
.site-nav-link--cta:hover {
  opacity: 0.9;
}
.nav-dropdown-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  line-height: inherit;
  letter-spacing: inherit;
  -webkit-font-smoothing: antialiased;
}
.nav-dropdown-toggle-btn.is-active,
.nav-dropdown-toggle-btn:hover {
  color: #2F7CC0;
}
.nav-dropdown-item:hover {
  background: #eff6ff;
  color: #2F7CC0;
}
.mobile-nav-link {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mobile-nav-link:hover {
  background: #eff6ff;
  color: #2F7CC0;
}
.mobile-nav-link.is-active {
  background: #eff6ff;
  color: #2F7CC0;
}
.mobile-nav-link--sub {
  font-weight: 500;
  color: #4b5563;
  padding: 0.5rem 0.75rem;
}
.mobile-nav-link--sub.is-active {
  font-weight: 600;
}
.mobile-submenu-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}
.mobile-submenu-content {
  padding-left: 0.5rem;
  padding-bottom: 0.25rem;
}
#site-nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  #site-nav-desktop {
    display: flex;
  }
}

/* ----- MOBILE SUBMENU (PROFIL) ----- */
.mobile-submenu-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.mobile-submenu-panel.is-open {
  grid-template-rows: 1fr;
}
.mobile-submenu-inner {
  overflow: hidden;
}
.mobile-submenu-toggle [data-lucide] {
  transition: transform 0.35s ease;
}
.mobile-submenu-toggle[aria-expanded="true"] [data-lucide] {
  transform: rotate(180deg);
}
.mobile-submenu-link.is-active {
  background-color: #eff6ff;
  color: #2F7CC0;
  font-weight: 600;
}

/* ----- HERO OVERLAY ----- */
.hero-overlay {
  background: linear-gradient(135deg,
      rgba(47, 124, 192, 0.85) 0%,
      rgba(95, 202, 255, 0.7) 100%);
}

/* ----- PAGE HERO (REUSABLE) ----- */
/*
  Cara pakai:
  <section class="page-hero page-hero--profil">
    <div class="page-hero-overlay"></div>
    <div class="page-hero-content max-w-4xl mx-auto px-4 py-10 md:py-14">
      <nav class="page-hero-breadcrumb">...</nav>
      <h1 class="page-hero-title">Judul Halaman</h1>
    </div>
  </section>

  Ganti background: tambah modifier di CSS (--page-hero-bg)
  atau class .page-hero--nama di bawah.
*/
.page-hero {
  position: relative;
  background-image: var(--page-hero-bg, url('../img/hero_background.jpeg'));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(47, 124, 192, 0.88) 0%,
      rgba(95, 202, 255, 0.75) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 10;
}
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}
.page-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}
.page-hero-breadcrumb a:hover {
  color: #fff;
}
.page-hero-breadcrumb .is-current {
  color: #fff;
  font-weight: 600;
}
.page-hero-title {
  color: #fff;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
}
.page-hero-subtitle {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  max-width: 42rem;
}
@media (min-width: 768px) {
  .page-hero-title {
    font-size: 2.25rem;
  }
  .page-hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Modifier background per kategori halaman */
.page-hero--default,
.page-hero--profil {
  --page-hero-bg: url('../img/hero_background.jpeg');
}

/* ----- BERITA ----- */
.berita-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .berita-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .berita-grid--home {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .berita-grid:not(.berita-grid--home) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.berita-card {
  text-decoration: none;
  color: inherit;
  display: block;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  transition: box-shadow 0.2s ease;
}
.berita-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.berita-card__image {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  display: block;
}
.berita-card__body {
  padding: 1.25rem;
}
.berita-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin: 0.75rem 0 0.5rem;
  transition: color 0.2s ease;
}
.berita-card:hover .berita-card__title {
  color: #2F7CC0;
}
.berita-card__excerpt {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.berita-card__date {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

.berita-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2F7CC0;
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  text-decoration: none;
  background: #fff;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.berita-all-link:hover {
  background: #eff6ff;
  color: #1a5a96;
}

.berita-status {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1.5rem;
}
.berita-status--error {
  color: #dc2626;
}
.berita-status.hidden {
  display: none;
}

.berita-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.berita-pagination__btn {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2F7CC0;
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid #bfdbfe;
  background: #fff;
  transition: background-color 0.2s ease;
}
.berita-pagination__btn:hover {
  background: #eff6ff;
}
.berita-pagination__btn.is-disabled {
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: default;
}
.berita-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.berita-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.berita-pagination__page:hover {
  border-color: #bfdbfe;
  color: #2F7CC0;
}
.berita-pagination__page.is-active {
  background: #2F7CC0;
  border-color: #2F7CC0;
  color: #fff;
}

.berita-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2F7CC0;
  background: #eff6ff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.berita-skeleton-image {
  width: 100%;
  height: 11rem;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: beritaShimmer 1.4s ease infinite;
}

.berita-skeleton-image--detail {
  height: 16rem;
}

.berita-skeleton-image--program {
  height: 12rem;
}

.program-unggulan-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.program-unggulan-card__image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  display: block;
}

.berita-skeleton-line {
  height: 0.875rem;
  border-radius: 0.375rem;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: beritaShimmer 1.4s ease infinite;
}

.berita-skeleton-line--xs { width: 4rem; }
.berita-skeleton-line--sm { width: 6rem; }
.berita-skeleton-line--md { width: 66%; }
.berita-skeleton-line--lg { width: 80%; }
.berita-skeleton-line--full { width: 100%; }

@keyframes beritaShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ----- WORDPRESS CONTENT ----- */
.wp-content {
  color: #4b5563;
  line-height: 1.75;
  font-size: 1rem;
}

.wp-content > * + * {
  margin-top: 1rem;
}

.wp-content h2,
.wp-content h3,
.wp-content h4 {
  color: #111827;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 1.75rem;
}

.wp-content h2 { font-size: 1.375rem; }
.wp-content h3 { font-size: 1.125rem; }

.wp-content p {
  margin-top: 0;
}

.wp-content ul,
.wp-content ol {
  padding-left: 1.25rem;
}

.wp-content ul { list-style: disc; }
.wp-content ol { list-style: decimal; }

.wp-content li + li {
  margin-top: 0.35rem;
}

.wp-content a {
  color: #2F7CC0;
  text-decoration: underline;
}

.wp-content a:hover {
  color: #1a5a96;
}

.wp-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1rem 0;
}

.wp-content blockquote {
  border-left: 4px solid #2F7CC0;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #374151;
}

.wp-content strong {
  color: #111827;
  font-weight: 700;
}

.wp-content em {
  font-style: italic;
}

/* ----- STAT CARD ----- */
.stat-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

/* ----- PROGRESS BAR ----- */
.progress-bar {
  transition: width 1.5s ease-in-out;
}

/* ----- FAQ ACCORDION ----- */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-answer.is-open {
  grid-template-rows: 1fr;
}
.faq-answer-inner {
  overflow: hidden;
}
.faq-answer-content {
  padding: 0 1.25rem 1.25rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.faq-answer.is-open .faq-answer-content {
  opacity: 1;
  transform: translateY(0);
}
.faq-toggle [data-lucide] {
  transition: transform 0.35s ease;
}
.faq-toggle[aria-expanded="true"] [data-lucide] {
  transform: rotate(180deg);
}

/* ----- MOBILE MENU ----- */
.mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.mobile-menu.is-open {
  grid-template-rows: 1fr;
}
.mobile-menu-inner {
  overflow: hidden;
}
.mobile-menu-content {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.is-open .mobile-menu-content {
  opacity: 1;
  transform: translateY(0);
}

/* ----- SITE FOOTER ----- */
.site-footer {
  color: rgba(255, 255, 255, 0.88);
  margin-top: auto;
}
.site-footer-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }
  .site-footer-brand {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) {
  .site-footer-grid {
    grid-template-columns: 1.35fr 0.85fr 0.85fr 1.15fr;
    gap: 2.5rem;
  }
  .site-footer-brand {
    grid-column: auto;
  }
}
.site-footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.site-footer-logo img {
  height: 3.5rem;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.site-footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 20rem;
}
.site-footer-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.site-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.site-footer-link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
  line-height: 1.5;
}
.site-footer-link:hover {
  color: #5FCAFF;
}
.site-footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.site-footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}
.site-footer-contact-item svg,
.site-footer-contact-item [data-lucide] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  color: #5FCAFF;
}
.site-footer-contact-item a {
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}
.site-footer-contact-item a:hover {
  color: #5FCAFF;
}
.site-footer-social {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.25rem;
}
.site-footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.site-footer-social a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}
.site-footer-social svg,
.site-footer-social [data-lucide] {
  width: 1.25rem;
  height: 1.25rem;
}
.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer-bottom-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) {
  .site-footer-bottom-inner {
    flex-direction: row;
  }
}
.site-footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}
@media (min-width: 768px) {
  .site-footer-copy {
    text-align: left;
  }
}
.site-footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.site-footer-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
a.site-footer-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.site-footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
