html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  /* Offset for fixed header */
}

body {
  margin: 0;
  font-family: Montserrat, sans-serif;
}

.background {
  background-color: white;
  /* background-image: url('../img/background/landingPage.png'); */
  /* background-size: cover; */
  /* background-repeat: no-repeat; */
  /* background-attachment: fixed; */
  height: 49em;
  /* Reduced further by ~5em (approx 2cm) */
  display: flex;
  /* justify-content: center; */
  /* align-items: center; */
}

.hero-container {
  width: auto;
  /* Allow container to shrink to fit content */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 0;
  margin-left: 3em;
  padding-left: 2em;
  margin-top: calc(10em + 19px);
}

/* Retangulo Countdown */
.info-rectangle {
  background-color: transparent;
  color: black;
  text-align: left;
  padding: 1.5em;
  border-radius: 10px;
  width: 800px;
  position: relative;
}

.hero-subtitle {
  font-size: 1.8rem !important;
  /* Slightly reduced to fit in one line */
  font-weight: 400;
  /* Regular weight like in screenshot */
  color: #333;
  margin-top: 10px;
  /* Spacing from H1 */
  margin-bottom: 10px;
  /* Spacing for date */
  text-transform: none;
  /* More natural look like screenshot */
  letter-spacing: normal;
}

.info-rectangle h1 {
  font-size: 4rem;
  /* Slightly larger to emphasize the break */
  margin-top: 0;
  margin-bottom: 0;
  /* Subtitle handles the bottom margin */
  line-height: 1.1;
  font-weight: 700;
}

.info-rectangle h3 {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 1em;
}

.info-rectangle p {
  font-size: 1em;
  margin-bottom: 1em;
}

/* Botão */
.info-rectangle h3 {
  font-size: 1.5rem;
  /* Reduced from 1.5rem */
  margin: 5px 0 40px 0;
  white-space: nowrap;
  /* Force single line */
  font-weight: 500;
}

.apply-button {
  background-color: #00C782;
  color: #F9F6EE;
  padding: 15px 30px;
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.apply-button:hover {
  background-color: #01301F;
  color: white;
  border: 1px solid #01301F;
}

/* Contador */
#countdown {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: white;
  border: 2px solid #00C782;
  padding: 1em 0;
  border-radius: 10px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  width: 500px;
  margin-top: 0.5em;
  margin-left: 1.5em;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.number {
  display: flex;
  align-items: baseline;
  font-size: 1.8rem;
  font-weight: bold;
  color: black;
}

.label {
  margin-top: 5px;
  font-size: 1rem;
  color: black;
  text-align: center;
}

/* Tower Image with Fade */
.tower-image {
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  pointer-events: none;
}

/* Secção About */
.about-section {
  color: #01301F;
  text-align: left;
  padding: 50px 5em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 30px;
  grid-template-areas:
    "left1 center right1"
    "left2 center right2";
  align-items: center;
  justify-items: center;
  margin-top: 50px;
}

/* Specific Card Positioning */
.card-pos-1 {
  grid-area: left1;
}

.card-pos-2 {
  grid-area: left2;
}

.card-pos-center {
  grid-area: center;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.card-pos-3 {
  grid-area: right1;
}

.card-pos-4 {
  grid-area: right2;
}

.feature-card {
  background: white;
  padding: 10px;
  /* Reduced padding */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* Flexible size but clamped */
  width: 100%;
  max-width: 250px;
  height: 100%;
  justify-content: center;
  /* Center content vertically too */
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 199, 130, 0.6);
  /* Green shine */
}

.feature-icon {
  font-size: 2rem;
  /* Reduced icon */
  color: #00C782;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  /* Reduced text */
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.feature-card.prize-card {
  /* Prize Card Specifics */
  background-color: #01301F;
  max-width: 350px;
  /* Slightly larger */
  padding: 10px 40px;
  /* Reduced vertical padding */
  transform: scale(1.05);
  /* Static scale, or remove if using size vars */
  border: none;
  box-shadow: 0 15px 30px rgba(0, 199, 130, 0.3);
}

.feature-card.prize-card:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 40px rgba(0, 199, 130, 0.5);
}

.feature-card.prize-card .feature-icon {
  color: white;
  font-size: 5rem;
  margin-bottom: 20px;
}

/* Prize Card Internal Styling */
.prize-title {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: normal;
}

.prizes-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.prize-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 1st Place Styling */
.rank-1 .amount {
  font-size: 3rem;
  font-weight: 800;
  color: #00C782;
  text-shadow: 0 0 15px rgba(0, 199, 130, 0.4);
  animation: pulsePrize 2s infinite ease-in-out;
}

.rank-1 .rank {
  font-size: 0.9rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0px;
}

/* 2nd and 3rd Place Container */
.prize-sub-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  width: 100%;
}

