/* ===== PAGE HERO BANNER ===== */
#page-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--iron);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  filter: saturate(0.3);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    108deg,
    rgba(10, 10, 12, 0.96) 0%,
    rgba(10, 10, 12, 0.7) 55%,
    rgba(10, 10, 12, 0.3) 100%
  );
}
[data-theme="light"] .page-hero-overlay {
  background: linear-gradient(
    108deg,
    rgba(242, 240, 236, 0.97) 0%,
    rgba(242, 240, 236, 0.7) 55%,
    rgba(242, 240, 236, 0.1) 100%
  );
}

/* Diagonal slash accent */
.page-hero-slash {
  position: absolute;
  top: 0;
  right: 28%;
  bottom: 0;
  z-index: 2;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(201, 85, 39, 0.3) 30%,
    rgba(255, 123, 0, 0.3) 70%,
    transparent
  );
  transform: skewX(-12deg);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 80px;
  width: 100%;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}
.breadcrumb .bsep {
  color: var(--gold);
}
.breadcrumb .bcurrent {
  color: var(--text);
}

.page-hero-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(42px, 5.5vw, 90px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.3s forwards;
}
.page-hero-title .gold {
  color: var(--gold);
}
.page-hero-title .outline {
  -webkit-text-stroke: 1px var(--text3);
  color: transparent;
}
[data-theme="light"] .page-hero-title .outline {
  -webkit-text-stroke: 1px var(--text);
}

.page-hero-sub {
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.7;
  color: var(--text2);
  max-width: 520px;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.7s forwards;
}

/* Gold bar at bottom of hero */
.page-hero-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold) 20%,
    var(--gold2) 50%,
    var(--gold) 80%,
    transparent
  );
}

/* ===== FILTER NAV ===== */
#filter-nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border-gold);
  position: sticky;
  top: 0;
  z-index: 100;
}
.filter-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 24px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  color: var(--text);
  border-bottom-color: rgba(255, 123, 0, 0.4);
}
.filter-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.filter-btn .f-count {
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: 8px;
  padding: 2px 6px;
  color: var(--text3);
  transition: all 0.2s;
}
.filter-btn.active .f-count {
  background: rgba(255, 123, 0, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== MAIN SECTION ===== */
#facilities-main {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.sec {
  max-width: 1920px;
  margin: 0 auto;
  padding: 80px 80px;
}

/* ===== SECTION HEADER ===== */
.fac-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 10px;
}
.sec-tag .tline {
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.sec-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(26px, 2.8vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--text);
}
.sec-title .gold {
  color: var(--gold);
}

.sec-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text2);
  font-weight: 400;
  max-width: 500px;
  text-align: right;
}

/* ===== FEATURED INSTITUTIONS (large cards, top row) ===== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.inst-card-featured {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  cursor: pointer;
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  height: 340px;
}
.inst-card-featured:hover {
  border-color: var(--gold);
  box-shadow:
    0 20px 56px rgba(255, 123, 0, 0.18),
    0 0 0 1px rgba(255, 123, 0, 0.12);
}

.inst-card-featured .inst-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.6);
  transition:
    transform 0.6s ease,
    filter 0.4s ease;
}
.inst-card-featured:hover .inst-img {
  transform: scale(1.06);
  filter: brightness(0.7) saturate(0.8);
}

.inst-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 24px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, transparent 100%);
}

.inst-cat-badge {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.inst-name {
  font-family: "Rajdhani", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.inst-tagline {
  font-size: 12px;
  color: rgba(200, 205, 212, 0.7);
  line-height: 1.4;
}

/* Status pill */
.inst-status {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(10, 10, 12, 0.85);
  border: 1px solid var(--border-strong);
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
}
.inst-status .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2ecc71;
  animation: breathe 2.2s ease-in-out infinite;
}
.inst-status .dot.orange {
  background: var(--gold);
}
@keyframes breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Corner tag */
.inst-corner-tag {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  padding: 5px 18px 5px 12px;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: #000;
  text-transform: uppercase;
  font-weight: 700;
}

/* ===== STANDARD GRID CARDS ===== */
.inst-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 64px;
}

