/* ==========================================================================
   UO INTERNATIONAL STUDENT ASSOCIATION (ISA)
   CLEAN REFACTORED STYLESHEET (NO !IMPORTANT HACKS)
   Colors: Dark Navy #153663 | Light Sky #7CA5CE | Ice #D8E7F5 | White #FFFFFF
   ========================================================================== */

:root {
  --blue-dark: #153663;
  --blue-light: #7CA5CE;
  --blue-ice: #d8e7f5;
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.82);
  --text-dim: rgba(255, 255, 255, 0.58);

  /* Subtle noise SVG texture */
  --glass-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 9999px;
  --trans: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@font-face {
  font-family: 'Amoresa';
  src: url('../fonts/amoresa.woff2') format('woff2'),
       url('../fonts/amoresa.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Perandory';
  src: url('../fonts/perandory-semicondensed.woff2') format('woff2'),
       url('../fonts/perandory-semicondensed.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-stretch: semi-condensed;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--blue-dark);
  color: var(--text-white);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: var(--blue-dark);
  line-height: 1.55;
  position: relative;
}

/* --------------------------------------------------------------------------
   FROSTED GLASS CARDS WITH SHINY CORNER SPECULAR GRADIENT
   -------------------------------------------------------------------------- */
.frosted-card {
  position: relative;
  background-color: rgba(21, 54, 99, 0.58);
  background-image: 
    var(--glass-noise),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(124, 165, 206, 0.12) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-sm);
  padding: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: var(--trans);
}

.frosted-card:hover {
  border-color: rgba(124, 165, 206, 0.35);
  box-shadow: 
    0 16px 45px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   NAVBAR (Cleanly Contained Flow)
   ========================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 41, 77, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.full-nav {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-white);
  flex-shrink: 0;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 0.96rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--blue-light);
  white-space: nowrap;
}

/* Nav Links inside Navbar */
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-xs);
  transition: var(--trans);
  display: block;
  cursor: pointer;
}

.nav-link:hover, 
.nav-link.active {
  color: var(--text-white);
  background: rgba(124, 165, 206, 0.22);
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  margin-left: auto;
}

.mobile-toggle:hover {
  background: rgba(124, 165, 206, 0.25);
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   HERO BANNER & TYPOGRAPHY
   -------------------------------------------------------------------------- */
.hero-banner-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: flex;
  align-items: center;
  background-color: var(--blue-dark);
  overflow: hidden;
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-content-row {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero-text-col {
  max-width: 720px;
}

.hero-display-title {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.8vw, 1.75rem);
  margin-bottom: 2rem;
  user-select: none;
}

.hero-line {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.swash {
  font-family: 'Amoresa', serif;
  font-weight: normal;
  font-style: normal;
  font-size: clamp(3.4rem, 5.8vw, 5.2rem);
  line-height: 0.6;
  color: var(--text-white);
  flex-shrink: 0;
  margin-right: clamp(0.25rem, 0.5vw, 0.55rem);
  position: relative;
  z-index: 2;
}

.swash-i { transform: translateY(0.04em); }
.swash-s { transform: translateY(0.01em); }
.swash-a { transform: translateY(-0.03em); }

.word-rest {
  font-family: 'Perandory', serif;
  font-stretch: semi-condensed;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.01em;
  color: var(--text-white);
  text-transform: uppercase;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

/* Inline Hero Scroll Chevron */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--blue-light);
  cursor: pointer;
  transition: var(--trans);
}

.btn-hero-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue-light);
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.btn-hero-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--blue-light);
  color: var(--text-white);
}

.btn-hero-arrow:hover svg {
  stroke: var(--text-white);
  transform: translateY(2px);
}

@media (max-width: 900px) {
  .btn-hero-arrow {
    display: none;
  }
}

.btn-hero-solid {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-solid:hover {
  background: #a1c3e6;
  transform: translateY(-2px);
}

.btn-hero-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: var(--trans);
}

.btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(21, 54, 99, 0.95));
  z-index: 2;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   SCROLLABLE CURTAIN & NATURAL SECTION DISPLAY (NO !IMPORTANT)
   -------------------------------------------------------------------------- */
.scrollable-content {
  position: relative;
  z-index: 2;
  margin-top: 92vh;
  background: linear-gradient(
    to bottom,
    rgba(21, 54, 99, 0.95) 0%,
    rgba(17, 44, 82, 0.98) 250px,
    #0f2647 100%
  );
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5);
  min-height: 100vh;
}

/* Default state: cleanly hidden */
.page-section {
  display: none;
}

