/* style/promotions.css */

/* Variables and basic resets if needed, but shared.css should handle most */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --button-login-color: #EA7C07;
  --body-bg-color: #0a0a0a; /* From shared.css */
}

.page-promotions {
  color: var(--light-text-color); /* Body background is dark #0a0a0a */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--body-bg-color); /* Ensure consistency if any section needs it */
}

.page-promotions__container {
  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;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: #0a0a0a; /* Ensure dark background for hero text */
}

.page-promotions__hero-image {
  width: 100%;
  max-width: 100%; /* Ensure it doesn't overflow */
  height: auto;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
  object-fit: cover;
  border-radius: 8px;
}

.page-promotions__hero-content {
  max-width: 800px;
  z-index: 1; /* Ensure text is above any potential background elements */
}

.page-promotions__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--secondary-color); /* White text on dark background */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.15rem;
  color: #f0f0f0; /* Slightly off-white for description */
  margin-bottom: 30px;
}

.page-promotions__cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* For button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-promotions__cta-button:hover {
  background-color: #1e87bb; /* A darker shade of #26A9E0 */
}

/* Section Styling */
.page-promotions__section {
  padding: 60px 0;
  background-color: var(--body-bg-color); /* Default dark background */
  text-align: center;
}

.page-promotions__section--light {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: var(--light-text-color);
}

.page-promotions__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 700;
}

.page-promotions__section-subtitle {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--secondary-color);
  margin-bottom: 25px;
  font-weight: 600;
}

.page-promotions__text-block {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
  text-align: left;
}

.page-promotions__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
  color: #e0e0e0;
}

.page-promotions__list-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-promotions__list-item::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-promotions__image-content {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-promotions__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--light-text-color);
  display: flex;
  flex-direction: column;
}

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

.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(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
  flex-grow: 1; /* Make title take available space */
}

.page-promotions__card-description {
  font-size: 0.95rem;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-promotions__card-button {
  display: inline-block;
  background-color: var(--button-login-color); /* Using login color for a distinct look */
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* For button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  align-self: flex-start; /* Align button to start */
}

.page-promotions__card-button:hover {
  background-color: #c46406; /* A darker shade of #EA7C07 */
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  padding: 60px 0;
  text-align: center;
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-promotions__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--light-text-color);
}

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

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

.page-promotions__faq-question {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: var(--secondary-color);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−';
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 0.95rem;
  color: #e0e0e0;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    padding: 60px 20px;
    padding-top: 10px;
  }

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

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

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

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

  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is for decorative top padding */
  }

  .page-promotions__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

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

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

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

  .page-promotions__section-subtitle {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    margin-bottom: 20px;
  }

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

  .page-promotions__card {
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

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

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

  .page-promotions__card-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

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

  /* All containers with images/content */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent content touching edges */
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Button container responsiveness */
  .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; /* Allow buttons to wrap */
    gap: 10px; /* Space between wrapped buttons */
    overflow: hidden !important;
  }
  .page-promotions__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* Video responsiveness (if any, though none specified for this page, keeping the template) */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__video-section {
    padding-top: 10px !important;
  }
}