/* =========================================================
   RSUP Dr. M. Djamil Padang — Instalasi Bank Jaringan dan Biomaterial
   Stylesheet
   ========================================================= */

:root {
  --primary: #0E9F8D;
  --primary-dark: #0a4a3d;
  --primary-light: #12735e;
  --secondary: #0a4a3d;
  --heading: #16241f;
  --mint-bg: #eef7f4;
  --mint-bg-2: #f4faf8;
  --text-dark: #16241f;
  --text-body: #4c5c57;
  --text-muted: #7c8b86;
  --border-light: #e4ede9;
  --white: #ffffff;

  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px rgba(13, 92, 76, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(13, 92, 76, 0.14);
  --container: 1350px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* dorong footer ke bawah kalau konten di atasnya lebih pendek dari tinggi layar */
.site-footer {
  margin-top: auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================================
   GRID UTILITY (pengganti ringan Bootstrap grid)
   Dipakai di banyak view: .row, .col-lg-8, .col-lg-4, .col-12
========================================================= */

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
}

.col-lg-8,
.col-lg-4,
.col-12 {
  padding: 0;
  min-width: 0; /* supaya konten di dalamnya boleh menyusut, bukan mendorong layout melebar */
}

.col-lg-8 {
  flex: 1 1 0;
}

.col-lg-4 {
  flex: 1 1 320px;
  max-width: 380px;
}

.col-12 {
  flex: 1 1 100%;
  max-width: 100%;
}

@media (max-width: 992px) {
  .row {
    flex-direction: column;
  }

  .col-lg-8,
  .col-lg-4 {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
}

:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn svg {
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(13, 92, 76, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 14px 30px rgba(13, 92, 76, 0.32);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}

.link-arrow svg {
  transition: transform 0.2s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo img {
  width: 150px;
  height: 46px;
}

.brand-divider {
  width: 1px;
  height: 38px;
  background: var(--border-light);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-heading);
  line-height: 1.3;
}

.brand-text .hospital-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}

.brand-text .unit-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.brand-text .unit-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}

/* setiap <li> jadi anchor posisi untuk dropdown submenu-nya */
.main-nav ul li {
  position: relative;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-body);
  padding: 6px 2px;
  position: relative;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.active {
  color: var(--primary);
}

.main-nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

/* ================= DROPDOWN SUBMENU ================= */

.main-nav li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* panah kecil, hanya muncul kalau <li> punya submenu */
.main-nav li:has(> ul) > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform .25s ease;
}

.main-nav li:hover > a::after,
.main-nav li:focus-within > a::after,
.main-nav li.submenu-open > a::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.main-nav li > ul {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: var(--shadow-card-hover);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 200;
}

.main-nav li:hover > ul,
.main-nav li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav li > ul li {
  width: 100%;
}

.main-nav li > ul a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
}

.main-nav li > ul a::after {
  display: none; /* submenu di dalam submenu (jarang, tapi jaga-jaga) tidak pakai panah desktop */
}

.main-nav li > ul a:hover {
  background: var(--mint-bg);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: 0.25s;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  background: var(--mint-bg-2);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 64px;
  position: relative;
}

.hero-copy .eyebrow-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.hero-copy h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-copy .hero-sub {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 10px;
}

.hero-copy p.hero-desc {
  margin-top: 20px;
  font-size: 16px;
  color: var(--text-body);
  max-width: 480px;
}

.hero-copy .btn {
  margin-top: 30px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
}

.hero-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.hero-slide.active {
  display: block;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tombol */

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  transition: .3s;
  z-index: 10;
}

.hero-prev:hover,
.hero-next:hover {
  background: #0E9F8D;
}

.hero-prev {
  left: 15px;
}

.hero-next {
  right: 15px;
}

/* Feature strip */

.feature-strip {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 20px;
  margin-top: -46px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 22px;
  border-right: 1px solid var(--border-light);
}

.feature-item:last-child {
  border-right: none;
}

.feature-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: var(--mint-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-item h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================================================
   About section
   ========================================================= */

.about-section {
  padding: 96px 0 88px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-copy h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 14px 0 20px;
}

.about-copy p {
  font-size: 15.5px;
  color: var(--text-body);
  margin-bottom: 28px;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-media img {
  width: 100%;
  object-fit: cover;
}

/* =========================================================
   SERVICES
========================================================= */

.services-section {
  padding: 50px 0;
}

.section-heading {
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}


.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  flex: 0 0 calc((100% - 72px) / 4);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.service-image {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .5s;
}

.service-card:hover .service-image img {
  transform: scale(1.08);
}

.service-content {
  padding: 22px;
}

.service-content h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--heading);
}

