/* General -------------------------------------------------------------------------- */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #212529;
  line-height: 1.6;
}

/* Navbar -------------------------------------------------------------------------- */
.navbar {
  font-size: 1.3rem;
  padding: 1rem 2rem;
}

.navbar-brand {
  font-family: 'Audiowide', sans-serif;
  font-size: 2.00rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff !important;
}

.navbar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.nav-item {
  margin: 0 1rem;
}

.nav-item.logo-item {
  margin-right: 2rem;
}

.nav-link {
  font-family: 'Audiowide', sans-serif;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease-in-out;
  font-weight: 400;
  font-size: 1.7rem;
  color: #ffffff !important;
}

.nav-link:hover {
  color: #0080FE !important;
}

.nav-link.active {
  font-weight: bold;
  border-bottom: 3px solid #0080FE;
}

/* Dropdown Menu Styling */
.navbar .dropdown-menu {
  background-color: #1C2951;
  border: 2px solid #0080FE;
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
}

.navbar .dropdown-item {
  font-family: 'Audiowide', sans-serif;
  color: #ffffff;
  font-size: 1.2rem;
  padding: 0.6rem 1.5rem;
  transition: all 0.2s ease-in-out;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: #0080FE;
  color: #ffffff;
}

.navbar .dropdown-item.active {
  background-color: #0080FE;
  color: #ffffff;
}

/* Hero header section ------------------------------------------------------------ */
.hero-header {
  font-family: 'Audiowide', sans-serif;
  background-color: #0080FE;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/img/PIZARRA_CryptoClub.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 6rem 1rem;
  border-bottom: 3px solid #1C2951;
  text-align: center;
  position: relative;
}

.hero-header h1 {
  font-size: 4.0rem;
  font-weight: 700;
}

/* FOOTER ------------------------------------------------------------------------------ */
footer {
  background-color: #212529;
  color: white;
  font-size: 1.5rem;
  padding: 1rem 0;
  margin-top: 5rem;
}


/* INDEX ------------------------------------------------------------------------- */
.card-section {
  background-color: #1C2951;
  color: #ffffff;
  font-size: 2.1rem;
  line-height: 1.5;
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 2px solid #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-section:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.card-dark {
  background-color: #212529;
  color: #ffffff;
}

.card-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-section .text-orange {
  color: #ffc107;
  font-weight: 700;
  font-size: 3rem;
  text-transform: uppercase;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.card-grid .card-section {
  flex: 1 1 calc(50% - 1rem);
}

.card-section img {
  max-height: 700px;
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Institutions / Partner Cards */
.partner-card {
  border: 2px solid #0080FE;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 128, 254, 0.2);
  border-color: #ffc107;
  /* Highlight border on hover */
}

/* PARTICIPANTS --------------------------------------------------------------------------- */
.subcard-white {
  background-color: #1C2951;
  color: #ffffff;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1.75rem;
  border: 2px solid #ffffff;
  /* White border for dark cards */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subcard-white:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 128, 254, 0.2);
}


.subcard-white2 {
  background-color: #ffffff;
  color: #1C2951;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1.75rem;
  border: 2px solid #0080FE;
  /* Blue border for light cards */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subcard-white2:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 128, 254, 0.2);
}

.subcard-white h4 {
  font-size: 2.0rem;
  color: #ffffff;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.subcard-white2 h4 {
  font-size: 2.0rem;
  color: #1C2951;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.subcard-white span {
  color: #ffc107;
  font-weight: bold;
}

.text-yellow {
  color: #ffc107;
}

.text-muted-light {
  color: #f4f4f4;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-top: 2rem;
  color: #ffffff;
  background-color: #212529;
  padding: 1rem;
  border-radius: 8px;
  width: 50%;
  text-align: center;
  margin: 0 auto;
}

/* Logo & card sizing ----------------------------------------------------------*/
.card-logo-max {
  max-width: 1500px;
}

.logo-xl {
  max-height: 1500px;
  height: auto;
  width: auto;
  object-fit: contain;
}


.logo-md {
  max-height: 75px;
  margin-right: 2rem;
}

.logo-sm {
  max-height: 200px;
}


/* Animation fade-in ------------------------------------------------------------ */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.2s;
}

.fade-in.delay-2 {
  animation-delay: 0.4s;
}

.fade-in.delay-3 {
  animation-delay: 0.6s;
}

.fade-in.delay-4 {
  animation-delay: 0.8s;
}

.fade-in.delay-5 {
  animation-delay: 1s;
}

.fade-in.delay-6 {
  animation-delay: 1.2s;
}

