:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --heading: #172033;
  --body-text: #64748b;
  --page-bg: #f8fafc;
  --border-color: #e8edf4;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--heading);
  background: #fff;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.035em;
}

a {
  text-decoration: none;
}

.brand-accent {
  color: var(--primary);
}

.navbar {
  z-index: 1030;
}

.navbar-brand {
  letter-spacing: -0.06em;
}

.nav-link {
  color: #475569;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn {
  transition: all 0.2s ease;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading p {
  color: var(--body-text);
  margin-bottom: 0;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 90% 10%, #3b82f6 0, transparent 35%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: 1.5rem;
}

.hero-section h1 {
  color: white;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.15;
}

.hero-section p {
  color: #dbeafe;
}

.hero-label {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  margin-bottom: 1.2rem;
  color: #dbeafe;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.85rem;
}

.section-space {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.content-card {
  height: 100%;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.09);
}

.article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.activity-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-link {
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--page-bg);
}

.gallery-link:hover .gallery-image {
  transform: scale(1.05);
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  line-height: 1.5;
}

.text-muted-custom {
  color: var(--body-text);
}

.site-footer {
  background: var(--page-bg);
  border-top: 1px solid var(--border-color);
}

.footer-brand {
  color: var(--heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: #475569;
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 767.98px) {
  .hero-section {
    border-radius: 1rem;
  }

  .section-space {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .article-image,
  .activity-image {
    height: 190px;
  }

  .gallery-image {
    height: 160px;
  }
}

.profile-hero-image {
  width: min(100%, 300px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 1.5rem;
  border: 4px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.profile-placeholder {
  width: min(100%, 260px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 7rem;
}

@media (max-width: 991.98px) {
  .profile-hero-image {
    width: min(100%, 230px);
  }
}

/* =========================
   PERSONAL NAVBAR
========================= */

.personal-navbar {
  border-bottom: 1px solid #e8edf4;
  box-shadow: 0 3px 16px rgba(15, 23, 42, 0.025);
  z-index: 1030;
}

.personal-navbar .navbar-brand {
  margin-right: 2rem;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #172033;
}

.brand-name span {
  color: #2563eb;
}

.brand-caption {
  margin-top: 4px;
  font-size: 0.58rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: #64748b;
}

.personal-navbar .nav-link {
  position: relative;
  padding: 0.7rem 0.9rem !important;
  font-size: 0.91rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s ease;
}

.personal-navbar .nav-link:hover,
.personal-navbar .nav-link.active {
  color: #2563eb;
}

.personal-navbar .nav-link.active {
  font-weight: 700;
}

.btn-lhkpn {
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-lhkpn:hover,
.btn-lhkpn:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  transform: translateY(-1px);
}

.personal-navbar .navbar-toggler {
  padding: 0.45rem 0.6rem;
  border-color: #e2e8f0;
}

@media (max-width: 991.98px) {
  .personal-navbar .navbar-collapse {
    padding: 0.75rem 0 1rem;
  }

  .personal-navbar .nav-link {
    padding: 0.75rem 0.25rem !important;
  }

  .personal-navbar .nav-item {
    width: 100%;
  }

  .personal-navbar .btn-lhkpn {
    display: inline-block;
    width: auto;
  }
}

/* =========================================
   HOME HERO — JOE SRAI
========================================= */

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 90% 5%, rgba(59, 130, 246, 0.3), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #172554 58%, #1e40af 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  right: -140px;
  bottom: -190px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(147, 197, 253, 0.035),
    0 0 0 70px rgba(147, 197, 253, 0.025);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(191, 219, 254, 0.24);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.home-hero-title {
  max-width: 700px;
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.hero-name {
  display: block;
  color: #93c5fd;
}

.hero-position {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-institution {
  color: #bfdbfe;
  font-size: 0.95rem;
}

.hero-description {
  max-width: 580px;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.btn-hero-primary,
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn-hero-primary {
  color: #1d4ed8;
  background: #fff;
  border: 1px solid #fff;
}

.btn-hero-primary:hover {
  color: #1e40af;
  background: #dbeafe;
  border-color: #dbeafe;
  transform: translateY(-2px);
}

.btn-hero-outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.btn-hero-outline:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: #bfdbfe;
  transform: translateY(-2px);
}

/* FOTO PROFIL */

.hero-photo-wrap {
  position: relative;
  width: min(100%, 340px);
  padding: 12px;
}

.hero-photo-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  height: 72%;
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 1.5rem;
  transform: translate(8px, -8px);
  pointer-events: none;
}

.hero-profile-photo,
.hero-profile-placeholder {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.hero-profile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bfdbfe;
  background: #1e293b;
  font-size: 6rem;
}

.hero-photo-caption {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin: -24px auto 0;
  padding: 0.8rem 1rem;
  color: #e2e8f0;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.75rem;
  font-size: 0.78rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* MEDIA SOSIAL */

.hero-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-social-label {
  color: #94a3b8;
  font-size: 0.82rem;
}

.hero-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(191, 219, 254, 0.16);
  border-radius: 50%;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.hero-socials a:hover {
  color: #1e40af;
  background: #dbeafe;
  transform: translateY(-2px);
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
  .home-hero {
    padding: 2rem;
  }

  .hero-photo-wrap {
    width: min(100%, 250px);
  }

  .home-hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

@media (max-width: 575.98px) {
  .home-hero {
    padding: 1.5rem 1.25rem;
    border-radius: 1rem;
  }

  .home-hero-title {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .hero-description {
    font-size: 0.94rem;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }

  .hero-photo-wrap {
    width: min(100%, 220px);
  }

  .hero-socials {
    gap: 0.75rem;
  }
}

/* =========================================
   SECTION SPACING & ARTIKEL TERBARU
========================================= */

.content-section {
  margin-top: 0;
  margin-bottom: 5rem;
}

.articles-section {
  padding-top: 0.75rem;
}

/* JUDUL SECTION */

.section-heading-modern {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-heading-copy {
  max-width: 650px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.section-eyebrow-line {
  width: 25px;
  height: 2px;
  background: #2563eb;
  border-radius: 10px;
}

.section-title-modern {
  margin: 0.7rem 0 0.5rem;
  color: #172033;
  font-size: clamp(1.9rem, 3.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.2;
}

.section-title-modern span {
  color: #2563eb;
}

.section-description-modern {
  margin: 0;
  color: #64748b;
  font-size: 0.96rem;
  line-height: 1.8;
}

.section-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-bottom: 0.35rem;
  color: #2563eb;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.section-more-link:hover {
  gap: 0.75rem;
  color: #1d4ed8;
}

/* KARTU ARTIKEL */

.article-card-modern {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 1rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.article-card-modern:hover {
  transform: translateY(-5px);
  border-color: #dbeafe;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

/* GAMBAR */

.article-cover-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eff4fb;
}

.article-cover-modern {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card-modern:hover .article-cover-modern {
  transform: scale(1.045);
}

.article-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #93c5fd;
  font-size: 3rem;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.article-cover-icon {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #1d4ed8;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.25s ease;
}

.article-card-modern:hover .article-cover-icon,
.article-cover-link:focus-visible .article-cover-icon {
  opacity: 1;
  transform: translateY(0);
}

/* ISI KARTU */

.article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem;
}

.article-meta-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: #64748b;
  font-size: 0.78rem;
}

.article-meta-modern i {
  color: #2563eb;
}

.article-title-modern {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.35px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.article-title-modern a {
  color: #172033;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title-modern a:hover {
  color: #2563eb;
}

.article-excerpt-modern {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;

  margin: 0 0 1.2rem;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.8;
}

.article-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.3rem;
  color: #2563eb;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.article-read-link i {
  transition: transform 0.2s ease;
}

.article-read-link:hover {
  color: #1d4ed8;
}

.article-read-link:hover i {
  transform: translateX(4px);
}

/* KONDISI KOSONG */

.article-empty-state {
  padding: 3rem 1rem;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
}

.article-empty-state > i {
  color: #94a3b8;
  font-size: 2.5rem;
}

.article-empty-state h3 {
  margin-top: 1rem;
  font-size: 1.15rem;
}

.article-empty-state p {
  margin-bottom: 0;
  color: #64748b;
}

/* RESPONSIVE */

@media (max-width: 767.98px) {
  .content-section {
    margin-bottom: 3.5rem;
  }

  .articles-section {
    padding-top: 0;
  }

  .section-heading-modern {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .section-title-modern {
    letter-spacing: -1px;
  }

  .article-card-body {
    padding: 1.1rem;
  }

  .article-cover-icon {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-card-modern,
  .article-cover-modern,
  .article-cover-icon,
  .section-more-link,
  .article-read-link i {
    transition: none;
  }

  .article-card-modern:hover {
    transform: none;
  }
}

/* =========================================
   GALERI KEGIATAN
========================================= */

.gallery-section {
  position: relative;
}

.gallery-grid {
  row-gap: 1.5rem !important;
}

/* KARTU GALERI */

.gallery-card-modern {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 1rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.gallery-card-modern:hover {
  transform: translateY(-4px);
  border-color: #dbeafe;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
}

/* FOTO */

.gallery-cover-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eff4fb;
}

.gallery-cover-modern {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card-modern:hover .gallery-cover-modern {
  transform: scale(1.06);
}

/* OVERLAY FOTO */

.gallery-overlay-modern {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #fff;
  background: rgba(15, 23, 42, 0.48);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-card-modern:hover .gallery-overlay-modern,
.gallery-cover-link:focus-visible .gallery-overlay-modern {
  opacity: 1;
}

.gallery-overlay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #1d4ed8;
  background: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
}

.gallery-overlay-text {
  font-size: 0.82rem;
  font-weight: 600;
}

/* JUDUL DAN TANGGAL */

.gallery-card-caption {
  padding: 0.9rem 1rem 1rem;
}

.gallery-title-modern {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 0.45rem;
  color: #172033;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.gallery-date-modern {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
}

/* KONDISI GALERI KOSONG */

.gallery-empty-state {
  padding: 3rem 1rem;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
}

.gallery-empty-state > i {
  color: #94a3b8;
  font-size: 2.5rem;
}

.gallery-empty-state h3 {
  margin-top: 1rem;
  font-size: 1.15rem;
}

.gallery-empty-state p {
  margin-bottom: 0;
  color: #64748b;
}

/* RESPONSIVE */

@media (max-width: 767.98px) {
  .gallery-card-caption {
    padding: 0.7rem 0.75rem 0.8rem;
  }

  .gallery-title-modern {
    font-size: 0.85rem;
  }

  .gallery-date-modern {
    font-size: 0.72rem;
  }

  .gallery-overlay-modern {
    gap: 0.4rem;
  }

  .gallery-overlay-icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .gallery-overlay-text {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card-modern,
  .gallery-cover-modern,
  .gallery-overlay-modern {
    transition: none;
  }

  .gallery-card-modern:hover,
  .gallery-card-modern:hover .gallery-cover-modern {
    transform: none;
  }
}

/* =========================================
   AKTIVITAS TERBARU
========================================= */

.activity-section {
  margin-bottom: 4rem;
}

/* KARTU */

.activity-card-modern {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 1rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.activity-card-modern:hover {
  transform: translateY(-5px);
  border-color: #dbeafe;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

/* FOTO */

.activity-cover-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eff4fb;
}

.activity-cover-modern {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.activity-card-modern:hover .activity-cover-modern {
  transform: scale(1.045);
}

.activity-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  font-size: 3rem;
}

.activity-cover-icon {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #1d4ed8;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.25s ease;
}

.activity-card-modern:hover .activity-cover-icon,
.activity-cover-link:focus-visible .activity-cover-icon {
  opacity: 1;
  transform: translateY(0);
}

/* KONTEN */

.activity-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: #64748b;
  font-size: 0.78rem;
}

.activity-meta i {
  color: #2563eb;
}

.activity-title-modern {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.35px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.activity-title-modern a {
  color: #172033;
  text-decoration: none;
  transition: color 0.2s ease;
}

.activity-title-modern a:hover {
  color: #2563eb;
}

/* LOKASI */

.activity-location {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.6;
}

.activity-location i {
  margin-top: 0.15rem;
  color: #2563eb;
  flex-shrink: 0;
}

/* RINGKASAN */

.activity-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 1.2rem;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.activity-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.3rem;
  color: #2563eb;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.activity-read-link:hover {
  color: #1d4ed8;
}

.activity-read-link i {
  transition: transform 0.2s ease;
}

.activity-read-link:hover i {
  transform: translateX(4px);
}

/* KONDISI KOSONG */

.activity-empty-state {
  padding: 3rem 1rem;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
}

.activity-empty-state > i {
  color: #94a3b8;
  font-size: 2.5rem;
}

.activity-empty-state h3 {
  margin-top: 1rem;
  font-size: 1.15rem;
}

.activity-empty-state p {
  margin-bottom: 0;
  color: #64748b;
}

/* RESPONSIVE */

@media (max-width: 767.98px) {
  .activity-section {
    margin-bottom: 3rem;
  }

  .activity-card-body {
    padding: 1.1rem;
  }

  .activity-title-modern {
    font-size: 1rem;
  }

  .activity-meta,
  .activity-location {
    font-size: 0.76rem;
  }

  .activity-cover-icon {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activity-card-modern,
  .activity-cover-modern,
  .activity-cover-icon,
  .activity-read-link i {
    transition: none;
  }

  .activity-card-modern:hover,
  .activity-card-modern:hover .activity-cover-modern {
    transform: none;
  }
}

/* =========================================
   HALAMAN DAFTAR ARTIKEL
========================================= */

.article-listing-page {
  padding-top: 1rem;
}

.article-search-form .input-group {
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(20, 38, 65, 0.04);
}

.article-search-form .input-group-text,
.article-search-form .form-control,
.article-search-form .btn {
  border: 0;
  border-radius: 0;
  min-height: 50px;
}

.article-search-form .input-group-text {
  background: #fff;
  color: #718096;
  padding-left: 18px;
}

.article-search-form .form-control {
  box-shadow: none;
}

.article-search-form .btn {
  padding: 0 22px;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.article-list-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(20, 38, 65, 0.045);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.article-list-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(20, 38, 65, 0.09);
}

.article-list-image-link {
  display: block;
  min-height: 220px;
  overflow: hidden;
  background: #eef2f7;
}

.article-list-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.article-list-card:hover .article-list-image {
  transform: scale(1.045);
}

.article-list-image-placeholder {
  min-height: 220px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8190a5;
  font-size: 3rem;
  background: linear-gradient(135deg, #edf2f8, #dfe7f1);
}

.article-list-body {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.article-list-body .article-meta-modern {
  font-size: 0.82rem;
  color: #718096;
  margin-bottom: 12px;
}

.article-list-title {
  font-size: 1.22rem;
  line-height: 1.45;
  font-weight: 750;
  margin: 0 0 12px;
}

.article-list-title a {
  color: #172b4d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-list-title a:hover,
.latest-article-info h4 a:hover {
  color: #3975c6;
}

.article-list-excerpt {
  color: #657187;
  font-size: 0.94rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-list-bottom {
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf0f5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-category {
  font-size: 0.8rem;
  color: #657187;
  background: #f2f5f9;
  border-radius: 30px;
  padding: 6px 11px;
}

.article-list-bottom .article-read-link {
  font-size: 0.86rem;
}

.article-empty-state {
  padding: 55px 24px;
  text-align: center;
  background: #f7f9fc;
  border: 1px dashed #d8e0eb;
  border-radius: 18px;
}

.article-empty-state > i {
  font-size: 2.8rem;
  color: #8291a7;
}

.article-empty-state h3 {
  color: #172b4d;
  font-size: 1.25rem;
  margin-top: 16px;
}

.article-empty-state p {
  color: #718096;
  margin: 10px 0 20px;
}

.article-pagination .pagination {
  flex-wrap: wrap;
  gap: 5px;
}

/* SIDEBAR ARTIKEL TERBARU */

.article-sidebar {
  position: sticky;
  top: 24px;
  padding: 25px;
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(20, 38, 65, 0.045);
}

.article-sidebar-heading {
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid #edf0f5;
}

.article-sidebar-heading .section-eyebrow {
  font-size: 0.7rem;
}

.article-sidebar-heading h3 {
  font-size: 1.3rem;
  font-weight: 750;
  color: #172b4d;
  margin: 10px 0 0;
}

.latest-article-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #edf0f5;
}

.latest-article-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.latest-article-thumb {
  width: 86px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #edf2f8;
  color: #8291a7;
  font-size: 1.7rem;
}

.latest-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-article-info {
  min-width: 0;
}

.latest-article-date {
  display: block;
  font-size: 0.75rem;
  color: #8490a2;
  margin-bottom: 6px;
}

.latest-article-info h4 {
  font-size: 0.93rem;
  line-height: 1.5;
  font-weight: 700;
  margin: 0;
}

.latest-article-info h4 a {
  color: #263955;
  text-decoration: none;
}

/* =========================================
   HALAMAN DETAIL ARTIKEL
========================================= */

.article-detail-page {
  padding-top: 1rem;
}

.article-detail-container {
  max-width: 900px;
  margin: 0 auto;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #52647c;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-back-link:hover {
  color: #3975c6;
}

.article-detail-card {
  padding: clamp(22px, 5vw, 52px);
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 22px;
  box-shadow: 0 12px 38px rgba(20, 38, 65, 0.055);
}

.article-detail-header {
  margin-bottom: 28px;
}

.article-detail-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3975c6;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 1.4px;
  margin-bottom: 18px;
}

.article-detail-title {
  color: #172b4d;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
  margin-bottom: 20px;
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #7b8798;
  font-size: 0.88rem;
}

.article-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-detail-cover {
  margin: 0 0 34px;
  overflow: hidden;
  border-radius: 16px;
  background: #edf2f8;
}

.article-detail-cover img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-detail-content {
  color: #39485d;
  font-size: 1.04rem;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.article-detail-content > *:first-child {
  margin-top: 0;
}

.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4 {
  color: #172b4d;
  font-weight: 750;
  line-height: 1.4;
  margin: 1.8em 0 0.7em;
}

.article-detail-content p {
  margin-bottom: 1.3em;
}

.article-detail-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px auto;
}

.article-detail-content ul,
.article-detail-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4em;
}

.article-detail-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid #3975c6;
  border-radius: 0 10px 10px 0;
  background: #f4f7fb;
  color: #52647c;
}

.article-detail-content a {
  color: #2866b3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-detail-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.article-detail-footer {
  border-top: 1px solid #edf0f5;
  margin-top: 36px;
  padding-top: 24px;
}

.article-detail-footer .article-back-link {
  margin-bottom: 0;
}

/* =========================================
   KOMENTAR ARTIKEL
========================================= */

.article-comments-section {
  margin-top: 48px;
}

.comments-heading {
  margin-bottom: 25px;
}

.comments-heading h2 {
  color: #172b4d;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 12px 0;
}

.comments-heading h2 span {
  color: #3975c6;
}

.comments-heading p {
  color: #718096;
  margin-bottom: 0;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-card {
  display: flex;
  gap: 15px;
  padding: 22px;
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 15px;
}

.comment-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf3fb;
  color: #3975c6;
  font-size: 1.35rem;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-author-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 15px;
  margin-bottom: 9px;
}

.comment-author-row strong {
  color: #172b4d;
}

.comment-author-row small {
  color: #8a96a7;
  font-size: 0.78rem;
}

.comment-content p {
  color: #526176;
  line-height: 1.75;
  margin: 0;
  overflow-wrap: anywhere;
}

.comments-empty {
  padding: 28px;
  text-align: center;
  background: #f7f9fc;
  border-radius: 15px;
  color: #718096;
}

.comments-empty i {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
}

.comments-empty p {
  margin: 0;
}

.comment-form-card {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(20, 38, 65, 0.04);
}

.comment-form-card h3 {
  color: #172b4d;
  font-size: 1.35rem;
  font-weight: 750;
  margin-bottom: 8px;
}

.comment-form-description {
  color: #7b8798;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.comment-form-card .form-label {
  color: #35465f;
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 8px;
}

.comment-form-card .form-control {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  box-shadow: none;
}

.comment-form-card textarea.form-control {
  min-height: 135px;
  resize: vertical;
}

.comment-form-card .form-control:focus {
  border-color: #7ca8e0;
  box-shadow: 0 0 0 3px rgba(57, 117, 198, 0.1);
}

.comment-submit-btn {
  min-height: 47px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 650;
}

/* RESPONSIVE */

@media (max-width: 767.98px) {
  .article-list-card {
    grid-template-columns: 1fr;
  }

  .article-list-image-link,
  .article-list-image,
  .article-list-image-placeholder {
    height: 220px;
    min-height: 220px;
  }

  .article-list-body {
    padding: 21px;
  }

  .article-list-title {
    font-size: 1.12rem;
  }

  .article-sidebar {
    position: static;
    margin-top: 8px;
    padding: 21px;
  }

  .article-detail-card {
    border-radius: 16px;
  }

  .article-detail-title {
    letter-spacing: -0.3px;
  }

  .article-detail-cover img {
    max-height: 320px;
  }

  .article-detail-content {
    font-size: 1rem;
    line-height: 1.85;
  }

  .comment-card {
    padding: 17px;
  }

  .comment-author-row {
    flex-direction: column;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-list-card,
  .article-list-image,
  .article-list-title a,
  .latest-article-info h4 a {
    transition: none;
  }
}

/* =========================================
   HALAMAN GALERI
========================================= */

/* .gallery-page {
  padding-top: 1rem;
} */

.gallery-filter-card {
  padding: 22px 24px;
  margin-bottom: 25px;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 16px;
  box-shadow: 0 7px 24px rgba(20, 38, 65, 0.045);
}

.gallery-filter-card .form-label {
  display: block;
  margin-bottom: 9px;
  color: #35465f;
  font-size: 0.9rem;
  font-weight: 650;
}

.gallery-filter-card .form-control {
  min-height: 46px;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  box-shadow: none;
}

.gallery-filter-card .form-control:focus {
  border-color: #7ca8e0;
  box-shadow: 0 0 0 3px rgba(57, 117, 198, 0.1);
}

.gallery-filter-btn,
.gallery-reset-btn {
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.gallery-page-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #718096;
  font-size: 0.87rem;
}

.gallery-active-filter {
  padding: 7px 12px;
  color: #315e99;
  background: #edf4fd;
  border-radius: 30px;
}

/* .gallery-page-grid {
  align-items: stretch;
} */

.gallery-page-card {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 16px;
  box-shadow: 0 7px 24px rgba(20, 38, 65, 0.045);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery-page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 32px rgba(20, 38, 65, 0.1);
}

.gallery-page-card .gallery-cover-link {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf2f8;
}

.gallery-page-card .gallery-cover-modern {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-page-card:hover .gallery-cover-modern {
  transform: scale(1.06);
}

.gallery-page-card .gallery-overlay-modern {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: rgba(15, 35, 65, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-page-card:hover .gallery-overlay-modern,
.gallery-page-card .gallery-cover-link:focus-visible .gallery-overlay-modern {
  opacity: 1;
}

.gallery-page-card .gallery-overlay-icon {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  font-size: 1.15rem;
}

.gallery-page-card .gallery-overlay-text {
  font-size: 0.85rem;
  font-weight: 650;
}

.gallery-page-card .gallery-cover-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #edf2f8, #dfe7f1);
  color: #8291a7;
  font-size: 2.8rem;
}

.gallery-page-card .gallery-card-caption {
  padding: 17px;
}

.gallery-page-card .gallery-date-modern {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: #8290a3;
  font-size: 0.77rem;
}

.gallery-page-card .gallery-title-modern {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #172b4d;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}

.gallery-page-card .gallery-description-modern {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 9px 0 0;
  color: #718096;
  font-size: 0.86rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.gallery-empty-state {
  padding: 55px 24px;
  text-align: center;
  background: #f7f9fc;
  border: 1px dashed #d8e0eb;
  border-radius: 18px;
}

.gallery-empty-icon {
  display: flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: #3975c6;
  background: #eaf2fc;
  border-radius: 50%;
  font-size: 2rem;
}

.gallery-empty-state h2 {
  color: #172b4d;
  font-size: 1.3rem;
  font-weight: 750;
}

.gallery-empty-state p {
  max-width: 480px;
  margin: 10px auto 20px;
  color: #718096;
  line-height: 1.7;
}

@media (max-width: 767.98px) {
  .gallery-filter-card {
    padding: 18px;
  }

  .gallery-filter-card .col-md-auto {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .gallery-filter-btn,
  .gallery-reset-btn {
    flex: 1;
  }

  .gallery-page-card .gallery-card-caption {
    padding: 12px;
  }

  .gallery-page-card .gallery-title-modern {
    font-size: 0.9rem;
  }

  .gallery-page-card .gallery-description-modern {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .gallery-page-card .gallery-date-modern {
    font-size: 0.7rem;
  }

  /* Tampilkan petunjuk foto pada perangkat sentuh */
  .gallery-page-card .gallery-overlay-modern {
    inset: auto 0 0;
    flex-direction: row;
    justify-content: flex-end;
    padding: 8px 10px;
    gap: 6px;
    background: linear-gradient(transparent, rgba(15, 35, 65, 0.75));
    opacity: 1;
  }

  .gallery-page-card .gallery-overlay-icon {
    width: 28px;
    height: 28px;
    border: 0;
    font-size: 0.9rem;
  }

  .gallery-page-card .gallery-overlay-text {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-page-card,
  .gallery-page-card .gallery-cover-modern,
  .gallery-page-card .gallery-overlay-modern {
    transition: none;
  }
}

/* FIX: HEADER HALAMAN GALERI */
.gallery-page > .section-heading-modern {
  display: block;
  width: 100%;
  margin-bottom: 30px !important;
  text-align: left;
}

.gallery-page > .section-heading-modern .section-eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.gallery-page > .section-heading-modern .section-title-modern {
  display: block;
  margin: 0 0 12px;
  text-align: left;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.gallery-page > .section-heading-modern .section-description-modern {
  display: block;
  max-width: 680px;
  margin: 0;
  text-align: left;
  line-height: 1.8;
}

/* JARAK DAN UKURAN KARTU GALERI */
.gallery-page .gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

/* .gallery-page .gallery-page-grid > [class*="col-"] {
  width: 100%;
  max-width: none;
  padding: 0;
  min-width: 0;
} */

.gallery-page .gallery-page-card {
  width: 100%;
  height: 100%;
}

.gallery-page .gallery-page-card .gallery-cover-link,
.gallery-page .gallery-page-card .gallery-cover-placeholder {
  aspect-ratio: 4 / 3;
}

.gallery-page .gallery-filter-card {
  width: 100%;
  margin-bottom: 28px;
}

@media (max-width: 991.98px) {
  .gallery-page .gallery-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 575.98px) {
  .gallery-page > .section-heading-modern .section-title-modern {
    font-size: 2rem;
  }

  .gallery-page > .section-heading-modern .section-description-modern {
    font-size: 0.93rem;
  }

  .gallery-page .gallery-page-grid {
    gap: 14px;
  }
}

/* =========================================
   FIX LAYOUT HALAMAN ARTIKEL
========================================= */

.article-listing-page {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.article-listing-page > .section-heading-modern {
  display: block;
  width: 100%;
  margin-bottom: 30px !important;
  text-align: left;
}

.article-listing-page > .section-heading-modern .section-eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.article-listing-page > .section-heading-modern .section-title-modern {
  display: block;
  margin: 0 0 12px;
  text-align: left;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.article-listing-page > .section-heading-modern .section-description-modern {
  display: block;
  max-width: 680px;
  margin: 0;
  text-align: left;
  line-height: 1.8;
}

/* GRID UTAMA ARTIKEL DAN SIDEBAR */
.article-listing-page > .row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.article-listing-page > .row > .col-lg-8,
.article-listing-page > .row > aside.col-lg-4 {
  min-width: 0;
}

/* DAFTAR KARTU ARTIKEL */
.article-listing-page .article-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.article-listing-page .article-list-card {
  width: 100%;
  min-width: 0;
}

/* FORM PENCARIAN */
.article-listing-page .article-search-form {
  width: 100%;
}

.article-listing-page .article-search-form .input-group {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

/* SIDEBAR */
.article-listing-page .article-sidebar {
  width: 100%;
  min-width: 0;
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
  .article-listing-page {
    padding: 28px 20px 48px;
  }

  .article-listing-page > .row {
    row-gap: 28px;
  }

  .article-listing-page .article-sidebar {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .article-listing-page {
    padding: 24px 14px 40px;
  }

  .article-listing-page > .section-heading-modern .section-title-modern {
    font-size: 2rem;
  }

  .article-listing-page > .section-heading-modern .section-description-modern {
    font-size: 0.93rem;
  }

  .article-listing-page .article-list-card {
    grid-template-columns: 1fr;
  }

  .article-listing-page .article-list-image-link,
  .article-listing-page .article-list-image,
  .article-listing-page .article-list-image-placeholder {
    min-height: 200px;
    height: 200px;
  }
}

/* Tablet: dua kolom */
@media (max-width: 991.98px) {
  .gallery-page .gallery-page-grid > [class*="col-"] {
    flex-basis: calc(50% - 12px);
    width: calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

/* HP: dua kolom, kartu tetap proporsional */
@media (max-width: 575.98px) {
  .gallery-page .gallery-page-grid {
    gap: 14px;
  }

  .gallery-page .gallery-page-grid > [class*="col-"] {
    flex-basis: calc(50% - 7px);
    width: calc(50% - 7px);
    max-width: calc(50% - 7px);
  }
}

/* GRID GALERI - KARTU TUNGGAL DI TENGAH */
.gallery-page .gallery-page-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin: 0;
}

.gallery-page .gallery-page-item {
  width: 100%;
  min-width: 0;
}

/* Jika hanya ada satu foto */
.gallery-page .gallery-page-grid.gallery-grid-single {
  grid-template-columns: minmax(0, 380px);
  justify-content: center;
}

/* Tablet */
@media (max-width: 991.98px) {
  .gallery-page .gallery-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .gallery-page .gallery-page-grid.gallery-grid-single {
    grid-template-columns: minmax(0, 380px);
    justify-content: center;
  }
}

/* HP */
@media (max-width: 575.98px) {
  .gallery-page .gallery-page-grid {
    gap: 14px;
  }

  .gallery-page .gallery-page-grid.gallery-grid-single {
    grid-template-columns: minmax(0, 1fr);
  }
}