.service-content p {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 14px;
}

.services-slider {
  position: relative;
  width: 100%;
}

.services-viewport {
  overflow: hidden;
  width: 100%;
}

.services-track {
  display: flex;
  gap: 24px;
  transition: transform .5s ease;
  will-change: transform;
}

.services-track::-webkit-scrollbar {
  display: none;
}



@media (max-width:992px) {

  .service-card {
    flex: 0 0 calc((100% - 24px)/2);
  }

}

@media(max-width:768px) {

  .service-card {
    flex: 0 0 100%;
  }

}

/* =====================================
   PAGE HEADER
===================================== */

.page-header {
  position: relative;
  overflow: hidden;
  padding: 50px 0 70px;
  background: linear-gradient(135deg, #0E9F8D 0%, #6CC4A1 100%);
  color: #fff;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.3;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15px;
}

.breadcrumb a {
  color: #fff;
  opacity: .9;
  text-decoration: none;
}

.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.breadcrumb span {
  opacity: .8;
}

@media (max-width:768px) {

  .page-header {
    padding: 70px 0 50px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .breadcrumb {
    font-size: 13px;
  }

}

/* =====================================
   DETAIL LAYANAN
===================================== */

.service-detail {
  padding: 70px 0;
}

.detail-wrapper {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 60px;
  align-items: start;
}

.detail-image img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
}

.detail-content h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading);
  line-height: 1.3;
}

.detail-description {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-muted);
}

.detail-description p {
  margin-bottom: 18px;
}

.detail-description ul,
.detail-description ol {
  padding-left: 20px;
  margin: 20px 0;
}

.detail-description li {
  margin-bottom: 8px;
}

@media (max-width:992px) {

  .detail-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .detail-content h1 {
    font-size: 30px;
  }

}

/* =========================================================
   Info & Edukasi
   ========================================================= */

/* =====================================
   TAB SECTION
===================================== */

.info-section {
  padding: 90px 0;
  background: var(--mint-bg);
}

.info-tabs {

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 40px 0;

}

.tab-btn {

  padding: 14px 28px;

  border: none;

  border-radius: 50px;

  background: #fff;

  cursor: pointer;

  font-size: 15px;

  font-weight: 600;

  transition: .3s;

  box-shadow: 0 5px 15px rgba(0, 0, 0, .05);

}

.tab-btn:hover {

  background: #0E9F8D;

  color: #fff;

}

.tab-btn.active {

  background: #0E9F8D;

  color: #fff;

}

.tab-content {

  display: none;

  animation: fade .3s;

}

.tab-content.active {

  display: block;

}

@keyframes fade {

  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }



}

/* =========================================================
   POST SLIDER (WEBINAR / PUBLIKASI)
========================================================= */

.post-slider {
  position: relative;
  width: 100%;
}

.slider-viewport {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  gap: 24px;
  transition: transform .45s ease;
  will-change: transform;
}

.slider-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  overflow: hidden;
  transition: all .3s ease;
}

.slider-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

.slider-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.slider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.slider-card:hover .slider-image img {
  transform: scale(1.05);
}

.slider-content {
  padding: 22px;
}

.slider-date {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: #0E9F8D;
  font-weight: 600;
  margin-bottom: 12px;
}

.slider-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.5;
  margin-bottom: 12px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 18px;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider-content .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0E9F8D;
  text-decoration: none;
  font-weight: 600;
  transition: .3s;
}

.slider-content .read-more:hover {
  gap: 10px;
}

/* =========================================================
   BUTTON
========================================================= */

.slider-prev,
.slider-next {

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 46px;

  height: 46px;

  border: none;

  border-radius: 50%;

  background: rgba(14, 159, 141, .9);

  color: #fff;

  cursor: pointer;

  z-index: 20;

  transition: .3s;

  display: flex;

  align-items: center;

  justify-content: center;

  box-shadow: 0 8px 18px rgba(0, 0, 0, .15);

}

.slider-prev:hover,
.slider-next:hover {

  background: #08796d;

}

.slider-prev {

  left: -23px;

}

.slider-next {

  right: -23px;

}

/* =====================================
   VIEW ALL BUTTON
===================================== */

