/* ROBOFEST main event and four-detail-box event cards */
.main-event {
  background: #08050f;
}

.main-event-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  border: 1px solid #00c9ee;
  border-radius: 4px;
  background: linear-gradient(145deg, #10192a, #070b16 75%);
  box-shadow: 0 0 28px #00c9ee16;
}



.main-event-chip {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 1;
  padding: 7px 13px;
  border: 1px solid #00c9ee;
  border-radius: 20px;
  color: #00d9ff;
  font-size: 10px;
  letter-spacing: 1.5px;
}


.main-event-content {
  padding: clamp(22px, 4vw, 42px);
}

.main-event-content h2 {
  margin: 10px 0;
  color: #00d9ff;
  font-family: Orbitron, sans-serif;
  font-size: clamp(32px, 5vw, 54px);
}

.main-event-subtitle,
.main-event-description {
  color: #c4d1e1;
  line-height: 1.8;
  font-size: 13px;
}

.main-event-date {
  margin: 22px 0 15px;
  padding: 14px;
  border: 1px solid #07516a;
  border-radius: 10px;
  background: #062638;
  color: #64eaff;
  font-weight: 700;
  text-align: center;
  font-size: 13px;
}

.event-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.event-info-box {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px 12px;
  border: 1px solid #12364b;
  border-radius: 10px;
  background: #0a1425;
}

.event-info-box>span {
  flex: 0 0 auto;
  color: #00d9ff;
  font-size: 19px;
}

.event-info-box small,
.event-info-box strong {
  display: block;
}

.event-info-box small {
  margin-bottom: 4px;
  color: #8999ae;
  font-size: 10px;
}

.event-info-box strong {
  color: #f1f7ff;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.main-event-button {
  display: flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.event-card-content .event-info-grid.compact {
  gap: 7px;
  margin: 17px 0;
}

.event-info-grid.compact .event-info-box {
  gap: 7px;
  padding: 10px 8px;
}

.event-info-grid.compact .event-info-box>span {
  font-size: 16px;
}

.event-info-grid.compact .event-info-box small {
  font-size: 9px;
}

.event-info-grid.compact .event-info-box strong {
  font-size: 10px;
}

@media (max-width: 720px) {
  .main-event-card {
    grid-template-columns: 1fr;
  }

  .main-event-art {
    min-height: 270px;
  }

  .main-event-content {
    padding: 22px 18px;
  }

  .event-info-grid {
    gap: 8px;
  }

  .event-info-box {
    padding: 11px 9px;
  }

  .event-info-box strong {
    font-size: 10px;
  }
}

/* Requested 3D finish: main event card and its details button only */
.main-event-card {
  position: relative;
  isolation: isolate;
  border-radius: 20px;
  border-color: #00d9ff;
  background: linear-gradient(145deg, #17263a 0%, #0b1424 42%, #050912 100%);
  box-shadow:
    0 2px 0 #087b99,
    0 7px 0 #062333,
    0 16px 28px rgba(0, 0, 0, .48),
    0 0 28px rgba(0, 201, 238, .18),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  transform: translateY(0);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.main-event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(0, 217, 255, .10), transparent 28%, transparent 72%, rgba(0, 217, 255, .06)),
    radial-gradient(ellipse at 50% 0%, rgba(0, 217, 255, .09), transparent 60%);
}

.main-event-art,
.main-event-content {
  position: relative;
  z-index: 1;
}

.main-event-card:hover {
  transform: translateY(-4px);
  border-color: #5cecff;
  box-shadow:
    0 3px 0 #087b99,
    0 10px 0 #062333,
    0 22px 36px rgba(0, 0, 0, .52),
    0 0 34px rgba(0, 201, 238, .24),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

.main-event-button {
  position: relative;
  border: 1px solid #5cecff;
  border-radius: 10px;
  background: linear-gradient(180deg, #19dfff 0%, #00a9d6 55%, #007da9 100%);
  color: #03111b;
  font-weight: 800;
  box-shadow:
    0 3px 0 #006181,
    0 6px 0 #03405a,
    0 10px 18px rgba(0, 0, 0, .38),
    inset 0 1px 0 rgba(255, 255, 255, .55);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  -webkit-tap-highlight-color: transparent;
}

.main-event-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 4px 0 #006181,
    0 7px 0 #03405a,
    0 13px 22px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255, 255, 255, .6);
}

.main-event-button:active {
  transform: translateY(5px);
  filter: brightness(.96);
  box-shadow:
    0 1px 0 #006181,
    0 2px 0 #03405a,
    0 3px 8px rgba(0, 0, 0, .35),
    inset 0 3px 7px rgba(0, 35, 55, .28);
}

.main-event-button:focus-visible {
  outline: 2px solid #e5fbff;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

  .main-event-card,
  .main-event-button {
    transition: none;
  }
}

/* ALL CHALLENGES — Premium 3D Button */
.events-actions .button-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 24px;

  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;

  background: linear-gradient(135deg,
      #C026D3 0%,
      #9333EA 45%,
      #512080 100%);

  border: 1px solid #E9A8FF;
  border-radius: 12px;

  box-shadow:
    inset 0 1px 2px #FFFFFF66,
    inset 0 -3px 5px #32104F88,
    0 5px 0 #32104F,
    0 9px 20px #9333EA55;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

/* Hover: raised 3D effect */
.events-actions .button-secondary:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);

  box-shadow:
    inset 0 1px 3px #FFFFFF88,
    0 8px 0 #32104F,
    0 14px 28px #C026D366;
}

