/* ================================================
   programs.css — Spursbase Foundation
   Programs page only. Prefix: prg-
   Brand: #2b2b88 blue | #ff6633 orange
   ================================================ */

.prg-page {
  display: flex;
  min-height: calc(100vh - 80px);
  position: relative;
  font-family: 'Blauer Neue', Arial, Helvetica, sans-serif;
  /* Background set directly here — no fixed overlays */
  background: url("../img/bg.jpg") center / cover no-repeat;
  background-attachment: scroll;
}

/* Single dark overlay using a pseudo-element — position absolute, not fixed */
.prg-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 30, 0.72);
  z-index: 0;
  pointer-events: none;
}

/* ── SIDEBAR ── */
.prg-sidebar {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 200px;
  flex-shrink: 0;
  height: 100vh;
  background: rgba(43, 43, 136, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  padding: 50px 24px 40px;
  gap: 6px;
}

.prg-sidebar__tab {
  cursor: pointer;
  padding: 12px 0;
  display: block;
  position: relative;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s;
}

.prg-sidebar__tab h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
  margin: 0;
}

.prg-sidebar__tab--active h2 { color: #fff; }
.prg-sidebar__tab--active { border-bottom-color: #ff6633; }

/* ── MAIN ── */
.prg-main {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 40px 36px;
  overflow-y: auto;
}

.prg-section { display: none; }
.prg-section--active { display: block; }

.prg-section__heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 22px;
}

/* ── GRID — 2 fixed cols, centered ── */
.prg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  gap: 16px;
  justify-content: center;
}

/* ── CARD ── */
.prg-card {
  position: relative;
  height: 200px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  border-radius: 6px;
  background: rgba(43, 43, 136, 0.4);
  transition: border-color 0.25s, transform 0.25s;
}

.prg-card:hover {
  border-color: #ff6633;
  transform: translateY(-3px);
}

/* Image always visible */
.prg-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.prg-card:hover .prg-card__img {
  transform: scale(1.06);
  filter: brightness(0.45);
}

.prg-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.prg-card__title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.9);
}

/* Orange bottom bar on hover */
.prg-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: #ff6633;
  transition: width 0.35s ease;
  z-index: 3;
}
.prg-card:hover::after { width: 100%; }

/* ── MODAL ── */
.prg-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.prg-modal--open { opacity: 1; pointer-events: all; }

.prg-modal__box {
  background: rgba(43,43,136,0.97);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 3px solid #ff6633;
  border-radius: 8px;
  padding: 40px 36px;
  width: min(480px, 90vw);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1);
}

.prg-modal--open .prg-modal__box { transform: translateY(0); }

.prg-modal__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ff6633;
  margin-bottom: 10px;
}

.prg-modal__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.prg-modal__text {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
}

.prg-modal__close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}
.prg-modal__close:hover { color: #fff; }

.prg-modal__btn {
  background: #ff6633;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 11px 26px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.prg-modal__btn:hover { background: #e05500; transform: scale(1.03); }

/* ════════ MOBILE ════════ */
@media (max-width: 768px) {
  .prg-page { flex-direction: column; }

  .prg-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 0 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    gap: 0;
  }

  .prg-sidebar__tab {
    padding: 16px 18px;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
  }

  .prg-sidebar__tab h2 { font-size: 10px; letter-spacing: 2px; }

  .prg-main { padding: 20px 14px; }

  .prg-section__heading { font-size: 9px; margin-bottom: 14px; }

  /* 2 compact cards side by side on mobile */
  .prg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .prg-card { height: 120px; border-radius: 5px; }

  .prg-card__title {
    font-size: 11px;
    font-weight: 700;
    padding: 10px 8px;
  }
}