.slider-footer {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.view-all-btn {

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 28px;

  border: 2px solid var(--primary);

  border-radius: 50px;

  color: var(--primary);

  background: #fff;

  text-decoration: none;

  font-weight: 600;

  font-size: 15px;

  transition: all .3s ease;

}

.view-all-btn .arrow {

  transition: transform .3s ease;

}

.view-all-btn:hover {

  background: var(--primary);

  color: #fff;

  box-shadow: 0 12px 25px rgba(14, 159, 141, .25);

  transform: translateY(-3px);

}

.view-all-btn:hover .arrow {

  transform: translateX(6px);

}

.slider-prev:disabled,
.slider-next:disabled {

  opacity: .4;

  cursor: not-allowed;

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:992px) {

  .slider-card {

    flex: 0 0 calc((100% - 24px) / 2);

  }

  .slider-content {

    padding: 18px;

  }

  .slider-content h4 {

    font-size: 17px;

  }

}

@media (max-width:768px) {

  .slider-card {

    flex: 0 0 100%;

  }

  .slider-prev,
  .slider-next {

    width: 40px;
    height: 40px;

    font-size: 18px;

  }

  .slider-prev {

    left: 8px;

  }

  .slider-next {

    right: 8px;

  }

}

@media (max-width:480px) {

  .slider-content {

    padding: 16px;

  }

  .slider-content h4 {

    font-size: 16px;

  }

  .slider-content p {

    font-size: 13px;

  }

  .slider-prev,
  .slider-next {

    width: 36px;
    height: 36px;

  }

}


/* =====================================
   GALLERY
===================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

.gallery-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #E8E8E8;
  transition: .3s;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, .08);
}

.gallery-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-content {
  padding: 18px;
}

.gallery-content h4 {
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

@media(max-width:992px) {

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media(max-width:768px) {

  .gallery-grid {
    grid-template-columns: 1fr;
  }

}

/* =====================================
   EMPTY STATE
===================================== */

.empty-post {

  padding: 70px 30px;

  border: 2px dashed #D8E3E7;

  border-radius: 20px;

  background: #FAFCFC;

  text-align: center;

}

.empty-icon {

  font-size: 60px;

  margin-bottom: 20px;

}

.empty-post h4 {

  font-size: 22px;

  color: var(--heading);

  margin-bottom: 12px;

}

.empty-post p {

  max-width: 420px;

  margin: 0 auto;

  color: #777;

  line-height: 1.8;

}

/* =========================================================
   REQUEST SECTION
========================================================= */

.request-section {
  padding: 90px 0;
  background: #F8FBFA;
}

.request-wrapper {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 70px;
  align-items: center;
}

.request-image {
  text-align: center;
}

.request-image img {
  width: 100%;
  max-width: 400px;
}

.request-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 30px;
  background: #E8F8F5;
  color: #0E9F8D;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.request-content h2 {
  font-size: 40px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading);
}

.request-content h2 span {
  color: var(--primary);
}

.request-content p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 30px;
}

.request-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px;
}

.request-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
  color: #444;
}

.request-list li::before {

  content: "✓";

  position: absolute;

  left: 0;
  top: 0;

  width: 22px;
  height: 22px;

  border-radius: 50%;

  background: #0E9F8D;

  color: #fff;

  font-size: 13px;

  display: flex;
  align-items: center;
  justify-content: center;

}

.request-action {
  margin-top: 35px;
}

@media (max-width:992px) {

  .request-wrapper {

    grid-template-columns: 1fr;

    gap: 45px;

    text-align: center;

  }

  .request-image {
    order: -1;
  }

  .request-list {
    display: inline-block;
    text-align: left;
  }

  .request-content h2 {
    font-size: 32px;
  }

}

@media (max-width:768px) {

  .request-section {
    padding: 70px 0;
  }

  .request-content h2 {
    font-size: 28px;
  }

  .request-image img {
    max-width: 300px;
  }

}


/* =========================================================
   DETAIL POST
========================================================= */

.post-detail-section {
  --post-radius-lg: 24px;
  --post-radius-md: 16px;
  --post-transition: .35s cubic-bezier(.4, 0, .2, 1);
  --post-accent-soft: rgba(15, 157, 116, .08);

  padding: 90px 0;
  background:
    radial-gradient(circle at 15% 0%, var(--post-accent-soft), transparent 40%),
    #F8FBFA;
}

.post-detail-section .row {
  align-items: flex-start;
}