.rank-2 .amount,
.rank-3 .amount {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.rank-2 .rank,
.rank-3 .rank {
  font-size: 0.8rem;
  color: #aaa;
}

@keyframes pulsePrize {
  0% {
    transform: scale(1);
    text-shadow: 0 0 15px rgba(0, 199, 130, 0.4);
  }

  50% {
    transform: scale(1.05);
    text-shadow: 0 0 25px rgba(0, 199, 130, 0.7);
    filter: brightness(1.2);
  }

  100% {
    transform: scale(1);
    text-shadow: 0 0 15px rgba(0, 199, 130, 0.4);
  }
}

.about-section h1 {
  font-size: 2.5rem;
}

.about-section h3 {
  font-size: 1em;
  font-weight: normal;
}

/* Secção ComoFunciona */
.howto-section {
  color: #01301F;
  text-align: left;
  padding: 0px 5em;
}

.howto-section h1 {
  font-size: 2.5rem;
}

.howto-section h3 {
  margin-left: 10px;
  font-size: 1em;
}

/* Timeline CSS */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 50px 0;
  padding: 20px;
  z-index: 0;
  /* Establish stacking context */
}

/* Vertical Line */
#timeline-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Below items */
  overflow: visible;
  /* Ensure curves don't get clipped */
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
  /* Hidden initially */
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
  /* Higher than SVG */
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from left for odd items */
.timeline-item:nth-child(odd) {
  transform: translateX(-50px);
}

/* Slide in from right for even items */
.timeline-item:nth-child(even) {
  transform: translateX(50px);
}

/* Reset transform when visible */
.timeline-item:nth-child(odd).visible,
.timeline-item:nth-child(even).visible {
  transform: translateX(0);
}

/* Left side items */
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 60px;
  /* Space for dot */
}

/* Right side items */
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 60px;
  /* Space for dot */
}

/* Content Box - Glassmorphism & Hover */
.timeline-content {
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  text-align: left;
}

.timeline-content:hover,
.timeline-content.active-glow {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 199, 130, 0.25);
  border-color: #00C782;
}

/* timeline icon */
.timeline-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  right: -25px;
  background-color: white;
  border: 4px solid #00C782;
  top: 10px;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #00C782;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-icon:hover {
  transform: scale(1.2);
  background-color: #00C782;
  color: white;
  box-shadow: 0 0 15px rgba(0, 199, 130, 0.6);
  animation: pulseIcon 2s infinite;
}

/* Style Event Photos: Rounded corners & Green Glow */
.carousel-track img,
.photo-item img {
  border-radius: 20px !important;
  box-shadow: none !important;
  border: none !important;
  transition: transform 0.3s ease;
}

.photo-item.center-focus img {
  transform: scale(1.02);
  box-shadow: none !important;
}

@keyframes pulseIcon {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 199, 130, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 199, 130, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 199, 130, 0);
  }
}

/* Fix icon position for right items */
.timeline-item:nth-child(even) .timeline-icon {
  left: -25px;
}

