/* ===== PAGE HERO ===== */
#page-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--iron);
  --hero-focal-x: 58%;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focal-x, 50%) center;
  opacity: 0.75;
  /* Prefer blend/overlay desaturation over CSS filter for scroll performance */
  filter: none;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    108deg,
    rgba(10, 10, 12, 0.97) 0%,
    rgba(10, 10, 12, 0.75) 50%,
    rgba(10, 10, 12, 0.4) 100%
  );
}
[data-theme="light"] .page-hero-overlay {
  background: linear-gradient(
    108deg,
    rgba(242, 240, 236, 0.97) 0%,
    rgba(242, 240, 236, 0.8) 50%,
    rgba(242, 240, 236, 0.5) 100%
  );
}
.page-hero-slash {
  position: absolute;
  top: 0;
  right: 35%;
  bottom: 0;
  z-index: 2;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(201, 85, 39, 0.3) 30%,
    rgba(255, 123, 0, 0.3) 70%,
    transparent
  );
  transform: skewX(-12deg);
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 80px;
  width: 100%;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}
.breadcrumb a {
  color: var(--text);
  transition: opacity 0.2s;
}
.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb-sep {
  color: var(--silver3);
}

.eline {
  width: 40px;
  height: 1px;
  background: var(--text);
}
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}
.page-hero-tag .tline {
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.page-hero-h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(42px, 5.5vw, 90px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.3s forwards;
}
.page-hero-h1 .gold {
  color: var(--gold);
}
.page-hero-desc {
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.4;
  color: var(--text2);
  max-width: 480px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.7s forwards;
}
/* stats strip — matches home .hero-stats */
.hero-stats-bar {
  position: absolute;
  bottom: 56px;
  left: 80px;
  right: 80px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  animation: fadeUp 0.9s ease 1.1s forwards;
}
.hsb-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px;
  border-left: 1px solid var(--border-gold);
  position: relative;
}
.hsb-item:first-child {
  border-left: none;
  align-items: flex-start;
}
.hsb-num {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -1px;
}
.hsb-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 600;
  margin-top: 4px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SECTION BASE ===== */
section {
  width: 100%;
}
.sec {
  max-width: 1920px;
  margin: 0 auto;
  padding: 80px 80px;
}
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 14px;
}
.sec-tag .tline {
  width: 28px;
  height: 1px;
  background: var(--text);
}
.sec-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 10px;
}
.sec-title .gold {
  color: var(--gold);
}
.sec-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text2);
  max-width: 560px;
  font-weight: 400;
}