/* sidebar "Artikel Terkait" dikunci lebih sempit & tetap supaya proporsional di sebelah konten */
.post-detail-section .col-lg-4 {
  flex: 0 0 340px;
  max-width: 340px;
}

/* ================= CARD ================= */

.post-detail-card {
  background: #fff;
  border-radius: var(--post-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--post-transition);
}

.post-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  overflow: hidden;
  background: var(--mint-bg);
}

.post-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent 45%);
  pointer-events: none;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
  display: block;
}

.post-detail-card:hover .post-thumbnail img {
  transform: scale(1.045);
}

.post-body {
  padding: 44px 48px 48px;
}

/* ================= META ================= */

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--mint-bg);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background var(--post-transition), transform var(--post-transition);
}

.post-meta span:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.post-meta span i {
  font-size: 12px;
}

/* ================= TITLE ================= */

.post-title {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: 30px;
  color: var(--text-dark);
  font-weight: 800;
}

/* ================= CONTENT ================= */

.post-content {
  color: var(--text-body);
  font-size: 16.5px;
  line-height: 1.9;
}

.post-content > *:first-child {
  margin-top: 0;
}

/* drop cap halus pada paragraf pertama, kesan editorial */
/* .post-content > p:first-of-type::first-letter {
  font-size: 3.1em;
  font-weight: 800;
  color: var(--primary);
  float: left;
  line-height: .85;
  margin: 6px 10px 0 0;
} */

.post-content p {
  margin-bottom: 22px;
}

.post-content h2 {
  font-size: 28px;
  font-weight: 750;
  margin: 44px 0 18px;
  color: var(--text-dark);
  scroll-margin-top: 100px;
}

.post-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text-dark);
  scroll-margin-top: 100px;
}

.post-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-dark);
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--post-accent-soft);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--post-transition);
}

.post-content a:hover {
  text-decoration-color: var(--primary);
}

/* --- gambar: fix utama dari masalah "kegedean" --- */
.post-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--post-radius-md);
  margin: 32px auto;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .18);
}

/* kalau editor membungkus gambar dengan <figure>, tambahkan caption rapi */
.post-content figure {
  margin: 32px 0;
}

.post-content figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

.post-content iframe {
  width: 100%;
  min-height: 450px;
  border: none;
  border-radius: var(--post-radius-md);
  margin: 30px 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  overflow: auto;
  display: block;
  border-radius: 10px;
  font-size: 15px;
}

.post-content th {
  background: var(--primary);
  color: #fff;
  text-align: left;
}

.post-content th,
.post-content td {
  border: 1px solid #e8ecef;
  padding: 12px 14px;
}

.post-content tr:nth-child(even) td {
  background: #FAFCFB;
}

.post-content blockquote {
  position: relative;
  padding: 24px 26px;
  margin: 32px 0;
  border-left: 5px solid var(--primary);
  background: var(--mint-bg);
  border-radius: 0 var(--post-radius-md) var(--post-radius-md) 0;
  font-style: italic;
  color: var(--text-dark);
}

.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 22px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content code {
  background: var(--mint-bg);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
}

