/* ============================== SCROLL PROGRESS BAR ============================== */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 50%, var(--gold-light) 100%);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(200,151,58,0.5);
}

/* ============================== SCROLL NAV INDICATOR ============================== */
#scroll-nav-indicator {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#scroll-nav-indicator.visible { opacity: 1; }
.scroll-nav-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(11,37,69,0.25);
  border: 2px solid rgba(11,37,69,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.scroll-nav-dot:hover { background: var(--teal); border-color: var(--teal); transform: scale(1.4); }
.scroll-nav-dot.active { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }
.scroll-nav-dot .dot-tooltip {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}
.scroll-nav-dot:hover .dot-tooltip { opacity: 1; }

/* ============================== SIDEBAR — MTSNHP STYLE ============================== */
#nav-sidebar {
  position: fixed;
  top: 0; left: -340px;
  width: 310px; height: 100vh;
  background: white;
  z-index: 2000;
  transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 5px 0 40px rgba(0,0,0,0.22);
  display: flex; flex-direction: column;
  overflow: hidden;
}
#nav-sidebar.open { left: 0; }

.sidebar-header {
  padding: 22px 25px;
  display: flex;
  background: var(--dark);
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--gold);
}
.sidebar-header a { color: white; font-weight: 700; font-size: 1rem; gap: 8px; display: flex; align-items: center; }
.close-sidebar {
  font-size: 1.8rem;
  background: rgba(255,255,255,0.1);
  border: none; cursor: pointer;
  color: white;
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.close-sidebar:hover { background: rgba(255,255,255,0.22); }

.sidebar-section-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding: 16px 20px 6px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 4px;
  font-family: 'DM Sans', sans-serif;
  background: var(--light-gray);
}
.sidebar-links {
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) rgba(0,0,0,0.05);
}
.sidebar-links::-webkit-scrollbar { width: 4px; }
.sidebar-links::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 4px; }
.sidebar-links::-webkit-scrollbar-track { background: rgba(0,0,0,0.04); }
.sidebar-links a {
  padding: 11px 14px;
  border-radius: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--dark);
  transition: all 0.25s ease;
}
.sidebar-links a i {
  width: 22px; text-align: center;
  color: var(--teal);
  font-size: 0.95rem;
}
.sidebar-links a:hover { background: var(--teal-glow); color: var(--teal); transform: translateX(4px); }
.sidebar-links a:hover i { color: var(--gold); }
.sidebar-apply-btn {
  background: linear-gradient(135deg, var(--navy), #1a3a6b) !important;
  color: white !important;
  margin: 6px 0;
}
.sidebar-apply-btn i { color: white !important; }
.sidebar-apply-btn:hover { background: linear-gradient(135deg, var(--teal), var(--navy)) !important; color: white !important; transform: none !important; }
.sidebar-footer {
  padding: 20px 25px;
  text-align: center;
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar-footer span { color: var(--gold); }

/* ============================== SITEMAP PAGE SECTION ============================== */
#sitemap {
  background: var(--light-gray);
  padding: 80px 0;
}
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.sitemap-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--gold);
  margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
}
.sitemap-col ul li {
  margin-bottom: 8px;
}
.sitemap-col ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.sitemap-col ul li a i { color: var(--teal); font-size: 0.8rem; width: 16px; }
.sitemap-col ul li a:hover { background: white; color: var(--navy); transform: translateX(4px); }

/* ============================== ACADEMIC YEAR BADGE ============================== */
#academic-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,151,58,0.15);
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  #scroll-nav-indicator { display: none; }
}

/* ============================== PHOTO GALLERY RESPONSIVE ============================== */
@media (max-width: 768px) {
  #photo-gallery-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  #photo-gallery-grid > div:first-child {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
  #photo-gallery-grid > div:last-child {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 480px) {
  #photo-gallery-grid {
    grid-template-columns: 1fr !important;
  }
  #photo-gallery-grid > div {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}
