* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ======================
   EVENTS SECTION
====================== */
.events-section {
    position: relative;
    padding: 120px 20px 90px;
    text-align: center;
    background-image: url("images/evback.jpg"); /* BACKGROUND IMAGE */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* DARK OVERLAY */
.events-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.65)
    );
    z-index: 1;
}

/* Keep content above overlay */
.events-section > * {
    position: relative;
    z-index: 2;
}

/* ======================
   TITLE
====================== */
.title {
    font-size: 42px;
    font-weight: 800;
    color: #b91c1c;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 16px;
    color: #e5e7eb;
    margin-bottom: 60px;
}

/* ======================
   GRID
====================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: auto;
}

/* ======================
   EVENT CARD
====================== */
.event-card {
    position: relative;
    height: 380px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
}

.event-card:hover {
    transform: translateY(-12px);
}

/* ======================
   OVERLAY
====================== */
.event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.95) 40%,
        rgba(0,0,0,0.6) 65%,
        rgba(0,0,0,0.25)
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

/* ======================
   TEXT
====================== */
.event-overlay h3 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.event-overlay p {
    font-size: 14px;
    color: #e5e7eb;
    margin-bottom: 20px;
}

/* ======================
   BUTTON
====================== */
.event-btn {
    display: inline-block;
    width: fit-content;
    padding: 12px 22px;
    background-color: #facc15;
    color: #000000;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.event-btn:hover {
    background-color: #eab308;
    transform: scale(1.05);
}

/* ======================
   RESPONSIVE
====================== */
@media (max-width: 768px) {
    .title {
        font-size: 32px;
    }

    .event-card {
        height: 320px;
    }
}
/* TEXT COLORS */
.white-text {
    color: #ffffff;
}

.yellow-text {
    color: #facc15; /* Same yellow as buttons */
    font-weight: 700;
}
/* =========================
   EVENT HIGHLIGHT SECTION
========================= */

.event-highlight {
    padding: 120px 20px 80px;
    background: radial-gradient(
        circle at top,
        rgba(250, 204, 21, 0.08),
        #020617 70%
    );
}

.event-highlight-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

/* LEFT */
.event-highlight-left h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.event-highlight-left p {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* BUTTONS */
.highlight-buttons {
    display: flex;
    gap: 15px;
}

.primary-btn {
    background: #facc15;
    color: #020617;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.primary-btn:hover {
    background: #fde047;
}

.secondary-btn {
    background: transparent;
    border: 1px solid #facc15;
    color: #facc15;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.secondary-btn:hover {
    background: #facc15;
    color: #020617;
}

/* RIGHT CARD */
.event-highlight-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.event-highlight-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #facc15;
}

.event-highlight-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.event-highlight-card li {
    margin-bottom: 12px;
    font-size: 14px;
    color: #e5e7eb;
}

/* TAGS */
.highlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.highlight-tags span {
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    font-size: 13px;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .event-highlight-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .highlight-buttons {
        justify-content: center;
    }
}

/* ================= WHY PARTICIPATE ================= */
.why-participate {
    padding: 100px 20px;
    background: linear-gradient(
        to bottom,
        #fff,
        #fff
    );
    text-align: center;
}

.why-participate h2 {
    color: #fb0707;
    font-size: 40px;
    margin-bottom: 10px;
}

.why-subtitle {
    color: #595857;
    max-width: 650px;
    margin: 0 auto 60px;
    font-size: 16px;
}

.why-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.why-card {
    background: rgba(15,23,42,0.9);
    border-radius: 18px;
    padding: 40px 25px;
    transition: all 0.4s ease;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    border: 1px solid rgba(250,204,21,0.08);
}

.why-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 40px rgba(250,204,21,0.25);
}

.why-icon {
    font-size: 36px;
    margin-bottom: 18px;
}

.why-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #facc15;
}

.why-card p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
}
/* ================= FOOTER ================= */
.site-footer {
    background-color: #000;
    color: #cbd5e1;
    text-align: center;
    padding: 40px 20px;
}

.site-footer .yellow {
    color: #facc15;
    font-weight: 600;
}

.footer-socials {
    margin-top: 12px;
}

.footer-socials a {
    display: inline-block;
    margin: 0 12px;
    color: #cbd5e1;
    font-size: 20px;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: #facc15;
}

/* ================= CODEWAR HERO SECTION ================= */

.codewar-hero {
  background: radial-gradient(circle at top left, #0f1f14, #060a08);
  padding: 80px 8%;
  color: #e5e5e5;
}

.codewar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: auto;
}

/* LEFT CONTENT */
.codewar-left h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #eaffea;
}

.highlight-date {
  color: #facc15;
  font-weight: 600;
}