/* Content Styling */
.timeline-img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  margin-bottom: 5px;
  display: block;
  margin-left: 0;
  margin-right: auto;
}

.timeline-title {
  color: #01301F;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
  margin-left: 0 !important;
  /* Reset inherited margin for alignment */
  text-align: left !important;
  width: 100%;
}

.timeline-desc {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Podium Gallery CSS */
.podium-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* Align bottom to create podium step effect */
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.podium-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.podium-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 199, 130, 0.4);
}

.podium-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.podium-image-container img {
  width: 100%;
  height: auto;
  /* Allow height to adapt */
  display: block;
  transition: transform 0.5s ease;
}

.podium-card:hover img {
  transform: scale(1.05);
}

.podium-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(1, 48, 31, 0.9), transparent);
  color: white;
  padding: 20px 10px 10px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.podium-card:hover .podium-caption {
  opacity: 1;
  transform: translateY(0);
}

.podium-caption h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.podium-caption p {
  margin: 5px 0 0;
  font-size: 1rem;
  color: #00C782;
}

/* Specific Sizes for Podium Effect */
/* Specific Sizes for Podium Effect & 3D Carousel */
.photo-item {
  flex: 0 0 auto;
  width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  /* Removed shadow */
  background: transparent;
  /* Ensure transparent */
  transition: all 0.5s ease;
  opacity: 1;
  transform: scale(0.8);
  cursor: pointer;
  position: relative;
}

.photo-item.center-focus {
  opacity: 1;
  transform: scale(1.2);
  box-shadow: none;
  /* Removed shadow */
  background: transparent;
  z-index: 10;
}

.photo-item:hover {
  transform: scale(0.95);
  opacity: 1;
}

.photo-item.center-focus:hover {
  transform: scale(1.25);
}

.photo-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  animation-name: zoom;
  animation-duration: 0.3s;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
  color: #00C782;
  text-decoration: none;
  cursor: pointer;
}

.place-1 {
  width: 380px;
  /* Slightly wider to be tallest */
  height: auto;
  /* Adapt to image */
  z-index: 2;
  border: 4px solid #00C782;
  /* Green border */
  order: 2;
  /* Center in flex */
  margin-bottom: 20px;
  /* Lift it up (podium effect) */
}

.place-2 {
  width: 300px;
  height: auto;
  /* Adapt to image */
  border: 4px solid #00C782;
  /* Green border */
  order: 1;
  /* Left */
}

.place-3 {
  width: 300px;
  height: auto;
  /* Adapt to image */
  /* Slightly shorter than 2nd */
  border: 4px solid #00C782;
  /* Green border */
  order: 3;
  /* Right */
}