/* Click: button presses down */
.events-actions .button-secondary:active {
  transform: translateY(4px);

  box-shadow:
    inset 0 3px 7px #32104F88,
    0 1px 0 #32104F,
    0 3px 10px #9333EA44;
}

/* Arrow movement */
.events-actions .button-secondary span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.events-actions .button-secondary:hover span {
  transform: translate(3px, -3px);
}

/* Events Action Buttons */
.events-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.events-actions .button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 24px;

  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;

  background: linear-gradient(135deg,
      #C026D3 0%,
      #9333EA 45%,
      #32104F 100%);

  border: 1px solid #E9A8FF;
  border-radius: 12px;

  box-shadow:
    inset 0 1px 2px #FFFFFF66,
    inset 0 -3px 5px #32104F88,
    0 5px 0 #210D35,
    0 9px 20px #9333EA44;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

/* Hover effect */
.events-actions .button:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);

  box-shadow:
    inset 0 1px 3px #FFFFFF88,
    0 8px 0 #210D35,
    0 14px 28px #9333EA66;
}

/* Press-down 3D effect */
.events-actions .button:active {
  transform: translateY(4px);

  box-shadow:
    inset 0 3px 7px #32104F88,
    0 1px 0 #210D35,
    0 3px 10px #9333EA44;
}

/* Arrow animation */
.events-actions .button span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.events-actions .button:hover span {
  transform: translate(3px, -3px);
}

/* Mobile layout */
@media (max-width: 480px) {
  .events-actions {
    gap: 12px;
  }

  .events-actions .button {
    padding: 13px 17px;
    font-size: 12px;
  }
}

/* ROBOFEST finishing touches: luxury All Challenges button, 3D event cards, section dividers */

/* Keep the luxury styling limited to the ALL CHALLENGES button in the events heading. */
.events .section-heading>.button-secondary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 14px 22px;
  gap: 13px;
  color: #fff7ff;
  font-weight: 800;
  letter-spacing: 1.1px;
  border: 1px solid #f0abfc;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 35%),
    linear-gradient(135deg, #c026d3 0%, #8438c7 42%, #32104f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -4px 8px rgba(25, 5, 42, .42),
    0 3px 0 #210d35,
    0 6px 0 #160820,
    0 12px 24px rgba(147, 51, 234, .28),
    0 0 18px rgba(192, 38, 211, .12);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  margin-bottom: 10px;
}

.events .section-heading>.button-secondary::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 10px;
  background: linear-gradient(115deg, rgba(255, 255, 255, .12), transparent 38%, rgba(240, 171, 252, .08));
  pointer-events: none;
}

.events .section-heading>.button-secondary:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -4px 8px rgba(25, 5, 42, .35),
    0 5px 0 #210d35,
    0 8px 0 #160820,
    0 17px 30px rgba(147, 51, 234, .38),
    0 0 24px rgba(192, 38, 211, .2);
}

.events .section-heading>.button-secondary:active {
  transform: translateY(4px);
  filter: brightness(.98);
  box-shadow:
    inset 0 3px 8px rgba(25, 5, 42, .5),
    0 1px 0 #210d35,
    0 3px 8px rgba(147, 51, 234, .22);
}