/* ===== SEARCH & FILTER BAR ===== */
#filter-bar,
.filter-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  contain: layout style paint;
}
.filter-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}
.filter-cats {
  display: flex;
  align-items: stretch;
  height: 100%;
  flex: 1;
  gap: 0;
}
.filter-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  height: 100%;
  font-family: "Rajdhani", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.filter-cat::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transform: scaleX(0);
  transition: transform 0.3s;
}
.filter-cat:hover {
  color: var(--text);
}
.filter-cat:hover::after {
  transform: scaleX(1);
}
.filter-cat.active {
  color: var(--gold);
}
.filter-cat.active::after {
  transform: scaleX(1);
}
.filter-cat .fcat-count {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 20px;
}
.filter-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
  margin: 0 8px;
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
  height: 38px;
  width: 260px;
  transition: border-color 0.2s;
}
.filter-search:focus-within {
  border-color: var(--gold);
}
.filter-search svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--text3);
  stroke-width: 2;
  flex-shrink: 0;
}
.filter-search input {
  background: none;
  border: none;
  outline: none;
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  color: var(--text);
  flex: 1;
}
.filter-search input::placeholder {
  color: var(--text3);
}
.filter-year-select {
  height: 38px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  outline: none;
  margin-left: auto;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.filter-year-select:hover,
.filter-year-select:focus {
  border-color: var(--gold);
}

/* ===== FEATURED NEWS ===== */
#featured {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-template-rows: auto;
  gap: 2px;
}
/* Hero featured article */
.feat-main {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  cursor: pointer;
  background: var(--iron3);
}
.feat-main-img {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1553272725-086100aecf5e?w=1200&q=80")
    center/cover no-repeat;
  filter: brightness(0.5) saturate(0.6);
  transition:
    transform 0.6s ease,
    filter 0.4s;
}
.feat-main:hover .feat-main-img {
  transform: scale(1.04);
  filter: brightness(0.6) saturate(0.7);
}
.feat-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 12, 0.95) 0%,
    rgba(10, 10, 12, 0.4) 60%,
    transparent 100%
  );
}
.feat-main-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
}
.feat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--gold);
  color: #000;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.feat-tag.event {
  background: var(--iron4);
  color: var(--gold);
  border: 1px solid var(--gold);
}
.feat-tag.media {
  background: rgba(0, 80, 180, 0.8);
  color: #fff;
}
.feat-tag.press {
  background: rgba(180, 60, 0, 0.85);
  color: #fff;
}
.feat-main-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 12px;
}
.feat-main-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(200, 205, 212, 0.7);
  margin-bottom: 24px;
  max-width: 560px;
}
.feat-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(200, 205, 212, 0.5);
}
.feat-meta .fdate {
  color: var(--gold);
}
.feat-meta-sep {
  width: 20px;
  height: 1px;
  background: rgba(201, 162, 39, 0.3);
}
.feat-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Rajdhani", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 10px 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  transition:
    gap 0.2s,
    border-color 0.2s;
}
.feat-read-more:hover {
  gap: 14px;
  border-color: var(--gold);
}

/* Side featured stack */
.feat-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feat-side-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 170px;
  cursor: pointer;
  background: var(--iron3);
}
.feat-side-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(0.5);
  transition:
    transform 0.5s ease,
    filter 0.3s;
}
.feat-side-card:hover .feat-side-img {
  transform: scale(1.06);
  filter: brightness(0.55) saturate(0.6);
}
.feat-side-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 12, 0.95) 0%,
    transparent 70%
  );
}
.feat-side-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
}
.feat-side-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 8px;
}

/* ===== NEWS LISTING GRID ===== */
#news-grid,
.news-section {
  background: var(--bg2);
  position: relative;
  contain: layout style;
  scroll-margin-top: var(--scroll-anchor-offset);
}

.news-section-gallery {
  background: var(--bg3);
  border-top: 1px solid var(--border);
}

#news-posts {
  scroll-margin-top: calc(var(--scroll-anchor-offset) + 60px);
}
.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.news-count { 
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text3);
}
.news-count strong {
  color: var(--gold);
}
.view-toggle {
  display: flex;
  gap: 4px;
}
.view-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.view-btn:hover,
.view-btn.active {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}
.view-btn svg {
  width: 14px;
  height: 14px;
  fill: var(--text3);
}
.view-btn.active svg,
.view-btn:hover svg {
  fill: var(--gold);
}
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-cards-grid.list-view {
  grid-template-columns: 1fr;
}
.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
  contain: layout style paint;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  border-color: var(--border-gold);
}
.news-card-img {
  position: relative;
  overflow: hidden;
  height: 320px;
  background: var(--iron3);
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.news-card:hover .news-card-img img {
  transform: scale(1.04);
}
.news-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 12, 0.55) 0%,
    transparent 55%
  );
  pointer-events: none;
}
.nc-tag-wrap {
  display: none;
}
.news-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 140px;
}
.nc-meta {
  margin-bottom: 10px;
}
.nc-date {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
}
.nc-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 16px;
  transition: color 0.2s;
}
.nc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.nc-explore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Rajdhani", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.2s;
}
.news-card:hover .nc-explore {
  gap: 10px;
}
.nc-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.news-card:hover .nc-arrow {
  background: rgba(201, 162, 39, 0.12);
  border-color: var(--gold);
}
.nc-arrow svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
}
.news-empty,
.news-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  color: var(--text3);
  border: 1px dashed var(--border);
}

