/* ===========================
   KEGIATAN SECTION
   =========================== */
.kegiatan-section {
  padding: 120px 0;
  background: radial-gradient(circle at center, var(--primary-blue), var(--dark-blue));
  color: var(--white);
  overflow: hidden;
}

.kegiatan-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- HEADER --- */
.kegiatan-header {
  text-align: center;
  margin-bottom: 80px;
}

.kegiatan-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.kegiatan-label svg {
  width: 12px;
  height: 12px;
  stroke: var(--gold);
}

.kegiatan-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  margin: 10px 0 20px;
}

.kegiatan-title-accent {
  color: var(--gold);
}

.kegiatan-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--gold-medium);
  max-width: 700px;
  margin: 0 auto;
}

/* ===========================
   TIMELINE LAYOUT
   =========================== */
.timeline-container {
  position: relative;
  padding: 20px 0 0 ;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.3), transparent);
  transform: translateX(-50%);
}

/* ITEMS */
.timeline-item {
  position: relative;
  width: 50%;
  padding-right: 60px;
  margin-bottom: 20px;
}

.timeline-item.right {
  left: 50%;
  padding-right: 0;
  padding-left: 60px;
}

/* DOTS */
.timeline-dot {
  position: absolute;
  top: 36px;
  right: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dark-blue);
  border: 3px solid var(--gold);
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  animation: pulse-ring 2s ease-out infinite;
}

.timeline-dot.red {
  border-color: var(--red-accent);
}

.timeline-dot.red::after {
  border-color: rgba(198, 40, 40, 0.3);
}

.timeline-item.right .timeline-dot {
  left: -9px;
  right: auto;
}

@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===========================
   TASK 1: CARD BORDER + GLOW
   =========================== */
.timeline-content {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 32px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Pseudo-element glow effect */
.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.timeline-content:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.35);
  border-color: rgba(212, 175, 55, 0.5);
}

.timeline-content:hover::before {
  opacity: 1;
}

/* Red variant */
.timeline-content.red {
  border-color: rgba(198, 40, 40, 0.25);
}

.timeline-content.red::before {
  background: linear-gradient(90deg, transparent, rgba(198, 40, 40, 0.6), transparent);
}

.timeline-content.red:hover {
  box-shadow: 0 12px 40px rgba(198, 40, 40, 0.15), 0 0 0 1px rgba(198, 40, 40, 0.35);
  border-color: rgba(198, 40, 40, 0.5);
}

/* ===========================
   CARD INNER ELEMENTS
   =========================== */
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.timeline-badge {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.timeline-badge.gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.timeline-badge.red {
  background: rgba(198, 40, 40, 0.15);
  color: var(--red-accent);
  border: 1px solid rgba(198, 40, 40, 0.4);
}

.meta-details {
  display: flex;
  gap: 15px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gold-medium);
  flex-wrap: wrap;
}

.meta-details span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-details svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.timeline-title-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.timeline-judul {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  margin: 0;
  line-height: 1.4;
}

.timeline-deskripsi {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--gold-medium);
  margin: 0 0 24px;
}

/* PROGRAMS */
.timeline-programs {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}

.timeline-programs-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold-medium);
  margin-bottom: 12px;
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-outline {
  font-family: var(--font-body);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  transition: background 0.2s ease;
}

.tag-outline.gold {
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold);
}

.tag-outline.gold:hover {
  background: rgba(212, 175, 55, 0.1);
}

.tag-outline.red {
  border-color: rgba(198, 40, 40, 0.4);
  color: var(--red-accent);
}

.tag-outline.red:hover {
  background: rgba(198, 40, 40, 0.1);
}

/* DAMPAK */
.timeline-dampak {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin-bottom: 20px;
}

.timeline-dampak svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-dampak.gold svg {
  stroke: var(--gold);
}

.timeline-dampak.red svg {
  stroke: var(--red-accent);
}

.timeline-dampak p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gold-medium);
  margin: 0;
  line-height: 1.6;
}

.timeline-dampak strong {
  color: var(--gold);
}

.timeline-dampak.red strong {
  color: var(--red-accent);
}

/* DOKUMENTASI */
.timeline-dokumentasi {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-dokumentasi-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold-medium);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.timeline-dokumentasi-label svg {
  width: 13px;
  height: 13px;
}

/* GALLERY */
.timeline-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.timeline-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.timeline-gallery img:hover {
  transform: scale(1.05);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
  z-index: 1;
  position: relative;
}

/* ===========================
   TASK 4: LIGHTBOX (with close btn)
   =========================== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  color: var(--white);
}

.lightbox-close:hover {
  background: rgba(212, 175, 55, 0.3);
  border-color: var(--gold);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
}

/* ===========================
   TASK 5: CTA KE BLOG
   =========================== */
.timeline-cta {
  position: relative;
  margin-top: 72px;
  padding-top: 30px;
  text-align: center;
  border-top: 0;
}

.timeline-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 920px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.10),
    transparent
  );
  pointer-events: none;
}

.timeline-cta-label {
  margin: 0 0 22px;
  color: rgba(255, 245, 230, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.timeline-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 34px;
  border-radius: 999px;
  border: 1px solid rgba(225, 189, 69, 0.58);
  color: #061333;
  background:
    linear-gradient(135deg, #e1bd45 0%, #c99a16 48%, #b88712 100%);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  box-shadow:
    0 12px 28px rgba(201, 154, 22, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(78, 52, 4, 0.18);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    filter 0.35s ease;
}

.timeline-cta-btn::before {
  content: "";
  position: absolute;
  top: -90%;
  left: -55%;
  z-index: -1;
  width: 52%;
  height: 280%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: rotate(18deg) translateX(-120%);
  transition: transform 0.8s ease;
}

.timeline-cta-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 219, 102, 0.78);
  filter: brightness(1.03);
  box-shadow:
    0 16px 36px rgba(201, 154, 22, 0.22),
    0 0 18px rgba(212, 175, 55, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(78, 52, 4, 0.20);
}

.timeline-cta-btn:hover::before {
  transform: rotate(18deg) translateX(340%);
}

.timeline-cta-btn:active {
  transform: translateY(-1px);
}

.timeline-cta-btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
  stroke: #061333;
  flex: 0 0 auto;
  transition: transform 0.35s ease;
}

.timeline-cta-btn:hover svg:last-child {
  transform: translateX(4px);
}


/* ===========================
   TASK 7: RESPONSIVE
   =========================== */
@media (max-width: 992px) {
  .kegiatan-title {
    font-size: 38px;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item,
  .timeline-item.right {
    width: 100%;
    left: 0;
    padding-left: 60px;
    padding-right: 0;
  }

  .timeline-dot {
    left: 11px !important;
    right: auto !important;
  }

  .meta-details {
    flex-direction: column;
    gap: 4px;
  }
}

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

  .kegiatan-section {
    padding: 80px 0;
  }

  .kegiatan-title {
    font-size: 30px;
  }

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

  .timeline-title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .timeline-content {
    padding: 24px;
  }

  .timeline-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