.events .section-heading>.button-secondary span {
  display: inline-block;
  transition: transform .2s ease;
}

.events .section-heading>.button-secondary:hover span {
  transform: translate(3px, -3px);
}

.events .section-heading>.button-secondary:focus-visible {
  outline: 2px solid #f0abfc;
  outline-offset: 4px;
}

/* Event cards: rounded 20px corners with visible right-and-bottom 3D depth. */
.event-grid .event-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(201, 142, 255, .42);
  background: linear-gradient(145deg, #191025 0%, #0e0a16 58%, #08050f 100%);
  box-shadow:
    1px 0 0 #482263,
    5px 4px 0 #32104f,
    8px 8px 0 #1c0c2a,
    12px 15px 24px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.event-grid .event-card:hover {
  transform: translate(-2px, -5px);
  border-color: #d8a0ff;
  box-shadow:
    1px 0 0 #6f3894,
    6px 5px 0 #32104f,
    9px 9px 0 #1c0c2a,
    15px 20px 30px rgba(0, 0, 0, .48),
    0 0 22px rgba(147, 51, 234, .16),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}

.event-grid .event-image {
  border-radius: 19px 19px 0 0;
}

.event-grid .event-card-content {
  background: linear-gradient(155deg, rgba(49, 25, 70, .35), rgba(8, 5, 15, .96) 72%);
}

/* Thin, subtle divider after each main section. */
main>section {
  position: relative;
}

main>section:not(:last-child) {
  border-bottom: 1px solid rgba(168, 85, 247, .2);
}

/* Avoid doubled divider weight where a section already has its own border. */
main>section.hero,
main>section.about,
main>section.events {
  border-bottom-color: rgba(168, 85, 247, .2);
}

@media (prefers-reduced-motion: reduce) {

  .events .section-heading>.button-secondary,
  .event-grid .event-card,
  .events .section-heading>.button-secondary span {
    transition: none;
  }
}

main>section {
  position: relative;
}

main>section:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: rgba(168, 85, 247, 0.25);
}

@media (max-width: 720px) {
  main>section:not(:last-child)::after {
    left: 16px;
    right: 16px;
  }
}

/* REGISTER SECTION — scoped overrides only */
.register.section-wrap.section-pad {
  padding-left: 80px !important;
  padding-right: 80px !important;
}

.register .register-panel {
  border-radius: 24px !important;
  box-sizing: border-box !important;
}

.register .register-form-wrap {
  border-radius: 18px !important;
  box-sizing: border-box !important;
}

.register .form-heading,
.register .register-badges span,
.register input,
.register select {
  border-radius: 12px !important;
  box-sizing: border-box !important;
}

.register input,
.register select {
  overflow: hidden !important;
}