.news-loading {
  border-style: solid;
  opacity: 0.85;
}
.news-card:hover .nc-title {
  color: var(--gold);
}

.news-post-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.news-post-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.news-post-card:hover {
  border-color: var(--border-gold);
}

.news-post-card .nc-desc {
  font-family: "Rajdhani", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text2);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-cards-grid.list-view .news-post-card .nc-desc {
  -webkit-line-clamp: unset;
  display: block;
}

.news-gallery-card {
  cursor: pointer;
}

.nc-photo-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
}

/* ===== NEWS POST DETAIL PAGE ===== */
.news-post-detail {
  background: var(--bg2);
  min-height: 100vh;
  padding-top: var(--header-height);
}

.news-post-detail-body {
  position: relative;
  z-index: 2;
}

.news-post-detail-body .breadcrumb {
  margin-bottom: 28px;
}

.news-post-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  text-decoration: none;
}

.news-post-back svg {
  flex-shrink: 0;
}

.news-post-article {
  max-width: 960px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.news-post-article-media {
  position: relative;
  width: 100%;
  height: clamp(280px, 42vh, 520px);
  margin: 0;
  overflow: hidden;
  background: var(--iron3);
}

.news-post-article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-post-article-content {
  padding: 36px 44px 48px;
}

.news-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.news-post-meta .sec-tag {
  margin-bottom: 0;
}

.news-post-meta .nc-date {
  margin: 0;
}

.news-post-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 0 0 24px;
}

.news-post-description {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.75;
  color: var(--text2);
}

.news-post-description p {
  margin: 0;
}

/* List view variant */
.news-cards-grid.list-view .news-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  clip-path: none;
}
.news-cards-grid.list-view .news-card-img {
  height: 100%;
  min-height: 260px;
}

/* ===== NEWS GALLERY MODAL (lightbox) =====
   Always dark (photo viewers read best on dark), in both site themes.
   Layout is a 3-row grid sized to the viewport, so it fits any window
   size or display scaling (125% / 150%) without overlapping. */
body.gallery-open {
  overflow: hidden;
}

.news-gallery {
  --ng-accent: #ff7b00;
  --ng-text: #ececee;
  --ng-text2: rgba(236, 236, 238, 0.7);
  --ng-text3: rgba(236, 236, 238, 0.45);
  --ng-line: rgba(255, 255, 255, 0.09);
  --ng-line-accent: rgba(255, 123, 0, 0.32);
  --ng-glass: rgba(12, 12, 15, 0.62);
  --ng-gutter: clamp(0px, 1.6vw, 28px);
  --ng-cut: 22px;
  --ng-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: var(--ng-gutter);
  color: var(--ng-text);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0.35s;
}

.news-gallery.is-open {
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.35s ease,
    visibility 0s;
}

.news-gallery.is-visible {
  opacity: 1;
}

/* Blurred copy of the current photo fills the screen behind the panel */
.ng-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #060608;
}

.ng-ambient img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(48px) saturate(1.3) brightness(0.45);
  transform: scale(1.2);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ng-ambient img.is-ready {
  opacity: 1;
}

.news-gallery-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(6, 6, 8, 0.35), rgba(6, 6, 8, 0.82) 75%);
}

.news-gallery-panel {
  position: relative;
  z-index: 1;
  width: min(1680px, 100%);
  height: 100%;
  max-height: 1120px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--ng-glass);
  border: 1px solid var(--ng-line-accent);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  clip-path: polygon(0 0, calc(100% - var(--ng-cut)) 0, 100% var(--ng-cut), 100% 100%, var(--ng-cut) 100%, 0 calc(100% - var(--ng-cut)));
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition:
    transform 0.5s var(--ng-ease),
    opacity 0.35s ease;
}

.news-gallery.is-visible .news-gallery-panel {
  transform: none;
  opacity: 1;
}

/* ── Top bar ─────────────────────────────────────────────── */
.ng-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  padding: clamp(12px, 1.5vw, 20px) clamp(16px, 2vw, 28px);
  border-bottom: 1px solid var(--ng-line);
}