.winner-crown {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  color: #00C782;
  /* Green crown */
  z-index: 3;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Responsive */
/* Responsive */
@media screen and (max-width: 900px) {
  .podium-gallery {
    align-items: center;
    flex-direction: column;
  }

  .place-1,
  .place-2,
  .place-3 {
    order: unset;
    width: 90%;
    max-width: 400px;
    height: auto;
    border-width: 2px;
    margin-bottom: 20px;
  }

  /* Ensure 1st place is first on mobile/tablet if desired, or let them stack naturally. 
     Usually winner first is better. */
  .place-1 {
    order: -1;
  }

  .winner-crown {
    display: block;
    /* Keep legible */
    top: -25px;
    font-size: 2rem;
  }

  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
}

@media screen and (max-width: 600px) {

  /* Timeline Responsive */
  .timeline-container::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0%;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: 100%;
    /* Full width */
  }

  .timeline-dot {
    left: 17px !important;
    /* Force left alignment */
    right: auto;
  }


  .timeline-item:nth-child(even) .timeline-dot {
    left: 17px !important;
  }

  /* About Section Responsive */
  .about-col-left,
  .about-col-right {
    width: 100%;
  }

  .feature-card {
    max-width: 100% !important;
    width: 90%;
    margin: 10px auto;
  }


  .feature-card.prize-card {
    transform: none;
    /* Remove scale on mobile */
    width: 90%;
    margin: 20px auto;
  }

  /* Hero Section Responsive */
  .background {
    height: auto;
    /* Allow height to grow */
    display: flex;
    /* Ensure flex is active */
    flex-direction: column;
    /* Stack vertically */
    padding-bottom: 50px;
    padding-top: 200px;
    /* Force entire site down significantly */
  }

  .hero-container {
    width: 100% !important;
    margin: 0;
    padding: 20px;
    margin-top: 0;
    /* padding on background handles spacing now */
    align-items: center;
    /* Center content */
  }

  .info-rectangle {
    width: 100%;
    max-width: 100%;
    text-align: center;
    /* Center text on mobile */
    padding: 1em;
  }

  /* Overrides for Left Aligned Sections on Mobile */
  .about-section,
  .howto-section,
  #mentors h1,
  #mentors .container,
  #schedules,
  #jury,
  #partners-section,
  #team,
  #past-editions,
  #partners .opportunity h1,
  #partners .buttons-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    text-align: center !important;
  }

  #partners .buttons-container {
    justify-content: center !important;
  }

  .info-rectangle h1 {
    font-size: 2.5rem;
    /* Smaller font */
  }

  #countdown {
    width: 100%;
    margin-left: 0;
    /* Center countdown */
    flex-wrap: wrap;
  }

  .tower-image {
    height: 25em;
    /* Smaller tower */
    margin-left: 0;
    margin-top: 20px;
    margin-bottom: 50px;
    /* Prevent overlap with next section */
    align-self: center;
    /* Center tower */
  }
}


/* Responsive */
@media screen and (max-width: 768px) {
  .timeline-container::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 21px;
  }
}

/* Flip Card CSS */
.flip-container {
  perspective: 1000px;
}

.flip-container:hover .flipper {
  transform: rotateY(180deg);
}

.flipper {
  transition: 0.6s;
  transform-style: preserve-3d;
  position: relative;
}

.front,
.back {
  backface-visibility: hidden;
  border-radius: 10px;
}

.front {
  z-index: 2;
  transform: rotateY(0deg);
}

.back {
  transform: rotateY(180deg);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #F9F6EE;
  color: #01301F;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  border: 5px solid #01301F;
}

.back h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.back p {
  font-size: 0.8rem;
  line-height: 1.2;
}

.step img {
  width: 80%;
  border-radius: 10px;
  border: 5px solid #01301F;
}

.step h3 {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #01301F;
}

/* footer */
.footer-section {
  background-color: #01301F;
  /* Dark green background */
  background-image: none;
  /* Remove background image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #F9F6EE;
  text-align: center;
  padding: 1em 0;
}

.footer-coming-soon {
  padding: 2em;
  background-image: none !important;
  background-color: #01301F !important;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.three-columns {
  margin-top: -1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Vertically center items */
  text-align: center;
}

.three-columns>div {
  flex: 1;
  /* Force equal widths so center item is truly centered */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo-column,
.contact-column,
.icons-column {
  flex: 1;
  min-width: 300px;
}

.logo-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  max-width: 150px;
}

.contact-column {
  text-align: center;
}

.footer-contact-info p {
  margin: 5px 0;
}

.footer-contact-info a {
  color: #F9F6EE;
  text-decoration: none;
}

.footer-contact-info a:hover {
  text-decoration: underline;
}

.icons-column {
  text-align: center;
}

.social-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links li {
  display: inline-block;
}