.fade-in.delay-7 {
  animation-delay: 1.4s;
}

.fade-in.delay-8 {
  animation-delay: 1.6s;
}

/* Responsive Design ----------------------------------------------------------------- */
/* Tablets and smaller */
@media (max-width: 992px) {
  .navbar {
    padding: 1rem;
  }

  .nav-link {
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
  }

  .logo-md {
    max-height: 60px;
    margin-right: 1rem;
  }

  .hero-header h1 {
    font-size: 2.2rem;
  }

  .card-section {
    font-size: 1.8rem;
    padding: 2rem;
  }

  .section-title {
    font-size: 2.2rem;
    width: 70%;
  }

  .subcard-white h4,
  .subcard-white2 h4 {
    font-size: 1.6rem;
  }

  .subcard-white,
  .subcard-white2 {
    font-size: 1.4rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }

  .nav-item {
    margin: 0.5rem 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 0.5rem;
  }

  .logo-md {
    max-height: 50px;
    margin-right: 0.5rem;
  }

  .hero-header {
    padding: 1.5rem 0.5rem;
  }

  .hero-header h1 {
    font-size: 1.8rem;
  }

  .card-section {
    font-size: 1.4rem;
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
    width: 90%;
    padding: 0.75rem;
  }

  .subcard-white h4,
  .subcard-white2 h4 {
    font-size: 1.3rem;
  }

  .subcard-white,
  .subcard-white2 {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .logo-sm {
    max-height: 120px;
  }

  footer {
    font-size: 1.2rem;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  .hero-header h1 {
    font-size: 1.5rem;
  }

  .card-section {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
    width: 95%;
  }

  .nav-link {
    font-size: 1rem;
  }
}

/* RETOS / CHALLENGES PAGE (Bootstrap Grid Version) ----------------------------------- */
.challenges-section {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

/* The vertical line running down the center */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #1C2951;
  transform: translateX(-50%);
  z-index: 0;
}

/* The container for the dot/icon in the center column */
.timeline-dot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  background-color: #1C2951;
  border: 4px solid #0080FE;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Card Styling */
.challenge-card {
  background-color: #1C2951;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 3rem;
  /* Spacing between rows if stacked, or just general breathing room */
}

.challenge-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 128, 254, 0.2);
}

.challenge-card h2 {
  color: #ffffff;
  font-family: 'Audiowide', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.challenge-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #0080FE;
}

.challenge-meta {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 1rem;
  font-style: italic;
}

.challenge-meta strong {
  color: #0080FE;
}

.challenge-desc {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-challenge {
  background-color: #0080FE;
  color: #ffffff;
  font-family: 'Audiowide', sans-serif;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-challenge:hover {
  background-color: #1c1c1c;
  color: #ffffff;
}

/* YouTube Streaming Button */
.btn-streaming {
  background-color: #0080FE;
  color: #ffffff;
  font-family: 'Audiowide', sans-serif;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.btn-streaming:hover {
  background-color: #cc0000;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.45);
}

.btn-streaming .live-dot {
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* Animations */
/* (reusing .fade-in from existing CSS) */


.challenge-number {
  font-family: 'Audiowide', sans-serif;
  font-size: 2.5rem;
  color: #1C2951;
  /* Matches the theme accent */
  opacity: 0.8;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
    /* Move line to the left */
    transform: none;
  }

  .timeline-dot-container {
    justify-content: flex-start;
    padding-left: 8px;
    /* Align dot with line */
    margin-bottom: 1rem;
  }
}


/* SEMINARS PAGE ---------------------------------------------------------------------- */
.seminar-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  /* Subtle initial shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  /* No border by default, or maybe a thin blue one */
}

.seminar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 128, 254, 0.4);
}

.seminar-sidebar {
  background-color: #1C2951;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-right: 1px solid #0080FE;
  /* Subtle separator */
}

/* If sidebar is on the right, change border side */
.order-md-2.seminar-sidebar {
  border-right: none;
  border-left: 1px solid #0080FE;
}

.seminar-content {
  background-color: #ffffff;
  color: #333333;
}

.seminar-speaker-img {
  width: calc(100% + 3rem);
  max-width: none;
  height: 280px;
  object-fit: cover;
  border: none;
  border-radius: 0;
  margin-top: -1.5rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-bottom: 1rem;
}

/* Two-speaker layout */
.dual-speakers {
  display: flex;
  width: calc(100% + 3rem);
  max-width: none;
  margin-top: -1.5rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-bottom: 1rem;
  gap: 0;
}