.ng-info {
  min-width: 0;
}

.news-gallery-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ng-accent);
  margin-bottom: 6px;
}

.ng-date:not(:empty)::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin: 0 10px 3px;
  background: var(--ng-text3);
  vertical-align: middle;
}

.ng-date {
  color: var(--ng-text3);
}

.news-gallery-title {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(17px, 1.7vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ng-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ng-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ng-counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-right: clamp(4px, 1vw, 14px);
  font-family: "Orbitron", sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ng-counter-cur {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 900;
  color: var(--ng-text);
}

.ng-counter-sep,
.ng-counter-total {
  font-size: 12px;
  font-weight: 700;
  color: var(--ng-text3);
}

.ng-tool {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ng-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ng-text2);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.ng-tool svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#galleryPlay svg {
  fill: currentColor;
  stroke: none;
}

.ng-tool:hover,
.ng-tool:focus-visible,
.ng-tool[aria-pressed="true"] {
  border-color: var(--ng-accent);
  color: var(--ng-accent);
  background: rgba(255, 123, 0, 0.1);
}

.ng-tool:focus-visible,
.news-gallery-nav:focus-visible,
.news-gallery-thumb:focus-visible {
  outline: 2px solid var(--ng-accent);
  outline-offset: 2px;
}

.news-gallery-close:hover {
  transform: rotate(90deg);
}

.ng-icon-pause,
.ng-icon-zoom-out,
.ng-icon-collapse,
#galleryPlay[aria-pressed="true"] .ng-icon-play,
#galleryZoom[aria-pressed="true"] .ng-icon-zoom-in,
.news-gallery.is-fullscreen .ng-icon-expand {
  display: none;
}

#galleryPlay[aria-pressed="true"] .ng-icon-pause,
#galleryZoom[aria-pressed="true"] .ng-icon-zoom-out,
.news-gallery.is-fullscreen .ng-icon-collapse {
  display: block;
}

.ng-tool[hidden] {
  display: none;
}

/* Slideshow progress, along the bottom edge of the top bar */
.ng-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.ng-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ng-accent);
  transform: scaleX(0);
  transform-origin: left;
}

.news-gallery.is-playing .ng-progress span {
  animation: ng-progress var(--ng-interval, 5s) linear forwards;
}

@keyframes ng-progress {
  to {
    transform: scaleX(1);
  }
}

/* ── Stage ───────────────────────────────────────────────── */
.news-gallery-stage {
  position: relative;
  min-height: 0;
  margin: clamp(10px, 1.2vw, 18px) clamp(10px, 1.4vw, 20px) 0;
}

.news-gallery-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03), transparent 70%);
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.news-gallery-viewport.is-dragging {
  cursor: grabbing;
}

.news-gallery.is-zoomed .news-gallery-viewport {
  cursor: move;
}

.news-gallery-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.news-gallery-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.news-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  pointer-events: none;
  opacity: 0;
  transform-origin: 0 0;
  transition:
    opacity 0.45s ease,
    transform 0.4s var(--ng-ease);
}

.news-gallery-slide img.is-loaded {
  opacity: 1;
}

.news-gallery-slide img.no-transition {
  transition: opacity 0.45s ease;
}

/* Loading shimmer while a photo downloads */
.news-gallery-slide::before {
  content: "";
  position: absolute;
  top: calc(50% - 19px);
  left: calc(50% - 19px);
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--ng-accent);
  border-radius: 50%;
  animation: ng-spin 0.8s linear infinite;
}

.news-gallery-slide.is-loaded::before {
  display: none;
}

@keyframes ng-spin {
  to {
    transform: rotate(360deg);
  }
}

.news-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: clamp(42px, 3.4vw, 56px);
  height: clamp(42px, 3.4vw, 56px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ng-line-accent);
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ng-accent);
  cursor: pointer;
  transform: translateY(-50%);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.25s var(--ng-ease),
    opacity 0.25s;
}

.news-gallery-prev {
  left: clamp(8px, 1.2vw, 20px);
}

