/* style/promotions.css */

/* Variables and base styles for the page */
:root {
  --page-promotions-primary-color: #26A9E0;
  --page-promotions-secondary-color: #FFFFFF;
  --page-promotions-login-color: #EA7C07;
  --page-promotions-dark-text: #000000; /* For light backgrounds */
  --page-promotions-light-text: #FFFFFF; /* For dark backgrounds */
  --page-promotions-card-bg: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark body bg */
  --page-promotions-border-color: rgba(255, 255, 255, 0.15);
}

/* Base style for the main content area, considering body background is #0a0a0a (dark) */
.page-promotions {
  background-color: transparent; /* Body handles the main background */
  color: var(--page-promotions-light-text); /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Section styling */
.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__section:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03); /* Slightly lighter dark background for contrast */
}

/* Container for content width limitation */
.page-promotions__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #0d0d0d; /* Slightly different dark background for hero */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for hero image */
  margin-bottom: 30px; /* Space between image and text */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-promotions__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--page-promotions-light-text);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-promotions__intro-text {
  font-size: 1.15rem;
  color: var(--page-promotions-light-text);
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Section Titles */
.page-promotions__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--page-promotions-primary-color);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Text Blocks */
.page-promotions__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--page-promotions-light-text);
  opacity: 0.85;
  text-align: left;
}

/* Buttons */
.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-promotions__btn-primary {
  background-color: var(--page-promotions-login-color); /* Login color for primary CTA */
  color: var(--page-promotions-light-text);
  border: 2px solid var(--page-promotions-login-color);
}

.page-promotions__btn-primary:hover {
  background-color: #d66f06; /* Darkened version of #EA7C07 */
  border-color: #d66f06;
  transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-light-text);
  transform: translateY(-2px);
}

.page-promotions__btn-tertiary {
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-light-text);
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  margin-top: 15px;
}

.page-promotions__btn-tertiary:hover {
  background-color: #2192c7; /* Darkened version of #26A9E0 */
  transform: translateY(-1px);
}

/* Card Grid for Promotion Types */
.page-promotions__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-promotions__card {
  background-color: var(--page-promotions-card-bg); /* Semi-transparent white for dark body bg */
  border: 1px solid var(--page-promotions-border-color);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
}

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

.page-promotions__card-text {
  font-size: 1rem;
  color: var(--page-promotions-light-text);
  opacity: 0.8;
  flex-grow: 1; /* Make text block take available space */
  margin-bottom: 20px;
}

/* Lists */
.page-promotions__ordered-list,
.page-promotions__unordered-list {
  list-style-position: inside;
  margin: 20px 0 20px 20px;
  text-align: left;
  color: var(--page-promotions-light-text);
  opacity: 0.85;
}

.page-promotions__ordered-list li,
.page-promotions__unordered-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-promotions__ordered-list li strong {
  color: var(--page-promotions-primary-color);
}

/* Feature Grid */
.page-promotions__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-promotions__feature-item {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--page-promotions-primary-color);
  margin-bottom: 10px;
}

.page-promotions__feature-text {
  font-size: 0.95rem;
  color: var(--page-promotions-light-text);
  opacity: 0.75;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding-bottom: 80px;
}

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

.page-promotions__faq-item {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--page-promotions-primary-color);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-promotions__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--page-promotions-light-text);
  margin-left: 15px;
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--page-promotions-light-text);
  opacity: 0.8;
  line-height: 1.7;
}

/* Dark Section for CTA */
.page-promotions__dark-section {
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-light-text);
  padding: 80px 0;
}

.page-promotions__dark-section .page-promotions__section-title {
  color: var(--page-promotions-light-text);
}

.page-promotions__dark-section .page-promotions__text-block {
  color: var(--page-promotions-light-text);
  opacity: 0.9;
}

.page-promotions__dark-section .page-promotions__btn-primary {
  background-color: var(--page-promotions-light-text);
  color: var(--page-promotions-primary-color);
  border-color: var(--page-promotions-light-text);
}

.page-promotions__dark-section .page-promotions__btn-primary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-promotions__dark-section .page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--page-promotions-light-text);
  border-color: var(--page-promotions-light-text);
}

.page-promotions__dark-section .page-promotions__btn-secondary:hover {
  background-color: var(--page-promotions-light-text);
  color: var(--page-promotions-primary-color);
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    max-width: 700px;
  }
}

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

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

  .page-promotions__main-title {
    font-size: 2.2rem;
  }

  .page-promotions__intro-text {
    font-size: 1rem;
  }

  .page-promotions__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

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

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-tertiary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__card-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.3rem;
  }

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

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

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

  .page-promotions__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  .page-promotions__dark-section {
    padding: 60px 0;
  }

  /* Image responsiveness for mobile */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content must also be responsive */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Specific padding for sections to avoid content touching edges */
  .page-promotions__introduction .page-promotions__container,
  .page-promotions__promotion-types .page-promotions__container,
  .page-promotions__guide .page-promotions__container,
  .page-promotions__terms .page-promotions__container,
  .page-promotions__why-choose .page-promotions__container,
  .page-promotions__faq-section .page-promotions__container,
  .page-promotions__call-to-action .page-promotions__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}