.post-content pre {
  background: #0F1B18;
  color: #E8F5F0;
  padding: 20px;
  border-radius: var(--post-radius-md);
  overflow-x: auto;
  margin: 26px 0;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.post-content hr {
  border: none;
  border-top: 1px dashed var(--border-light);
  margin: 38px 0;
}

/* ================= SIDEBAR ================= */

.sidebar-widget {
  position: sticky;
  top: 100px;
  background: #fff;
  border-radius: var(--post-radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.sidebar-widget + .sidebar-widget {
  margin-top: 24px;
}

.sidebar-widget h4 {
  font-size: 21px;
  font-weight: 750;
  margin-bottom: 24px;
  color: var(--text-dark);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

/* ================= RELATED ================= */

.related-post {
  display: flex;
  gap: 15px;
  padding: 16px 10px;
  margin: 0 -10px;
  border-radius: var(--post-radius-md);
  transition: background var(--post-transition), transform var(--post-transition);
}

.related-post + .related-post {
  border-top: 1px solid #edf2f7;
}

.related-post:hover {
  background: var(--mint-bg);
  transform: translateX(4px);
}

.related-post img {
  width: 92px;
  height: 92px;
  border-radius: var(--post-radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.related-post h6 {
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.related-post p {
  display: none; /* teks preview disembunyikan di sidebar agar tetap ringkas & rapi */
}

/* ================= EMPTY RELATED ================= */

.empty-related {
  text-align: center;
  padding: 30px 10px 10px;
}

.empty-related .empty-icon {
  font-size: 34px;
  color: var(--primary);
  opacity: .5;
  margin-bottom: 14px;
}

.empty-related p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================= SHARE BUTTONS ================= */

.post-share {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.post-share-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.share-widget .share-buttons {
  justify-content: flex-start;
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-buttons a,
.share-buttons button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--mint-bg);
  color: var(--primary);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--post-transition), color var(--post-transition), transform var(--post-transition);
}

.share-buttons a:hover,
.share-buttons button:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .post-share {
    margin-top: 30px;
    padding-top: 22px;
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .post-body {
    padding: 36px;
  }

  .sidebar-widget {
    position: relative;
    top: 0;
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  .post-detail-section {
    padding: 55px 0;
  }

  .post-thumbnail {
    max-height: 260px;
  }

  .post-body {
    padding: 24px;
  }

  .post-title {
    font-size: 24px;
    margin-bottom: 22px;
  }

  .post-meta {
    gap: 8px;
    margin-bottom: 18px;
  }

  .post-meta span {
    font-size: 12px;
    padding: 7px 12px;
  }

  .post-content {
    font-size: 15px;
    line-height: 1.8;
  }

  .post-content h2 {
    font-size: 22px;
  }

  .post-content h3 {
    font-size: 19px;
  }

  .post-content img {
    max-height: 320px;
    border-radius: 12px;
  }

  .post-content iframe {
    min-height: 220px;
  }

  .post-content > p:first-of-type::first-letter {
    font-size: 2.4em;
  }

  .related-post img {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 480px) {
  .post-body {
    padding: 18px;
  }

  .post-title {
    font-size: 21px;
  }

  .related-post {
    gap: 12px;
  }
}

/* =========================================================
   PAGE CONTENT
========================================================= */

/* ===========================
   BREADCRUMB
=========================== */

.page-breadcrumb {

  padding: 22px 0;

  background: #F8FBFA;

  border-bottom: 1px solid #EDF2F7;

}

.breadcrumb-list {

  display: flex;

  align-items: center;

  gap: 10px;

  list-style: none;

  padding: 0;

  margin: 0;

}

.breadcrumb-list li {

  font-size: 14px;

  color: #64748B;

}

.breadcrumb-list li a {

  color: var(--primary);

  text-decoration: none;

  transition: .3s;

}

.breadcrumb-list li a:hover {

  color: #08796d;

}

#content {
  background: #F7FBFA;
}

#content .content-wrap {
  padding: 60px 0 90px;
}

.page-wrapper {

 width:100%;

}

.page-card {

  background: #fff;

  border-radius: 22px;

  padding: 55px;

  box-shadow: 0 10px 35px rgba(0, 0, 0, .05);

}

.page-title {

  font-size: 40px;

  font-weight: 700;

  margin-bottom: 18px;

  color: var(--heading);

  position: relative;

}

.page-title::after {

  content: "";

  width: 70px;

  height: 4px;

  background: var(--primary);

  display: block;

  border-radius: 10px;

  margin-top: 18px;

}

.detail-content {

  font-size: 17px;

  color: var(--text-body);

  line-height: 2;

}

.detail-content>*:first-child {

  margin-top: 0;

}

.detail-content h2 {

  margin: 45px 0 18px;

  font-size: 30px;

  font-weight: 700;

  color: var(--heading);

  scroll-margin-top: 110px;

}

.detail-content h3 {

  margin: 40px 0 16px;

  font-size: 24px;

  font-weight: 700;

  color: var(--heading);

  scroll-margin-top: 110px;

}

.detail-content h4 {

  margin: 35px 0 15px;

  font-size: 20px;

  font-weight: 700;

  color: var(--heading);

}

.detail-content p {

  margin-bottom: 22px;

}

.detail-content img {

  max-width: 100%;

  height: auto;

  display: block;

  margin: 30px auto;

  border-radius: 18px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);

}

.detail-content iframe {

  width: 100%;

  min-height: 480px;

  border: none;

  border-radius: 18px;

  margin: 30px 0;

}

.detail-content table {

  width: 100%;

  border-collapse: collapse;

  margin: 30px 0;

  overflow-x: auto;

  display: block;

}

.detail-content table th {

  background: var(--primary);

  color: #fff;

}

.detail-content table th,
.detail-content table td {

  border: 1px solid #E5E7EB;

  padding: 14px;

}

.detail-content ul,
.detail-content ol {

  padding-left: 24px;

  margin-bottom: 25px;

}

.detail-content li {

  margin-bottom: 10px;

}

.detail-content blockquote {

  margin: 35px 0;

  padding: 25px;

  background: var(--mint-bg);

  border-left: 5px solid var(--primary);

  border-radius: 0 16px 16px 0;

  font-style: italic;

  color: #374151;

}

.detail-content pre {

  background: #0F172A;

  color: #fff;

  padding: 24px;

  border-radius: 16px;

  overflow: auto;

}

.detail-content code {

  background: #EEF2F7;

  padding: 2px 6px;

  border-radius: 6px;

}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Laptop Besar */
@media (max-width:1400px) {

  .page-wrapper {
    width: 100%
  }

}

/* Laptop */
@media (max-width:1200px) {

  .page-wrapper {
    max-width: 950px;
  }

  .page-card {
    padding: 45px;
  }

  .page-title {
    font-size: 38px;
  }

}

/* Tablet Landscape */
@media (max-width:992px) {

  .page-wrapper {
    max-width: 100%;
  }

  #content .content-wrap {
    padding: 50px 0 70px;
  }

  .page-card {

    padding: 35px;

    border-radius: 20px;

  }

  .page-title {

    font-size: 34px;

  }

  .detail-content {

    font-size: 16px;

    line-height: 1.9;

  }

  .detail-content iframe {

    min-height: 360px;

  }

}

/* Tablet Portrait */
@media (max-width:768px) {

  .page-breadcrumb {

    padding: 16px 0;

  }

  .breadcrumb-list {

    flex-wrap: wrap;

    row-gap: 6px;

  }

  #content .content-wrap {

    padding: 35px 0 55px;

  }

  .page-card {

    padding: 28px 24px;

    border-radius: 18px;

  }

  .page-title {

    font-size: 30px;

  }

  .page-title::after {

    width: 55px;

    height: 3px;

    margin-top: 14px;

  }

  .detail-content {

    font-size: 15px;

    line-height: 1.9;

  }

  .detail-content h2 {

    font-size: 24px;

  }

  .detail-content h3 {

    font-size: 20px;

  }

  .detail-content h4 {

    font-size: 18px;

  }

  .detail-content iframe {

    min-height: 260px;

  }

  .detail-content table {

    font-size: 14px;

  }

}

/* Mobile */
@media (max-width:576px) {

  .page-breadcrumb {

    padding: 14px 0;

  }

  .breadcrumb-list {

    font-size: 13px;

    gap: 6px;

  }

  .page-card {

    padding: 22px 18px;

    border-radius: 16px;

  }

  .page-title {

    font-size: 26px;

    line-height: 1.35;

  }

  .page-title::after {

    width: 45px;

    margin-top: 12px;

  }

  .detail-content {

    font-size: 14px;

    line-height: 1.8;

  }

  .detail-content h2 {

    font-size: 22px;

  }

  .detail-content h3 {

    font-size: 19px;

  }

  .detail-content h4 {

    font-size: 17px;

  }

  .detail-content img {

    margin: 20px auto;

    border-radius: 12px;

  }

  .detail-content iframe {

    min-height: 220px;

    border-radius: 12px;

  }

  .detail-content table {

    font-size: 13px;

  }

  .detail-content th,
  .detail-content td {

    padding: 10px;

  }

  .detail-content blockquote {

    padding: 18px;

    font-size: 14px;

  }

  .detail-content pre {

    padding: 18px;

    font-size: 13px;

  }

}

/* Mobile Kecil */
@media (max-width:400px) {

  .page-card {

    padding: 18px 15px;

  }

  .page-title {

    font-size: 22px;

  }

  .detail-content {

    font-size: 13.5px;

  }

  .breadcrumb-list {

    font-size: 12px;

  }

}

/* =========================================================
   READING TIME
========================================================= */

.page-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* =========================================================
   TABLE OF CONTENTS (auto-generated)
========================================================= */

.toc-widget .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-widget .toc-list li a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-body);
  transition: background var(--post-transition, .25s), color var(--post-transition, .25s);
}

.toc-widget .toc-list li a:hover {
  background: var(--mint-bg);
  color: var(--primary);
}

.toc-widget .toc-list li.toc-sub a {
  padding-left: 26px;
  font-size: 13px;
  color: var(--text-muted);
}

/* kalau konten tidak punya heading, sidebar TOC disembunyikan dan konten melebar penuh */
.row.no-sidebar .col-lg-8 {
  flex: 1 1 100%;
  max-width: 100%;
}

.row.no-sidebar .col-lg-4 {
  display: none;
}

/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(13, 92, 76, .28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .3s;
  z-index: 60;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }
}

