@font-face {
  font-family: "Special Gothic Expanded One";
  src: url("fonts/SpecialGothicExpandedOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #090b10;
  --bg-soft: #121622;
  --surface: #181d2b;
  --text: #f4f7ff;
  --muted: #adb6cc;
  --brand: #e0101b;
  --brand-strong: #ff2f39;
  --line: #2a3248;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Special Gothic Expanded One", "Trebuchet MS", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 0%, #151b2c 0%, var(--bg) 50%, #05060a 100%);
  color: var(--text);
  line-height: 1.45;
  font-size: 15px;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #141a28 0%, #090b10 58%, #05060a 100%);
  display: grid;
  place-items: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-spinner {
  position: relative;
  width: min(340px, 74vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.loader-spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(224, 16, 27, 0) 0deg,
    rgba(224, 16, 27, 0) 210deg,
    rgba(255, 47, 57, 0.9) 300deg,
    rgba(255, 47, 57, 1) 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%);
  mask: radial-gradient(circle, transparent 58%, #000 59%);
  animation: loaderRingSpin 0.75s linear infinite;
  filter: drop-shadow(0 0 14px rgba(224, 16, 27, 0.65));
}

.loader-inner img {
  width: min(225px, 48vw);
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 18px rgba(224, 16, 27, 0.5));
  animation: logoBreath 1.2s ease-in-out infinite;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  border-bottom: 0;
  padding-top: 12px;
  pointer-events: none;
}

.site-header .container {
  width: min(1600px, 96vw);
}

.header-inner {
  min-height: 78px;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
  pointer-events: auto;
}

.site-header.is-scrolled .header-inner {
  background: linear-gradient(180deg, rgba(13, 16, 24, 0.92), rgba(7, 10, 16, 0.92));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.brand img {
  height: 52px;
  width: auto;
  display: block;
}

.brand-badge {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  flex-shrink: 0;
  transition: width 0.28s ease, height 0.28s ease, transform 0.28s ease;
}

.brand-badge img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  transition: width 0.28s ease, height 0.28s ease;
}

.site-header.is-scrolled .brand-badge {
  width: 72px;
  height: 72px;
}

.site-header.is-scrolled .brand-badge img {
  width: 68px;
  height: 68px;
}

.main-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-more {
  position: relative;
}

.nav-more-toggle {
  cursor: pointer;
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: linear-gradient(180deg, rgba(13, 16, 24, 0.98), rgba(7, 10, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  padding: 8px;
  display: none;
  z-index: 120;
}

.nav-more:hover .nav-more-menu {
  display: block;
}

.nav-more-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  transform: none !important;
  border-bottom: 0 !important;
}

.nav-more-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.045em;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  border-bottom: 0;
  opacity: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.58);
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.18s ease;
}

.nav-icon {
  color: #fff;
  opacity: 1;
  margin-right: 7px;
  display: inline-block;
  width: 16px;
  text-align: center;
  font-size: 0.95em;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}

.nav-icon-caret {
  color: #fff;
  margin-left: 5px;
  font-size: 0.82em;
  opacity: 1;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  transform: scale(1.06);
}

.nav-cta {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  padding: 180px 0 110px;
  background-image:
    linear-gradient(rgba(6, 8, 14, 0.84), rgba(6, 8, 14, 0.84)),
    url("images/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  max-width: 760px;
  box-shadow: none;
  backdrop-filter: none;
}

.kicker {
  margin: 0 0 8px;
  color: #ff6d75;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4.4vw, 2.8rem);
  line-height: 1.18;
  text-wrap: balance;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

.lead {
  color: #e2e8f8;
  max-width: 58ch;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-strong), var(--brand));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(224, 16, 27, 0.38);
  font-size: 0.82rem;
}

.btn:hover {
  filter: brightness(1.08);
}

.about {
  padding: 36px 0 70px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.about h2 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  text-align: center;
  text-transform: none;
}

.about-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.about-box img {
  width: 100%;
  max-width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
}

.about-box h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.about-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.about-box ul {
  margin: 0;
  padding-left: 20px;
}

.blog {
  padding: 4px 0 72px;
}

.blog-post {
  background: linear-gradient(180deg, #151b2a 0%, #111724 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.blog-post + .blog-post {
  margin-top: 18px;
}

.blog-post h2 {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
}

.blog-post p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.upcoming-events {
  padding: 28px 0 66px;
}

.upcoming-events h2 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  text-align: center;
  color: #f7f9ff;
}

.section-kicker {
  margin: 0 0 10px;
  color: #ff5a63;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
}

.event-card {
  background: linear-gradient(180deg, #11141d 0%, #0d1018 100%);
  border: 1px solid #293248;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
}

.event-loading,
.event-error {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.event-content {
  display: block;
}

.event-media-wrap {
  position: relative;
  min-height: 230px;
}

.event-media-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background: linear-gradient(180deg, rgba(9, 11, 16, 0) 0%, rgba(9, 11, 16, 0.95) 100%);
}

#event-banner {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border: 0;
}

.event-info {
  padding: 16px 22px 18px;
}

#event-name {
  margin: 2px 0 10px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.2;
  text-transform: uppercase;
  color: #f7f9ff;
}