.news-gallery-next {
  right: clamp(8px, 1.2vw, 20px);
}

.news-gallery-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-gallery-nav:hover {
  background: var(--ng-accent);
  border-color: var(--ng-accent);
  color: #0a0a0c;
}

.news-gallery-prev:hover {
  transform: translate(-3px, -50%);
}

.news-gallery-next:hover {
  transform: translate(3px, -50%);
}

.news-gallery.is-single .news-gallery-nav,
.news-gallery.is-zoomed .news-gallery-nav {
  opacity: 0;
  pointer-events: none;
}

.ng-caption {
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 1.4vw, 20px);
  z-index: 2;
  max-width: min(760px, calc(100% - 140px));
  margin: 0;
  padding: 8px 16px;
  transform: translateX(-50%);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--ng-text);
  background: rgba(8, 8, 10, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 2px solid var(--ng-accent);
  transition: opacity 0.3s;
}

.ng-caption:empty,
.news-gallery.is-zoomed .ng-caption {
  opacity: 0;
  pointer-events: none;
}

.ng-zoom-hint {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 2;
  padding: 6px 12px;
  transform: translate(-50%, -6px);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ng-text2);
  background: rgba(8, 8, 10, 0.7);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.news-gallery.is-zoomed .ng-zoom-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Filmstrip ───────────────────────────────────────────── */
.news-gallery-bottom {
  min-width: 0;
  padding: clamp(10px, 1.2vw, 16px) clamp(10px, 1.4vw, 20px) clamp(12px, 1.4vw, 18px);
}

.news-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--ng-line-accent) transparent;
}

/* Center the strip when it doesn't fill the width */
.news-gallery-thumbs::before,
.news-gallery-thumbs::after {
  content: "";
  margin: auto;
}

.news-gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.news-gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--ng-line-accent);
}

.news-gallery-thumb {
  position: relative;
  flex: 0 0 auto;
  width: clamp(64px, 5.6vw, 100px);
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.45;
  filter: grayscale(0.5);
  transition:
    opacity 0.25s,
    filter 0.25s,
    transform 0.3s var(--ng-ease);
}

.news-gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s;
}

.news-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-gallery-thumb:hover {
  opacity: 0.85;
  filter: none;
}

.news-gallery-thumb.active {
  opacity: 1;
  filter: none;
  transform: translateY(-3px);
}

.news-gallery-thumb.active::after {
  border: 2px solid var(--ng-accent);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .news-gallery {
    --ng-gutter: 0px;
  }

  .news-gallery-panel {
    max-height: none;
    clip-path: none;
    border: 0;
  }

  .ng-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 12px 14px;
  }

  .news-gallery-title {
    font-size: 16px;
  }

  .ng-tools {
    gap: 6px;
  }

  .ng-tool {
    width: 36px;
    height: 36px;
  }

  .ng-tool svg {
    width: 16px;
    height: 16px;
  }

  .ng-counter {
    margin-right: 2px;
  }

  .ng-counter-cur {
    font-size: 16px;
  }

  .ng-counter-sep,
  .ng-counter-total {
    font-size: 10px;
  }

  /* Caption flows under the photo area instead of floating far below it */
  .news-gallery-stage {
    margin: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .news-gallery-viewport {
    position: relative;
    inset: auto;
  }

  .ng-caption {
    position: static;
    transform: none;
    max-width: none;
    margin: 0;
    padding: 10px 14px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border-left: 0;
    border-top: 1px solid var(--ng-line);
    color: var(--ng-text2);
  }

  .ng-caption:empty {
    display: none;
  }

  .news-gallery-nav {
    width: 38px;
    height: 38px;
  }

  .ng-caption {
    font-size: 12px;
  }

  .news-gallery-thumb {
    width: 58px;
  }
}

/* Tools wrap under the title on narrow phones */
@media (max-width: 480px) {
  .ng-top {
    grid-template-columns: 1fr;
  }

  .ng-tools {
    justify-content: flex-end;
  }

  .ng-counter {
    margin-right: auto;
  }
}

