:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-color: #333;
  --light-color: #f4f4f4;
  --white-color: #fff;
  --font-family: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  background-color: var(--light-color);
  color: var(--dark-color);
}

.container {
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  padding: 0 2rem;
}

header {
  background: var(--white-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo img {
  height: 40px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/tech/new_proposal_image/BREBES HEALTHY FUN RUN 2025-images-0.jpg")
      no-repeat center center/cover;
  color: var(--white-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero .btn {
  margin: 0 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.3s ease;
  cursor: pointer;
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--dark-color);
}

.btn:hover {
  background: #0056b3;
}

.btn-secondary:hover {
  background: #d39e00;
}

#event-countdown-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/tech/new_proposal_image/BREBES HEALTHY FUN RUN 2025-images-17.jpg")
      no-repeat center center/cover;
  color: var(--white-color);
  padding: 4rem 2rem;
  opacity: 1;
  transform: translateY(0);
  border-radius: 20px;
  margin: 0 2rem;
  margin-top: 3%;
  text-align: center;
}

#event-countdown-banner .section-title {
  color: var(--white-color);
  margin-bottom: 2rem;
}

#event-countdown-banner .countdown > div {
  background: rgba(255, 255, 255, 0.05);
}

.section {
  padding: 6rem 0;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-register {
  padding: 6rem 0;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section-register.visible {
  opacity: 1;
  transform: translateY(0);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-content.reverse {
  grid-template-columns: 1fr 1fr;
}

.section-content.reverse .content-text {
  order: 2;
}

.section-content.reverse .content-image {
  order: 1;
}

.content-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.content-text p {
  margin-bottom: 1rem;
}

.content-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#sponsorship .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

.card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-top: 5px solid transparent;
  overflow: hidden;
  display: flex;
  /* Added for equal height */
  flex-direction: column;
  /* Added for equal height */
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card .price {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: none;
}

.card ul {
  list-style: none;
  margin-bottom: 2.5rem;
  text-align: left;
  padding-left: 1rem;
  flex-grow: 1;
  /* Added for equal height */
}

.card ul li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.card ul li svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* --- Gold Card (Featured) --- */
.card-gold {
  background: linear-gradient(145deg, #ffd700, #fbb03b);
  color: var(--dark-color);
  transform: scale(1.05);
  z-index: 10;
}

.card-gold h3,
.card-gold .price {
  color: var(--dark-color);
}

.card-gold .btn {
  background: var(--dark-color);
  color: #ffd700;
}

/* --- Silver Card --- */
.card-silver {
  border-top-color: #c0c0c0;
}

.card-silver h3 {
  color: #a9a9a9;
}

.card-silver .price {
  color: #333;
}

.card-silver .btn {
  background: linear-gradient(145deg, #e0e0e0, #bdbdbd);
  color: var(--dark-color);
}

/* --- Bronze Card --- */
.card-bronze {
  border-top-color: #cd7f32;
}

.card-bronze h3 {
  color: #cd7f32;
}

.card-bronze .price {
  color: #333;
}

.card-bronze .btn {
  background: linear-gradient(145deg, #d2996c, #a7683e);
  color: var(--white-color);
}

.card-platinum {
  background: linear-gradient(145deg, #2c3e50, #4b6cb7);
  color: var(--white-color);
  transform: scale(1.05);
  z-index: 10;
}

.card-platinum h3,
.card-platinum .price {
  color: var(--white-color);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.card-platinum .btn {
  background: var(--white-color);
  color: #2c3e50;
}

.card-gold {
  border-top-color: #ffd700;
}

.card-gold h3 {
  color: #d4af37;
}

.card-gold .price {
  color: #333;
}

.card-gold .btn {
  background: linear-gradient(145deg, #ffd700, #fbb03b);
  color: var(--dark-color);
}

.card-silver {
  border-top-color: #c0c0c0;
}

.card-silver h3 {
  color: #a9a9a9;
}

.card-silver .price {
  color: #333;
}

.card-silver .btn {
  background: linear-gradient(145deg, #e0e0e0, #bdbdbd);
  color: var(--dark-color);
}

.register-coming-soon {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/tech/new_proposal_image/registrasi_background.jpg") no-repeat center
      center/cover;
  color: var(--white-color);
  text-align: center;
  border-radius: 20px;
  margin: 0 2rem;
}

.register-coming-soon .section-title {
  color: var(--white-color);
}

.register-coming-soon .subtitle {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.countdown > div {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  min-width: 100px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown span {
  font-size: 3rem;
  font-weight: 700;
}

.countdown .label {
  font-size: 0.9rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stay-tuned {
  font-size: 2rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.organizer-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.organizer-grid h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.organizer-grid img {
  max-height: 150px;
  width: auto;
}

/* Lightbox Styles */
.content-image img.lightbox-trigger,
#schedule img.lightbox-trigger {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image img.lightbox-trigger:hover,
#schedule img.lightbox-trigger:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 2rem;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.lightbox-overlay.visible {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: #ccc;
}

/* Lightbox Styles */
.content-image img.lightbox-trigger,
#schedule img.lightbox-trigger {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image img.lightbox-trigger:hover,
#schedule img.lightbox-trigger:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 2rem;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.lightbox-overlay.visible {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: #ccc;
}

footer {
  background: var(--dark-color);
  color: var(--white-color);
  text-align: center;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  nav ul {
    display: none;
  }

  .section-content,
  .section-content.reverse {
    grid-template-columns: 1fr;
  }

  .section-content.reverse .content-text {
    order: 1;
  }

  .section-content.reverse .content-image {
    order: 2;
  }
}
