/* style/promotions.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-color: #C30808;
  --login-button-color: #C30808;
  --button-text-color: #FFFF00;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-color-light: #ffffff;
  --border-color: #e0e0e0;
}

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

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, main offset handled by body */
  background-color: #f8f8f8;
  overflow: hidden;
}

.page-promotions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-promotions__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-promotions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-promotions__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.page-promotions__intro-text {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-color-dark);
}

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

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-register {
  background: var(--register-button-color);
  color: var(--button-text-color);
}

.page-promotions__btn-register:hover {
  background: darken(var(--register-button-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-login {
  background: var(--login-button-color);
  color: var(--button-text-color);
}

.page-promotions__btn-login:hover {
  background: darken(var(--login-button-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: 700;
}

.page-promotions__paragraph {
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--text-color-dark);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-promotions__intro-promotions {
  background-color: var(--background-color-light);
}

.page-promotions__promotion-categories {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-promotions__promotion-categories .page-promotions__section-title {
  color: var(--secondary-color);
}

.page-promotions__promotion-categories .page-promotions__paragraph {
  color: var(--text-color-light);
}

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

.page-promotions__card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

.page-promotions__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 1px solid var(--primary-color);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-secondary:hover {
  background: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-promotions__how-to-claim {
  background-color: #f5fbf8;
}

.page-promotions__list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-promotions__list-item {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  counter-increment: list-counter;
  position: relative;
  padding-left: 50px;
}

.page-promotions__list-item::before {
  content: counter(list-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: var(--secondary-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.page-promotions__list-item strong {
  color: var(--primary-color);
}

.page-promotions__terms-conditions {
  background-color: var(--background-color-light);
}

.page-promotions__why-choose-us {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-promotions__why-choose-us .page-promotions__section-title {
  color: var(--secondary-color);
}

.page-promotions__why-choose-us .page-promotions__paragraph {
  color: var(--text-color-light);
}

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

.page-promotions__advantage-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__advantage-title {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions__advantage-description {
  font-size: 0.95rem;
  color: var(--text-color-light);
  line-height: 1.6;
}

.page-promotions__faq-section {
  background-color: #f8f8f8;
}

.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--primary-color);
}

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

details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: #f5f5f5;
}

.page-promotions__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color-dark);
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: var(--text-color-dark);
  text-align: left;
}

details.page-promotions__faq-item .page-promotions__faq-answer p {
  margin-bottom: 0;
}

.page-promotions .highlight {
  color: var(--primary-color);
  font-weight: bold;
}

.page-promotions__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-promotions__dark-bg .page-promotions__section-title,
.page-promotions__dark-bg .page-promotions__paragraph {
  color: var(--text-color-light);
}

.page-promotions__light-bg {
  background-color: var(--background-color-light);
  color: var(--text-color-dark);
}

.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__paragraph {
  color: var(--text-color-dark);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-image img {
    border-radius: 4px;
  }

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

  .page-promotions__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

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

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

  .page-promotions__paragraph {
    font-size: 0.95rem;
    text-align: left;
  }

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

  .page-promotions__card {
    padding: 20px;
  }

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

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

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

  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .page-promotions__list-item {
    font-size: 0.95rem;
    padding: 15px 15px 15px 45px;
  }

  .page-promotions__list-item::before {
    width: 25px;
    height: 25px;
    font-size: 1rem;
    left: 10px;
  }

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

  .page-promotions__advantage-item {
    padding: 20px;
  }

  .page-promotions__advantage-title {
    font-size: 1.2rem;
  }

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

  details.page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px;
  }

  .page-promotions__faq-qtext {
    font-size: 1rem;
  }

  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 15px 15px;
  }

  /* Ensure all images are responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .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;
  }
  .page-promotions__cta-buttons {
    gap: 10px;
  }
}

/* Custom darken function for hover effects */
/* Note: In a real project, this would be handled by a CSS preprocessor like Sass */
/* For this exercise, assume darken(color, amount) works or replace with direct color */
.page-promotions__btn-register:hover {
  background: #a80707; /* Darkened #C30808 */
}
.page-promotions__btn-login:hover {
  background: #a80707; /* Darkened #C30808 */
}
.page-promotions__btn-secondary:hover {
  background: #005a2e; /* Darkened #017439 */
  border-color: #005a2e; /* Darkened #017439 */
}