/* Touch screens swipe, so arrows are kept small and out of the way */
@media (hover: none) and (max-width: 1024px) {
  .news-gallery-nav {
    opacity: 0.85;
  }
}

/* Short windows (heavily scaled displays, landscape phones) */
@media (max-height: 640px) {
  .ng-top {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .news-gallery-title {
    -webkit-line-clamp: 1;
  }

  .news-gallery-thumb {
    width: 56px;
  }
}

@media (max-height: 460px) {
  .news-gallery-bottom {
    display: none;
  }

  .ng-caption {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-gallery-panel,
  .news-gallery-slide img,
  .news-gallery-thumb {
    transition: opacity 0.2s ease;
  }

  .news-gallery-slide::before {
    animation-duration: 2s;
  }
}

.news-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.pagination[hidden] {
  display: none;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s,
    transform 0.2s;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--border-gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.06);
}

.page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  pointer-events: none;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-btn.arrow {
  min-width: 40px;
  padding: 0;
}

.page-btn.arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

/* ===== EVENTS SECTION ===== */
#events {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.events-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}
.events-sidebar {
  position: sticky;
  top: 140px;
}
.events-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.events-cal-month {
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
}
.cal-nav-btn {
  width: 30px;
  height: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.cal-nav-btn:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}
.cal-nav-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--text2);
  stroke-width: 2.5;
}
.cal-nav-btn:hover svg {
  stroke: var(--gold);
}
.events-calendar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 24px;
}
.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}
.cal-day-name {
  text-align: center;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--text3);
  padding: 4px 0;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  text-align: center;
  padding: 7px 4px;
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.cal-day:hover {
  color: var(--text);
  background: rgba(201, 162, 39, 0.08);
}
.cal-day.has-event {
  color: var(--gold);
}
.cal-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.cal-day.today {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  font-weight: 700;
}
.cal-day.empty {
  opacity: 0;
  pointer-events: none;
}

.upcoming-label {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.upcoming-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.upcoming-item:hover {
  border-color: var(--border-gold);
  background: var(--card-hover);
}
.upcoming-date-box {
  flex-shrink: 0;
  width: 44px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  text-align: center;
  padding: 8px 6px;
}
.udb-day {
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #000;
  line-height: 1;
}
.udb-mon {
  font-family: "Space Mono", monospace;
  font-size: 7px;
  letter-spacing: 1px;
  color: rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
}
.upcoming-info {
  flex: 1;
  min-width: 0;
}
.upcoming-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upcoming-loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--text3);
}
.upcoming-loc svg {
  width: 8px;
  height: 8px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  flex-shrink: 0;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.event-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 28px;
  cursor: pointer;
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.event-card:hover {
  border-color: var(--border-gold);
  transform: translateX(6px);
  box-shadow:
    -4px 0 0 var(--gold),
    0 8px 32px rgba(0, 0, 0, 0.2);
}
.event-date-block {
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(201, 162, 39, 0.12),
    rgba(201, 162, 39, 0.05)
  );
  border: 1px solid var(--border-gold);
  padding: 16px 12px;
}
.edb-day {
  font-family: "Orbitron", sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.edb-month {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text3);
  text-transform: uppercase;
  margin-top: 4px;
}
.edb-year {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--text3);
  opacity: 0.6;
}
.event-info {
  padding-top: 4px;
}
.event-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  margin-bottom: 10px;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
}
.event-title {
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.event-card:hover .event-title {
  color: var(--gold);
}
.event-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
  margin-bottom: 16px;
}
.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.event-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text3);
}
.event-detail svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
}
.event-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.btn-event {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  font-family: "Rajdhani", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-event.primary {
  background: var(--gold);
  color: #000;
  border: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-event.primary:hover {
  background: var(--gold2);
}
.btn-event.secondary {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border-strong);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-event.secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== MEDIA LIBRARY ===== */
#media {
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}
.media-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.media-filter-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: "Rajdhani", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.media-filter-btn:hover,
.media-filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.07);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.media-card {
  position: relative;
  overflow: hidden;
  background: var(--iron3);
  cursor: pointer;
  aspect-ratio: 16/10;
}
.media-card.tall {
  aspect-ratio: 3/4;
}
.media-card.wide {
  grid-column: span 2;
  aspect-ratio: 16/7;
}
.media-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.55);
  transition:
    transform 0.5s,
    filter 0.3s;
}
.media-card:hover .media-card-img {
  transform: scale(1.08);
  filter: brightness(0.7) saturate(0.7);
}
.media-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 12, 0.9) 0%,
    transparent 60%
  );
}
.media-card-type {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(10, 10, 12, 0.8);
  border: 1px solid rgba(201, 162, 39, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(
    0 0,
    calc(100% - 6px) 0,
    100% 6px,
    100% 100%,
    6px 100%,
    0 calc(100% - 6px)
  );
}
.media-card-type svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}
.media-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.media-card:hover .media-card-body {
  opacity: 1;
  transform: translateY(0);
}
.media-card-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.media-card-meta {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: rgba(200, 205, 212, 0.5);
}
.media-download-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(201, 162, 39, 0.85);
  color: #000;
  font-family: "Rajdhani", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.media-card:hover .media-download-btn {
  opacity: 1;
}
.media-load-more {
  text-align: center;
  margin-top: 36px;
}

