:root {
  --green: #1aff4c;
  --bg: #08140d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: white;
  font-family: "Segoe UI", sans-serif;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 350px;
  background: url("../img/events/hero-banner.png") center center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
}

.hero-content h1 {
  margin: 0;
  font-size: 48px;
  color: var(--green);
  text-shadow: 0 0 20px var(--green);
}

.hero-content p {
  margin-top: 15px;
  color: #ccc;
}

.news-events {
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
}

/* ================= TAB ================= */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 8px;
  background: #0f1f16;
  color: var(--green);
  border: 1px solid rgba(26, 255, 76, 0.3);
}

.tab-btn.active {
  background: var(--green);
  color: black;
}

/* ================= NEWS CARD ================= */
.news-card {
  display: flex;
  gap: 20px;
  background: #0f1f16;
  border: 1px solid rgba(26, 255, 76, 0.2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(26, 255, 76, 0.3);
}

.news-thumb {
  width: 300px;
  min-width: 300px;
  height: 200px;
}

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

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

.news-date {
  color: #999;
  font-size: 13px;
}

.news-title {
  color: var(--green);
  margin: 10px 0;
  font-size: 24px;
}

.news-description {
  color: #ddd;
  line-height: 1.6;
}

.read-more {
  margin-top: 15px;
  display: inline-block;
  padding: 10px 20px;
  background: var(--green);
  color: black;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

.read-more:hover {
  box-shadow: 0 0 15px var(--green);
}

/* ================= PAGINATION ================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.pagination button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  background: #0f1f16;
  color: var(--green);
  border: 1px solid rgba(26, 255, 76, 0.3);
}

.pagination button:hover:not(:disabled) {
  background: var(--green);
  color: black;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination span {
  color: white;
}

/* ================= SKELETON ================= */
.skeleton-card {
  display: flex;
  gap: 20px;
  background: #0f1f16;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(26, 255, 76, 0.15);
}

.skeleton-thumb {
  width: 300px;
  height: 200px;
  background: #15261b;
}

.skeleton-content {
  flex: 1;
  padding: 20px;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  margin-bottom: 15px;
  background: #15261b;
  position: relative;
  overflow: hidden;
}

.skeleton-line.short {
  width: 30%;
}

.skeleton-line.medium {
  width: 60%;
}

.skeleton-line.long {
  width: 90%;
}

.skeleton-thumb::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80px;
  width: 80px;
  height: 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(300px);
  }
}

/* ================= EVENT DETAILS SKELETON ================= */
.skeleton-card,
.details-skeleton-banner,
.details-skeleton-line,
.skeleton-line {
  overflow: hidden;
}

.details-skeleton-banner {
  height: 400px;
  border-radius: 12px;
  background: #15261b;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

.details-skeleton-line {
  height: 18px;
  border-radius: 6px;
  background: #15261b;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.w30 {
  width: 30%;
}

.w70 {
  width: 70%;
}

.w80 {
  width: 80%;
}

.w100 {
  width: 100%;
}

.details-skeleton-banner::after,
.details-skeleton-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100px;
  width: 100px;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(26, 255, 76, 0.15),
    transparent
  );

  animation: shimmer 1.2s infinite;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  /* HERO */
  .hero {
    height: 260px;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 14px;
    padding: 0 10px;
  }

  /* CONTAINER */
  .news-events {
    padding: 25px 15px;
  }

  /* CARD */
  .news-card {
    flex-direction: column;
    border-radius: 14px;
  }

  .news-thumb {
    width: 100%;
    min-width: 100%;
    height: 180px;
  }

  .news-content {
    padding: 15px;
  }

  .news-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .news-description {
    font-size: 14px;
  }

  .read-more {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 14px;
  }

  /* SKELETON */
  .skeleton-thumb {
    height: 180px;
    width: 100%;
  }

  .skeleton-content {
    padding: 15px;
  }

  .news-card:active {
    transform: scale(0.98);
  }
}
