﻿html[data-theme="dark"] {
  --soft-shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

html[data-theme="light"] .pub-navbar {
  box-shadow: 0 8px 28px rgba(15, 23, 42, .07);
}

.hero-section-clean {
  min-height: auto;
  display: block;
  background: transparent;
  border-bottom: 0;
  padding: 1.9rem 0 0;
}

.hero-section-clean .hero-clean-container {
  padding-top: 0;
  padding-bottom: 0;
}

.hero-clean-card {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 0;
  overflow: hidden;
  background: var(--dark-2);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

html[data-theme="dark"] .hero-clean-card {
  background: linear-gradient(135deg, rgba(17, 17, 34, .98), rgba(30, 27, 53, .96));
}

.hero-clean-copy {
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-clean-copy::before {
  content: '';
  width: 150px;
  height: 150px;
  position: absolute;
  right: 2rem;
  top: 2rem;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  filter: blur(35px);
  pointer-events: none;
}

html[data-theme="light"] .hero-clean-copy::before {
  display: none;
}

.hero-clean-copy .hero-title {
  max-width: 570px;
  color: var(--heading-color);
  text-shadow: none;
}

.hero-clean-copy .hero-subtitle {
  max-width: 500px;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: .2rem;
}

.hero-main-btn {
  min-height: 48px;
}

.hero-stat-inline {
  margin: 0;
  min-width: 126px;
  padding: .68rem .9rem;
  border-radius: 16px;
  box-shadow: none;
}

html[data-theme="light"] .hero-stat-inline {
  background: #f8fafc;
}

.hero-clean-media {
  min-height: 500px;
  position: relative;
  background: var(--dark-3);
  overflow: hidden;
}

html[data-theme="dark"] .hero-clean-media {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 8%, transparent), transparent),
    var(--dark-3);
}

.hero-media-carousel,
.hero-media-carousel .carousel-inner,
.hero-media-carousel .carousel-item {
  height: 100%;
}

.hero-media-carousel.carousel-fade .carousel-item {
  transition: opacity 1.15s ease-in-out;
}

.hero-media-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html[data-theme="light"] .hero-media-carousel img {
  filter: saturate(1.02) contrast(1.02);
}

.hero-clean-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: 2;
}

html[data-theme="dark"] .hero-clean-media::after {
  background: linear-gradient(90deg, rgba(17,17,34,.96) 0%, rgba(17,17,34,.15) 36%, rgba(7,7,18,.34) 100%);
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  gap: .45rem;
  z-index: 3;
}

.hero-carousel-dots button {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.58);
  padding: 0;
  appearance: none;
  cursor: pointer;
  transition: background .25s ease, opacity .25s ease, transform .25s ease;
}

.hero-carousel-dots button.active {
  background: var(--gold);
}

.hero-media-placeholder {
  height: 100%;
  min-height: 500px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .9rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

.hero-media-placeholder i {
  color: var(--gold);
  font-size: 4rem;
}

.home-main-container {
  padding-top: 2rem;
}

.home-steps-clean {
  margin-top: 0;
  margin-bottom: 2.6rem;
  padding: 1.45rem;
  gap: 1rem;
  border-radius: 22px;
}

html[data-theme="light"] .home-steps-clean {
  background: rgba(255,255,255,.92);
}

.home-step-item {
  padding: .7rem;
}

.home-section-head,
.home-section-head-spaced {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.home-section-head-spaced {
  margin-top: 3.2rem;
}

.rifas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.rifa-card-meta {
  color: var(--text-muted);
  font-size: .84rem;
  margin: 0 0 .9rem;
}

.rifa-card-meta strong,
.rifa-card-date,
.rifa-card-bottom strong {
  color: var(--text-light);
}

.rifa-progress-box {
  margin: .9rem 0;
}

.rifa-progress-labels,
.rifa-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.rifa-progress-labels {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

.rifa-card-bottom {
  align-items: end;
}

.rifa-small-label {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rifa-card-date {
  text-align: right;
  font-size: .85rem;
  font-weight: 700;
}

.rifa-card-cta {
  margin-top: 1rem;
  text-align: center;
  background: var(--gold);
  color: var(--button-text);
  font-weight: 800;
  border-radius: 0;
  padding: .62rem;
  font-size: .86rem;
}

.rifa-card-cta-muted {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
}

.rifa-status-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(34,197,94,.14);
  color: #16a34a;
  border: 1px solid rgba(34,197,94,.28);
  border-radius: 0;
  padding: .28rem .65rem;
  font-size: .74rem;
  font-weight: 800;
  margin-bottom: .75rem;
}

.winner-card {
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 24%, transparent);
  border-radius: 14px;
  padding: .9rem;
  margin-bottom: 1rem;
}

.winner-card div {
  font-size: .7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .35rem;
}

.winner-card strong,
.winner-card span {
  display: block;
  color: var(--text-light);
}

.empty-state-card {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--dark-2);
  border: 1px dashed var(--border-color);
  border-radius: 20px;
}

.empty-state-card i {
  font-size: 3rem;
  color: var(--gold);
}

.empty-state-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin: 1rem 0 .4rem;
}

.empty-state-card p {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0;
}

@media (max-width: 1100px) {
  .hero-clean-card {
    grid-template-columns: 1fr;
  }

  .hero-clean-media,
  .hero-media-placeholder {
    min-height: 320px;
  }

  html[data-theme="dark"] .hero-clean-media::after {
    background: linear-gradient(0deg, var(--dark-2) 0%, transparent 34%);
  }
}

@media (max-width: 640px) {
  .hero-section-clean {
    padding-top: .9rem;
  }

  .hero-clean-card {
    border-radius: 18px;
    min-height: 0;
  }

  .hero-clean-copy {
    padding: 1.8rem 1.2rem;
  }

  .hero-kicker {
    font-size: .7rem;
    letter-spacing: 3px;
    line-height: 1.5;
  }

  .hero-clean-copy .hero-title {
    max-width: 100%;
    letter-spacing: 2px;
    margin-bottom: .85rem;
  }

  .hero-clean-copy .hero-subtitle {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.45rem;
  }

  .hero-actions-row {
    align-items: stretch;
    gap: .75rem;
  }

  .hero-main-btn {
    flex: 1 1 100%;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding-inline: 1rem;
  }

  .hero-stat-inline {
    flex: 1 1 100%;
    min-width: 0;
  }

  .hero-clean-media,
  .hero-media-placeholder {
    min-height: 230px;
  }

  .home-steps-clean,
  .rifas-grid {
    grid-template-columns: 1fr;
  }

  .home-section-head {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .hero-clean-card {
    border-radius: 14px;
  }

  .hero-clean-copy {
    padding: 1.45rem 1rem;
  }

  .hero-clean-copy::before {
    width: 110px;
    height: 110px;
    right: .5rem;
    top: 1rem;
  }

  .hero-clean-media,
  .hero-media-placeholder {
    min-height: 200px;
  }

  .home-steps-clean {
    padding: 1rem;
    border-radius: 16px;
  }
}

