/* === GLOBAL === */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  background-size: 400% 400%;
  animation: bgShift 15s ease infinite;
  color: #eee;
}

@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

/* === HEADER === */
.site-header {
  position: relative;
  background: linear-gradient(to right, #ff0040, #000000);
  color: white;
  box-shadow: 0 0 25px rgba(255,0,64,0.6);
  border-bottom: 3px solid #ff0040;
  overflow: hidden;
  z-index: 10;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 40px;
  background: url('zigzag.svg') repeat-x;
  opacity: 0.5;
}

/* === TOP BAR === */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  position: relative;
  z-index: 2;
}

.logo img {
  height: 80px;
  border-radius: 14px;
  box-shadow: 0 0 10px rgba(255,0,64,0.4);
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.socials {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-icon img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.social-icon img:hover {
  transform: scale(1.2);
}

/* === NAVIGATION === */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 14px 0;
  background-color: #1a1a1a;
  border-top: 2px solid #ff0040;
  border-bottom: 2px solid #ff0040;
  position: relative;
  z-index: 2;
}

.main-nav a {
  color: #ff0040;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  background-color: #ff0040;
  color: #000;
  border-radius: 5px;
  padding: 6px 10px;
}

/* === INTRO === */
.intro {
  text-align: center;
  padding: 60px 20px;
}

/* === PROGRAMME === */
.programme {
  text-align: center;
  line-height: 60px;
}

/* === FOOTER === */
.footer, footer {
  width: 100%;
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  border-top: 2px solid #ff0040;
  box-shadow: 0 -4px 10px rgba(255,0,64,0.2);
}

/* === NEWS SECTION === */
.news-section {
  padding: 40px 20px;
  background-color: #1a1a1a;
  text-align: center;
}

.news-section h2 {
  color: #ff0040;
  margin-bottom: 30px;
  text-shadow: 0 0 10px #ff0040;
}

.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.news-card {
  width: 300px;
  background-color: #222;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255,0,64,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255,0,64,0.4);
}

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

.news-text {
  padding: 15px;
  text-align: left;
}

.news-text h3 {
  margin-top: 0;
  color: #ff0040;
  font-size: 1.1em;
}

.news-text p {
  font-size: 0.95em;
  color: #ccc;
}

/* === POPUP === */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: flex-start;
  z-index: 1000;
  padding-top: 200px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.popup-content {
  background: #111;
  border-radius: 10px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  box-shadow: 0 0 30px rgba(255,0,64,0.4);
  animation: fadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.content {
  font-family: 'Rampart One', cursive;
  font-size: 1.8em;
  color: #ff0040;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.carousel {
  position: relative;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.carousel img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ff0040;
  color: white;
  border: none;
  font-size: 1.5em;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
  opacity: 0.8;
  border-radius: 5px;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

.popup-text {
  flex: 1;
  overflow-y: auto;
  max-height: 300px;
  padding: 20px;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: #ff0040 #1a1a1a;
}

.popup-text h3 {
  margin-top: 0;
  color: #ff0040;
}

.popup-text p {
  font-size: 1em;
  color: #ccc;
}

/* Scrollbar for WebKit browsers */
.popup-text::-webkit-scrollbar {
  width: 6px;
}

.popup-text::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.popup-text::-webkit-scrollbar-thumb {
  background-color: #ff0040;
  border-radius: 3px;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #ff0040;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    gap: 20px;
  }

  .main-nav {
    flex-direction: column;
    gap: 15px;
  }

  .popup-content {
    max-width: 95%;
    max-height: 90vh;
  }

  .popup-text
