/*--------------------------------------------------------------
# Impact Story (Editorial) Layout
# Modeled on thr2025.yayasanhasanah.org impact story pages
--------------------------------------------------------------*/
.impact-story-page {
  background-color: #eaf0f8;
}

.article {
  padding-top: 0;
}

.article-hero-banner {
  position: relative;
  padding: 160px 0 64px;
  background:
    radial-gradient(1000px 420px at 88% -12%, rgba(0, 165, 215, 0.14), transparent 60%),
    radial-gradient(800px 380px at 4% 108%, rgba(63, 158, 147, 0.12), transparent 55%),
    linear-gradient(180deg, #dbe7f8 0%, #eaf0f8 100%);
  overflow: hidden;
}

.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
  margin-bottom: 18px;
}

.article-breadcrumb:hover {
  text-decoration: underline;
}

/*--------------------------------------------------------------
# Split Hero
--------------------------------------------------------------*/
.article-hero-split {
  margin-top: 6px;
}

.article-group {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.glass-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 34px 34px 36px;
  box-shadow: 0 12px 40px rgba(20, 40, 80, 0.06);
}

.article-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 40px;
  padding: 6px 18px 6px 6px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 78%);
  text-decoration: none;
  color: var(--heading-color);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.25s ease-in-out;
}

.article-cat-chip img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.article-cat-chip:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.article-title {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.08;
  color: var(--heading-color);
  margin: 20px 0 14px;
  letter-spacing: -0.01em;
}

.article-excerpt {
  font-size: 16.5px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 12%);
  margin-bottom: 0;
}

.article-video-box {
  position: relative;
  margin-top: 26px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 14px 34px rgba(10, 30, 60, 0.18);
}

.article-video-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-video-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  background: rgba(8, 22, 45, 0.32);
  transition: background 0.25s ease-in-out;
}

.play-overlay:hover {
  background: rgba(8, 22, 45, 0.45);
}

.play-btn {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease-in-out;
}

.play-overlay:hover .play-btn {
  transform: scale(1.08);
}

.play-btn i {
  font-size: 34px;
  margin-left: 3px;
}

.play-label {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.article-hero-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  min-height: 430px;
  margin: 0;
  box-shadow: 0 14px 40px rgba(10, 30, 60, 0.10);
}

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

.base-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: 82%;
  background: rgba(10, 20, 40, 0.55);
  color: #ffffff;
  font-size: 12.5px;
  line-height: 1.45;
  padding: 8px 12px;
  border-radius: 8px;
  font-style: italic;
}

/*--------------------------------------------------------------
# Article Body
--------------------------------------------------------------*/
.article-content {
  max-width: 800px;
  margin: 52px auto 0;
}

.article-content p {
  font-size: 17px;
  line-height: 1.92;
  color: color-mix(in srgb, var(--default-color), transparent 8%);
  text-align: justify;
  margin-bottom: 22px;
}

.article-chapter {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.3;
  color: var(--heading-color);
  margin: 40px 0 10px;
}

.article-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 36px 0;
}

.article-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.amp-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: 86%;
  background: rgba(10, 20, 40, 0.55);
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.5;
}

.article-pullquote {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 26px;
  line-height: 1.5;
  font-style: italic;
  color: var(--heading-color);
  margin: 44px 0 40px;
  padding: 26px 0 26px 28px;
  border-left: 3px solid var(--accent-color);
}

.article-pullquote .quote-auth {
  font-family: "Poppins", sans-serif;
  display: block;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-color);
  font-style: normal;
}

/*--------------------------------------------------------------
# Divider with Icon
--------------------------------------------------------------*/
.article-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 800px;
  margin: 60px auto 44px;
}

.article-divider::before,
.article-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 82%);
}

.article-divider .div-icon {
  flex: 0 0 auto;
  color: var(--accent-color);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Stats Strip
--------------------------------------------------------------*/
.article-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 56px;
  margin: 48px 0;
  padding: 32px 24px;
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 12px;
  text-align: center;
}