/* ===== PRESS RELEASES ===== */
#press {
  background: var(--bg2);
  position: relative;
}
.press-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.press-item {
  display: flex;
  align-items: start;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.3s;
}
.press-item:hover {
  padding-left: 12px;
}
.press-date {
  flex-shrink: 0;
  width: 90px;
  text-align: center;
  padding-top: 4px;
}
.pd-day {
  font-family: "Orbitron", sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.pd-moy {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--text3);
  text-transform: uppercase;
}
.press-content {
  flex: 1;
}
.press-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
  transition: color 0.2s;
}
.press-item:hover .press-title {
  color: var(--gold);
}
.press-excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text2);
  margin-bottom: 12px;
}
.press-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ptag {
  padding: 3px 10px;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  border: 1px solid var(--border);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.press-item:hover .ptag {
  border-color: var(--border-gold);
  color: var(--gold);
}
.press-cta {
  flex-shrink: 0;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.press-dl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Rajdhani", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 8px 14px;
  border: 1px solid var(--border);
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  transition: all 0.2s;
}
.press-dl:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.press-dl svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.press-format {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--text3);
}

/* ===== NEWSLETTER / CTA BAND ===== */
#newsletter {
  background: var(--iron2);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, border-color 0.4s;
}
[data-theme="light"] #newsletter {
  background: var(--bg3);
}
.newsletter-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 80px 80px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: center;
}
.nl-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
}
.nl-title .gold {
  color: var(--gold);
}
.nl-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text2);
  max-width: 480px;
}
.nl-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nl-form-row {
  display: flex;
  gap: 10px;
}
.nl-input {
  flex: 1 1 0;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  margin: 0;
  display: block;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  line-height: normal;
  outline: none;
  /* Strip the default OS rendering so type="email"/"text" share one height */
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
}
.nl-input:focus {
  border-color: var(--gold);
}
.nl-input.invalid {
  border-color: #e05656;
}
.nl-input::placeholder {
  color: var(--text3);
}
.nl-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.nl-check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
}
.nl-check-label input[type="checkbox"] {
  accent-color: var(--gold);
  width: 14px;
  height: 14px;
}
.nl-note {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text3);
}
.nl-feedback {
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  padding: 10px 14px;
  border-left: 2px solid transparent;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}
.nl-feedback.visible {
  opacity: 1;
  max-height: 120px;
}
.nl-feedback.ok {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
  border-left-color: #2ecc71;
}
.nl-feedback.error {
  color: #e05656;
  background: rgba(224, 86, 86, 0.1);
  border-left-color: #e05656;
}

