:root {
  --primary-color: #65737e;
  --primary-hover: #4f5b66;
  --secondary-color: #343d46;
  --text-color: #100e09; /* premium black */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --text-secondary--: #333333 /* dark charcoal */
  --main-color--: #e8eae6; /* pacific pearl */
  --body-color--: #dedddb; /* spacial white */
}

body {
  line-height: 1.5;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #f0f2f5, #f0f2f5);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
}
p,
span,
a,
li {
  font-family: "Lora", sans-serif;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  height: 100px;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  clip-path: polygon(0 0, 100% 0, 100% 20%, 50% 100%, 50% 100%, 0 20%);
}

.nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 2.5rem;
  z-index: 11;
  justify-content: center;
  align-items: center;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: white;
  font-size: 1.125rem;
  font-weight: bold;
  font-family: "Lora", serif;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Underline (center-out grow animation) */
.nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 2.5px;
  background-color: white;
  transition: transform 0.4s ease;
}

/* Hover glow + underline */
.nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5),
    0 0 10px rgba(255, 255, 255, 0.4), 0 0 18px rgba(255, 255, 255, 0.3);
}

.nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Active link (persistent underline and glow) */
.nav a.active {
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5),
    0 0 10px rgba(255, 255, 255, 0.4), 0 0 18px rgba(255, 255, 255, 0.3);
}

.nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Temporarily hide active underline when hovering another */
.nav:hover a.active:not(:hover) {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.nav:hover a.active:not(:hover)::after {
  transform: translateX(-50%) scaleX(0);
}

/* Hamburger (Hidden by default) */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.hamburger:hover {
  color: #ffffff;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5),
    0 0 10px rgba(255, 255, 255, 0.4), 0 0 18px rgba(255, 255, 255, 0.3);
}

.menu-link {
  display: block;
  padding: 12px 20px;
  color: #343d46;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  opacity: 1;
  position: relative;
  z-index: 1;
}

/* Hover effect */
.menu-link:hover {
  background-color: rgba(238, 244, 255, 0.6);
  color: #2c3e50;
  transform: translateX(5px);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Active state - same as hover */
.menu-link.active {
  background-color: rgba(238, 244, 255, 0.6);
  color: #2c3e50;
  transform: translateX(5px);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Modal base styles */
.customMenuModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  z-index: 999;
  justify-content: center;
  align-items: center;
  animation: fadeOut 0.3s forwards;
}

.customMenuModal.show {
  display: flex;
  animation: fadeIn 0.3s forwards;
}

/* Modal content box */
.menuContent {
  background: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  width: 90%;
  max-width: 320px;
  animation: slideUp 0.3s ease-out;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
}

/* Logo */
.menu-logo {
  width: 100px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(1px 1px 4px rgba(0, 0, 0, 0.6));
}

/* Links */
.menuContent a {
  display: block;
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  margin: 1rem 0;
}

/* Close button */
.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive - Hide nav links, show hamburger */
@media (max-width: 768px) {
  .nav a {
    display: none;
  }

  .hamburger {
    display: block;
  }
}
/* Video Banner */
.video-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#video-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 1;
  border-bottom: 1px solid var(--primary-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* Shadow at bottom */
}

.text-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  z-index: 3;
}

.text-container h1,
.text-container p {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.video-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6),
    rgba(20, 20, 20, 0.4)
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

.video-overlay h1,
.video-overlay p {
  z-index: 3;
}

.feature-group {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 100%;
}

.feature-circle {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid white;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}

.feature-circle:hover {
  width: 220px;
  height: 140px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.feature-circle a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.3rem;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.feature-circle i {
  font-size: 1.6rem;
  color: white;
  margin-bottom: 5px;
}

.feature-text {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  text-align: center;
  padding: 0 10px;
}

.feature-circle:hover .feature-text {
  opacity: 1;
  max-height: 100px;
  margin-top: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease-out forwards;
  opacity: 0;
}

/* Guide Section Main */
.guide-section {
  color: #333;
  animation: fadeIn 1.5s ease;
}

/* Heading & Subtitles */
.steps-container h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #343d46;
}

.subtitle {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

/* Step Cards */
.card-step {
  display: flex;
  align-items: center; /* vertically center content */
  justify-content: flex-start;
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 5px solid #343d46;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: transform 0.3s ease;

  /* make all cards equal height */
  min-height: 120px; /* you can adjust depending on your tallest card */
  height: 100%;
}

/* Step Number Icon */
.step-icon {
  width: 40px;
  height: 40px;
  background-color: #65737e;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.step-icon i {
  font-size: 1.2rem;
}

/* Text Inside Steps */
.card-step p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Video Placeholder */
.video-guide-container {
  width: 100%;
  min-height: 300px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: #aaa;
  padding: 20px;
}

/* Conclusion */
.conclusion {
  margin-top: 30px;
}

.text-shadow {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.icon-glow:hover {
  text-shadow: 1px 1px 6px rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
  transition: 0.3s ease;
}

.bg-custom-dark {
  background-color: #343d46 !important;
  color: #fff;
}

.border-custom-dark {
  border-color: #343d46 !important;
}

.social-icon {
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon i {
  color: #ffffff; /* White icons */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.developer-list a {
  transition: text-shadow 0.3s ease, transform 0.3s ease;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

.developer-list a:hover {
  text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.developer-title {
  background: #343d46;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.info-link:hover {
  text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: text-shadow 0.3s ease;
}

/* .bg-custom-secondary {
  box-shadow: 0 2px 4px rgba(52, 61, 70, 0.6), 0 8px 16px rgba(52, 61, 70, 0.4);
  background-color: transparent;
} */
/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.rotating {
  animation: rotate 2s linear infinite;
}

.cemetery-stats {
  justify-content: center;
  gap: 3rem;
  margin: 80px auto;
  flex-wrap: wrap;
  padding: 80px 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.15);
  border: 6px solid white; /* Added white border */
  border-radius: 50px;
  padding: 60px 30px 30px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  width: 240px;
  position: relative;
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
}

.stat-card:hover {
  transform: translateY(-5px); /* subtle hover effect */
}

.stat-card p {
  font-family: "Playfair Display", sans-serif;
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 10;
  border: 5px solid #fff;
  background-color: var(--secondary-color);
  transform-style: preserve-3d;
  transition: transform 0.4s ease-in-out;
  backface-visibility: hidden;
  cursor: pointer;
  transition: transform 0.4s ease-in-out, background-color 0.4s ease-in-out;
  font-size: 25px;
}

.icon-wrapper:hover {
  transform: translateX(-50%) rotateY(180deg);
}
.icon-wrapper i {
  transform: rotateY(180deg);
  transition: color 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.icon-wrapper:hover i {
  color: var(--secondary-color);
}
.text-wrapper h2 {
  font-size: 34px;
  margin-top: 10px;
  color: #343d46;
}

.text-wrapper p {
  font-size: 16px;
  margin-top: 5px;
  color: #555;
  font-weight: 500;
}

.icon-wrapper::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite;
  z-index: 0;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

.custom-gap {
  --bs-gutter-x: 1rem; /* default is 1.5rem for gx-3, 3rem for gx-5 */
}

/* MAIN CONTENT CONTAINER */
.main-content {
  padding: 40px 20px; /* Reduced from 100px to 40px */
  background-image: url("../bg-imgs/gray-bg.png"); /* update with actual path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center contents vertically */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 -8px 24px rgba(0, 0, 0, 0.2);
}

/* MAP CAPTION STYLING */
.map-caption {
  padding: 30px 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 1000px; /* Increased from 800px to 1000px */
  margin-bottom: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.851);
}

.map-caption .map-title {
  font-size: 28px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 15px;
}

.map-caption .map-subtitle {
  font-size: 16px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

/* MAP CONTAINER STYLING */
#MapContainer {
  width: 100%;
  max-width: 1100px;
  height: 600px;
  background: #f8f9fa;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Darker, visible shadow */
  overflow: hidden;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
}

.custom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.65);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s ease-in-out forwards;
}

.custom-modal.show {
  display: flex;
}

.custom-modal.hide {
  animation: fadeOut 0.4s ease-in-out forwards;
}

.custom-modal-content {
  background: linear-gradient(to bottom, #f0f2f5, #dde6f5);
  padding: 30px;
  border-radius: 16px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  animation: popIn 0.4s ease-out forwards;
}

.custom-modal-content.hide-content {
  animation: popOut 0.3s ease-in forwards;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  z-index: 1001;
}

.close-btn:hover {
  color: #000;
}

.filter-drop {
  filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.4));
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes popOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.9);
    opacity: 0;
  }
}
/* === Modal Overlay === */
.cemetery-custom-modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cemetery-custom-modal.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* === Modal Content Box === */
.cemetery-modal-content {
  position: relative;
  background-color: #fff;
  color: #333;
  margin: 5% auto;
  padding: 30px;
  width: 90%;
  max-width: 700px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* === Modal Heading === */
.cemetery-modal-content h3 {
  margin-top: 0;
  font-size: 24px;
  color: #343d46;
}

/* === Modal Close Button === */
.cemetery-modal-content .cemetery-close {
  position: absolute;
  top: 12px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.cemetery-modal-content .cemetery-close:hover {
  color: #343d46;
}

.cemetery-modal-subtitle {
  font-size: 18px;
  margin-top: -10px;
  color: #65737e;
  font-style: italic;
}

.cemetery-modal-lead {
  font-weight: 500;
  color: #343d46;
  margin-bottom: 20px;
}

.alert-box {
  background: #eef4ff;
  border-left: 5px solid #343d46;
  padding: 15px;
  margin: 20px 0;
  border-radius: 6px;
  font-size: 15px;
  color: #343d46;
}

.alert-box ul {
  margin: 10px 0;
  padding-left: 20px;
}

.fee-table {
  overflow-x: auto;
  margin: 20px 0;
}

.fee-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.fee-table th,
.fee-table td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left;
}

.fee-table th {
  background-color: #343d46;
  color: white;
}

.cemetery-modal-footer {
  text-align: center;
  margin-top: 30px;
  font-style: italic;
  color: #343d46;
}
.contact-link {
  font-weight: 600;
  color: #343d46;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #65737e;
}
.contact-details {
  background: #eef4ff;
  border-left: 5px solid #343d46;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 6px;
  font-size: 15px;
  color: #343d46;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-details i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
  color: #343d46;
}

.contact-details strong {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-details a {
  color: #343d46;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #65737e;
}

.accordion {
  margin-top: 20px;
}

.accordion-item {
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: #f4f7fa;
  border-left: 5px solid #343d46;
}

.accordion-button {
  background: #eef4ff;
  color: #343d46;
  cursor: pointer;
  padding: 15px 20px;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.3s ease;
  position: relative;
}

.accordion-button::after {
  content: "\25BC";
  font-size: 13px;
  position: absolute;
  right: 20px;
  transition: transform 0.3s;
}

.accordion-button.active::after {
  transform: rotate(180deg);
}

.accordion-button:hover {
  background-color: #f4f7fa;
}

.accordion-content {
  display: none;
  padding: 15px 20px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  transition: max-height 0.4s ease, padding 0.3s ease;
}