.dual-speakers .seminar-speaker-img {
  flex: 1;
  height: 200px;
  margin: 0;
  border: none;
  border-radius: 0;
  max-width: none;
}

.seminar-meta-item {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seminar-meta-item i {
  color: #0080FE;
  font-size: 1.3rem;
}

.seminar-title {
  color: #0080FE;
  font-family: 'Audiowide', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.seminar-abstract {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.seminar-bio-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1C2951;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.seminar-bio {
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid #0080FE;
}

.btn-seminar {
  background-color: #1C2951;
  color: #ffffff;
  border: 2px solid #0080FE;
  border-radius: 30px;
  /* Pill shape */
  padding: 0.75rem 2rem;
  font-family: 'Audiowide', sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-seminar:hover {
  background-color: #0080FE;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 128, 254, 0.4);
}

/* Next Seminar Card ---------------------------------------------------------------- */
.next-seminar-card {
  background-color: #1C2951;
  border-radius: 15px;
}

.text-orange {
  color: #ffffff !important;
  font-family: 'Audiowide', sans-serif;
  font-size: 2.5rem;

}

/* Seminar Navigation Arrows */
.seminar-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #1C2951;
  border: 2px solid #ffffff;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.seminar-nav-arrow:hover {
  background-color: #0080FE;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 128, 254, 0.5);
}

.seminar-nav-left {
  left: -70px;
}

.seminar-nav-right {
  right: -70px;
}

/* Seminar Counter */
.seminar-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 128, 254, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .seminar-nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .seminar-nav-left {
    left: 10px;
  }

  .seminar-nav-right {
    right: 10px;
  }

  .seminar-counter {
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* SUBSCRIPTION MODAL ------------------------------------------------------------------ */
.subscribe-modal .modal-content {
  background-color: #1C2951;
  color: #ffffff;
  border: 2px solid #0080FE;
  border-radius: 15px;
}

.subscribe-modal .modal-title {
  font-family: 'Audiowide', sans-serif;
  font-size: 1.5rem;
  color: #1C2951;
}

.subscribe-modal .form-label {
  color: #1C2951;
  font-weight: 600;
  font-size: 1.1rem;
}

.subscribe-modal .form-control {
  background-color: #ffffff;
  border: 2px solid #0080FE;
  color: #212529;
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.subscribe-modal .form-control:focus {
  background-color: #ffffff;
  border-color: #0080FE;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
  color: #212529;
}

.subscribe-modal .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid #0080FE;
  background-color: #ffffff;
  cursor: pointer;
}

.subscribe-modal .form-check-input:checked {
  background-color: #0080FE;
  border-color: #0080FE;
}

.subscribe-modal .form-check-label {
  color: #cccccc;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-left: 0.5rem;
}

.subscribe-modal .btn-close-white {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.subscribe-modal .btn-close-white:hover {
  opacity: 1;
}

.subscribe-modal p {
  color: #1C2951;
  font-size: 1rem;
}

.subscribe-modal .alert-success {
  background-color: #1C2951;
  border: 2px solid #0080FE;
  color: #ffffff;
  font-size: 1rem;
}

/* CHALLENGE NAVIGATION GRIDS ------------------------------------------------------- */
.challenge-nav-section {
  padding: 1.5rem 0;
  background-color: #f8f9fa;
  border-bottom: 3px solid #1c1c1c;
  border-top: 3px solid #1c1c1c;

}

.challenge-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.challenge-nav-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.challenge-nav-title {
  font-family: 'Audiowide', sans-serif;
  color: #1C2951;
  font-size: 2.2rem;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  text-align: left !important;
}

.challenge-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  flex-grow: 1;
}

.challenge-nav-item {
  background-color: #1C2951;
  color: #ffffff;
  border: 2px solid #0080FE;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  font-family: 'Audiowide', sans-serif;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.challenge-nav-item:hover {
  background-color: #0080FE;
  color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 128, 254, 0.3);
}

.challenge-nav-item .reto-label {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 0.2rem;
}

.challenge-nav-item .reto-number {
  font-size: 1.8rem;
  font-weight: bold;
}

@media (max-width: 1200px) {
  .challenge-nav-row {
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .challenge-nav-row {
    flex-direction: column;
    gap: 2rem;
  }

  .challenge-nav-group {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .challenge-nav-title {
    text-align: center !important;
  }

  .challenge-nav-grid {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .challenge-nav-item {
    padding: 0.5rem 0.7rem;
  }

  .challenge-nav-item .reto-number {
    font-size: 0.9rem;
  }
}