/* ==========================================================================
   PPCM Theme — Infrastructure
   ========================================================================== */

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.facility-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.facility-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(27, 42, 74, 0.08);
  color: var(--color-primary);
  font-size: 22px;
  margin-bottom: 12px;
}

.facility-card__desc { margin: 0; color: var(--color-text-muted); }

/* ---- Hero carousel background (slides behind overlay + text) ---- */
.infra-hero-carousel .infra-hero-carousel__bg {
  position: absolute;
  inset: 0;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--color-primary);
  z-index: 0;
}

.infra-hero-carousel .infra-hero-carousel__bg .infra-carousel__track {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.infra-hero-carousel__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.85), rgba(27, 42, 74, 0.65));
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.18);
}

.infra-hero-carousel .infra-hero-carousel__bg .infra-carousel__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
}

.infra-hero-carousel .infra-hero-carousel__bg .infra-carousel__progress-fill {
  background: var(--color-accent);
}

.infra-hero-carousel__nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.infra-hero-carousel__nav .infra-carousel__dots {
  padding: 0;
}

.infra-hero-carousel__nav .infra-carousel__dot {
  border-color: rgba(255, 255, 255, 0.7);
}

.infra-hero-carousel__nav .infra-carousel__dot.is-active,
.infra-hero-carousel__nav .infra-carousel__dot:hover {
  background: var(--color-white);
  border-color: var(--color-white);
}

/* ---- Gallery carousel (contained, further down the page) ---- */
/* Infrastructure image carousel */
.infra-carousel {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.infra-carousel__track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: grid;
}

.infra-carousel__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 0;
  pointer-events: none;
}

.infra-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}

.infra-carousel__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.infra-carousel__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.10), rgba(255, 107, 53, 0.10));
  font-size: 3rem;
  color: rgba(27, 42, 74, 0.25);
}

.infra-carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: var(--color-white);
  font-size: 0.9rem;
  z-index: 2;
}

/* Arrows */
.infra-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
}

.infra-carousel__arrow:hover {
  background: var(--color-white);
  transform: translateY(-50%) scale(1.08);
}

.infra-carousel__arrow--prev { left: 14px; }
.infra-carousel__arrow--next { right: 14px; }

/* Dot navigation */
.infra-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
}

.infra-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.infra-carousel__dot.is-active,
.infra-carousel__dot:hover {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* Progress bar */
.infra-carousel__progress {
  height: 3px;
  background: rgba(27, 42, 74, 0.1);
}

.infra-carousel__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
}

/* Software/tool badge pills */
.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-pill {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-weight: 800;
  color: var(--color-primary);
}

@media (max-width: 992px) {
  .facility-grid { grid-template-columns: 1fr; }
}

.infra-hero-carousel {
  touch-action: pan-y;
}

@media (max-width: 768px) {
  .infra-hero-carousel__nav { bottom: 14px; }
}

@media (max-width: 640px) {
  .infra-carousel__arrow { width: 36px; height: 36px; font-size: 0.85rem; }
  .infra-carousel__arrow--prev { left: 8px; }
  .infra-carousel__arrow--next { right: 8px; }
  .infra-carousel__dots { gap: 6px; padding: 10px 0; }
  .infra-carousel__dot { width: 8px; height: 8px; }
  .infra-hero-carousel__nav { bottom: 10px; }
  .infra-hero-carousel__nav .infra-carousel__dot { width: 8px; height: 8px; }
}

@media (max-width: 576px) {
  .infra-carousel__caption {
    font-size: 0.8rem;
    padding: 10px 14px;
  }
}