.social-links a {
  font-size: 1.8em;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.info-rectangle .social-links a {
  color: #00C782;
}

.social-links a:hover {
  color: #00C782;
}

.footer-credits {
  font-size: 0.9em;
  margin-top: 20px;
  text-align: center !important;
}

.footer-credits a {
  color: #00C782;
  text-decoration: none;
}

.footer-credits a:hover {
  text-decoration: underline;
}

.main-partner-section .partner-content {
  display: flex;
  align-items: center;
  gap: 3em;
}

.partner-logo {
  max-width: 20em;
  width: 100%;
  height: auto;
}


.main-partner-section {
  color: #01301F;
  text-align: left;
  padding: 0px 20px;
}

.main-partner-section h1 {
  font-size: 2.5rem;
}

.main-partner-section h3 {
  margin-left: 10px;
  font-size: 1em;
}

.opportunity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.buttons-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.end-buttons {
  background-color: #01301F;
  color: #F9F6EE;
  padding: 10px 20px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  /* Restored pointer */
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.end-buttons:hover {
  background-color: #00C782;
  color: #F9F6EE;
}

/* Ensure 'Termos e Condições' still feels like a link */
a.end-buttons:hover {
  background-color: #00C782;
  color: #F9F6EE;
  cursor: pointer;
}

.tower-image {
  height: 55em;
  margin-left: 0;
  /* Restored for visibility */
  mix-blend-mode: multiply;
  margin-top: 0em;
  position: relative;
  z-index: 10;
  transform: translateX(-3cm);
}

/* FAQ Section */
.faq-section {
  padding: 50px 20px;
  text-align: center;
  background-color: #f9f9f9;
  color: #01301F;
}

.faq-section h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

details {
  background-color: #ffffff;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

summary {
  padding: 15px 20px;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

summary::-webkit-details-marker {
  display: none;
  /* Remove marker in WebKit */
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: bold;
  color: #00C782;
  transition: transform 0.3s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details[open] summary {
  background-color: #f0fdf9;
  border-bottom: 1px solid #eee;
}

details p {
  padding: 15px 20px;
  margin: 0;
  line-height: 1.6;
  color: #333;
}

/* Photos Grid Container */
.photos-grid-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  /* Allow wrapping on small screens */
}

/* Individual Carousel Section */
.photo-carousel-section {
  flex: 1;
  min-width: 300px;
  /* Minimum width before wrapping */
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
  border: 1px solid #eee;
}

.photo-carousel-section h4 {
  color: #01301F;
  margin-top: 0;
  margin-bottom: 10px;
}

.carousel-placeholder {
  height: 200px;
  background-color: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-style: italic;
  border: 2px dashed #ccc;
}

/* Language Highlight Card in FAQ */
.language-highlight-wrapper {
  width: 100%;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.language-card {
  background: linear-gradient(135deg, rgba(1, 48, 31, 0.95), rgba(0, 199, 130, 0.15));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 199, 130, 0.5);
  border-left: 5px solid #00C782;
  border-radius: 8px;
  padding: 20px 25px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.language-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 199, 130, 0.2);
}

.language-icon {
  font-size: 2.5rem;
  animation: pulseFlag 2.5s infinite ease-in-out;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  flex-shrink: 0;
}

.language-content {
  flex: 1;
  text-align: left;
}

.language-title {
  color: #00C782;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 5px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.language-text {
  color: #F0F0F0;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

@keyframes pulseFlag {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.1) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Mobile adjust */
@media screen and (max-width: 600px) {
  .language-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px;
  }

  .language-content {
    text-align: center;
  }
}


/* Language Info (High Contrast Integrated) */

/* Update Prize Card to be auto height inside wrapper */
.feature-card.prize-card {
  height: auto;
  min-height: 300px;
  /* Ensure some presence */
}

/* Center Column Wrapper */
.center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Language Info (External Larger High Contrast) */
.language-info {
  margin-bottom: 20px;
  /* Space below instead of above */
  margin-top: 0;
  padding: 15px 35px;
  /* Larger padding */
  background-color: #00C782;
  border-radius: 50px;
  color: white;
  font-size: 1.2rem;
  /* Larger font */
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto;
  box-shadow: 0 6px 20px rgba(0, 199, 130, 0.4);
  transform: scale(1);
  transition: transform 0.3s ease;
  border: 3px solid white;
  /* Thicker border */
}

.language-info:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 199, 130, 0.6);
}

.language-info i {
  color: white;
  font-size: 1.5rem;
  /* Larger icon */
  animation: pulseIcon 2s infinite;
}

/* Sponsors Section Styling */
#partners-section {
  padding: 100px 20px !important;
  position: relative;
  overflow: hidden;
  background-color: #fafafa;
}