.inst-card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% 100%,
    14px 100%,
    0 calc(100% - 14px)
  );
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
  cursor: pointer;
}
.inst-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255, 123, 0, 0.15);
}

.inst-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.6);
  transition:
    transform 0.5s ease,
    filter 0.35s ease;
}
.inst-card:hover .inst-card-img {
  transform: scale(1.05);
  filter: brightness(0.75) saturate(0.85);
}

.inst-card-body {
  padding: 20px 18px 22px;
}

.inst-card-cat {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.inst-card-name {
  font-family: "Rajdhani", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.inst-card-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.55;
}

.inst-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.inst-card-meta {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--text3);
  text-transform: uppercase;
}

.inst-card-arrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  font-family: "Space Mono", monospace;
  transform: translateX(-4px);
  opacity: 0;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.inst-card:hover .inst-card-arrow {
  transform: translateX(0);
  opacity: 1;
}

/* ===== CATEGORY DIVIDER ===== */
.cat-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 56px 0 36px;
}
.cat-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-gold), transparent);
}
.cat-divider-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.cat-divider-icon {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

/* ===== LIST-STYLE CARDS (for utilities & small facilities) ===== */
.inst-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.inst-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.inst-list-item:hover {
  border-color: var(--gold);
  background: var(--card-hover);
  transform: translateX(4px);
}

.inst-list-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 123, 0, 0.15),
    rgba(255, 123, 0, 0.04)
  );
  border: 1px solid rgba(255, 123, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(
    0 0,
    calc(100% - 6px) 0,
    100% 6px,
    100% 100%,
    6px 100%,
    0 calc(100% - 6px)
  );
}
.inst-list-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}

.inst-list-text {
}
.inst-list-name {
  font-family: "Rajdhani", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.inst-list-meta {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-top: 3px;
}

.inst-list-arrow {
  margin-left: auto;
  font-size: 10px;
  color: var(--gold);
  font-family: "Space Mono", monospace;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s;
}
.inst-list-item:hover .inst-list-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== INFO STRIP ===== */
#info-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  position: relative;
  overflow: hidden;
}
.info-strip-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 56px 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.info-block {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.info-block:last-child {
  border-right: none;
}
.info-block-num {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.info-block-label {
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text2);
  font-weight: 600;
}

/* ===== CTA BAND ===== */
#cta-band {
  background: var(--iron);
  border-top: 1px solid var(--border-gold);
  position: relative;
  overflow: hidden;
}
.cta-bg-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(201, 117, 39, 0.06) 0%,
    rgba(201, 125, 39, 0.02) 50%,
    transparent 100%
  );
}

[data-theme="light"] #cta-band {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

[data-theme="light"] .cta-bg-grad {
  background: linear-gradient(
    90deg,
    rgba(201, 117, 39, 0.06) 0%,
    rgba(201, 125, 39, 0.02) 50%,
    transparent 100%
  );
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1920px;
  margin: 0 auto;
  padding: 64px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-h {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(22px, 2.2vw, 38px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
}
.cta-h .gold {
  color: var(--gold);
}
.cta-p {
  font-size: 15px;
  color: var(--text2);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--gold);
  color: #000;
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: all 0.25s;
}
.btn-primary:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 123, 0, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 36px;
  background: #484848;
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: all 0.25s;
}
.btn-outline:hover {
  background: #7e7e7e;
  transform: translateY(-2px);
}
.cta-btns {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .inst-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1100px) {
  .sec {
    padding: 64px 40px;
  }
  .filter-inner {
    padding: 0 40px;
  }
  .info-strip-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px;
  }
  .info-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 40px;
  }
  .page-hero-content {
    padding: 60px 40px;
  }
}
@media (max-width: 768px) {
  .page-hero-content {
    padding: 48px 24px;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .inst-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .inst-list-grid {
    grid-template-columns: 1fr;
  }
  .fac-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .sec-sub {
    text-align: left;
  }
}
@media (max-width: 560px) {
  .inst-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.anim {
  opacity: 0;
}
.anim.visible {
  animation: fadeUp 0.65s ease forwards;
}
