.forum-page .site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
}

.forum-wrap {
  width: min(1080px, calc(100% - 48px));
  margin: 20px auto 84px;
}

.forum-tabs {
  display: inline-flex;
  gap: 8px;
  border: 1px solid rgba(88, 176, 245, 0.23);
  border-radius: 999px;
  background: rgba(8, 17, 28, 0.8);
  padding: 5px;
  opacity: 0;
  transform: translateY(14px);
}

.forum-tabs.is-visible,
.forum-panel.is-visible {
  animation: reveal 640ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

.tab-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #89a4bf;
  border-radius: 999px;
  padding: 9px 16px;
  font-family: "Exo 2", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.tab-btn.is-active {
  background: linear-gradient(140deg, rgba(39, 143, 214, 0.95), rgba(21, 87, 146, 0.95));
  color: #eff8ff;
}

.forum-panel {
  margin-top: 18px;
  display: none;
  opacity: 0;
  transform: translateY(16px);
}

.forum-panel.is-panel-active {
  display: block;
}

.section-top {
  border: 1px solid rgba(88, 176, 245, 0.22);
  border-radius: 16px;
  background: rgba(8, 17, 28, 0.82);
  padding: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.section-top h1,
.panel-gallery h1,
.panel-events h1 {
  margin: 0;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.section-top p,
.gallery-sub {
  margin: 8px 0 0;
  color: #8ea8c2;
}

.filter-btn {
  border: 1px solid rgba(88, 176, 245, 0.32);
  background: rgba(24, 74, 116, 0.32);
  color: #ddf0ff;
  border-radius: 999px;
  padding: 9px 14px;
  font-family: "Exo 2", sans-serif;
  font-size: 0.75rem;
}

.section-title {
  margin: 26px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Exo 2", sans-serif;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-title span {
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: #64cbff;
}

.featured-card,
.post-row,
.detail-card,
.gallery-hero {
  border: 1px solid rgba(88, 176, 245, 0.22);
  border-radius: 16px;
  background: rgba(8, 17, 28, 0.84);
}

.featured-card {
  padding: 16px;
  max-width: 620px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.featured-card:hover,
.post-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(4, 14, 23, 0.62);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7e97b2;
  font-size: 0.74rem;
  font-family: "Exo 2", sans-serif;
}

.chip {
  border-radius: 999px;
  padding: 4px 10px;
  background: #237ec0;
  color: #eff8ff;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
}

.chip-soft {
  background: rgba(24, 74, 116, 0.34);
  border: 1px solid rgba(88, 176, 245, 0.32);
}

.featured-card h3,
.post-row h3,
.detail-card h3 {
  margin: 10px 0 7px;
  font-family: "Exo 2", sans-serif;
  line-height: 1.14;
}

.featured-card h3 {
  font-size: clamp(1.36rem, 2.2vw, 1.9rem);
}

.featured-card p {
  margin: 0;
  color: #93aec8;
  line-height: 1.45;
}

.post-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bcd8ef;
  font-family: "Exo 2", sans-serif;
}

.author-dot {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: linear-gradient(140deg, #75d4ff, #1a6db1);
}

.author-avatar {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(108, 196, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(20, 48, 73, 0.6);
}

.arrow-circle {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(88, 176, 245, 0.32);
  background: rgba(24, 74, 116, 0.3);
  display: grid;
  place-items: center;
}

.list-title {
  margin-top: 28px;
}

.post-list {
  display: grid;
  gap: 9px;
  position: relative;
}

.post-row {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-row-hidden {
  display: none;
}

.post-row h3 {
  margin-top: 8px;
  font-size: 1.2rem;
}

.post-row p {
  margin: 8px 0 0;
  color: #7691aa;
  font-size: 0.74rem;
  font-family: "Exo 2", sans-serif;
}

.post-open-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(88, 176, 245, 0.38);
  background: rgba(24, 74, 116, 0.34);
  color: #d7ecff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.post-open-icon i {
  transition: transform 180ms ease;
}

.post-row:hover .post-open-icon {
  background: rgba(44, 114, 170, 0.45);
  border-color: rgba(123, 208, 255, 0.62);
}

.post-row.is-open .post-open-icon {
  background: rgba(44, 114, 170, 0.45);
  border-color: rgba(123, 208, 255, 0.62);
}

.post-row.is-open .post-open-icon i {
  transform: rotate(90deg);
}

.post-list-toggle {
  margin: 8px 0 0;
  border: 1px solid rgba(88, 176, 245, 0.32);
  border-radius: 999px;
  background: rgba(24, 74, 116, 0.24);
  color: #d7ecff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  font-family: "Exo 2", sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  position: static;
}

.post-list-toggle i {
  transition: transform 160ms ease;
}

.post-list-toggle.is-expanded i {
  transform: rotate(180deg);
}

.post-list-toggle.is-floating {
  position: absolute;
  left: 50%;
  right: auto;
  top: 0;
  bottom: auto;
  transform: translateX(-50%);
  z-index: 90;
  margin-left: 0;
  padding: 10px 18px;
  background: rgba(8, 21, 34, 0.94);
  border-color: rgba(112, 200, 255, 0.72);
  box-shadow: 0 14px 32px rgba(3, 10, 18, 0.62);
}

.row-tags {
  display: flex;
  gap: 6px;
}

.row-author {
  min-width: 210px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #dbedff;
}

.row-author small {
  display: block;
  color: #768fa8;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

.detail-panel {
  margin-top: 26px;
  display: none;
}

.detail-panel.is-open {
  display: block;
}

.detail-back {
  border: 0;
  background: transparent;
  color: #a8c2db;
  font-family: "Exo 2", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  padding: 0;
  cursor: pointer;
}

.detail-panel h2 {
  margin: 10px 0 0;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.detail-sub {
  margin: 6px 0 16px;
  color: #8ca6c0;
}

.detail-card {
  padding: 18px;
}

.detail-card h3 {
  font-size: clamp(1.36rem, 2.8vw, 2.2rem);
}

.detail-body {
  margin: 10px 0 0;
  color: #c8deef;
  line-height: 1.62;
  white-space: pre-line;
}

.panel-gallery,
.panel-events {
  border: 1px solid rgba(88, 176, 245, 0.22);
  border-radius: 16px;
  background: rgba(8, 17, 28, 0.82);
  padding: 18px;
}

.gallery-sub {
  margin-top: 10px;
}

.gallery-hero {
  margin-top: 20px;
  overflow: hidden;
}

.gallery-hero img {
  width: 100%;
  height: min(56vh, 510px);
  object-fit: cover;
  display: block;
}

.gallery-hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  padding: 12px 14px;
}

#events-hero .gallery-hero-foot {
  align-items: center;
}

#events-hero .gallery-hero-foot > div {
  min-width: 0;
}

.gallery-hero-foot h3 {
  margin: 0;
  font-family: "Exo 2", sans-serif;
  font-size: 1.32rem;
}

.gallery-hero-foot p {
  margin: 2px 0 0;
  color: #89a3bd;
}

#hero-text,
#events-hero-text {
  margin-top: 10px;
  max-width: 760px;
  line-height: 1.45;
  color: #c9deef;
}

#events-hero-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 4.5em;
  text-overflow: ellipsis;
}

#events-hero-text.is-hidden {
  display: none;
}