.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 0.9fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-brand .brand-text .hospital-name,
.footer-brand .brand-text .unit-name {
  color: var(--white);
}

.footer-brand .brand-text .unit-label {
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand .brand-divider {
  background: rgba(255, 255, 255, 0.25);
}

.footer-brand p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.68);
  max-width: 340px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact li svg {
  min-width: 16px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.6);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  padding: 22px 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 1;
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 26px;
  }

  .feature-item:nth-child(2) {
    border-right: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 90;
    box-shadow: 0 16px 40px rgba(13, 92, 76, 0.14);
  }

  .main-nav.open {
    overflow-y: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 32px 20px;
  }

  .main-nav ul li {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-toggle {
    display: block;
  }

  /* ================= ACTIVE STATE (lebih jelas, tidak ambigu) ================= */

  /* matikan garis bawah versi desktop; di layout vertikal mobile
     kita pakai aksen kiri, lebih jelas dibaca */
  .main-nav a.active::before {
    display: none;
  }

  /* menu induk yang PUNYA submenu & sedang jadi konteks (mis. "Tentang Kami")
     -> cukup teks tebal berwarna, INI BUKAN halaman itu sendiri,
     jadi sengaja tidak diberi aksen supaya tidak dikira "halaman aktif" */
  .main-nav > ul > li:has(> ul) > a.active {
    font-weight: 700;
  }

  /* menu level atas TANPA submenu yang sedang jadi halaman aktif (mis. "Layanan")
     -> aksen garis di kiri, penanda "kamu di sini" yang jelas */
  .main-nav > ul > li:not(:has(> ul)) > a.active {
    position: relative;
    padding-left: 14px;
    font-weight: 700;
  }

  .main-nav > ul > li:not(:has(> ul)) > a.active::before {
    display: block;
    content: "";
    position: absolute;
    left: -4px;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: var(--primary);
    border-radius: 4px;
  }

  /* item DI DALAM submenu yang sedang jadi halaman aktif (mis. "Profile")
     -> titik + latar putih supaya jelas beda dari saudara-saudaranya
     yang belum aktif (yang tetap warna mint-bg polos) */
  .main-nav li > ul a.active {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    padding-left: 24px;
    position: relative;
  }

  .main-nav li > ul a.active::before {
    display: block;
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
  }

  /* ================= SUBMENU MOBILE (accordion) ================= */

  .main-nav li > a::after {
    margin-left: auto; /* dorong panah ke kanan di baris menu mobile */
  }

  .main-nav li > ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--mint-bg);
    border-radius: 12px;
    margin: 0;
    padding: 0 6px;
    max-height: 0;
    overflow: hidden;
    display: block;
    transition: max-height .3s ease, padding .3s ease, margin .3s ease;
  }

  .main-nav li.submenu-open > ul {
    max-height: 400px;
    margin: 4px 0 10px;
    padding: 6px;
  }

  .main-nav li > ul a {
    color: var(--text-body);
    padding: 10px 14px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-media {
    order: -1;
  }

  .feature-strip {
    margin-top: 28px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    order: -1;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 20px;
  }

  .feature-strip {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  .feature-item {
    border-right: none;
    padding: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
  }

  .feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   POST LIST
========================================================= */

#page-title{
    padding:35px 0;
    background:#F7FBFA;
    border-bottom:1px solid var(--border-light);
}

#page-title h1{
    font-size:40px;
    font-weight:800;
    color:var(--heading);
    margin-bottom:12px;
}

