* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  min-height: 100vh;
  position: relative;
  color: #ffffff; /* Default text color for body */
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.08)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.08)"/><circle cx="90" cy="30" r="0.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
  z-index: -1;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.navbar-brand {
  font-size: 28px;
  font-weight: 800;
  color: #1e3c72 !important;
  text-shadow: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cspc-logo-nav {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #1e3c72, #2a5298);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.navbar-nav .nav-link {
  color: #1e293b !important;
  font-weight: 600;
  margin: 0 15px;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: #1e3c72 !important;
  background: rgba(30, 60, 114, 0.1);
  transform: translateY(-2px);
}

.nav-link.active {
  color: #1e3c72 !important; /* Active link color */
  background: rgba(30, 60, 114, 0.15); /* Active link background */
}

.login-btn {
  background: linear-gradient(45deg, #1e3c72, #2a5298) !important;
  color: white !important;
  padding: 12px 25px;
  border-radius: 16px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 60, 114, 0.5);
  background: rgba(30, 60, 114, 0.9) !important;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 120px 20px;
  color: white;
  position: relative;
  overflow: hidden;
  background: transparent; /* Hero background is handled by body */
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="20" fill="rgba(255,255,255,0.08)"/><circle cx="70" cy="20" r="10" fill="rgba(255,255,255,0.12)"/></svg>');
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
  line-height: 1.2;
  color: white; /* Ensure hero heading is white */
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 50px;
  opacity: 0.95;
  animation: fadeInUp 10s ease-out 0.2s both;
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95); /* Ensure hero paragraph is white */
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: rgba(255, 255, 255, 1);
}

.breadcrumb-nav .separator {
  color: rgba(255, 255, 255, 0.5);
}

/* Filters Section */
.filters-section {
  padding: 40px 0;
  background: rgba(255, 255, 255, 0.9); /* Light background for filters */
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(30, 60, 114, 0.05); /* Light blue background */
  border: 2px solid rgba(30, 60, 114, 0.2);
  color: #1e3c72; /* Dark blue text */
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(45deg, #1e3c72, #2a5298);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

/* Facilities Grid */
.facilities-section {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 2.8rem;
  color: #1e293b;
  margin-bottom: 20px;
  font-weight: 800;
}

.section-header p {
  color: #64748b;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.facility-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.facility-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.facility-image {
  height: 220px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.facility-image::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.8s ease;
}

.facility-card:hover .facility-image::before {
  animation: shimmer 2s ease-in-out;
}

.facility-content {
  padding: 30px;
}

.facility-content h3 {
  font-size: 1.4rem;
  color: #1e293b;
  margin-bottom: 12px;
  font-weight: 700;
}

.facility-content p {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 1rem;
}

.facility-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.feature-tag {
  background: rgba(30, 60, 114, 0.1);
  color: #1e3c72;
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(30, 60, 114, 0.2);
}

.book-now-btn {
  background: linear-gradient(45deg, #1e3c72, #2a5298);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 1rem;
}

.book-now-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
}

.availability-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(34, 197, 94, 0.95);
  color: white;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.availability-indicator.busy {
  background: rgba(239, 68, 68, 0.95);
}

/* Stats Section */
.stats-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-item {
  text-align: center;
  padding: 30px 25px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.stat-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #1e3c72;
  margin-bottom: 8px;
}

.stat-label {
  color: #64748b;
  font-weight: 600;
  font-size: 1rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 80px 0 30px;
}

.footer-content {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 50px;
  margin-bottom: 40px;
}

.footer-section h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.footer-section a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}

.footer-section a:hover {
  color: #fff;
  transform: translateX(8px);
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: #2a5298;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.footer-social a {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
  background: #2a5298;
  color: white;
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  color: #94a3b8;
  font-size: 1rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .filter-tabs {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .facility-content {
    padding: 25px 20px;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-social {
    justify-content: center;
  }

  .navbar-nav .nav-link {
    margin: 0 8px;
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 80px 20px;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .facilities-section,
  .stats-section {
    padding: 60px 0;
  }

  .footer {
    padding: 60px 0 20px;
  }
}

/* Loading states */
.facility-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.facility-card:nth-child(1) {
  animation-delay: 0.1s;
}
.facility-card:nth-child(2) {
  animation-delay: 0.2s;
}
.facility-card:nth-child(3) {
  animation-delay: 0.3s;
}
.facility-card:nth-child(4) {
  animation-delay: 0.4s;
}
.facility-card:nth-child(5) {
  animation-delay: 0.5s;
}
.facility-card:nth-child(6) {
  animation-delay: 0.6s;
}
.book-now-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  text-decoration: none;
}