/* ================================
   Global Container Styles
================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ================================
   Lightning Hero Section
================================ */
.lightning-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightning-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1;
}

.lightning-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  color: #fff;
}

.hero-main-text {
  font-family: 'Oswald', sans-serif;
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: #fff;
}
.hero-main-text .highlight-text {
  color: #00A650;
}

.hero-subtext {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  color: #fff;
}

.hero-tagline {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.4;
  color: #ccc;
}

.btn-cta {
  display: inline-block;
  background-color: #00A650;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.btn-cta:hover {
  background-color: #00B85C;
}

/* ================================
   Featured Lightning Contests Section
================================ */
.lightning-featured {
  background-color: #111;
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
}

.lightning-featured .section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: #00A650;
}

.contest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 0 auto;
}

/* Contest Card */
.contest-card {
  position: relative;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  perspective: 1000px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.contest-card:hover {
  transform: scale(1.03) rotateX(3deg) rotateY(3deg);
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}

/* Animated Gradient Backgrounds for Contest Cards */
.contest-card.card1 {
  background: linear-gradient(45deg, #003d29, #00664B, #00A650);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
}
.contest-card.card2 {
  background: linear-gradient(45deg, #00573d, #00855A, #00A650);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
}
.contest-card.card3 {
  background: linear-gradient(45deg, #004f2c, #007A4A, #00A650);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
}

/* Dark Overlay for Contest Cards */
.contest-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  transition: background 0.3s ease;
}
.contest-card:hover::before {
  background: rgba(0, 0, 0, 0.8);
}

.contest-info {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
}

.contest-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00A650;
}

.contest-description {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.btn-readmore {
  display: inline-block;
  background-color: #00A650;
  color: #fff;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.btn-readmore:hover {
  background-color: #00B85C;
}

/* Animated Gradient Keyframes */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================================
   Latest Lightning News Section
================================ */
.lightning-news {
  background-color: #1a1a1a;
  padding: 4rem 2rem;
  color: #fff;
  text-align: center;
}

.lightning-news .section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: #00A650;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 0 auto;
}

/* News Item */
.news-item {
  background-color: #222;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.news-header {
  margin-bottom: 1rem;
}

.news-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: #00A650;
}

.news-excerpt {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #ccc;
}

/* Read More Button for News */
.news-item .btn-readmore {
  background-color: transparent;
  border: 2px solid #00A650;
  color: #00A650;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}
.news-item .btn-readmore:hover {
  background-color: #00A650;
  color: #fff;
}

/* Hidden Details Panel for News */
.news-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #ccc;
  margin-top: 1rem;
  line-height: 1.4;
}

/* Expanded News Item */
.news-item.active .news-details {
  max-height: 300px;
}

/* ================================
   Responsive Adjustments
================================ */
@media (max-width: 768px) {
  .lightning-hero .hero-main-text {
    font-size: 2.5rem;
  }
  .lightning-hero .hero-subtext {
    font-size: 1.5rem;
  }
  .lightning-hero .hero-tagline {
    font-size: 1rem;
  }
  .contest-card {
    height: 220px;
  }
  .news-title {
    font-size: 1.3rem;
  }
  .btn-readmore {
    font-size: 0.85rem;
  }
}