.sponsors-container {
  max-width: 1200px;
  margin: 0 auto;
}

.sponsors-tier {
  margin-top: 0;
  margin-bottom: 80px;
}

.sponsors-tier:last-child {
  margin-bottom: 0;
}

.sponsors-tier h2 {
  color: #01301F;
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sponsors-tier h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #00C782;
  border-radius: 2px;
}

.sponsors-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
  /* Increased significantly to prevent overlap from scaled logos */
  flex-wrap: wrap;
}

/* Sponsors Section Refined */
.sponsor-item {
  background: transparent !important;
  padding: 10px;
  /* Reduced from 30px */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 180px;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  overflow: visible;
}

.sponsor-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  /* Increased from 80% */
  height: 90%;
  /* Increased from 80% */
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 60%, transparent 90%);
  /* Softer gradient */
  z-index: -1;
  border-radius: 50%;
  /* Restore circular look to match mobile */
  transition: all 0.4s ease;
  filter: blur(20px);
  /* Increased blur */
  pointer-events: none;
}

.sponsor-item:hover {
  transform: translateY(-8px);
}

.sponsor-item:hover::before {
  background: radial-gradient(circle, rgba(0, 199, 130, 0.3) 0%, rgba(0, 199, 130, 0.1) 60%, transparent 90%);
  width: 100%;
  height: 100%;
  filter: blur(25px);
}

.sponsor-item a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sponsor-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.4s ease;
  /* Glow behind the logo shape - idle is neutral/light */
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
  /* Magic trick to remove white backgrounds from logos */
  mix-blend-mode: multiply;
}

.sponsor-item:hover .sponsor-logo {
  transform: scale(1.1);
  filter: drop-shadow(0 0 25px rgba(0, 199, 130, 1));
}

/* Tier Specific Sizes */
.main-sponsor {
  width: 450px;
  height: 250px;
  padding: 20px;
  /* Reduced from 40px */
}

.main-sponsor::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.5) 50%, transparent 80%);
}

.gold-sponsor {
  width: 300px;
  /* Increased from 280px */
  height: 180px;
  padding: 10px;
  /* Reduced padding to allow more logo space */
}

.gold-sponsor .sponsor-logo {
  transform: scale(1.1);
  /* Slight boost for Porto and others */
}

.silver-sponsor {
  width: 260px;
  /* Reduced from 300px */
  height: 150px;
}

.silver-sponsor .sponsor-logo {
  transform: scale(1.2);
  /* Reduced from 1.4 */
}

.silver-sponsor:hover .sponsor-logo {
  transform: scale(1.3);
  /* Reduced from 1.5 */
}


.bronze-sponsor {
  width: 220px;
  height: 130px;
}

.bronze-sponsor .sponsor-logo {
  transform: scale(1.2);
}

.ach-brito-logo .sponsor-logo {
  transform: scale(2.0);
  /* Increased from 1.6 */
}


.supporter-item {
  width: 220px;
  height: 130px;
}

.supporter-item .sponsor-logo {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  opacity: 1;
  transform: scale(1.6);
  /* Increased from 1.4 */
}

.izidoro-logo .sponsor-logo {
  transform: scale(2.2);
  /* Increased from 2.0 */
}

.telepizza-logo .sponsor-logo {
  transform: scale(1.4);
  mix-blend-mode: normal;
}

.msm-logo .sponsor-logo {
  transform: scale(1.3);
  /* Increased from 1.1 */
}



.innocent-logo .sponsor-logo {
  transform: scale(1.5);
  /* Increased from 1.3 */
}