.view-full {
  border: 1px solid rgba(88, 176, 245, 0.32);
  background: rgba(24, 74, 116, 0.33);
  color: #e4f2ff;
  border-radius: 999px;
  padding: 9px 12px;
  font-family: "Exo 2", sans-serif;
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.view-full:hover {
  transform: translateY(-1px);
  background: rgba(37, 102, 155, 0.5);
  border-color: rgba(116, 205, 255, 0.6);
  box-shadow: 0 10px 18px rgba(6, 19, 31, 0.38);
}

.view-full:focus-visible {
  outline: 2px solid rgba(114, 211, 255, 0.95);
  outline-offset: 2px;
}

.thumb-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.event-thumb-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.events-calendar {
  margin-top: 18px;
  border: 1px solid rgba(88, 176, 245, 0.22);
  border-radius: 16px;
  background: rgba(8, 17, 28, 0.84);
  padding: 14px;
}

.events-calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.events-calendar-head h3 {
  margin: 0;
  font-family: "Exo 2", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.events-calendar-nav button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(88, 176, 245, 0.38);
  background: rgba(24, 74, 116, 0.3);
  color: #e8f4ff;
  cursor: pointer;
}

#events-cal-label {
  margin: 0;
  min-width: 140px;
  text-align: center;
  font-family: "Exo 2", sans-serif;
  color: #d9eeff;
  font-size: 0.84rem;
}

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

.events-cal-weekday,
.events-cal-day {
  border: 1px solid rgba(88, 176, 245, 0.16);
  border-radius: 10px;
  background: rgba(7, 14, 24, 0.85);
}

.events-cal-weekday {
  padding: 6px 4px;
  text-align: center;
  font-size: 0.66rem;
  color: #87a4bf;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.events-cal-day {
  min-height: 88px;
  padding: 6px;
}

.events-cal-day.is-out {
  opacity: 0.32;
}

.events-cal-daynum {
  font-size: 0.78rem;
  color: #dbeeff;
  margin-bottom: 6px;
}

.events-cal-pill {
  width: 100%;
  margin-bottom: 4px;
  border: 1px solid rgba(117, 208, 255, 0.4);
  border-radius: 8px;
  background: rgba(33, 108, 163, 0.35);
  color: #eaf7ff;
  font-size: 0.64rem;
  line-height: 1.25;
  padding: 4px 6px;
  text-align: left;
  cursor: pointer;
}

.events-cal-pill.more {
  border-style: dashed;
  color: #95bfdc;
}

.thumb {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(88, 176, 245, 0.22);
  border-radius: 11px;
  overflow: hidden;
  background: #0c1320;
  position: relative;
  cursor: pointer;
}

