/* style/promotions.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-button-color: #EA7C07;
    --background-color: #FFFFFF;
    --black-color: #000000;
    --text-dark: #333333;
    --text-light: #f8f9fa;
}

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

.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    color: var(--text-light);
    background-color: var(--primary-color);
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
    display: block;
    filter: brightness(0.6);
}

.page-promotions__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    width: 90%;
    z-index: 10;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-promotions__description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    margin-bottom: 30px;
    color: var(--text-light);
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-card {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    max-width: 100%;
}

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

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

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

.page-promotions__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

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

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

.page-promotions__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
    color: var(--primary-color);
}

.page-promotions__dark-section .page-promotions__section-title {
    color: var(--secondary-color);
}

.page-promotions__section-subtitle {
    font-size: clamp(1em, 1.5vw, 1.2em);
    margin-bottom: 40px;
    color: var(--text-dark);
}

.page-promotions__dark-section .page-promotions__section-subtitle,
.page-promotions__dark-section .page-promotions__text-block {
    color: var(--text-light);
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: left;
}

.page-promotions__intro-section .page-promotions__text-block {
    color: var(--text-dark);
}

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

.page-promotions__promo-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    color: var(--text-dark);
}

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

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

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

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

.page-promotions__btn-card {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    width: 100%;
}

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

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
}

.page-promotions__list-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-promotions__list-item strong {
    color: var(--primary-color);
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

.page-promotions__list-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-promotions__list-item a:hover {
    text-decoration: underline;
}

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

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 30px;
    text-align: left;
    color: var(--text-light);
}

.page-promotions__terms-list .page-promotions__list-item {
    background: none;
    border: none;
    padding: 10px 0;
    margin-bottom: 5px;
    font-size: 1em;
    color: var(--text-light);
}

.page-promotions__terms-list .page-promotions__list-item strong {
    color: var(--secondary-color);
    font-size: 1.1em;
}

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

.page-promotions__feature-item {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    color: var(--text-dark);
}

.page-promotions__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__feature-description {
    font-size: 0.95em;
    color: var(--text-dark);
}

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

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

.page-promotions__faq-item details {
    background-color: transparent;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    color: var(--secondary-color);
    background-color: var(--primary-color);
    border-radius: 8px;
    transition: background-color 0.3s ease;
    list-style: none;
}

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

.page-promotions__faq-question:hover {
    background-color: darken(var(--primary-color), 5%);
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

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

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

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

.page-promotions__final-cta {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* --- Responsive Styles --- */

/* All images responsive */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Content area images CSS dimensions lower limit */
.page-promotions__promo-image, 
.page-promotions__feature-icon {
  min-width: 200px; 
  min-height: 200px;
}

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

    .page-promotions__hero-content {
        padding: 15px;
        width: 95%;
    }

    .page-promotions__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-promotions__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-card {
        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__section {
        padding: 40px 15px;
    }

    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-promotions__promo-image,
    .page-promotions__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

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

    .page-promotions__hero-section {
      padding-bottom: 40px;
      padding-top: 10px !important; /* body handles --header-offset */
    }
}

/* Ensure all images are responsive */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all video elements are responsive (if any) */
.page-promotions video,
.page-promotions__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Video containers responsive (if any) */
.page-promotions__video-section,
.page-promotions__video-container,
.page-promotions__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .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__section,
  .page-promotions__card,
  .page-promotions__container,
  .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;
  }

  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}