/* ===== CTA BAND ===== */
#cta-band {
  background: var(--iron);
  border-top: 1px solid var(--border-gold);
  position: relative;
  overflow: hidden;
  transition: background 0.4s, border-color 0.4s;
}
.cta-band-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(201, 117, 39, 0.06) 0%,
    rgba(201, 125, 39, 0.02) 50%,
    transparent 100%
  );
}
[data-theme="light"] #cta-band {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
[data-theme="light"] .cta-band-bg {
  background: linear-gradient(
    90deg,
    rgba(201, 117, 39, 0.06) 0%,
    rgba(201, 125, 39, 0.02) 50%,
    transparent 100%
  );
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1920px;
  margin: 0 auto;
  padding: 72px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.cta-h {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(26px, 2.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.cta-h .gold {
  color: var(--gold);
}
.cta-p {
  font-size: 16px;
  color: var(--text2);
  font-weight: 400;
}
.cta-btns {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--gold);
  color: #000;
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: all 0.25s;
}
.btn-primary:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 162, 39, 0.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 36px;
  background: #484848;
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: all 0.25s;
}
[data-theme="light"] .btn-outline {
  background: #9a9a9a;
}
.btn-outline:hover {
  background-color: #7e7e7e;
  transform: translateY(-2px);
}

/* ===== LOAD MORE ===== */
.load-more-wrap {
  text-align: center;
  margin-top: 48px;
}
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}
.btn-load-more:hover {
  background: rgba(201, 162, 39, 0.08);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.15);
}
.btn-load-more svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .news-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1100px) {
  .sec,
  .newsletter-inner {
    padding: 60px 40px;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .feat-side {
    flex-direction: row;
  }
  .events-layout {
    grid-template-columns: 1fr;
  }
  .events-sidebar {
    position: static;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-cards-grid.list-view .news-card {
    grid-template-columns: 1fr;
  }
  .filter-inner {
    padding: 0 40px;
  }
  .newsletter-inner {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 56px 40px;
  }
  .page-hero-content {
    padding: 60px 40px 52px;
  }
}
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }
  .news-post-article-media {
    height: clamp(220px, 38vh, 360px);
  }

  .news-post-article-content {
    padding: 24px 20px 32px;
  }

  .news-post-meta {
    gap: 12px;
    margin-bottom: 16px;
  }

  .news-post-back {
    margin-bottom: 24px;
    width: 100%;
    justify-content: center;
  }

  .news-cards-grid {
    grid-template-columns: 1fr;
  }
  .news-card-img {
    height: 260px;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-card.wide {
    grid-column: span 1;
  }
  .hero-stats-bar {
    display: none;
  }
  .events-layout {
    grid-template-columns: 1fr;
  }
  .event-card {
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding: 20px;
  }
  .press-item {
    flex-direction: column;
    gap: 10px;
  }
  .press-cta {
    flex-direction: row;
    align-items: center;
  }
  .sec {
    padding: 48px 24px;
  }
  .page-hero-content {
    padding: 48px 24px 40px;
  }
  #filter-bar,
  .filter-bar {
    top: 64px;
  }
  .filter-inner {
    padding: 0 16px;
    gap: 8px;
    height: 52px;
    overflow: visible;
  }
  .filter-cats {
    flex: 1 1 auto;
    min-width: 0;
  }
  .filter-cat {
    padding: 0 8px;
    font-size: 10px;
    letter-spacing: 1px;
    gap: 4px;
  }
  .filter-cat .fcat-count {
    font-size: 8px;
    padding: 1px 5px;
  }
  .filter-sep {
    display: none;
  }
  .filter-year-select {
    height: 34px;
    padding: 0 8px;
    font-size: 11px;
    margin-left: 0;
    min-width: 0;
    max-width: 92px;
  }
  .feat-side {
    flex-direction: column;
  }
  .newsletter-inner {
    padding: 48px 24px;
  }
  .cta-inner {
    padding: 48px 24px;
  }

  .card-stack-active .news-card:hover {
    transform: scale(var(--stack-scale, 1));
  }

  .card-stack-active .news-card:hover .news-card-img img {
    transform: none;
  }
}
