/* style/promotions.css */

:root {
  --j7bet-primary: #11A84E;
  --j7bet-secondary: #22C768;
  --j7bet-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --j7bet-card-bg: #11271B;
  --j7bet-background: #08160F;
  --j7bet-text-main: #F2FFF6;
  --j7bet-text-secondary: #A7D9B8;
  --j7bet-border: #2E7A4E;
  --j7bet-glow: #57E38D;
  --j7bet-gold: #F2C14E;
  --j7bet-divider: #1E3A2A;
  --j7bet-deep-green: #0A4B2C;
  --header-offset: 122px; /* Fallback, actual value from shared.css */
}

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

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--j7bet-deep-green);
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--j7bet-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-promotions__hero-description {
  font-size: 1.15rem;
  color: var(--j7bet-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: var(--j7bet-button-gradient);
  color: var(--j7bet-text-main);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  opacity: 0.9;
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--j7bet-gold);
  border: 2px solid var(--j7bet-gold);
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-promotions__btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(242, 193, 78, 0.1);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-promotions__section {
  padding: 80px 20px;
  background-color: var(--j7bet-background);
}

.page-promotions__overview,
.page-promotions__guide,
.page-promotions__terms,
.page-promotions__faq,
.page-promotions__why-choose,
.page-promotions__cta-final {
  background-color: var(--j7bet-deep-green);
  border-top: 1px solid var(--j7bet-divider);
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--j7bet-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-promotions__text-block {
  font-size: 1.1rem;
  color: var(--j7bet-text-secondary);
  margin-bottom: 25px;
  text-align: justify;
}

.page-promotions__text-block a {
  color: var(--j7bet-gold);
  text-decoration: none;
  font-weight: 600;
}

.page-promotions__text-block a:hover {
  text-decoration: underline;
}

.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__promo-card {
  background-color: var(--j7bet-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--j7bet-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.5rem;
  color: var(--j7bet-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions__card-description {
  font-size: 1rem;
  color: var(--j7bet-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__btn-text {
  color: var(--j7bet-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--j7bet-gold);
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-text:hover {
  background-color: var(--j7bet-gold);
  color: var(--j7bet-background);
}

.page-promotions__step-card {
  background-color: var(--j7bet-card-bg);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--j7bet-border);
}

.page-promotions__step-title {
  font-size: 1.8rem;
  color: var(--j7bet-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions__step-description {
  font-size: 1.05rem;
  color: var(--j7bet-text-secondary);
  margin-bottom: 20px;
}

.page-promotions__terms-list,
.page-promotions__why-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-promotions__terms-list li,
.page-promotions__why-list li {
  background-color: var(--j7bet-card-bg);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  color: var(--j7bet-text-main);
  font-size: 1.05rem;
  line-height: 1.5;
  border-left: 5px solid var(--j7bet-gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__terms-list li strong,
.page-promotions__why-list li strong {
  color: var(--j7bet-primary);
}

.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: var(--j7bet-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--j7bet-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--j7bet-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
  list-style: none;
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-question:hover {
  background-color: rgba(var(--j7bet-primary), 0.1);
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: var(--j7bet-gold);
}

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--j7bet-primary);
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--j7bet-text-secondary);
  line-height: 1.6;
}

.page-promotions__faq-answer p {
  margin: 0;
  padding: 0;
  color: var(--j7bet-text-secondary);
}

.page-promotions__faq-answer a {
  color: var(--j7bet-gold);
  text-decoration: none;
  font-weight: 600;
}

.page-promotions__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
  }

  .page-promotions__hero-image {
    margin-bottom: 20px;
  }

  .page-promotions__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-promotions__hero-description {
    font-size: 1.05rem;
  }

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

  .page-promotions__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }

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

  .page-promotions__promo-card {
    padding: 25px;
  }

  .page-promotions__card-title {
    font-size: 1.4rem;
  }

  .page-promotions__step-title {
    font-size: 1.6rem;
  }

  .page-promotions__terms-list li,
  .page-promotions__why-list li {
    padding: 18px 20px;
  }

  .page-promotions__faq-question {
    font-size: 1.1rem;
    padding: 18px 20px;
  }

  .page-promotions__faq-answer {
    padding: 0 20px 18px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

  .page-promotions__hero-image {
    margin-bottom: 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

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

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__section {
    padding: 40px 15px;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    font-size: 0.95rem;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-card {
    padding: 20px;
  }

  .page-promotions__card-image {
    height: 180px;
  }

  .page-promotions__card-title {
    font-size: 1.3rem;
  }

  .page-promotions__card-description {
    font-size: 0.9rem;
  }

  .page-promotions__btn-text {
    font-size: 0.95rem;
    padding: 8px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__step-card {
    padding: 25px;
    margin-bottom: 20px;
  }

  .page-promotions__step-title {
    font-size: 1.4rem;
  }

  .page-promotions__step-description {
    font-size: 0.95rem;
  }

  .page-promotions__terms-list li,
  .page-promotions__why-list li {
    padding: 15px 18px;
    font-size: 0.95rem;
  }

  .page-promotions__faq-question {
    font-size: 1rem;
    padding: 15px 18px;
  }

  .page-promotions__faq-answer {
    padding: 0 18px 15px;
    font-size: 0.95rem;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-promotions__promo-card .page-promotions__card-image {
    padding-left: 0;
    padding-right: 0;
  }

  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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