:root {
  --primary-red: #ac0000;
  --primary-red-light: #d40000;
  --primary-red-dark: #800000;
  --primary-red-alpha: rgba(172, 0, 0, 0.1);
  --primary-blue: #005491;
  --primary-blue-light: #0071c2;
  --primary-blue-dark: #003d6b;
  --primary-blue-alpha: rgba(0, 84, 145, 0.1);
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.1);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.facility-content {
  padding: 80px 0;
  background: white;
}

.facility-hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.facility-description p {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
  text-align: justify;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #005491;
  margin: 60px 0 30px;
  /* text-align: center; */
  position: relative;
}

/* .section-title::after {
        content: "";
        display: block;
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, #005491, #0066b3);
        margin: 15px auto;
        border-radius: 2px;
    } */

.section-subtitle {
  font-size: 28px;
  font-weight: 600;
  color: #005491;
  margin: 40px 0 25px;
  /* text-align: center; */
}

/* Statistics Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 60px 0;
}

.stat-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(172, 0, 0, 0.1);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-red),
    var(--primary-red-light)
  );
}

.stat-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    var(--primary-red-alpha) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(172, 0, 0, 0.15);
  cursor: pointer;
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(
    135deg,
    var(--primary-red),
    var(--primary-red-light)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(172, 0, 0, 0.3);
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  cursor: pointer;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-red);
  margin-bottom: 15px;
  display: block;
  line-height: 1;
}

.stat-label {
  /* font-size: 1.2rem; */
  font-weight: 700;
  color: #ac0000;
  /* color: #005491; */
  margin-bottom: 5px;
}

.stat-description {
  /* font-size: 0.95rem; */
  color: var(--text-light);
  line-height: 1.5;
}

/* Image Gallery */
.gallery-container {
  margin: 0px;
  padding: 0px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  border-radius: 15px;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 84, 145, 0.8),
    rgba(0, 102, 179, 0.8)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 15px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  font-size: 48px;
  color: white;
  margin-bottom: 15px;
}

.gallery-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
  /* text-align: center; */
  padding: 0 20px;
}

/* Facility Highlight */
.facility-highlight {
  background: linear-gradient(135deg, #005491, #0066b3);
  color: white;
  padding: 50px;
  border-radius: 20px;
  margin: 60px 0;
  /* text-align: center; */
  position: relative;
  overflow: hidden;
}

.facility-highlight::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 8s ease-in-out infinite;
}

.facility-highlight h3 {
  color: white;
  margin-bottom: 25px;
  font-size: 32px;
  font-weight: 600;
}

.facility-highlight p {
  margin: 0;
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

/* Facility Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 50px 0;
}

.feature-card {
  background: white;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 5px solid #ac0000;
}

.feature-card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 20px 40px rgba(0, 84, 145, 0.15); */
  box-shadow: 0 20px 40px rgba(172, 0, 0, 0.15);
  cursor: pointer;
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-red-alpha),
    rgba(172, 0, 0, 0.2)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-red);
  margin-bottom: 25px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(
    135deg,
    var(--primary-red),
    var(--primary-red-light)
  );
  color: var(--white);
  transform: scale(1.1);
  cursor: pointer;
}

.feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #ac0000;
  margin-bottom: 15px;
}

.feature-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Fancybox Custom Styling */
/* .fancybox-bg {
        background: rgba(0, 0, 0, 0.9);
    }

    .fancybox-caption {
    text-align: center; 
    color: #fff;
    font-size: 16px;
    padding: 15px;
    background: linear-gradient(135deg, #005491, #0066b3);
    }

    .fancybox-button {
        background: rgba(0, 84, 145, 0.8);
        border-radius: 50%;
    }

    .fancybox-button:hover {
        background: #005491;
    }

    */

/* Responsive Design */
@media (max-width: 768px) {
  .facility-content {
    padding: 60px 0;
  }

  .facility-hero-image {
    height: 300px;
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 28px;
    margin: 40px 0 20px;
  }

  .section-subtitle {
    font-size: 24px;
  }

  .stats-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .stat-card {
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 36px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .gallery-item img {
    height: 200px;
  }

  .facility-highlight {
    padding: 40px 30px;
  }

  .facility-highlight h3 {
    font-size: 28px;
  }

  .facility-highlight p {
    font-size: 18px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}