.article-stat .stat-num {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1.1;
}

.article-stat .stat-label {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/*--------------------------------------------------------------
# Discover More Impact Stories
--------------------------------------------------------------*/
.stories-section {
  background-color: #e3ecf7;
  padding: 68px 0 84px;
  overflow: hidden;
}

.stories-heading {
  text-align: center;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 34px;
  color: var(--heading-color);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.stories-sub {
  text-align: center;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 40px;
}

.story-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 22px;
}

.story-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 72%);
  background: var(--surface-color);
  color: var(--heading-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease-in-out;
}

.story-nav button:hover {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

.story-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

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

.story-slide {
  flex: 0 0 calc(50% - 9px);
  scroll-snap-align: start;
}

.story-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-color);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  transition: all 0.25s ease-in-out;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 165, 215, 0.16);
}

.story-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.story-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-card-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-color);
  margin-bottom: 10px;
  display: block;
}

.story-card-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--heading-color);
  margin-bottom: 18px;
}

.btn-read {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-color);
}

.btn-read .rd-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease-in-out;
}

.story-card:hover .btn-read .rd-icon {
  background: var(--accent-color);
  color: #ffffff;
}

/*--------------------------------------------------------------
# Project Gallery Section
--------------------------------------------------------------*/
.gallery-section {
  padding: 68px 0 28px;
}

.gallery-heading {
  text-align: center;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 34px;
  color: var(--heading-color);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.gallery-sub {
  text-align: center;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 40px;
}

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

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  box-shadow: 0 10px 26px rgba(10, 30, 60, 0.12);
  transform: rotate(-1.2deg);
  transition: transform 0.35s ease-in-out, box-shadow 0.35s ease-in-out;
}

.gallery-item:nth-child(odd) {
  transform: rotate(-1.2deg);
}

.gallery-item:nth-child(even) {
  transform: rotate(1.1deg);
}

.gallery-item:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 18px 42px rgba(0, 165, 215, 0.28);
  z-index: 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease-in-out;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 24, 54, 0) 40%, rgba(9, 24, 54, 0.78) 100%);
  transition: background 0.35s ease-in-out;
}

.gallery-item:hover::after {
  background: linear-gradient(180deg, rgba(9, 24, 54, 0.15) 0%, rgba(9, 24, 54, 0.82) 100%);
}

.gallery-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #ffffff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.gallery-item:hover .gallery-zoom {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 14px;
  }
}

/*--------------------------------------------------------------
# Research Team Section
--------------------------------------------------------------*/
.team-section {
  padding: 68px 0 84px;
}

.team-heading {
  text-align: center;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 34px;
  color: var(--heading-color);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.team-sub {
  text-align: center;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 40px;
}

.team-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 165, 215, 0.16);
}

.team-card-photo {
  position: relative;
  text-align: center;
  padding: 40px 20px 18px;
  overflow: hidden;
}

.team-card-photo::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 165, 215, 0.16), rgba(63, 158, 147, 0.12));
  z-index: 0;
}

.team-card-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  width: 158px;
  height: 158px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 165, 215, 0.45);
  z-index: 1;
}

.team-person {
  position: relative;
  z-index: 2;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  border: 5px solid var(--surface-color);
  box-shadow: 0 12px 28px rgba(0, 165, 215, 0.28);
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.team-card:hover .team-person {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 16px 34px rgba(0, 165, 215, 0.36);
}

.team-card-body {
  padding: 20px 22px 22px;
  text-align: center;
}

.team-card-name {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 5px;
}

.team-card-role {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 992px) {
  .article-group {
    margin-bottom: 26px;
  }
}

@media (max-width: 768px) {
  .article {
    padding-top: 140px;
  }

  .glass-card {
    padding: 26px 22px 28px;
  }

  .article-hero-img {
    min-height: 280px;
  }

  .article-media img {
    height: 220px;
  }

  .story-slide {
    flex: 0 0 100%;
  }

  .story-card img {
    height: 200px;
  }

  .article-content p {
    font-size: 16px;
  }
}