/* ==========================================================================
   Facilities Refinement Stylesheet (Pink Model School)
   ========================================================================== */

/* 1. Infrastructure Grid Layouts */
.infra-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  background: #ffffff;
  border: 1px solid rgba(30, 38, 109, 0.04);
}

.infra-gallery-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: all 0.5s ease;
}

.infra-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  background: linear-gradient(to top, rgba(30, 38, 109, 0.9) 0%, rgba(30, 38, 109, 0) 100%);
  color: #ffffff;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.infra-gallery-item:hover .infra-gallery-image {
  transform: scale(1.08);
}

.infra-gallery-item:hover .infra-gallery-overlay {
  transform: translateY(0);
}

/* 2. Digital Screen Styling (Smart Classrooms) */
.smart-class-screen {
  background: #0f142b;
  border: 8px solid #2b304c;
  border-radius: 20px;
  padding: 40px;
  color: #a5b1e1;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(200, 155, 44, 0.08);
  position: relative;
  overflow: hidden;
}

.smart-class-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(200, 155, 44, 0.03) 0%, transparent 100%);
  pointer-events: none;
}

.smart-class-screen h3 {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 20px;
}

.screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4757;
  display: inline-block;
  margin-right: 10px;
  box-shadow: 0 0 10px #ff4757;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* 3. Laboratories Columns & Chemistry layout */
.lab-science-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(30, 38, 109, 0.03);
  border: 1px solid rgba(30, 38, 109, 0.05);
  transition: all 0.3s ease;
}

.lab-science-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(30, 38, 109, 0.07);
}

.lab-accent-icon {
  font-size: 36px;
  color: var(--theme-color2);
  margin-bottom: 20px;
  text-shadow: 0 4px 10px rgba(200, 155, 44, 0.15);
}

/* 4. Elegant Library Reading Accents */
.library-quote-box {
  background: #faf5eb;
  border-left: 5px solid var(--theme-color2);
  padding: 35px;
  border-radius: 0 16px 16px 0;
  position: relative;
  margin-bottom: 30px;
}

.library-quote-box i {
  position: absolute;
  right: 30px;
  bottom: 20px;
  font-size: 80px;
  color: rgba(200, 155, 44, 0.05);
  pointer-events: none;
}

/* 5. Dynamic Diagonal Spacing (Sports Facilities) */
.sports-banner-angled {
  background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color2) 100%);
  color: #ffffff;
  padding: 80px 0;
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

.sports-grid-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.sports-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 6. Transport Route Lines */
.route-stop-line {
  position: relative;
  padding-left: 40px;
  margin-bottom: 25px;
}

.route-stop-line::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 2px;
  height: calc(100% + 20px);
  background: var(--theme-color2);
}

.route-stop-line:last-child::before {
  display: none;
}

.route-stop-circle {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--theme-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 7. Security Trust Shields */
.safety-shield-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(30, 38, 109, 0.04);
  border: 1px solid rgba(30, 38, 109, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.safety-shield-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(30, 38, 109, 0.07);
}

.safety-shield-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(30, 38, 109, 0.04);
  color: var(--theme-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.safety-shield-box:hover .safety-shield-icon {
  background: var(--theme-color2);
  color: #ffffff;
}