.event-thumb {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(88, 176, 245, 0.22);
  border-radius: 11px;
  overflow: hidden;
  background: #0c1320;
  position: relative;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}

.event-thumb img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}

.thumb.is-active {
  outline: 2px solid rgba(99, 193, 255, 0.92);
}

.event-thumb.is-active {
  outline: 2px solid rgba(99, 193, 255, 0.92);
}

.thumb-tag {
  position: absolute;
  right: 5px;
  top: 5px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #72d3ff;
  color: #06111c;
  font-size: 0.62rem;
  font-family: "Exo 2", sans-serif;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 40;
  background: rgba(2, 7, 12, 0.95);
  padding: 18px;
  isolation: isolate;
}

.lightbox.is-open {
  display: grid;
}

.lightbox-card {
  width: min(1240px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(88, 176, 245, 0.28);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(9, 21, 36, 0.98), rgba(5, 12, 22, 0.98));
  padding: 48px 16px 12px;
  position: relative;
}

.lightbox-card img {
  width: min(1200px, 100%);
  max-height: 72vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(88, 176, 245, 0.3);
  display: block;
  margin: 0 auto;
}

#lightbox-caption {
  margin-top: 12px;
  max-width: min(900px, 100%);
  color: #d3e8f9;
  text-align: center;
  line-height: 1.45;
  white-space: pre-line;
  max-height: 35vh;
  overflow: auto;
}

.lightbox-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(116, 205, 255, 0.55);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(27, 89, 138, 0.92), rgba(16, 56, 88, 0.96));
  color: #f4fbff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(3, 10, 18, 0.38);
  cursor: pointer;
  z-index: 3;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

@media (max-width: 900px) {
  .lightbox-card {
    padding: 46px 10px 10px;
  }

  .lightbox-card img {
    max-height: 58vh;
  }
}

.lightbox-close:hover {
  transform: translateY(-1px);
  border-color: rgba(155, 227, 255, 0.82);
  background: linear-gradient(180deg, rgba(37, 111, 166, 0.96), rgba(19, 67, 103, 0.98));
  box-shadow: 0 14px 28px rgba(3, 10, 18, 0.44);
}

.lightbox-close:focus-visible {
  outline: 2px solid rgba(155, 227, 255, 0.95);
  outline-offset: 2px;
}

.event-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 7, 12, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 60;
}

.event-modal.is-open {
  display: flex;
}

.event-modal-card {
  width: min(1120px, 100%);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid rgba(88, 176, 245, 0.28);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(9, 21, 36, 0.98), rgba(5, 12, 22, 0.98));
  padding: 20px 18px 16px;
  position: relative;
  isolation: isolate;
}

.event-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.event-modal-copy {
  min-width: 0;
}

.event-modal-media {
  min-width: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

#event-modal-image {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(88, 176, 245, 0.24);
  background: rgba(3, 8, 15, 0.9);
}

.event-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(116, 205, 255, 0.55);
  background: linear-gradient(180deg, rgba(27, 89, 138, 0.92), rgba(16, 56, 88, 0.96));
  color: #f4fbff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(3, 10, 18, 0.38);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  z-index: 3;
}

.event-modal-close:hover {
  transform: translateY(-1px);
  border-color: rgba(155, 227, 255, 0.82);
  background: linear-gradient(180deg, rgba(37, 111, 166, 0.96), rgba(19, 67, 103, 0.98));
  box-shadow: 0 14px 28px rgba(3, 10, 18, 0.44);
}

.event-modal-close:focus-visible {
  outline: 2px solid rgba(155, 227, 255, 0.95);
  outline-offset: 2px;
}

#event-modal-title {
  margin: 0 36px 10px 0;
  font-family: "Exo 2", sans-serif;
  font-size: 1.2rem;
  color: #e8f5ff;
}

#event-modal-meta {
  margin: 0 0 14px;
  color: #8eb1cc;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#event-modal-body {
  margin: 0;
  white-space: pre-line;
  color: #cfe4f6;
  line-height: 1.55;
  font-size: 0.96rem;
}

@media (max-width: 900px) {
  .event-modal-layout {
    grid-template-columns: 1fr;
  }

  .event-modal-media {
    position: static;
  }

  #event-modal-image {
    max-height: 44vh;
  }
}

@media (max-width: 980px) {
  .forum-wrap {
    width: min(1080px, calc(100% - 24px));
  }

  .section-top {
    align-items: start;
    flex-wrap: wrap;
  }

  .post-row {
    flex-wrap: wrap;
  }

  .row-author {
    width: 100%;
    min-width: 0;
    justify-content: start;
  }

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

  .event-thumb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .forum-page .site-header {
    position: static;
  }

  .forum-wrap {
    margin-top: 14px;
  }

  .forum-tabs {
    width: 100%;
    justify-content: center;
  }

  .panel-gallery,
  .panel-events {
    padding: 14px;
  }

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

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

  .gallery-hero img {
    height: min(48vh, 340px);
  }
}