/* =========================================================
   LIST POST
========================================================= */

#posts{

    display:flex;

    flex-direction:column;

    gap:28px;

}

.entry{

    display:flex;

    gap:30px;

    background:#fff;

    border-radius:22px;

    overflow:hidden;

    border:1px solid var(--border-light);

    box-shadow:var(--shadow-card);

    transition:.35s;

}

.entry:hover{

    transform:translateY(-4px);

    box-shadow:var(--shadow-card-hover);

}

.entry-image{

    width:320px;

    min-width:320px;

    overflow:hidden;

}

.entry-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.45s;

}

.entry:hover .entry-image img{

    transform:scale(1.06);

}

.entry-c{

    flex:1;

    padding:28px;

    display:flex;

    flex-direction:column;

}

/* =========================================================
   TITLE
========================================================= */

.entry-title{

    margin-bottom:14px;

}

.entry-title h2{

    font-size:28px;

    font-weight:700;

    line-height:1.4;

    margin:0;

}

.entry-title a{

    color:var(--heading);

    text-decoration:none;

    transition:.3s;

}

.entry-title a:hover{

    color:var(--primary);

}

/* =========================================================
   META
========================================================= */

.entry-meta{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    list-style:none;

    margin:0 0 18px;

    padding:0;

}

.entry-meta li{

    display:flex;

    align-items:center;

    gap:7px;

    padding:8px 14px;

    background:var(--mint-bg);

    color:var(--primary);

    border-radius:50px;

    font-size:13px;

    font-weight:600;

}

