/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__section-title {
  font-size: 2.5em;
  color: #1A2B4C;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FF8C00;
  border-radius: 2px;
}

.page-index__sub-title {
  font-size: 1.8em;
  color: #1A2B4C;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index__paragraph {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #444;
}

.page-index__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: #444;
}

.page-index__list li {
  margin-bottom: 8px;
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
  text-align: center;
}

.page-index__btn--primary {
  background-color: #FF8C00;
  color: #1A2B4C;
  border: 2px solid #FF8C00;
}

.page-index__btn--primary:hover {
  background-color: #e67d00;
  border-color: #e67d00;
  color: #fff;
}

.page-index__btn--secondary {
  background-color: transparent;
  color: #FF8C00;
  border: 2px solid #FF8C00;
  margin-left: 15px;
}

.page-index__btn--secondary:hover {
  background-color: #FF8C00;
  color: #1A2B4C;
}

.page-index__btn--outline {
  background-color: transparent;
  color: #FF8C00;
  border: 2px solid #FF8C00;
  padding: 10px 20px;
  font-size: 1em;
}

.page-index__btn--outline:hover {
  background-color: #FF8C00;
  color: #1A2B4C;
}

.page-index__btn--text {
  color: #FF8C00;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font-size: 1.1em;
}

.page-index__btn--text:hover {
  color: #e67d00;
}

.page-index__btn--small {
  font-size: 0.9em;
  padding: 8px 15px;
  margin-top: 10px;
}

.page-index__btn--large {
  padding: 15px 35px;
  font-size: 1.2em;
}

/* Hero Section */
.page-index__hero {
  background: linear-gradient(135deg, #1A2B4C 0%, #3a5078 100%);
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FF8C00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index__hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.4;
  color: #E0E0E0;
}

.page-index__hero-actions {
  margin-top: 30px;
}

.page-index__hero-image-wrapper {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  opacity: 0.2;
  z-index: 0;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* General Section Spacing */
.page-index__about-xoc-dia,
.page-index__rules-strategies,
.page-index__promotions-platforms,
.page-index__how-to-join,
.page-index__responsible-gambling,
.page-index__faq,
.page-index__cta-final {
  padding: 60px 0;
}

.page-index__about-xoc-dia {
  background-color: #f8f8f8;
}

.page-index__rules-strategies {
  background-color: #fff;
}

.page-index__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .page-index__content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-index__image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-index__image-wrapper--full-width {
  max-width: 100%;
}

.page-index__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__promotions-platforms {
  background-color: #f0f4f7;
}

.page-index__card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .page-index__card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-index__card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__card-image-wrapper {
  height: 180px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
}

.page-index__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-index__card-title {
  font-size: 1.6em;
  color: #1A2B4C;
  margin-bottom: 10px;
}

.page-index__card-title a {
  color: #1A2B4C;
  text-decoration: none;
}

.page-index__card-title a:hover {
  color: #FF8C00;
  text-decoration: underline;
}

.page-index__card-description {
  color: #666;
  margin-bottom: 20px;
}

.page-index__how-to-join {
  background-color: #fff;
}

.page-index__steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .page-index__steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-index__steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.page-index__step-item {
  background-color: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: background-color 0.3s ease;
}

.page-index__step-item:hover {
  background-color: #eef2f5;
}

.page-index__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #FF8C00;
  color: #1A2B4C;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(255, 140, 0, 0.4);
}

.page-index__step-item .page-index__sub-title {
  margin-top: 0;
}

.page-index__responsible-gambling {
  background-color: #f0f4f7;
}

.page-index__faq {
  background-color: #fff;
}

.page-index__faq-item {
  background-color: #f8f8f8;
  border-left: 5px solid #FF8C00;
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-index__faq-question {
  font-size: 1.4em;
  color: #1A2B4C;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-index__cta-final {
  background: linear-gradient(135deg, #1A2B4C, #3a5078);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.page-index__cta-final-content {
  max-width: 900px;
}

.page-index__cta-final .page-index__section-title {
  color: #FF8C00;
}

.page-index__cta-final .page-index__section-title::after {
  background-color: #E0E0E0;
}

.page-index__cta-final .page-index__paragraph {
  color: #E0E0E0;
  margin-bottom: 30px;
}

/* Floating Ad */
.page-index__floating-ad {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background-color: #FF8C00;
  color: #1A2B4C;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow: hidden;
  transform: translateX(100%);
  animation: page-index-slideIn 0.8s forwards 2s;
  display: none; /* Hidden by default, JS will show it */
}

.page-index__floating-ad.page-index__active {
  display: block;
}

@keyframes page-index-slideIn {
  to { transform: translateX(0); }
}

.page-index__floating-ad-link {
  display: flex;
  align-items: center;
  padding: 15px;
  text-decoration: none;
  color: inherit;
}

.page-index__floating-ad-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 15px;
}

.page-index__floating-ad-title {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 5px;
  color: #1A2B4C;
}

.page-index__floating-ad-description {
  font-size: 0.9em;
  color: #3a5078;
  margin: 0;
}

.page-index__floating-ad-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #1A2B4C;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}

.page-index__floating-ad-close:hover {
  color: #e67d00;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-subtitle {
    font-size: 1.3em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__card {
    padding: 25px;
  }
  .page-index__steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .page-index__hero {
    padding: 80px 0 150px 0;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-subtitle {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-index__btn--secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__sub-title {
    font-size: 1.5em;
  }
  .page-index__paragraph {
    font-size: 1em;
  }
  .page-index__card-grid {
    grid-template-columns: 1fr;
  }
  .page-index__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-index__floating-ad {
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
  }
}