.codewar-left p {
  margin-top: 18px;
  line-height: 1.7;
  color: #bfbfbf;
  max-width: 600px;
}

/* BUTTONS */
.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: #facc15;
  color: #000;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background: #facc15;
}

.btn-secondary {
  border: 1px solid #a69448;
  color: #eaffea;
  padding: 12px 26px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(76, 255, 106, 0.1);
}

/* RIGHT SNAPSHOT CARD */
.codewar-right {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px 34px;
  border-radius: 16px;
  min-width: 300px;
  box-shadow: 0 0 20px rgba(0, 255, 100, 0.1);
}

.codewar-right h3 {
  color: #9a8018;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.codewar-right ul {
  list-style: none;
  padding: 0;
}

.codewar-right li {
  margin-bottom: 14px;
  color: #d0d0d0;
  font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .codewar-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .codewar-right {
    width: 100%;
  }
}

/* ================= WHY CODEWAR 3.0 ================= */

.why-codewar {
  padding: 110px 20px;
  background: radial-gradient(
    circle at top,
    rgba(34, 197, 94, 0.08),
    #020617 70%
  );
  text-align: center;
}

.why-container {
  max-width: 1200px;
  margin: auto;
}

.why-codewar h2 {
  font-size: 42px;
  color: #eaffea;
  margin-bottom: 18px;
}

.why-description {
  max-width: 820px;
  margin: 0 auto 70px;
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.7;
}

/* CARDS */
.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
}

.why-box {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 18px;
  padding: 45px 30px;
  box-shadow: 0 0 35px rgba(0, 255, 100, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  transition: all 0.4s ease;
}

.why-box:hover {
  transform: translateY(-12px);
  box-shadow: 0 0 45px rgba(34, 197, 94, 0.35);
}

.why-emoji {
  font-size: 42px;
  margin-bottom: 20px;
}

.why-box h3 {
  font-size: 20px;
  color: #facc15;
  margin-bottom: 14px;
}

.why-box p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ================= HOW CODEWAR WORKS ================= */

.how-codewar {
  padding: 110px 20px;
  background: linear-gradient(
    to bottom,
    #020617,
    #000
  );
}

.how-container {
  max-width: 1000px;
  margin: auto;
}

.how-codewar h2 {
  font-size: 42px;
  color: #eaffea;
  margin-bottom: 60px;
  text-align: left;
}

/* STEPS */
.how-step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.85);
  padding: 30px 28px;
  border-radius: 16px;
  margin-bottom: 28px;
  border-left: 5px solid #22c55e;
  box-shadow: 0 0 25px rgba(0, 255, 100, 0.08);
  transition: 0.3s ease;
}

.how-step:hover {
  transform: translateX(8px);
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.35);
}

.step-icon {
  font-size: 26px;
  color: #22c55e;
  margin-top: 4px;
}

.how-step h3 {
  font-size: 20px;
  color: #facc15;
  margin-bottom: 8px;
}

.how-step p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .how-step {
    flex-direction: column;
  }

  .how-codewar h2 {
    text-align: center;
  }
}
/* ================= COMPETITION FORMAT ================= */

.competition-format {
  padding: 100px 20px;
  background: radial-gradient(
    circle at top,
    rgba(34, 197, 94, 0.06),
    #020617 70%
  );
}

.format-container {
  max-width: 1100px;
  margin: auto;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 18px;
  padding: 50px 60px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 40px rgba(0, 255, 100, 0.08);
}

.format-container h2 {
  font-size: 36px;
  color: #eaffea;
  margin-bottom: 30px;
  position: relative;
}

.format-container h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #22c55e;
  display: block;
  margin-top: 10px;
}

.format-list {
  list-style: none;
  padding: 0;
}

.format-list li {
  font-size: 15px;
  color: #cbd5e1;
  margin-bottom: 18px;
  padding-left: 26px;
  position: relative;
  line-height: 1.6;
}

.format-list li::before {
  content: "▸";
  color: #22c55e;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
}

/* ================= PRIZES & RECOGNITION ================= */

.prizes-section {
  padding: 110px 20px;
  background: linear-gradient(to bottom, #020617, #000);
}

.prizes-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.prizes-container h2 {
  font-size: 40px;
  color: #eaffea;
  margin-bottom: 15px;
}

.prizes-container h2::after {
  content: "";
  width: 70px;
  height: 3px;
  background: #22c55e;
  display: block;
  margin: 12px auto 0;
}

.prizes-subtitle {
  max-width: 800px;
  margin: 0 auto 70px;
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.7;
}

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
}

.prize-card {
  background: rgba(15, 23, 42, 0.9);
  padding: 45px 30px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 30px rgba(0, 255, 100, 0.08);
  transition: all 0.4s ease;
}

