@font-face {
  font-family: "GothamRounded";
  src: url("/fonts/gothamrnd_light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

/* ---------------- ROOT VARIABLES ----------------  */
:root {
  --glass-bg: rgba(0, 0, 0, 0.55);
  --glass-border: rgba(255, 255, 255, 0.25);
  --tile-glass: rgba(255, 255, 255, 0.1);
  --tile-border: rgba(255, 255, 255, 0.3);
  --transition: 0.25s ease;

  --brand-red: #e72c4f;

  --mod-bg: rgba(120, 160, 255, 0.18);
  --mod-border: rgba(120, 160, 255, 0.35);

  --ukdj-bg: rgba(231, 44, 79, 0.18);
  --ukdj-border: rgba(231, 44, 79, 0.35);
}

/* ---------------- GLOBAL ---------------- */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "GothamRounded", sans-serif;
  font-weight: 300;
  background: #111;
  color: white;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ---------------- NAV BAR ---------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 5% 0 7%;
  background: transparent !important;
  z-index: 50;
}

.nav ul {
  position: absolute;
  top: 36px;
  right: 15%;
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  z-index: 100;
}

/* Menu text colours */
.nav li {
  color: white; /* hero default */
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 18px;
  transition: background var(--transition);
}

.nav.scrolled li {
  color: black !important;
}

.nav li:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---------------- LOGO ---------------- */
.logo img {
  height: 85px;
  margin-top: -16px;
}

/* ---------------- HERO VIDEO ---------------- */
.video-container {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 105%;
  height: 105%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

/* ---------------- GRADIENT ---------------- */
.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 15%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* ---------------- HERO TEXT ---------------- */
.hero-content {
  position: absolute;
  top: 28%;
  left: 7%;
  transform: translateY(0);
  z-index: 5;
  max-width: 50%;
}

.hero-content h1 {
  margin: 0;
  font-size: 4.3vw;
  font-weight: 300;
  letter-spacing: -0.5px;
}

.hero-content h1,
.hero-content #rss-target {
  opacity: 0;
  animation: fadeIn 1.3s ease forwards;
}

.hero-content #rss-target {
  animation-delay: 0.4s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ---------------- RSS ---------------- */
#rss-target {
  margin-top: 18px;
  font-size: 1.2vw;
  background: rgba(0, 0, 0, 0.28);
  padding: 6px 12px;
  border-radius: 8px;
  backdrop-filter: blur(3px);
  display: inline-block;
  color: white;
}

.rss-single {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rss-single a {
  color: white;
  text-decoration: none;
  font-size: 1.15vw;
}

.rss-single a:hover {
  color: rgba(255, 255, 255, 0.75);
}

#rss-target.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}
#rss-target.fade-in {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.badge {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.9vw;
}
.badge.mod {
  background: var(--mod-bg);
  border: 1px solid var(--mod-border);
}
.badge.ukdj {
  background: var(--ukdj-bg);
  border: 1px solid var(--ukdj-border);
}

/* ---------------- TILES ---------------- */
.tiles-section {
  position: absolute;
  bottom: 240px;
  right: 5%;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 235px);
  grid-template-rows: repeat(2, 235px);
  gap: 28px;
}

.tile {
  position: relative;
  width: 235px;
  height: 235px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background-clip: padding-box;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.9),
    0 0 34px rgba(255, 255, 255, 0.7);
}

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

.tile .glass {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.55);
  border-top-right-radius: 14px;
  font-size: 18px;
  backdrop-filter: blur(4px);
  color: white;
}

/* ---------------- SUBTILE OVERLAY ---------------- */
#subtile-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1400px;
  display: none;
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

#subtile-overlay.visible {
  display: block;
  opacity: 1;
}

#subtile-overlay .panel {
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 30px 40px;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
  position: relative;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 34px;
  cursor: pointer;
  opacity: 0.8;
}

.subtile-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.subtile {
  position: relative;
  width: 235px;
  height: 235px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: var(--transition);
}

.subtile:hover {
  transform: translateY(-4px);
}

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

.subtile .label {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 16px;
  border-top-right-radius: 14px;
}

