@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('fonts/AtkinsonHyperlegible-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('fonts/AtkinsonHyperlegible-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Orbitron';
  src: url('fonts/Orbitron-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Orbitron';
  src: url('fonts/Orbitron-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Orbitron';
  src: url('fonts/Orbitron-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  height: auto;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), transparent 32%),
    linear-gradient(135deg, #0d111d, #11192b, #0b0e19);
  color: #fff;
  font-family: 'Atkinson Hyperlegible', 'Inter', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* Particle Background */
#particles-js {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

.mini-emblem {
  position: fixed;
  top: 14px;
  left: 14px;
  width: 70px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  display: block;
  place-items: normal;
  overflow: visible;
  z-index: 25;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.mini-emblem::before {
  content: none;
}

.mini-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.mini-emblem:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: none;
  border-color: transparent;
}

.mini-emblem:focus-visible {
  outline: none;
}

.mini-emblem .glow-ring {
  display: none;
}

.content {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px 100px;
}
body.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.home-page .content {
  flex: 1;
  height: auto;
  min-height: 0;
  justify-content: center;
  padding-top: 160px;
  padding-bottom: 180px;
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-mark {
  width: clamp(150px, 28vw, 200px);
  aspect-ratio: 1;
  display: block;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.4));
  transform: translateY(-6px);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  text-align: center;
}

.hero-text .logo {
  margin: 0;
  line-height: 1;
}

.hero-text .tagline {
  margin: 0;
  text-align: center;
}

.logo {
  font-family: 'Atkinson Hyperlegible', 'Inter', sans-serif;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  background: linear-gradient(90deg, #8f1d2c, #b53242, #cf6a6f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-shadow: none;
}

.tagline {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 3.5rem;
  letter-spacing: 0.05em;
  font-weight: 300;
}

.hero-tagline {
  margin: 0.2rem 0 3rem;
}

.home-links {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 0.6rem;
  z-index: 20;
}

.masthead-menu {
  position: relative;
  display: contents;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.admin-menu-btn {
  display: none;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
}
.top-buttons {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 28px;
  z-index: 30;
}
.masthead.scrolled {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 24, 0.82);
  backdrop-filter: blur(8px);
}
.masthead .mini-emblem {
  position: relative;
  top: 0;
  left: 0;
}
.masthead .home-links {
  position: static;
  top: auto;
  right: auto;
}
.masthead .top-buttons {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  justify-content: center;
}

.btn {
  --hover-border: linear-gradient(45deg, #a6192e, #c63f5b);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1rem 1.35rem;
  width: min(90vw, 280px);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  border-radius: 52px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
}
.top-buttons .btn {
  min-width: 0;
  width: 190px;
  padding: 0.78rem 1.1rem;
  font-size: 0.98rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}
.top-buttons .btn.active {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(166, 25, 46, 0.25);
  border-color: rgba(166, 25, 46, 0.45);
  background: linear-gradient(120deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)) padding-box, var(--hover-border) border-box;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.7s;
  border-radius: inherit;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.42), 0 0 26px rgba(166, 25, 46, 0.18);
  background: linear-gradient(rgba(255,255,255,0.07), rgba(255,255,255,0.07)) padding-box, var(--hover-border) border-box;
}

.btn:active {
  transform: translateY(-4px) scale(0.985);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.btn-disabled,
.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
  filter: grayscale(0.2);
  cursor: not-allowed;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-events { --hover-border: linear-gradient(45deg, #a6192e, #b8324c); }
.btn-portal { --hover-border: linear-gradient(45deg, #8f1531, #a6192e); }
.btn-deals { --hover-border: linear-gradient(45deg, #a6192e, #e07b7b); }

.btn-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.btn-icon svg {
  color: #e6fffb;
}

.btn:hover .btn-icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45), 0 0 18px rgba(0, 255, 153, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.btn-logo {
  height: 38px;
  width: auto;
  display: inline-block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.event-stack {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
}

.event-label {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.event-logo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.event-logo-btn img {
  width: min(160px, 45vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.4));
}

.event-logo-btn:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45));
}

.event-logo-btn img,
.event-logo-btn:hover img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.footer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 26px;
  font-size: 0.9rem;
  opacity: 0.6;
  width: calc(100% - 40px);
  text-align: center;
}

.inner-page {
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.inner-page .content {
  height: auto;
  padding: 140px 20px 60px;
  align-items: stretch;
  gap: 2rem;
  flex: 1;
}

.page-top {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  border-color: rgba(0, 255, 153, 0.4);
}

.nav-pill.primary {
  background: linear-gradient(90deg, #a6192e, #c53b4f);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(166, 25, 46, 0.25);
}

.nav-pill.active,
.nav-pill[aria-current="page"] {
  background: rgba(166, 25, 46, 0.16);
  border-color: rgba(166, 25, 46, 0.5);
  color: #fff;
}

.nav-pill.nav-events.active { border-color: rgba(0, 185, 150, 0.6); background: rgba(0, 185, 150, 0.14); }
.nav-pill.nav-portal.active { border-color: rgba(25, 90, 200, 0.6); background: rgba(25, 90, 200, 0.14); }
.nav-pill.nav-deals.active { border-color: rgba(255, 165, 60, 0.65); background: rgba(255, 165, 60, 0.16); }

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.page-title-image {
  width: min(720px, 96vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.35));
}

.page-header .logo {
  font-size: clamp(2.75rem, 6vw, 5rem);
  margin-bottom: 0.25rem;
}

.page-header .tagline {
  margin-bottom: 0;
}

.deals-meta {
  font-size: 0.95rem;
  opacity: 0.75;
  text-align: center;
}

.section-grid {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.about-grid + .about-grid {
  margin-top: 1.5rem;
}

.section-card {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  transition: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-card:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  outline: none;
}

.contact-hero {
  width: 100%;
  max-width: 880px;
  margin: 0 auto 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
  justify-items: center;
  justify-content: center;
  padding: 0;
}
.contact-hero > .section-card,
.contact-hero > .contact-person-card {
  height: 100%;
  width: 100%;
}

@media (min-width: 961px) {
  .contact-hero {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    justify-items: center;
  }
  .contact-person-card {
    max-width: 240px;
    width: 240px;
  }
  .contact-person-photo {
    width: 200px;
    height: 200px;
  }
}

.contact-hero h2 {
  margin: 0 0 0.35rem;
}

.contact-hero p {
  margin: 0.15rem 0;
}

.contact-left {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}
.contact-feature {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  height: 100%;
}

.contact-grid {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1rem;
}

.contact-person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 1rem 1rem 1rem;
  max-width: 240px;
  width: 240px;
  justify-self: center;
  text-align: center;
  height: 100%;
  align-self: stretch;
}
.contact-feature-card {
  max-width: 240px;
  width: 240px;
  justify-self: center;
  height: 100%;
}

.contact-person-photo {
  width: 200px;
  height: 200px;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: none;
}

.contact-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-person-meta {
  display: grid;
  gap: 0.25rem;
}

.contact-person-meta .tag {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 211, 163, 0.16);
  border: 1px solid rgba(255, 211, 163, 0.35);
  color: #ffd3a3;
  font-weight: 700;
  width: fit-content;
}

.contact-person-meta .name {
  font-weight: 800;
  font-size: 1.1rem;
}

.contact-person-meta .role {
  opacity: 0.85;
}

.contact-person-meta .contact-link {
  color: #ffd3a3;
  font-weight: 700;
  text-decoration: none;
}

.contact-person-meta .contact-link:hover {
  color: #ffe7c7;
}

.contact-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: clamp(1rem, 2vw, 1.5rem) auto 0;
  width: 100%;
  max-width: 880px;
  align-self: start;
  justify-items: stretch;
  align-items: stretch;
  text-align: center;
}

.section-card h3 {
  margin-bottom: 0.4rem;
}

.section-card p {
  opacity: 0.85;
  line-height: 1.6;
}

.deal-grid {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.deals-intro {
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 780px;
  display: grid;
  gap: 0.35rem;
}

.deals-layout {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.core-deals {
  position: relative;
}

.core-card {
  height: 100%;
  padding: 1.4rem;
  border-radius: 22px;
  background: radial-gradient(circle at 20% 20%, rgba(166, 25, 46, 0.18), rgba(12, 16, 28, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 1rem;
}

.core-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.core-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.core-logo-shell {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.core-logo-shell img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.core-brand-copy h2 {
  margin: 0;
  font-size: 1.4rem;
}

.core-brand-copy .core-lede {
  margin: 0.25rem 0 0;
  opacity: 0.9;
  max-width: 360px;
  line-height: 1.5;
}

.core-value {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: right;
  min-width: 220px;
}

.value-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  opacity: 0.7;
  font-size: 0.78rem;
}

.value-amount {
  font-weight: 800;
  font-size: 1.05rem;
}

.value-note {
  opacity: 0.8;
  font-size: 0.9rem;
}

.core-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.core-benefits li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem 0.65rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32), inset 3px 0 0 rgba(166, 25, 46, 0.65);
  line-height: 1.5;
}

.core-benefits li::before {
  display: none;
}

.core-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.core-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
}

.core-cta {
  background: linear-gradient(120deg, #a6192e, #c53b4f);
  border: none;
  box-shadow: 0 14px 30px rgba(166, 25, 46, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.core-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(166, 25, 46, 0.55);
}

.core-cta:active {
  transform: translateY(0);
  box-shadow: 0 12px 28px rgba(166, 25, 46, 0.45);
}
.core-note {
  margin: 0;
  opacity: 0.85;
  max-width: 320px;
}

.partner-deals {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 1.05rem 1.05rem 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 1rem;
}

.partner-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.partner-copy h3 {
  margin: 0.2rem 0;
  font-size: 1.35rem;
}

.partner-lede {
  margin: 0;
  opacity: 0.85;
  max-width: 640px;
  line-height: 1.5;
}

.partner-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(0, 255, 153, 0.12);
  border: 1px solid rgba(0, 255, 153, 0.35);
  font-weight: 700;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00dbde, #00ff99);
  box-shadow: 0 0 0 6px rgba(0, 255, 153, 0.12);
}

.partner-grid {
  margin-top: 0.25rem;
}

@media (max-width: 900px) {
  .deals-layout {
    grid-template-columns: 1fr;
  }
  .core-card {
    order: 1;
  }
  .core-card-top {
    align-items: flex-start;
  }
  .core-brand {
    width: 100%;
    align-items: flex-start;
  }
  .core-brand-copy .core-lede {
    max-width: none;
  }
  .core-value {
    width: 100%;
    text-align: left;
  }
  .partner-deals {
    order: 2;
  }
}

@media (max-width: 640px) {
  .core-card {
    padding: 1.1rem;
  }
  .core-logo-shell {
    width: 72px;
    height: 72px;
  }
  .core-benefits li {
    align-items: center;
  }
  .core-benefits li::before {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .deal-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  opacity: 0.7;
  font-size: 0.9rem;
}

.deal-card {
  position: relative;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.deal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 219, 222, 0.08), rgba(252, 0, 255, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.deal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.deal-card:hover::before {
  opacity: 1;
}

.deal-banner {
  position: relative;
  height: 170px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.deal-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.5));
}

.deal-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}

.deal-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 12px;
  background: rgba(0, 255, 153, 0.16);
  border: 1px solid rgba(0, 255, 153, 0.35);
  font-weight: 700;
  color: #eafff3;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.deal-body {
  display: grid;
  gap: 0.55rem;
  padding: 1.15rem 1.35rem 1.3rem;
  position: relative;
  z-index: 2;
}

.deal-body h3 {
  font-size: 1.35rem;
  margin: 0;
}

.deal-body p {
  font-size: 0.98rem;
  opacity: 0.88;
  margin: 0;
}

.deal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
  opacity: 0.78;
}

.deal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.deal-extra {
  position: absolute;
  inset: 0;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(16, 20, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.45rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 3;
}

.deal-card:hover .deal-extra,
.deal-card:focus-within .deal-extra {
  opacity: 1;
  transform: translateY(0);
}

.deal-extra-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.92rem;
  opacity: 0.9;
}

.deal-extra-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  opacity: 0.7;
}

.deal-extra-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  background: rgba(0, 255, 153, 0.12);
  border: 1px solid rgba(0, 255, 153, 0.28);
  font-weight: 700;
  width: fit-content;
}

.deal-link {
  color: #7ad7ff;
  text-decoration: none;
  font-weight: 700;
}

.deal-link:hover {
  text-decoration: underline;
}

.deal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.deal-actions button {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.deal-actions button:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 153, 0.35);
}

.deal-actions .danger {
  border-color: rgba(255, 99, 99, 0.35);
}

.deal-admin-bar {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.deal-admin-actions {
  display: flex;
  gap: 0.6rem;
}

.deal-admin-meta {
  display: grid;
  gap: 0.2rem;
}

.hidden-panel {
  width: 100%;
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.75rem;
}

.hidden-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hidden-deals-grid .deal-card {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn.ghost.small {
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
}

.deal-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 10, 20, 0.8);
  backdrop-filter: blur(12px);
}

.deal-form-card {
  width: min(620px, 95vw);
  background: rgba(14, 18, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 0.8rem;
}

.deal-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.deal-form-card label {
  display: grid;
  gap: 0.25rem;
  font-weight: 700;
}

.deal-form-card input,
.deal-form-card textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.deal-form-card textarea {
  min-height: 90px;
  resize: vertical;
}

.deal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.deal-form-card .checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.debug-panel {
  width: 100%;
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.5rem;
  color: #e0e0e0;
}

.debug-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 700;
}

.debug-log {
  margin: 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  max-height: 220px;
  overflow: auto;
  font-size: 0.9rem;
  line-height: 1.45;
}

.portal-controls {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 0.8fr;
  gap: 1rem;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.35rem 0.85rem;
  gap: 0.35rem;
  backdrop-filter: blur(10px);
}

.input-shell input,
.input-shell select {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.input-shell label {
  font-size: 0.85rem;
  opacity: 0.7;
  white-space: nowrap;
}

.job-grid {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}

.job-card {
  position: relative;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.job-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 219, 222, 0.07), rgba(252, 0, 255, 0.07));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.job-card:hover::before {
  opacity: 1;
}

.job-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.job-company {
  font-size: 1rem;
  opacity: 0.78;
  margin-bottom: 0.35rem;
}

.job-type {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.job-desc {
  font-size: 0.95rem;
  opacity: 0.88;
  margin-bottom: 0.75rem;
}

.job-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.job-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  background: rgba(0, 255, 153, 0.12);
  border: 1px solid rgba(0, 255, 153, 0.4);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-apply:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.job-remove {
  background: rgba(255, 117, 117, 0.1);
  border: 1px solid rgba(255, 117, 117, 0.35);
  color: #ffdede;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease;
}

.job-remove:hover {
  background: rgba(255, 117, 117, 0.18);
  transform: translateY(-2px);
}

.pagination {
  width: 100%;
  max-width: 1100px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.page-btn {
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.page-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-btn.active {
  border-color: rgba(0, 255, 153, 0.45);
  background: rgba(0, 255, 153, 0.12);
}

.portal-admin {
  width: 100%;
  max-width: 1100px;
  margin: 1.2rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.admin-card {
  padding: 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.admin-card h4 {
  margin-bottom: 0.5rem;
}

.admin-card form {
  display: grid;
  gap: 0.65rem;
}

.admin-card .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.admin-note {
  font-size: 0.85rem;
  opacity: 0.7;
}

.submit-btn {
  background: linear-gradient(90deg, #00dbde, #00ff99);
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: #0a0d1a;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.badge-green {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 255, 153, 0.14);
  border: 1px solid rgba(0, 255, 153, 0.3);
  font-size: 0.85rem;
}

.admin-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.admin-actions button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
}

.admin-actions button:hover {
  border-color: rgba(0, 255, 153, 0.4);
}

.admin-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: auto;
  min-width: 0;
  padding: 0.95rem 1.35rem;
  gap: 0.6rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.admin-fab .btn-icon {
  width: 40px;
  height: 40px;
}

.admin-fab.logged {
  background: linear-gradient(90deg, #00dbde, #00ff99);
  color: #0a0d1a;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 255, 153, 0.35);
}

.admin-fab.logged .btn-icon {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0a0d1a;
}

@media (max-width: 1023px) {
  .admin-fab {
    display: none;
  }
}

.admin-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.admin-modal.show {
  display: flex;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.7);
  backdrop-filter: blur(10px);
}

.admin-modal-dialog {
  position: relative;
  width: min(90vw, 480px);
  padding: 1.6rem;
  border-radius: 20px;
  background: rgba(13, 17, 29, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.admin-modal h3 {
  margin: 0;
}

.admin-note {
  margin: 0.2rem 0 0;
}

.admin-login-group {
  display: grid;
  gap: 0.75rem;
}

.admin-logged-group {
  display: none;
  gap: 0.75rem;
}

.admin-logged-group.show {
  display: grid;
}

.admin-actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-info {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-form {
  display: grid;
  gap: 0.75rem;
}

.admin-label {
  display: grid;
  gap: 0.35rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.admin-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-input:focus {
  outline: none;
  border-color: rgba(166, 25, 46, 0.55);
  box-shadow: 0 0 0 3px rgba(166, 25, 46, 0.24);
}

.admin-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.admin-divider::before,
.admin-divider::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.admin-modal .btn {
  width: 100%;
  min-width: 0;
}

.admin-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.admin-status {
  min-height: 1.2em;
  font-size: 0.95rem;
  color: #c3e5d1;
}

.admin-status.error {
  color: #ffb4b4;
}

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.05), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(0, 255, 153, 0.06), transparent 45%),
    rgba(7, 10, 20, 0.78);
  backdrop-filter: blur(10px);
}

.overlay-card {
  width: min(600px, 95vw);
  padding: 1.8rem;
  border-radius: 22px;
  background: rgba(13, 17, 29, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0.8rem;
  text-align: center;
}

.overlay-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.overlay-card h2 {
  margin: 0;
}

.overlay-card p {
  margin: 0;
  opacity: 0.85;
}

.overlay-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.subsection {
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto 0;
  display: grid;
  gap: 1rem;
}

.subsection-header {
  text-align: left;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  padding-left: 0.4rem;
}

.subsection h2 {
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  padding: 0 0.4rem;
}

.team-card {
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo + .team-info {
  margin-top: 0.75rem;
}

.team-info h3 {
  margin: 0 0 0.15rem;
}

.team-info {
  display: grid;
  gap: 0.35rem;
  text-align: center;
  justify-items: center;
}

.team-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.team-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
  width: 100%;
  justify-items: start;
  text-align: left;
}

.team-facts li {
  font-size: 0.98rem;
  opacity: 0.9;
}

.fact-label {
  font-weight: 700;
  color: #ffd3a3;
  margin-right: 0.25rem;
}

.team-role {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.team-contact {
  margin: 0.3rem 0;
  opacity: 0.85;
  line-height: 1.5;
}

.team-contact a {
  color: #ffd3a3;
  text-decoration: none;
  font-weight: 700;
}

.team-contact a:hover {
  color: #ffe7c7;
}

.team-mission {
  margin: 0;
  opacity: 0.9;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.8rem;
}

.contact-actions {
  display: grid;
  gap: 0.35rem;
}

.contact-actions .nav-pill {
  width: fit-content;
}

.contact-inline {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  justify-items: start;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.4rem;
  text-align: left;
}

.contact-inline h3 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.contact-inline p {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.9;
}

.contact-inline-action .nav-pill {
  margin-left: 0;
}

.contact-link {
  color: #ffd3a3;
  background: transparent;
  border: none;
}

.contact-link:hover {
  color: #ffe7c7;
}

.inline-contact {
  color: #ffd3a3;
  font-weight: 700;
  text-decoration: none;
}

.inline-contact:hover {
  color: #ffe7c7;
}

.subsection {
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto 0;
  display: grid;
  gap: 1rem;
}

.subsection-header {
  text-align: center;
  display: grid;
  gap: 0.35rem;
}

.subsection h2 {
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  justify-items: center;
}

.team-grid[data-team-count="1"] {
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
}

.team-grid[data-team-count="2"] {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.team-grid[data-team-count="3"] {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.team-grid[data-team-count="4"] {
  grid-template-columns: repeat(4, minmax(200px, 1fr));
}

.team-grid[data-team-count="5"] {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
}

.team-card {
  width: 100%;
  max-width: 340px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo + .team-info {
  margin-top: 0.75rem;
}

.team-info {
  display: grid;
  gap: 0.35rem;
  text-align: center;
  justify-items: center;
}

.team-info h3 {
  margin: 0 0 0.15rem;
}

.team-mission {
  margin: 0;
  opacity: 0.9;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.8rem;
}

.contact-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.contact-actions .btn {
  min-width: 220px;
}

.partner-strip {
  width: 100%;
  max-width: 1100px;
  margin: 0.5rem auto 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0 12px 12px;
}

.home-page .partner-strip {
  margin-bottom: 80px;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex: 1 1 220px;
  max-width: 280px;
}

.partner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 211, 163, 0.5);
}

.partner-link img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
}

.site-footer {
  width: 100%;
  margin-top: 2rem;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 64px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.footer-meta {
  display: grid;
  gap: 0.15rem;
}

.footer-title {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer-subtitle {
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-link {
  color: #ffd3a3;
  text-decoration: none;
  font-weight: 700;
}

.footer-link:hover {
  color: #ffe7c7;
}

.footer-link.muted {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.footer-link.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.footer-link .social-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.footer-link .social-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

/* Tablet layout */
@media (max-width: 1023px) {
  .masthead {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 12px 14px;
    background: rgba(10, 14, 24, 0.92);
  }
  .masthead .top-buttons {
    position: static;
  }
  .masthead .home-links {
    position: static;
  }
  .inner-page .content {
    padding-top: 190px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .contact-hero {
    gap: 1.6rem;
  }
  .contact-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portal-controls {
    grid-template-columns: 1fr;
  }
  .page-header .logo {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
  }
  .page-title-image {
    width: min(600px, 100%);
  }

  .admin-menu-btn {
    display: block;
    width: 100%;
  }

  /* Tablet: keep team cards in two columns */
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
    padding: 0 10px;
  }
  .team-grid[data-team-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-card {
    max-width: none;
  }

  /* Tablet: section cards stay in view */
  .section-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
    padding: 0 12px;
  }
  .section-card {
    max-width: none;
  }
}

/* Phone layout */
@media (max-width: 599px) {
  .contact-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.85rem;
    row-gap: 0.85rem;
    padding: 0 12px;
    justify-items: stretch;
    align-items: stretch;
  }
  .contact-hero h2 {
    font-size: clamp(1.05rem, 4.4vw, 1.3rem);
    margin-bottom: 0.25rem;
  }
  .contact-person-card {
    max-width: none;
    width: 100%;
    padding: 0.8rem 0.7rem 0.95rem;
    height: 100%;
  }
  .contact-person-photo {
    width: 130px;
    height: 130px;
  }
  .contact-person-card .contact-person-meta .name {
    font-size: 1rem;
  }
  .contact-person-card .contact-person-meta .role,
  .contact-person-card .contact-person-meta .contact-link,
  .contact-person-card .contact-person-meta span {
    font-size: 0.95rem;
  }

  /* Tighter scaling for very small screens */
  @media (max-width: 540px) {
    .contact-hero {
      column-gap: 0.65rem;
      row-gap: 0.65rem;
      padding: 0 10px;
    }
    .contact-hero h2 {
      font-size: clamp(0.95rem, 4vw, 1.15rem);
      max-width: 100%;
      word-break: break-word;
      line-height: 1.2;
    }
    .admin-menu-btn {
      display: block;
      width: 100%;
    }
    .contact-person-card,
    .section-card {
      max-width: none;
      width: 100%;
    }
    .contact-person-card,
    .section-card {
      font-size: 0.95rem;
      line-height: 1.4;
    }
    .contact-person-card .contact-person-meta .role,
    .contact-person-card .contact-person-meta .contact-link,
    .contact-person-card .contact-person-meta span {
      font-size: 0.9rem;
      word-break: break-word;
    }
    .contact-person-card .contact-person-meta .name {
      font-size: 1rem;
    }
  }

  /* Cards on events/relations sections */
  .section-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 10px;
  }

  /* Keep team cards on-screen on small devices */
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 10px;
  }
  .team-grid[data-team-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-card {
    max-width: none;
  }
  .home-page .content {
    padding: 120px 16px 200px;
    margin-top: 0;
  }
  .hero-header {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  .hero-mark {
    width: 120px;
    transform: none;
  }
  .logo {
    font-size: clamp(3rem, 11vw, 5.5rem);
    letter-spacing: 0.08em;
  }
  .tagline {
    font-size: 1.1rem;
    margin-bottom: 1.6rem;
  }
  .buttons {
    gap: 1rem;
    width: 100%;
  }
  .btn {
    width: 100%;
    max-width: 340px;
    padding: 0.9rem 1.1rem;
    font-size: 0.98rem;
  }
  .top-buttons {
    gap: 0.6rem;
  }
  .masthead {
    padding: 12px 14px;
  }
  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 40;
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }
  .masthead-menu {
    position: absolute;
    top: 62px;
    right: 12px;
    width: min(320px, calc(100% - 24px));
    background: rgba(8, 10, 18, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
    display: grid;
    gap: 0.65rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.25s ease;
  }
  .nav-toggle:is(:hover, :focus-visible) + .masthead-menu,
  .masthead.menu-open .masthead-menu {
    max-height: 520px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .masthead .top-buttons {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    flex-direction: column;
    gap: 0.5rem;
    transform: none;
    margin: 0;
  }
  .masthead .home-links {
    position: static;
    justify-content: center;
    gap: 0.5rem;
  }
  .masthead .home-links .nav-pill {
    width: 100%;
    justify-content: center;
  }
  .masthead .top-buttons .btn {
    width: 100%;
    max-width: none;
    padding: 0.85rem 1.05rem;
  }
  .contact-sections {
    grid-template-columns: 1fr;
  }
  .contact-hero {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    column-gap: 1.6rem;
    row-gap: 1.3rem;
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .masthead {
    padding: 12px 14px;
    gap: 0.5rem;
  }
  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 40;
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }
  .masthead-menu {
    position: absolute;
    top: 62px;
    right: 12px;
    width: min(360px, calc(100% - 24px));
    background: rgba(8, 10, 18, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
    display: grid;
    gap: 0.65rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.25s ease;
  }
  .nav-toggle:is(:hover, :focus-visible) + .masthead-menu,
  .masthead.menu-open .masthead-menu {
    max-height: 520px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .masthead .top-buttons {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    flex-direction: column;
    gap: 0.5rem;
    transform: none;
    margin: 0;
  }
  .masthead .home-links {
    position: static;
    justify-content: center;
    gap: 0.5rem;
  }
  .masthead .home-links .nav-pill {
    width: 100%;
    justify-content: center;
  }
  .admin-menu-btn {
    display: block;
    width: 100%;
  }
  .top-buttons .btn {
    width: 100%;
    max-width: none;
    padding: 0.85rem 1.05rem;
  }
  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    padding: 0 12px;
  }
.events-grid .section-card {
  max-width: none;
}

@media (max-width: 599px) {
  .events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-items: stretch;
    align-items: stretch;
    overflow: hidden;
  }
  .events-grid .section-card {
    max-width: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Mobile: keep info cards readable and contained */
  .section-card {
    padding: 1.1rem;
  }
  .section-card h3 {
    font-size: 0.92rem;
    line-height: 1.2;
  }
  .section-card p {
    font-size: 0.82rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .partner-strip {
    gap: 0.6rem;
    padding: 0 14px 12px;
  }
  .partner-link {
    flex: 1 1 48%;
    max-width: none;
    justify-content: center;
  }
  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0 12px;
    width: 100%;
    box-sizing: border-box;
  }
  .section-card {
    max-width: none;
    width: 100%;
    min-width: 0;
  }
}
  .inner-page .content {
    padding-top: 190px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .contact-hero {
    gap: 1.6rem;
  }
  .contact-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portal-controls {
    grid-template-columns: 1fr;
  }
  .page-header .logo {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
  }
  .page-title-image {
    width: min(600px, 100%);
  }

  .admin-menu-btn {
    display: block;
    width: 100%;
  }
}

/* Responsive adjustments */
@media (max-width: 599px) {
  .mini-emblem {
    width: 58px;
    top: 12px;
    left: 12px;
  }
  .hero-header {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-text {
    align-items: center;
    text-align: center;
  }
  .hero-mark {
    width: 140px;
  }
  .buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    min-width: 0;
  }
  .inner-page .content {
    padding-top: 170px;
  }

  .portal-controls {
    grid-template-columns: 1fr;
  }

  .job-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .contact-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: left;
    column-gap: 0.85rem;
    row-gap: 0.85rem;
    padding: 0 12px;
    justify-items: stretch;
    align-items: stretch;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 10px;
  }
  .team-grid[data-team-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-sections {
    margin-top: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 12px;
  }
}

@media (min-width: 1024px) {
  .admin-menu-btn {
    display: none !important;
  }
}

/* Phone: keep generic grids to two columns max (event cards already stacked above) */
@media (max-width: 599px) {
  .section-grid:not(.events-grid):not(.about-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }
}

/* About page: stack info cards fully on mobile */
@media (max-width: 599px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-grid + .about-grid {
    margin-top: 1rem;
  }
}
