/* style/promotions.css */

/* Biến CSS */
:root {
  --page-promotions-primary-color: #1A2B4C;
  --page-promotions-secondary-color: #FFD700;
  --page-promotions-text-light: #F8F8F8;
  --page-promotions-text-dark: #333333;
  --page-promotions-background-dark: #121E31; /* Slightly darker than primary for contrast */
  --page-promotions-background-light: #E0E0E0;
  --page-promotions-border-color: #3A4E70;
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--page-promotions-text-dark);
  line-height: 1.6;
  background-color: var(--page-promotions-background-light);
}

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

.page-promotions__section {
  padding: 60px 0;
}

.page-promotions__section:nth-child(even) {
  background-color: #F0F0F0;
}

.page-promotions__section-title {
  font-size: 2.8em;
  color: var(--page-promotions-primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
}

.page-promotions__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--page-promotions-secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-promotions__section-subtitle {
  text-align: center;
  font-size: 1.1em;
  color: var(--page-promotions-text-dark);
  margin-bottom: 50px;
}

/* Hero Section */
.page-promotions__hero {
  background: linear-gradient(135deg, var(--page-promotions-primary-color) 0%, var(--page-promotions-background-dark) 100%);
  color: var(--page-promotions-text-light);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-promotions__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:hero:abstract_pattern,geometric,dark_blue_gold]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-promotions__hero > .page-promotions__container {
  position: relative;
  z-index: 1;
}

.page-promotions__hero-title {
  font-size: 4em;
  margin-bottom: 20px;
  color: var(--page-promotions-secondary-color);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-promotions__hero-description {
  font-size: 1.4em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.5;
  color: #E0E0E0;
}

/* Buttons */
.page-promotions__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.1em;
  text-align: center;
}

.page-promotions__btn--primary {
  background-color: var(--page-promotions-secondary-color);
  color: var(--page-promotions-primary-color);
  border: 2px solid var(--page-promotions-secondary-color);
}

.page-promotions__btn--primary:hover {
  background-color: #FFC700;
  border-color: #FFC700;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-promotions__btn--secondary {
  background-color: transparent;
  color: var(--page-promotions-primary-color);
  border: 2px solid var(--page-promotions-primary-color);
  padding: 13px 28px;
}

.page-promotions__btn--secondary:hover {
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-text-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(26, 43, 76, 0.2);
}

.page-promotions__btn--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Intro Section */
.page-promotions__intro-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-promotions__intro-text {
  flex: 1;
  font-size: 1.1em;
}

.page-promotions__intro-text p {
  margin-bottom: 15px;
}

.page-promotions__intro-text ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-promotions__intro-text ul li {
  margin-bottom: 8px;
}

.page-promotions__intro-image {
  flex: 1;
  text-align: center;
}

.page-promotions__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Promo Categories */
.page-promotions__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions__category-card {
  background-color: var(--page-promotions-text-light);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-promotions-border-color);
}

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

.page-promotions__category-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.page-promotions__category-title {
  font-size: 1.6em;
  color: var(--page-promotions-primary-color);
  margin-bottom: 15px;
}

.page-promotions__category-description {
  font-size: 1em;
  color: #555;
}

/* Detail List */
.page-promotions__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-promotions__promo-card {
  background-color: var(--page-promotions-text-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.page-promotions__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-promotions__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--page-promotions-primary-color);
  font-weight: bold;
}

.page-promotions__promo-title a {
  color: var(--page-promotions-primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__promo-title a:hover {
  color: var(--page-promotions-secondary-color);
}

.page-promotions__promo-description {
  font-size: 1em;
  color: #666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__promo-actions {
  display: flex;
  gap: 15px;
  margin-top: auto; /* Push buttons to the bottom */
  flex-wrap: wrap;
}

/* Call to Action */
.page-promotions__cta {
  background: linear-gradient(90deg, var(--page-promotions-primary-color) 0%, var(--page-promotions-background-dark) 100%);
  color: var(--page-promotions-text-light);
  text-align: center;
  padding: 80px 0;
}

.page-promotions__cta-inner {
  max-width: 900px;
}

.page-promotions__cta-title {
  font-size: 3em;
  color: var(--page-promotions-secondary-color);
  margin-bottom: 25px;
  font-weight: bold;
}

.page-promotions__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #E0E0E0;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-promotions__faq-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-promotions__faq-item {
  background-color: var(--page-promotions-text-light);
  border-radius: 10px;
  padding: 25px 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid var(--page-promotions-border-color);
}

.page-promotions__faq-question {
  font-size: 1.4em;
  color: var(--page-promotions-primary-color);
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-promotions__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: var(--page-promotions-secondary-color);
  transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-question::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-promotions__faq-answer {
  font-size: 1em;
  color: #555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding-top: 0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 200px; /* Adjust based on content */
  padding-top: 15px;
}

/* Responsible Gaming */
.page-promotions__responsible-gaming {
  background-color: var(--page-promotions-background-dark);
  color: var(--page-promotions-text-light);
  text-align: center;
}

.page-promotions__responsible-gaming .page-promotions__section-title {
  color: var(--page-promotions-secondary-color);
}

.page-promotions__responsible-gaming .page-promotions__section-title::after {
  background-color: var(--page-promotions-text-light);
}

.page-promotions__responsible-gaming .page-promotions__section-subtitle {
  color: #E0E0E0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }

  .page-promotions__hero-description {
    font-size: 1.2em;
  }

  .page-promotions__section-title {
    font-size: 2.2em;
  }

  .page-promotions__intro-content {
    flex-direction: column;
  }

  .page-promotions__intro-image {
    margin-top: 30px;
  }

  .page-promotions__promo-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .page-promotions__cta-title {
    font-size: 2.5em;
  }

  .page-promotions__cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__hero-title {
    font-size: 2.5em;
  }

  .page-promotions__hero-description {
    font-size: 1.1em;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
  }

  .page-promotions__category-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__promo-cards {
    grid-template-columns: 1fr;
  }

  .page-promotions__promo-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-promotions__btn {
    width: 100%;
    box-sizing: border-box;
  }

  .page-promotions__cta-title {
    font-size: 2em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero {
    padding: 60px 0;
  }

  .page-promotions__hero-title {
    font-size: 2em;
  }

  .page-promotions__hero-description {
    font-size: 1em;
  }

  .page-promotions__section-title {
    font-size: 1.6em;
  }

  .page-promotions__faq-question {
    font-size: 1.2em;
  }

  .page-promotions__faq-answer {
    font-size: 0.95em;
  }
}