.event-type {
  margin: 0 0 10px;
  color: #ff5a63;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  border-top: 1px solid #232c3f;
  border-bottom: 1px solid #232c3f;
  padding: 12px 0;
}

.event-meta-grid p {
  margin: 0;
  color: #d4dced;
  font-size: 0.8rem;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-meta-grid i {
  width: 18px;
  text-align: center;
  color: #9ba5ba;
}

.event-bottom {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.event-attendance {
  margin: 0;
  color: #dce2ef;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-attendance .fa-circle-check {
  color: #ff5a63;
}

.event-attendance .fa-users {
  color: #f0c54a;
}

.event-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #ff4a55 0%, #d90f1b 100%);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.attending-events {
  padding: 6px 0 86px;
}

.attending-events h2 {
  margin: 0 0 34px;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  text-align: center;
  letter-spacing: 0.01em;
  color: #f7f9ff;
}

.attending-events .section-kicker {
  color: #ff5a63;
}

.attending-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.attending-card {
  background: linear-gradient(180deg, #111317 0%, #0d0f14 100%);
  border: 1px solid #202735;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  min-height: 508px;
  display: flex;
  flex-direction: column;
}

.attending-card img {
  width: 100%;
  height: 154px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.attending-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.attending-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
}

.attending-date {
  text-align: right;
  line-height: 0.96;
  border-left: 1px solid #263044;
  padding-left: 12px;
}

.attending-date .day {
  display: block;
  font-size: 2.15rem;
  font-weight: 900;
}

.attending-date .month {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #9da5b8;
}

.attending-card-body h3 {
  margin: 4px 0 10px;
  font-size: 1.06rem;
  line-height: 1.06;
  text-transform: uppercase;
  min-height: 2.4em;
  max-height: 2.4em;
  overflow: hidden;
  color: #f7f9ff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.attending-meta {
  border-top: 1px solid #242c3d;
  border-bottom: 1px solid #242c3d;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.attending-meta p {
  margin: 0;
  color: #dce2ef;
  font-size: 0.66rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-height: 46px;
}

.attending-meta p:nth-child(3),
.attending-meta p:nth-child(4) {
  grid-column: 1 / -1;
}

.attending-meta p span {
  font-size: 0.72rem;
  text-transform: none;
  font-weight: 800;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.12;
  min-height: 40px;
}

.attending-meta p span strong {
  display: block;
  margin-top: 2px;
  font-size: 0.94em;
  line-height: 1.05;
  font-weight: 900;
  color: #f4f7ff;
}

.attending-meta p i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #2b3344;
  background: linear-gradient(180deg, #1a1f2a 0%, #141925 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #8e98ad;
}

.attending-bottom {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #242c3d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.attending-card .event-btn {
  font-size: 0.74rem;
  padding: 10px 28px;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 0 20px rgba(217, 15, 27, 0.5);
}

.attending-card .event-attendance {
  min-width: 120px;
  justify-content: flex-start;
}

.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.show-more-btn {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 14px 56px;
  font-size: 0.94rem;
}

.show-more-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.partners-section {
  padding: 8px 0 92px;
}

.partners-section h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  color: #f7f9ff;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 350px));
  gap: 28px;
  justify-content: center;
}

.partner-card {
  background: linear-gradient(180deg, #111317 0%, #0d0f14 100%);
  border: 1px solid #202735;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.34);
}

.partner-image-wrap {
  height: 194px;
  overflow: hidden;
}

.partner-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.partner-body {
  padding: 18px 18px 20px;
  text-align: center;
}

.partner-body h3 {
  margin: 0 0 8px;
  font-size: 1.85rem;
  line-height: 1.02;
  text-transform: uppercase;
  color: #fff;
}

.partner-subtitle {
  margin: 0 0 16px;
  color: #d2d8e7;
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 700;
}

.partner-actions {
  display: grid;
  gap: 10px;
}

.partner-btn {
  display: block;
  text-decoration: none;
  color: #f7f9ff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.84rem;
  border-radius: 999px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.partner-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.site-footer {
  background: #0b0d12;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 24px;
}

.footer-wrap {
  padding: 44px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.footer-brand {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  letter-spacing: 0.04em;
  font-weight: 900;
}

.footer-brand img {
  width: min(280px, 70vw);
  height: auto;
  display: block;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.footer-col a {
  display: block;
  color: #8f95a2;
  text-decoration: none;
  font-size: 0.96rem;
  margin: 7px 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 26px 0 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.footer-copy {
  text-align: center;
  width: 100%;
}

.footer-copy p {
  margin: 3px 0;
  color: #d7dbe5;
  font-size: 0.95rem;
}

.footer-discord {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.footer-discord:hover {
  background: rgba(255, 255, 255, 0.13);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@keyframes loaderRingSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes logoBreath {
  0% {
    transform: scale(0.97);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.97);
  }
}

@media (max-width: 800px) {
  .site-header {
    padding-top: 8px;
  }

  .header-inner {
    min-height: auto;
    border-radius: 22px;
    padding: 10px 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 205px;
    padding-bottom: 95px;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }

  .brand-badge {
    width: 96px;
    height: 96px;
  }

  .brand-badge img {
    width: 92px;
    height: 92px;
  }

  .site-header.is-scrolled .brand-badge {
    width: 62px;
    height: 62px;
  }

  .site-header.is-scrolled .brand-badge img {
    width: 58px;
    height: 58px;
  }

  .nav-cta {
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-content {
    grid-template-columns: 1fr;
  }

  .attending-grid {
    grid-template-columns: 1fr;
  }

  .attending-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .attending-meta {
    grid-template-columns: 1fr;
  }

  .event-media-wrap {
    min-height: 190px;
  }

  #event-banner {
    height: 190px;
  }

  #event-name {
    font-size: clamp(1rem, 4.5vw, 1.35rem);
  }

  .event-meta-grid {
    grid-template-columns: 1fr;
  }

  .event-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-copy {
    order: 2;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 225px;
    padding-bottom: 85px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

.calendar-page .site-header .container {
  width: min(1600px, 96vw);
}

.calendar-page .calendar-hero.container,
.calendar-page .calendar-panel.container {
  width: min(1860px, 98vw);
}

.calendar-main {
  padding-top: 160px;
  padding-bottom: 82px;
}

.calendar-hero {
  text-align: center;
  margin-bottom: 38px;
}

.calendar-hero h1 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.3vw, 4rem);
}

.calendar-hero-line {
  width: 72px;
  height: 3px;
  border-radius: 99px;
  margin: 14px auto 18px;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
}

.calendar-help {
  margin: 6px 0;
  color: #cfd7ea;
  font-size: 0.9rem;
}

.calendar-help span {
  color: #14cde1;
}

.calendar-panel {
  background: linear-gradient(180deg, #0e1118 0%, #0c0f15 100%);
  border: 1px solid #1f2636;
  border-radius: 28px;
  padding: 40px 30px 34px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 30px 70px rgba(0, 0, 0, 0.3);
}

.calendar-topbar {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  min-height: 54px;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #d8deee;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calendar-legend span:first-child i {
  color: #45b85a;
}

.calendar-legend span:nth-child(2) i {
  color: #ff3c3c;
}

.calendar-legend span:nth-child(3) i {
  color: #f4a12e;
}

.calendar-month-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-month-nav h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-month-buttons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-month-buttons button {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid #404758;
  background: linear-gradient(180deg, #2c313d 0%, #232832 100%);
  color: #fff;
  cursor: pointer;
}

.calendar-month-buttons button:hover {
  filter: brightness(1.1);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.calendar-weekdays span {
  text-align: center;
  color: #8f97a8;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.calendar-cell {
  min-height: 150px;
  border-radius: 14px;
  border: 1px solid #262e40;
  background: #1a1d24;
  position: relative;
  display: block;
  text-align: left;
  padding: 14px;
  color: #dce3f1;
  cursor: pointer;
}

.calendar-empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.calendar-day {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.calendar-cell.is-open {
  border-top: 3px solid #45b85a;
}

.calendar-cell.is-closed {
  border-top: 3px solid #862c2c;
  background: rgba(53, 23, 23, 0.45);
}

.calendar-cell.is-policy-closed {
  border: 1px solid #262e40;
  border-top: 3px solid #f4a12e;
  background: #1a1d24;
  box-shadow: none;
}

.calendar-cell.is-today {
  border-color: #6d8f7e;
  background: linear-gradient(180deg, rgba(11, 62, 44, 0.65) 0%, rgba(13, 42, 31, 0.65) 100%);
}

.today-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #87a28f;
  margin-left: 8px;
  vertical-align: middle;
}

@media (max-width: 1100px) {
  .calendar-panel {
    padding: 28px 18px 22px;
  }

  .calendar-grid,
  .calendar-weekdays {
    gap: 10px;
  }

  .calendar-cell {
    min-height: 116px;
  }

  .calendar-day {
    font-size: 1.45rem;
  }
}

@media (max-width: 860px) {
  .calendar-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    min-height: 0;
  }

  .calendar-month-nav {
    position: static;
    transform: none;
    order: 2;
  }

  .calendar-month-buttons {
    margin-left: 0;
    order: 3;
    justify-content: flex-end;
  }

  .calendar-legend {
    order: 1;
  }

  .calendar-grid,
  .calendar-weekdays {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery-main {
  padding-top: 165px;
  padding-bottom: 80px;
}

.gallery-hero {
  text-align: center;
  margin-bottom: 26px;
}

.gallery-hero h1 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
}

.gallery-grid-wrap {
  background: linear-gradient(180deg, #0e1118 0%, #0c0f15 100%);
  border: 1px solid #1f2636;
  border-radius: 24px;
  padding: 20px;
}

.gallery-plain-wrap {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #252d40;
  background: #151922;
  min-height: 210px;
  position: relative;
}

.gallery-open-btn {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.82);
}

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(5, 8, 14, 0.15), rgba(5, 8, 14, 0.55));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-hover-overlay i {
  font-size: 1.4rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: grid;
  place-items: center;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.gallery-lightbox-inner {
  position: relative;
  z-index: 1;
  width: min(1320px, 95vw);
  max-height: 92vh;
  padding: 10px 0 0;
  background: transparent;
  border: 0;
}

.gallery-lightbox-close {
  position: absolute;
  right: 30px;
  bottom: 84px;
  width: 54px;
  height: 54px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 2.2rem;
  opacity: 0.9;
}

.gallery-lightbox-figure {
  margin: 0 auto 8px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: #06080d;
  width: min(1280px, 90vw);
}

.gallery-lightbox-figure img {
  display: block;
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 80px;
  border: 0;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  z-index: 3;
  opacity: 0.95;
}

.gallery-lightbox-nav.prev {
  left: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.gallery-lightbox-nav.next {
  right: 0;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.gallery-lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(1280px, 90vw);
  margin: 0 auto;
}

.gallery-lightbox-bottom p {
  margin: 0;
  color: #e8edf7;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.gallery-thumbs {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 0 6px;
  background: rgba(18, 22, 30, 0.85);
}

.gallery-thumb-btn {
  all: unset;
  width: 170px;
  height: 96px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  opacity: 0.35;
  cursor: pointer;
  flex: 0 0 auto;
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-btn.active {
  opacity: 1;
  border-color: #ffffff;
}

.upload-admin-card {
  min-height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}

.upload-admin-image {
  height: 220px !important;
  min-height: 220px !important;
  object-fit: cover;
}

.upload-admin-meta {
  line-height: 1.4;
}

.upload-admin-delete {
  margin-top: 8px;
}

.upload-portal-card {
  background: linear-gradient(180deg, rgba(14, 18, 28, 0.92) 0%, rgba(10, 14, 22, 0.96) 100%);
}

.upload-portal-sub {
  color: #d6deef;
  margin: 8px 0 16px;
}

.upload-form {
  display: grid;
  gap: 12px;
  max-width: 500px;
  margin-bottom: 14px;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #2a3248;
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #171d2c 0%, #111724 100%);
  cursor: pointer;
}

.file-picker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f2f6ff;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.file-picker-name {
  color: #aeb8cf;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58%;
}

.upload-portal-hint {
  opacity: 0.82;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.available-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
}

.available-modal[hidden] {
  display: none;
}

.available-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 10, 0.78);
  backdrop-filter: blur(4px);
}

.available-modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 500px);
  border-radius: 24px;
  border: 1px solid #1f2738;
  background: linear-gradient(180deg, #090c12 0%, #0b0e14 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  padding: 38px 28px 30px;
  text-align: center;
}

.available-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #2f384b;
  background: #0b0e14;
  color: #e7edf8;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.available-check {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  margin: 2px auto 16px;
  background: #45b85a;
  color: #071209;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.available-check.policy-check {
  background: #e58a1f;
  color: #231304;
}

.available-modal-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.available-modal-card p {
  margin: 0 auto;
  max-width: 44ch;
  color: #d4dbeb;
  font-size: 0.92rem;
  line-height: 1.5;
}

.available-cta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.07));
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.available-cta:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
}


/* Team Page */
.team-page {
  min-height: 100vh;
}

.team-main {
  padding: 190px 0 110px;
}

.team-hero {
  text-align: center;
}

.team-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  text-transform: uppercase;
}

.team-subtitle {
  margin: 42px 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  text-transform: uppercase;
}

.team-description {
  margin: 0 auto;
  max-width: 820px;
  color: #d0d7e7;
  font-size: 0.95rem;
}

.team-grid-wrap {
  margin-top: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  justify-items: center;
}

.team-card {
  width: 100%;
  max-width: 350px;
  min-height: 260px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.88), rgba(9, 12, 18, 0.92));
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 16, 27, 0.42);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.4), 0 0 22px rgba(224, 16, 27, 0.24);
}

.team-avatar-wrap {
  width: 96px;
  height: 96px;
  padding: 4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-role {
  margin: 8px 0 0;
  color: #e7ebf5;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-name {
  margin: 0;
  font-size: 1.06rem;
  color: #fff;
  text-align: center;
}
.team-role-sections {
  display: grid;
  gap: 36px;
}

.team-role-block .team-subtitle {
  margin: 0 0 14px;
  text-align: center;
}

.team-state {
  color: #d8deeb;
  font-size: 0.95rem;
  text-align: center;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(12, 16, 23, 0.75);
}

.team-state-error {
  border-color: rgba(224, 16, 27, 0.6);
  color: #ffb6ba;
}
.team-avatar-wrap {
  position: relative;
  display: block;
}

.team-status-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(14, 18, 26, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.team-status-online {
  background: #3adf61;
}

.team-status-offline {
  background: #e53935;
}

.team-status-unknown {
  background: #7b859d;
}