.redbull-logo .sponsor-logo {
  transform: scale(1.8);
  /* Increased from 1.6 */
  mix-blend-mode: normal;
}

.redbull-logo:hover .sponsor-logo {
  transform: scale(1.9);
}

.wow-logo .sponsor-logo {
  transform: scale(1.6) translateX(2%);
  mix-blend-mode: normal;
  transform-origin: center;
}

.uptec-logo .sponsor-logo {
  transform: scale(1.6);
  transform-origin: center;
}

.deloitte-logo .sponsor-logo {
  transform: scale(1.1);
  mix-blend-mode: normal;
}

.deloitte-logo:hover .sponsor-logo {
  transform: scale(1.2);
  filter: drop-shadow(0 0 25px rgba(0, 199, 130, 0.6));
}

.panike-logo .sponsor-logo {
  transform: scale(2.1);
}

.panike-logo:hover .sponsor-logo {
  transform: scale(2.3);
  filter: drop-shadow(0 0 25px rgba(0, 199, 130, 1));
}

.pans-company-logo .sponsor-logo {
  transform: scale(1.5);
}

.pans-company-logo:hover .sponsor-logo {
  transform: scale(1.6);
  filter: drop-shadow(0 0 25px rgba(0, 199, 130, 1));
}

.wow-logo:hover .sponsor-logo {
  transform: scale(1.7);
  filter: drop-shadow(0 0 25px rgba(0, 199, 130, 1));
}

.supporter-item:hover .sponsor-logo {
  transform: scale(1.7);
  filter: drop-shadow(0 0 25px rgba(0, 199, 130, 1));
}

.izidoro-logo:hover .sponsor-logo {
  transform: scale(2.3);
  filter: drop-shadow(0 0 25px rgba(0, 199, 130, 1));
}

.telepizza-logo:hover .sponsor-logo {
  transform: scale(1.5);
}

.ach-brito-logo:hover .sponsor-logo {
  transform: scale(2.1);
  filter: drop-shadow(0 0 25px rgba(0, 199, 130, 1));
}



.innocent-logo:hover .sponsor-logo {
  transform: scale(1.6);
  filter: drop-shadow(0 0 25px rgba(0, 199, 130, 1));
}

@media screen and (max-width: 768px) {
  .sponsors-grid {
    gap: 60px;
    /* Increased to prevent overlap on mobile */
  }

  .sponsor-item::before {
    border-radius: 50%;
    /* Restore circular look for mobile */
    width: 80%;
    height: 80%;
  }

  .main-sponsor {
    width: 320px;
    height: 180px;
    padding: 25px;
  }

  .silver-sponsor,
  .gold-sponsor,
  .bronze-sponsor,
  .supporter-item,
  .sponsor-item {
    width: 200px;
    height: 120px;
    padding: 15px;
  }

  /* Restore previous scales for mobile */
  .silver-sponsor .sponsor-logo {
    transform: scale(1.1);
  }

  .bronze-sponsor .sponsor-logo {
    transform: scale(1.0);
  }

  .ach-brito-logo .sponsor-logo {
    transform: scale(1.6);
  }

  .supporter-item .sponsor-logo {
    transform: scale(1.4);
  }

  .izidoro-logo .sponsor-logo {
    transform: scale(2.0);
  }

  .msm-logo .sponsor-logo {
    transform: scale(1.1);
  }



  .innocent-logo .sponsor-logo {
    transform: scale(1.3);
  }

  .redbull-logo .sponsor-logo {
    transform: scale(1.6);
  }

  .wow-logo .sponsor-logo {
    transform: scale(1.4) translateX(10%);
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
  }

  .uptec-logo .sponsor-logo {
    transform: scale(1.2);
    width: auto;
    max-width: 100%;
  }

  .deloitte-logo .sponsor-logo {
    transform: scale(1.2);
  }

  .panike-logo .sponsor-logo {
    transform: scale(1.6);
  }

  .pans-company-logo .sponsor-logo {
    transform: scale(1.3);
  }
}