/* ==========================================================================
   HOW TO PLAY SPANISH 21 CUSTOM STYLES
   Project: BET SMART WIN BIGGER - Static HTML/CSS/JS Platform
   ========================================================================== */

/* Hero Section */
.spanish-hero {
  position: relative;
  background-image: url('../images/how-to-play-spanish-hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Fallback background if the user hasn't uploaded the image yet */
@supports not (background-image: url('../images/how-to-play-spanish-hero.png')) {
  .spanish-hero {
    background-color: #121212;
  }
}

.spanish-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%); */
  z-index: 1;
}

/* Ambient Red Glow on Right side of Hero */
.spanish-hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -250px;
  width: 600px;
  height: 300px;
  background-color: #D40E37;
  opacity: 0.25;
  filter: blur(110px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.spanish-hero .container {
  position: relative;
  z-index: 2;
}

.spanish-hero-content {
  text-align: left;
}

.spanish-hero-title {
  font-family: var(--font-heading);
  font-size: 4.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -1px;
}

.spanish-hero-title .red-text {
  color: #FF154B;
  display: inline-block;
  font-weight: 700;
}

/* Rules & Content Section */
.spanish-content {
  padding: 100px 0 20px;
  background-color: #000000;
  position: relative;
  overflow: hidden;
}

.spanish-wrap {
  /* max-width: 1000px; */
  margin: 0 auto;
  position: relative;
  z-index: 2;
  /* padding: 0 15px; */
}

.spanish-text-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  /* background: radial-gradient(circle at left center, rgba(212, 14, 55, 0.1) 0%, rgba(0, 0, 0, 0) 50%); */
}

.spanish-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: #d6d6d6;
  font-weight: 400;
}

.spanish-text em {
  color: #ffffff;
  font-style: normal;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .spanish-hero-title {
    font-size: 3.2rem;
  }

  .spanish-content {
    padding: 70px 0 80px;
  }

  .spanish-text {
    font-size: 17px;
    line-height: 1.55;
  }
}

@media (max-width: 768px) {
  .spanish-hero {
    height: 320px;
  }

  .spanish-hero-title {
    font-size: 2.5rem;
  }

  .spanish-content {
    padding: 60px 0 70px;
  }

  .spanish-text {
    font-size: 16px;
    line-height: 1.5;
    gap: 20px;
  }
}

/* Payouts Section Styles */
.spanish-payouts-container {
  margin-top: 80px;
}

.spanish-payouts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
  /* padding-bottom: 15px; */
  /* gap: 40px; */
}

.spanish-section-title {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.spanish-section-title .red-text {
  color: #FF154B;
}

.spanish-header-desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: #D6D6D6;
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

.payouts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.payouts-card {
  /* border: 1px solid transparent; */
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.04) 30%, #3d0c15 100%);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.payouts-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.payouts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payouts-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: #D6D6D6;
}

.payout-check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.spanish-bottom-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: #d6d6d6;
  margin-bottom: 20px;
  margin-top: 40px;
}

/* Links Section Styles */
.spanish-links-section {
  padding: 80px 0 100px;
  background-color: #000000;
  /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
}

.spanish-links-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}

.spanish-links-col {
  display: flex;
  flex-direction: column;
}

.spanish-links-col.right-col {
  align-items: flex-end;
  text-align: right;
}

.spanish-links-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: #D6D6D6;
  margin-bottom: 20px;
  text-transform: none;
}

.spanish-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spanish-links-list.horizontal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 30px;
}

.spanish-links-list.vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spanish-links-list li {
  display: block;
}

.spanish-links-list li a {
  font-family: var(--font-body);
  font-size: 18px;
  color: #D6D6D6;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition-normal);
  font-weight: 400;
  white-space: nowrap;
}

.spanish-links-list li a:hover,
.spanish-links-list li a.active {
  color: #FF154B;
}

/* Responsive adjustments for new elements */
@media (max-width: 992px) {
  .spanish-section-title {
    font-size: 32px;
  }

  .payouts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .payouts-card {
    padding: 30px;
  }

  .spanish-links-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .spanish-links-col.right-col {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .spanish-payouts-container {
    margin-top: 50px;
  }

  .spanish-payouts-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
  }

  .spanish-header-desc {
    text-align: left;
    font-size: 15px;
  }

  .spanish-section-title {
    font-size: 26px;
  }

  .payouts-card-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .spanish-links-list.horizontal {
    flex-direction: column;
    gap: 12px;
  }
}