/* ---------------- NEWS SECTION ---------------- */
.news-section {
  width: 100%;
  height: 100vh;
  background: white;
  color: #111;
  padding: 90px 7% 40px;
  box-sizing: border-box;
  position: relative;
}

.news-section h2 {
  font-size: 48px;
  font-weight: 300;
  margin: 0 0 30px;
}

.news-carousel-wrapper {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: 0;
}

/* ---------------- EXACT 4-CARD CAROUSEL ---------------- */
.news-carousel {
  flex: 1;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;

  padding: 0;
  margin: 0;
  gap: 0;
}

/* Hide scrollbar (cross browser) */
.news-carousel::-webkit-scrollbar {
  display: none;
}
.news-carousel {
  -ms-overflow-style: none; 
  scrollbar-width: none;
}

/* Exactly 4 cards visible */
.news-card {
  flex: 0 0 calc(25% - 24px);
  width: calc(25% - 24px);
  margin-right: 32px;

  margin: 0 12px; /* ✨ new: light gap */
  box-shadow: 0 4px 14px rgba(0,0,0,0.12); /* ✨ new: subtle drop shadow */

  height: 800px;

  background: #f8f8f8;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #dfd3d3;

  display: flex;
  flex-direction: column;
  transition: 0.25s;
  cursor: pointer;
  scroll-snap-align: start;
}


.news-carousel .news-card:last-child {
  margin-right: 0;
}

.news-card img {
  width: 100%;
  height: 42%;
  object-fit: cover;
}

.news-content {
  flex: 1;
  padding: 22px 24px;
}

.news-card.active {
  background: var(--brand-red);
  color: white;
}

/* ---------------- NEWS ARROWS ---------------- */
.news-arrows {
    position: absolute;
    top: 10%;
    right: 8%;
    display: flex;
    gap: 16px;
    z-index: 20;
}
.news-arrows .arrow {
  font-size: 38px;
  cursor: pointer;
  color: #333;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

/* ---------------- BOUNCING NEXT ARROW ---------------- */
@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -12px); }
  60% { transform: translate(-50%, -6px); }
}

.next-arrow {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%,0);
  font-size: 48px;
  color: white;
  cursor: pointer;
  opacity: 0.85;
  animation: bounce 2.2s infinite;
  user-select: none;
  z-index: 20;
}

.next-arrow.dark {
  color: #222;
}

/* Ensure later sections allow arrow */
#future-section,
#bottom {
  position: relative;
}

/* ---------------- NEWS ARTICLE OVERLAY ---------------- */
.news-article-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
  z-index: 10000;
}

.news-article-overlay.visible {
  display: flex;
}

.news-article-panel {
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 30px 40px;
  width: 80%;
  max-width: 1100px;
  max-height: 85vh;
  overflow-y: auto;
  background: #ffffff;
  color: #222;
}

.news-full-thumb {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.news-full-category {
  font-size: 14px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 10px;
}

.news-full-title {
  font-size: 30px;
  margin: 10px 0 5px;
}

.news-full-date {
  font-size: 13px;
  color: #ddd;
  margin-bottom: 20px;
}

.news-full-body {
  font-size: 17px;
  color: #222;
  line-height: 1.7;
}

.news-summary {
  margin: 10px 0 15px;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.news-title-row {
  display: flex;
  align-items: center;
  gap: 16px;   /* space between title and button */
}

.news-create-btn {
  font-size: 24px;
  line-height: 1;
  border: 1px solid red;
  background: #ffffff;   /* brand red */
  color: rgb(238, 74, 74);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  position: relative;
  top: -10px;   /* nudge up a little */
}

.news-create-btn:hover {
  background: #c52342;
  transform: scale(1.1);
}

.news-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 20000;
}

/* Spinner */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255,255,255,0.25);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.spinner-text {
  margin-top: 18px;
  color: white;
  font-size: 20px;
  font-weight: 300;
  text-align: center;
}

.news-carousel.updating {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.news-carousel.updated {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.news-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  color: #666;
  font-weight: 300;
  text-align: center;
  width: 100%;
  pointer-events: none;
  z-index: 5;
}

.news-placeholder.hidden {
  display: none;
}






