body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
  color: #222;
}
header {
  background: #111;
  color: white;
  padding: 1em;
}

header h1 {
  margin: 0 0 1em;
  text-align: center;
}

header h1 a {
  color: white !important;
  -webkit-text-fill-color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

header h1 a:hover {
  opacity: 0.8;
}
nav ul {
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  display: flex;
  gap: 1.2em;
  align-items: center;
}

nav ul li:nth-child(3) {
  position: relative;
  margin-right: 2.4em;
}

nav ul li:nth-child(3)::after {
  content: "";
  position: absolute;
  right: -1.2em;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1em;
  background: rgba(255, 255, 255, 0.4);
}
nav a {
  color: white;
  text-decoration: none;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Container styles */
.container-narrow {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2em;
}

.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2em;
}

/* Common section styles */
.content-section {
  background: #fff;
  padding: 2em;
  margin: 2em 0;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.content-section h2 {
  color: #4d2c38;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

/* Popup styles */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup.active {
  display: flex;
}

.popup-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 100vh;
  gap: 10px;
  overflow: auto;
}

.popup-container img {
  display: block;
  margin: 0 auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

/* Back to top button */
.back-to-top {
  display: inline-block;
  padding: 1em 2em;
  background: #4d2c38;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2em;
}

.mb-2 {
  margin-bottom: 2em;
}

.my-2 {
  margin-top: 2em;
  margin-bottom: 2em;
}
/* Event tab blinking animation */
@keyframes blink {
  0%, 50% { color: white; }
  51%, 100% { color: #FFD700; }
}

nav a[href="c106-infinity.html"] {
  animation: blink 1.5s infinite;
}

nav a:hover {
  background-color: #8d5c68;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Stop blinking on hover */
nav a[href="c106-infinity.html"]:hover {
  animation: none;
}
.visual {
  text-align: center;
  margin: 2em 0;
}
.visual img {
  max-width: 90%;
  height: auto;
}
.catch {
  font-size: 1.5em;
  color: #444;
  margin-top: 1em;
}
.news {
  padding: 1em;
}
footer {
  text-align: center;
  padding: 1em;
  background: #111;
  color: white;
}