/* Active state: standard block with fade animation */
.page-section.active {
  display: block;
  animation: sectionFade 0.2s ease-out;
}

@keyframes sectionFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.page-header-block {
  margin-bottom: 2.75rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue-light);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.page-header-block h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.header-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   HOME SHOWCASE & CALENDAR
   -------------------------------------------------------------------------- */
.split-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.section-title-large {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-lead-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.quick-highlights {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.highlight-pill {
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(124, 165, 206, 0.16);
  border: 1px solid rgba(124, 165, 206, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.showcase-image-wrap {
  width: 100%;
  height: 440px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.rounded-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-header-row h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

.calendar-embed-wrapper {
  position: relative;
  width: 100%;
  height: 550px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 38, 71, 0.75);
}

.calendar-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --------------------------------------------------------------------------
   ABOUT US / UMAP & EXEC GRID
   -------------------------------------------------------------------------- */
.map-card {
  margin-bottom: 3.5rem;
}

.badge-pill {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(124, 165, 206, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--blue-ice);
}

.umap-container {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.umap-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-footnote {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.team-heading-row {
  margin-bottom: 1.75rem;
}

.team-heading-row h3 {
  font-size: 1.8rem;
  font-weight: 800;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.team-card {
  display: flex;
  flex-direction: column;
}

.team-img-wrap {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-bottom: 1.1rem;
  background: #000;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.team-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0.2rem 0;
}

.team-origin {
  font-size: 0.85rem;
  color: var(--blue-ice);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.group-photo-card {
  margin-top: 2rem;
}

.group-photo-wrap {
  width: 100%;
  height: 460px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-bottom: 1rem;
}

.group-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-caption {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   PROGRAMS
   -------------------------------------------------------------------------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
}

.program-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-card h4 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0.4rem 0;
}

.program-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.program-embed-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-top: 1.25rem;
  background: rgba(10, 26, 48, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.program-embed-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   PHOTO GALLERY
   ========================================================================== */
.gallery-controls-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 50;
}

.gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  padding: 0.6rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--trans);
}

.gallery-btn:hover {
  background: rgba(124, 165, 206, 0.2);
  color: var(--text-white);
  border-color: var(--blue-light);
}

.gallery-btn.active {
  background: var(--blue-light);
  color: var(--blue-dark);
  border-color: var(--blue-light);
}

.dropdown-arrow,
.caret-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.folder-dropdown-wrap.open .caret-icon {
  transform: rotate(180deg);
}

.folder-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.folder-tree-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 350px;
  max-width: 90vw;
  max-height: 480px;
  background: rgba(13, 34, 63, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
}

.folder-dropdown-wrap.open .folder-tree-popover {
  display: flex;
}

.folder-tree-header {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--blue-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.folder-tree-body {
  overflow-y: auto;
  padding: 0.5rem;
  max-height: 410px;
}

.tree-node-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 2px;
}

.tree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--trans);
  gap: 0.5rem;
}

.tree-row:hover {
  background: rgba(124, 165, 206, 0.18);
}

.tree-row.selected {
  background: rgba(124, 165, 206, 0.32);
  color: var(--text-white);
  font-weight: 700;
}

.tree-label-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.tree-toggle-caret {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  transition: transform 0.15s ease;
}

.tree-toggle-caret.collapsed {
  transform: rotate(-90deg);
}

.tree-name-text {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  color: var(--blue-ice);
}

.tree-children {
  display: flex;
  flex-direction: column;
  padding-left: 1.1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 0.6rem;
  margin-top: 2px;
}

.tree-children.hidden {
  display: none;
}

.gallery-progress-bar-wrap {
  width: 100%;
  background: rgba(15, 41, 77, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-xs);
  margin-bottom: 1.5rem;
  transition: opacity 0.4s ease;
}

.gallery-progress-bar-wrap.loaded {
  display: none;
}

.gallery-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-ice);
}

.gallery-progress-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.spinner-ring {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(124, 165, 206, 0.25);
  border-top-color: var(--blue-light);
  border-radius: 50%;
  animation: spinLoader 0.75s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

.gallery-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.gallery-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--blue-light);
  transition: width 0.15s ease-out;
}

/* Pinterest Columns */
.gallery-layout-wrap {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

.pinterest-columns {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: flex-start;
  flex: 1;
}

.masonry-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.masonry-card {
  width: 100%;
  border-radius: var(--radius-xs);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background-color: rgba(15, 41, 77, 0.85);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.masonry-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.masonry-media.is-loaded {
  opacity: 1;
}

.masonry-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 41, 77, 0.85);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
}