.entry-meta li a{

    color:inherit;

    text-decoration:none;

}

/* =========================================================
   CONTENT
========================================================= */

.entry-content{

    flex:1;

}

.entry-content p{

    color:var(--text-body);

    font-size:15px;

    line-height:1.8;

    margin-bottom:24px;

}

/* =========================================================
   BUTTON
========================================================= */

.more-link{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:12px 24px;

    background:var(--primary);

    color:#fff;

    text-decoration:none;

    border-radius:50px;

    font-weight:600;

    transition:.3s;

    width:fit-content;

}

.more-link:hover{

    background:var(--secondary);

    color:#fff;

    transform:translateX(4px);

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1200px){

    .entry-image{

        width:280px;

        min-width:280px;

    }

}

@media(max-width:992px){

    .entry{

        flex-direction:column;

    }

    .entry-image{

        width:100%;

        min-width:100%;

        aspect-ratio:16/9;

    }

    .entry-c{

        padding:24px;

    }

    .entry-title h2{

        font-size:24px;

    }

}

@media(max-width:768px){

    #page-title{

        padding:24px 0;

    }

    #page-title h1{

        font-size:30px;

    }

    #content .content-wrap{

        padding:40px 0;

    }

    .entry{

        border-radius:18px;

    }

    .entry-c{

        padding:20px;

    }

    .entry-title h2{

        font-size:22px;

    }

    .entry-meta{

        gap:8px;

    }

    .entry-meta li{

        font-size:12px;

        padding:6px 10px;

    }

    .entry-content p{

        font-size:14px;

    }

    .more-link{

        width:100%;

        justify-content:center;

    }

}

/* ==========================================
   PAGINATION
========================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 40px 0;
    padding: 0;
    list-style: none;
}

.pagination li{
    list-style: none;
}

.pagination li a,
.pagination li span{

    display:flex;
    align-items:center;
    justify-content:center;

    min-width:86px;
    height:46px;

    padding:0 18px;

    background:#fff;

    border:1px solid #E5E7EB;

    border-radius:12px;

    color:#374151;

    font-weight:600;

    text-decoration:none;

    transition:.3s ease;

}

.pagination li a:hover{

    background:var(--primary);

    border-color:var(--primary);

    color:#fff;

}

.pagination li.active span,
.pagination li.active a{

    background:var(--primary);

    border-color:var(--primary);

    color:#fff;

}

.pagination li.disabled span{

    opacity:.5;

    cursor:not-allowed;

    background:#F8FAFC;

}

/* Responsive */
@media(max-width:768px){

    .pagination{

        gap:8px;

    }

    .pagination li a,
    .pagination li span{

        min-width:40px;
        height:40px;
        padding:0 14px;
        font-size:14px;

    }

}

/* =========================================================
   IMAGE SHIMMER
========================================================= */

.slider-image{
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
}

.slider-image img{

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition: opacity .35s ease;
}

.slider-image img.loaded{

    opacity: 1;

}

/* =========================================================
   SHIMMER
========================================================= */

.image-shimmer{

    position: absolute;
    inset: 0;

    background: linear-gradient(
        110deg,
        #ececec 20%,
        #f8f8f8 35%,
        #ececec 50%
    );

    background-size: 250% 100%;

    animation: shimmer 1.2s linear infinite;

    transition: opacity .3s ease;

    pointer-events: none;

}

/* ketika gambar sudah muncul */

.image-shimmer.hide{

    opacity: 0;

    visibility: hidden;

}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes shimmer{

    from{

        background-position: 200% 0;

    }

    to{

        background-position: -200% 0;

    }

}