.prize-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 0 45px rgba(34, 197, 94, 0.35);
}

.prize-card h3 {
  font-size: 22px;
  color: #facc15;
  margin-bottom: 12px;
}

.prize-card p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}
/* ================= HOW TO PREPARE ================= */

.prepare-section {
  padding: 100px 20px;
  background: radial-gradient(
    circle at top,
    rgba(34, 197, 94, 0.06),
    #020617 70%
  );
}

.prepare-container {
  max-width: 1100px;
  margin: auto;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 18px;
  padding: 50px 60px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 40px rgba(0, 255, 100, 0.08);
}

.prepare-container h2 {
  font-size: 36px;
  color: #eaffea;
  margin-bottom: 30px;
}

.prepare-container h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #22c55e;
  display: block;
  margin-top: 10px;
}

.prepare-list {
  list-style: none;
  padding: 0;
}

.prepare-list li {
  font-size: 15px;
  color: #cbd5e1;
  margin-bottom: 18px;
  padding-left: 26px;
  position: relative;
  line-height: 1.6;
}

.prepare-list li::before {
  content: "▸";
  color: #22c55e;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
}
@media (max-width: 768px) {
  .format-container,
  .prepare-container {
    padding: 40px 28px;
  }

  .format-container h2,
  .prepare-container h2 {
    text-align: center;
  }

  .format-container h2::after,
  .prepare-container h2::after {
    margin-left: auto;
    margin-right: auto;
  }
}

.codewar-hero {
  margin-top: 20px;   /* adjust value if needed */
}

/* Fix large gap between Rules & Problem Statements */
.competition-format {
  padding-bottom: 30px;
}

#problem-statements {
  padding-top: 30px;
}

#problem-statements h2 {
  margin-top: 0;
}

/* ================= PROBLEM STATEMENT SECTION ================= */

.problem-section {
  padding: 50px 0 60px;
  background: linear-gradient(135deg, #020617, #020617);
}

.problem-container {
  width: 85%;
  margin: auto;
  color: #e5e7eb;
}

.problem-container h2 {
  font-size: 2.3rem;
  margin-bottom: 25px;
  color: #eaffea;
}

/* Problem List */
.problem-list {
  padding-left: 20px;
  margin-bottom: 30px;
}

.problem-list li {
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Rules Box */
.problem-rules-box {
  background: rgba(0, 255, 140, 0.08);
  border: 1px solid rgba(255, 213, 0, 0.3);
  border-radius: 12px;
  padding: 25px;
  margin-top: 20px;
}

.problem-rules-box h3 {
  margin-bottom: 15px;
  color: #e5ff7c;
}

/* Rules List */
.problem-rules {
  list-style: none;
  padding-left: 0;
}

.problem-rules li {
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.problem-rules li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #b7c409;
  font-size: 0.8rem;
}

/* Reduce space after Rules & Regulations */
.competition-format {
  padding-bottom: 20px;
  margin-bottom: 0;
}

/* ====================== PRIZES & RECOGNITION ====================== */

.prize-section {
  background: linear-gradient(135deg, #0b0f1a, #10172a);
  padding: 80px 20px;
  text-align: center;
}

.prize-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Title */
.prize-section h2 {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 12px;
}

/* Subtitle */
.prize-subtext {
  font-size: 16px;
  color: #c7c7c7;
  margin-bottom: 50px;
}

/* Prize cards layout */
.prize-cards.two-prizes {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Prize card base */
.prize-card {
  background: #141b33;
  border-radius: 18px;
  padding: 40px 30px;
  width: 280px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prize-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6);
}

/* Icons */
.prize-card i {
  font-size: 42px;
  margin-bottom: 18px;
}

/* Headings */
.prize-card h3 {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 10px;
}

/* Prize amount */
.prize-card p {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Certificate text */
.prize-card span {
  font-size: 14px;
  color: #d1d1d1;
}

/* Gold & Silver themes */
.prize-card.gold i,
.prize-card.gold p {
  color: #f5c542;
}

.prize-card.silver i,
.prize-card.silver p {
  color: #cfd8dc;
}

/* Extra info */
.prize-extra {
  margin-top: 45px;
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .prize-section h2 {
    font-size: 30px;
  }

  .prize-card {
    width: 100%;
    max-width: 320px;
  }
}

/* ======================
   NAVBAR DROPDOWN
====================== */

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-links li {
  position: relative;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #020617;
  min-width: 200px;
  top: 100%;
  left: 0;
  border-radius: 8px;
  z-index: 999;
}

/* desktop hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* mobile click support */
.dropdown.open .dropdown-menu {
  display: block;
}
