/* --- Global Container & Centering --- */
.service-container {
  max-width: 1200px;
  margin: 46px auto !important; /* Centers the whole section */
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding: 80px 20px;
}

/* --- Sidebar Styling --- */
.service-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  margin-top: 3rem;
}

.service-sidebar-title {
  font-size: 26px;
  font-weight: 700;
  color: #051747;
  margin-bottom: 30px;
}

.service-nav-links {
  list-style: none;
  padding: 0;
}

.service-nav-links li {
  border-bottom: 1px solid #eee;
}

.service-nav-links a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: #666;
  font-size: 17px;
  transition: all 0.3s ease;
}

.service-nav-links a:hover {
  color: #051747;
  font-weight: 600;
  padding-left: 5px;
}

/* --- Content Typography --- */
.service-main-title {
  font-size: 48px; /* Large heading */
  font-weight: 300;
  color: #333;
}

.service-sub-title {
  font-size: 18px;
  color: #888;
  margin-bottom: 40px;
}

.service-intro-text p {
  font-size: 20px; /* Standout body text */
  line-height: 1.8;
  color: #444;
  margin-bottom: 25px;
}

/* --- Service Card Grid --- */
.service-group-heading {
  font-size: 26px;
  color: #333;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #051747;
  display: inline-block;
}

.glass-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* 1. Base Card Style */
.glass-card.highlight-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 40px 30px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  opacity: 0.8; /* Slightly dimmed by default */
}

/* 2. The Active/Hover State */
.glass-card.highlight-glass.active,
.glass-card.highlight-glass:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.25);
  height: 26rem;
}

/* 3. The "Switch" Logic:
   When the user hovers over the GRID, find the card that has .active 
   but is NOT being hovered, and dim it back to normal.
*/
.glass-services-grid:hover .glass-card.highlight-glass.active:not(:hover) {
  opacity: 0.8;
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* Internal Glow for Active/Hover */
.glass-card.highlight-glass.active::before,
.glass-card.highlight-glass:hover::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.3) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.glass-card-link {
  text-decoration: none;
  height: 10%;
}
.glass-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #051747;
  margin-bottom: 15px;
}

.glass-card-text {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-top: 2rem;
}
/* --- Responsiveness --- */
@media (max-width: 992px) {
  .service-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-main-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the card grid area */
  }

  .service-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 50px;
  }

  .service-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .service-nav-links li {
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 0 20px;
  }

  .service-nav-links a {
    padding: 10px 0;
  }
}