.video-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.masonry-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.8rem 0.75rem 0.65rem;
  background: linear-gradient(to top, rgba(12, 31, 58, 0.95), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.masonry-card:hover .masonry-overlay {
  opacity: 1;
}

.masonry-title {
  font-size: 0.82rem;
  font-weight: 700;
}

.masonry-year {
  font-size: 0.7rem;
  color: var(--blue-light);
}

#lightboxVideo {
  max-width: 900px;
  max-height: 72vh;
  width: 100%;
  height: auto;
  display: block;
}

.gallery-timeline-rail {
  position: sticky;
  top: 90px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  width: 65px;
  flex-shrink: 0;
}

.timeline-nodes-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.timeline-node {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid var(--blue-dark);
}

.timeline-node.active .timeline-dot {
  background: var(--blue-light);
  transform: scale(1.35);
}

.timeline-label {
  display: flex;
  flex-direction: column;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  text-align: left;
}

.timeline-month {
  color: var(--blue-ice);
  text-transform: uppercase;
  font-size: 0.64rem;
}

/* --------------------------------------------------------------------------
   APPLY SECTION
   -------------------------------------------------------------------------- */
.staff-photo-card {
  margin-bottom: 3.5rem;
  padding: 1.5rem;
}

.staff-photo-wrap {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.staff-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-caption-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.roles-category-heading {
  margin-bottom: 1.5rem;
}

.roles-category-heading h3 {
  font-size: 1.6rem;
  font-weight: 800;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.role-card {
  display: flex;
  flex-direction: column;
}

.role-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
  background: rgba(124, 165, 206, 0.2);
  color: var(--blue-ice);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  align-self: flex-start;
  margin-bottom: 0.75rem;
}

.role-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.role-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.role-duties {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-left: 1.2rem;
}

.role-duties li {
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   CONNECT SECTION
   -------------------------------------------------------------------------- */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.info-row svg {
  color: var(--blue-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.link-clean {
  color: var(--blue-light);
  text-decoration: none;
}

.socials-wrap {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.social-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xs);
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--trans);
}

.social-link-btn:hover {
  background: rgba(124, 165, 206, 0.25);
  border-color: var(--blue-light);
}

.faq-entry {
  margin-top: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-entry:last-child { 
  border-bottom: none; 
}

.faq-entry h4 { 
  font-size: 1rem; 
  color: var(--blue-ice); 
  margin-bottom: 0.35rem; 
}

.faq-entry p { 
  font-size: 0.88rem; 
  color: var(--text-muted); 
}

/* --------------------------------------------------------------------------
   LIGHTBOX
   -------------------------------------------------------------------------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-curtain {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 48, 0.9);
  backdrop-filter: blur(16px);
}

.lightbox-dialog {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-img-box {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  background: rgba(10, 26, 48, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-img-box img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-details {
  margin-top: 0.85rem;
  text-align: center;
}

.lightbox-details h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.lightbox-details p {
  font-size: 0.82rem;
  color: var(--blue-light);
  margin-top: 0.15rem;
}

.lightbox-close-btn {
  position: absolute;
  top: -38px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 4px;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(21, 54, 99, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
}

.lightbox-prev { left: -58px; }
.lightbox-next { right: -58px; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 31, 58, 0.96);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-title { font-weight: 800; }
.footer-note, .footer-meta { font-size: 0.82rem; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   RESPONSIVE LAYOUT (< 900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-content-row, 
  .split-showcase-grid, 
  .connect-grid {
    grid-template-columns: 1fr;
  }
  
  .section-container {
    padding: 3rem 1.25rem;
  }

  .full-nav {
    padding: 0.75rem 1.25rem;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    right: 1.25rem;
    width: 220px;
    background: rgba(12, 31, 58, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    flex-direction: column;
    padding: 0.75rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0.7rem 1rem;
  }

  .hero-banner-container {
    height: 90vh;
  }
  .scrollable-content {
    margin-top: 86vh;
  }

  .hero-content-row {
    padding: 4rem 1.25rem 2rem;
  }

  .showcase-image-wrap,
  .staff-photo-wrap,
  .group-photo-wrap {
    height: 280px;
  }

  .frosted-card {
    padding: 1.5rem;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 650px) {
  .gallery-layout-wrap { gap: 0.5rem; }
  .pinterest-columns { gap: 8px; }
  .gallery-timeline-rail { display: none; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand-title { font-size: 0.85rem; }
  .brand-logo-img { height: 38px; }
}