.register .submit-button {
  border: 1px solid #e9a8ff !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #c026d3 0%, #9333ea 48%, #4c1d70 100%) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(35, 8, 48, 0.35),
    0 4px 0 #32104f,
    0 7px 0 #1c0c2a,
    0 12px 22px rgba(147, 51, 234, 0.3) !important;
  transform: translateY(0) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

.register .submit-button:hover {
  transform: translateY(-3px) !important;
  filter: brightness(1.12) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    0 5px 0 #32104f,
    0 8px 0 #1c0c2a,
    0 16px 28px rgba(192, 38, 211, 0.35) !important;
}

.register .submit-button:active {
  transform: translateY(5px) !important;
  box-shadow:
    inset 0 3px 7px rgba(35, 8, 48, 0.4),
    0 2px 0 #32104f,
    0 4px 10px rgba(147, 51, 234, 0.2) !important;
}

.register .submit-button:focus-visible {
  outline: 2px solid #f0abfc !important;
  outline-offset: 4px !important;
}

@media (max-width: 720px) {
  .register.section-wrap.section-pad {
    padding-left: 25px !important;
    padding-right: 25px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .register .submit-button {
    transition: none !important;
  }
}

/* =====================================
   MAIN EVENT — BACKGROUND IMAGE FIX
   ===================================== */

.main-event {
  width: 100% !important;
  background-color: #08050f !important;

  background-image:
    linear-gradient(90deg,
      rgba(7, 6, 11, 0.55) 0%,
      rgba(7, 6, 11, 0.35) 50%,
      rgba(7, 6, 11, 0.20) 100%),
    url("Main_Event.jpeg") !important;

  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

/* Make the ROBOTHON card transparent enough
   for the section background to show through */

.main-event-card {
  background: rgba(7, 11, 22, 0.72) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Keep the existing ROBOTHON artwork readable */

.main-event-art {
  background: radial-gradient(ellipse at 50% 40%,
      rgba(7, 91, 122, 0.88) 0%,
      rgba(9, 40, 62, 0.88) 30%,
      rgba(7, 17, 31, 0.88) 70%) !important;
}

/* Mobile */
@media (max-width: 720px) {
  .main-event {
    background-position: 22% center !important;
    background-size: cover !important;
  }

  .main-event-card {
    background: rgba(7, 11, 22, 0.78) !important;
  }
}

.main-event-art {
  background: url("h.jpg") center center / cover no-repeat !important;
  padding: 0 !important;
}

/* Hide all existing artwork text */
.main-event-art .main-event-chip,
.main-event-art .main-event-art-title,
.main-event-art p {
  display: none !important;
}

/* ROBOTHON text-filled artwork box */
.main-event-art {
  background: #080d18 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 400px;
  overflow: hidden;
}

/* Hide existing artwork elements */
.main-event-art .main-event-chip,
.main-event-art .main-event-art-title,
.main-event-art p {
  display: none !important;
}

/* Fill the box with ROBOTHON */
.main-event-art::before {
  content: "ROBOTHON";
  display: block;
  color: #00d9ff;
  font-size: clamp(40px, 6vw, 90px);
  font-weight: 900;
  letter-spacing: 5px;
  text-align: center;
  text-shadow: 0 0 20px #00d9ff80;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* Make ROBOTHON content fill the whole card */
.main-event-card {
  grid-template-columns: 1fr !important;
}

.main-event-content {
  width: 100%;
}

/* EVENTS SECTION — BACKGROUND IMAGE */
/* 5TH SECTION — EVENTS BACKGROUND IMAGE */
section.events.section-wrap {
  background-image:
    linear-gradient(rgb(0 0 0 / 0.45), rgba(7, 6, 15, 0.70)),
    url("Robot.webp") !important;

  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #08050f !important;
}

/* Keep event cards readable */
.events .event-card {
  background-color: rgba(8, 5, 15, 0.85) !important;
}

/* Mobile positioning */
@media (max-width: 720px) {
  section.events.section-wrap {
    background-position: 28% center !important;
  }
}

/* EVENT 1 — ROBO RACE */
.events .event-image.race-image {
  background:
    linear-gradient(rgba(5, 5, 15, 0.30), rgba(5, 5, 15, 0.55)),
    url("RoboRace.png") center / cover no-repeat !important;
}

/* EVENT 2 — ROBOTICS CHALLENGE */
.events .event-image.build-image {
  background:
    linear-gradient(rgba(5, 5, 15, 0.30), rgba(5, 5, 15, 0.55)),
    url("RoboSoccer.png") center / cover no-repeat !important;
}

/* EVENT 3 — DRONE ARENA */
.events .event-image.drone-image {
  background:
    linear-gradient(rgba(5, 5, 15, 0.30), rgba(5, 5, 15, 0.55)),
    url("RoboWar.png") center / cover no-repeat !important;
}

/* Hide the old CSS-drawn illustrations */
.events .race-track,
.events .arm,
.events .arm-base,
.events .cube,
.events .drone,
.events .drone-beam {
  display: none !important;
}

/* REGISTER SECTION BACKGROUND IMAGE */
#register {
  background:
    linear-gradient(rgba(5, 4, 15, 0.20),
      rgba(5, 4, 15, 0.40)),
    url("Register.webp") center / cover no-repeat !important;
}

/* Remove the panel's solid background, if one is set */
#register .register-panel {
  background-color: transparent !important;
  background-image: none !important;
}

/* Keep the decorative shine subtle */
#register .register-panel::before {
  background: linear-gradient(120deg,
      transparent 40%,
      rgba(168, 85, 247, 0.04),
      transparent 80%) !important;
}

/* REGISTER PANEL — DARK TRANSLUCENT GLASS */
#register .register-panel {
  background: rgba(10, 7, 18, 0.72) !important;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

/* SUBTLE OVERLAY — KEEP THE IMAGE VISIBLE */
#register .register-panel::before {
  background: linear-gradient(120deg,
      rgba(10, 7, 18, 0.08),
      rgba(168, 85, 247, 0.06),
      rgba(10, 7, 18, 0.12)) !important;
}