/* style/promotions.css */

/* --- Base Styles & Variables --- */
:root {
    --primary-color: #11A84E; /* Main color */
    --secondary-color: #22C768; /* Auxiliary color */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --page-bg: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-promotions {
    font-family: Arial, sans-serif;
    background-color: var(--page-bg); /* Use specified background color */
    color: var(--text-main); /* Default text color for the page */
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure some space at the bottom */
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--gold-color); /* Use gold for main titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-promotions__text-block {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
}

/* --- Hero Section --- */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    padding: 10px 0 60px; /* Small top padding, more bottom padding */
    background-color: var(--deep-green-color); /* A darker green for the hero section background */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-promotions__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-promotions__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-promotions__description {
    font-size: 1.2em;
    color: var(--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;
    margin-top: 30px;
}

.page-promotions__cta-buttons--center {
    margin-top: 40px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure responsiveness */
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--page-bg);
    transform: translateY(-2px);
}

/* --- Intro Section --- */
.page-promotions__intro-section {
    padding: 60px 0;
    background-color: var(--page-bg);
}

/* --- Types Section (Grid) --- */
.page-promotions__types-section {
    padding: 60px 0;
    background-color: var(--deep-green-color);
}

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

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

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
}

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

.page-promotions__card-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__card-text {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1; /* Push buttons to bottom */
    text-align: justify;
}

/* --- How-To-Claim Section --- */
.page-promotions__how-to-claim-section {
    padding: 60px 0;
    background-color: var(--page-bg);
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-right: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.page-promotions__step-content {
    flex-grow: 1;
}

.page-promotions__step-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__step-description {
    font-size: 1em;
    color: var(--text-secondary);
    text-align: justify;
}

/* --- Terms Section --- */
.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--deep-green-color);
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    color: var(--text-secondary);
    font-size: 1.05em;
}

.page-promotions__terms-list .page-promotions__list-item {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 5px 0;
    margin-bottom: 10px;
    display: list-item; /* Override flex for list item */
}

.page-promotions__terms-list .page-promotions__list-item strong {
    color: var(--text-main);
}

/* --- FAQ Section --- */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--page-bg);
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: var(--deep-green-color);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

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

/* --- Conclusion Section --- */
.page-promotions__conclusion-section {
    padding: 60px 0;
    background-color: var(--page-bg);
    text-align: center;
}

.page-promotions__dark-section {
    background-color: var(--deep-green-color);
    padding: 50px 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* --- Global Image/Video/Button Responsiveness (MUST BE INCLUDED) --- */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-promotions video,
.page-promotions__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-promotions__video-section,
.page-promotions__video-container,
.page-promotions__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-promotions__cta-button,
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions a[class*="button"],
.page-promotions a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-buttons,
.page-promotions__button-group,
.page-promotions__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-promotions__section-title {
    font-size: 2em;
  }

  .page-promotions__hero-content {
    padding: 20px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for smaller screens */
  }

  .page-promotions__description {
    font-size: 1.05em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to buttons container */
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-promotions__grid {
    grid-template-columns: 1fr;
    padding: 0 15px; /* Add padding to grid container */
  }

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

  .page-promotions__list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin: 0 15px 20px; /* Add horizontal margin */
  }

  .page-promotions__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-promotions__step-title {
    font-size: 1.3em;
  }

  .page-promotions__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

  .page-promotions__dark-section {
    padding: 30px 20px;
    margin: 0 15px;
  }

  /* Force responsive for images, videos, buttons */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .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; /* body already handles --header-offset */
  }

  .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;
  }
}