/* Base styles for the promotions page */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* Light background to ensure contrast */
    line-height: 1.6;
}

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

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

.page-promotions__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
}

.page-promotions__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #f0f0f0;
    overflow: hidden; /* Ensure content doesn't bleed */
}

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

.page-promotions__hero-content {
    padding: 40px 20px;
    background-color: #ffffff; /* White background for text for readability */
    position: relative;
    z-index: 1;
}

.page-promotions__main-title {
    font-size: clamp(28px, 4vw, 48px); /* H1 with clamp for responsiveness */
    font-weight: 800;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 900px;
    margin: 0 auto 30px;
    color: #333333;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 800px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt to container */
    text-align: center;
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Custom red for register/login */
    color: #FFFF00; /* Custom yellow for font */
    border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: #fff;
}

.page-promotions__btn-secondary {
    background-color: #017439; /* Brand green */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-promotions__btn-primary--large {
    padding: 18px 40px;
    font-size: 20px;
}

/* Highlight Promotions Section */
.page-promotions__highlight-promos {
    background-color: #ffffff;
}

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

.page-promotions__promo-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-promotions__promo-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-promotions__promo-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-card-title {
    font-size: 22px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__promo-card-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__btn-detail {
    background-color: #017439;
    color: #FFFFFF;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 6px;
    align-self: flex-start; /* Align button to start of flex container */
    border: 2px solid #017439;
}

.page-promotions__btn-detail:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

/* FAQ Section */
details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333; /* Ensure text is dark on light background */
}
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: #333333; /* Ensure text is dark on light background */
}
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: 18px; /* Slightly larger for readability */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-promotions__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  color: #017439; /* Brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Larger touch target */
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Ensure answer text is readable */
}

/* Bottom CTA Section */
.page-promotions__cta-bottom {
    padding: 80px 0;
    text-align: center;
}

.page-promotions__dark-section {
    background-color: #017439; /* Brand green background */
    color: #ffffff;
    border-radius: 12px;
    padding: 60px 40px;
}

.page-promotions__section-title--light {
    color: #FFFFFF;
}

.page-promotions__section-description--light {
    color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-promotions__section-title {
        font-size: 32px;
    }
    .page-promotions__section-description {
        font-size: 16px;
    }
    .page-promotions__main-title {
        font-size: clamp(24px, 4vw, 42px);
    }
    .page-promotions__hero-description {
        font-size: clamp(15px, 2vw, 18px);
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-detail {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-promotions__btn-primary--large {
        padding: 15px 35px;
        font-size: 18px;
    }
    .page-promotions__promo-card-title {
        font-size: 20px;
    }
    .page-promotions__promo-card-text {
        font-size: 15px;
    }
    .page-promotions__faq-qtext {
        font-size: 16px;
    }
    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 28px;
    }
}

@media (max-width: 768px) {
    /* General content area padding */
    .page-promotions__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-promotions__section {
        padding: 40px 0;
    }

    /* Hero Section */
    .page-promotions__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
    }
    .page-promotions__hero-image {
        max-height: 300px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__hero-content {
        padding: 30px 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 15px;
    }
    .page-promotions__hero-description {
        font-size: clamp(15px, 4vw, 18px);
        margin-bottom: 25px;
    }

    /* Buttons and button containers */
    .page-promotions__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-detail {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
    }
    .page-promotions__btn-primary--large {
        padding: 15px 20px !important;
        font-size: 18px !important;
    }

    /* Promo Grid */
    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__promo-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-promotions__promo-card-image {
        height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__promo-card-content {
        padding: 20px;
    }
    .page-promotions__promo-card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .page-promotions__promo-card-text {
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* FAQ Section */
    details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px !important; }
    .page-promotions__faq-qtext { font-size: 15px !important; }
    .page-promotions__faq-toggle {
        font-size: 20px !important;
        width: 24px !important;
        height: 24px !important;
        margin-left: 10px !important;
    }
    details.page-promotions__faq-item .page-promotions__faq-answer {
        padding: 0 15px 15px !important;
    }

    /* Bottom CTA */
    .page-promotions__dark-section {
        padding: 40px 20px;
    }
    .page-promotions__section-title {
        font-size: 28px;
    }
    .page-promotions__section-description {
        font-size: 15px;
    }
}