/* style/promotions.css */

/* Variables from shared or global context */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f8f8f8;
    --border-color: #e0e0e0;
    --button-login-color: #EA7C07; /* From custom color rules */
}

.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light body background */
    background-color: var(--secondary-color); /* Body background from shared.css, so this is for .page-promotions container itself */
}

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

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width within max-width */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

.page-promotions__hero-image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-promotions__main-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px; /* Limit title width for better readability */
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-promotions__intro-description {
    font-size: 18px;
    color: var(--text-color-dark);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-promotions__cta-button:hover {
    background: var(--button-login-color); /* Use login color for hover, as it's a strong accent */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-promotions__cta-button--primary {
    background: var(--primary-color);
}
.page-promotions__cta-button--primary:hover {
    background: var(--button-login-color);
}
.page-promotions__cta-button--large {
    padding: 18px 50px;
    font-size: 20px;
}

/* --- General Section Styling --- */
.page-promotions__section {
    padding: 80px 20px;
    text-align: center;
}

.page-promotions__section--introduction {
    background-color: var(--secondary-color);
}

.page-promotions__section--offers {
    background-color: var(--background-light);
}

.page-promotions__section--how-to-claim {
    background-color: var(--secondary-color);
}

.page-promotions__section--terms {
    background-color: var(--background-light);
}

.page-promotions__section--faq {
    background-color: var(--secondary-color);
}

.page-promotions__section--conclusion {
    background-color: var(--primary-color); /* Dark section */
    color: var(--text-color-light); /* Light text for dark background */
}

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

.page-promotions__section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.page-promotions__section--conclusion .page-promotions__section-title {
    color: var(--text-color-light); /* White title for dark section */
}

.page-promotions__text-block {
    font-size: 17px;
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-dark);
}

.page-promotions__text-block--light {
    color: var(--text-color-light); /* White text for dark section */
}

.page-promotions__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-promotions__text-block--light a {
    color: var(--text-color-light);
}

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

.page-promotions__feature-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-promotions__feature-item p {
    font-size: 16px;
    color: var(--text-color-dark);
}

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

.page-promotions__card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

.page-promotions__card-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    align-self: flex-start; /* Align button to start of flex container */
    transition: background-color 0.3s ease;
}

.page-promotions__card-button:hover {
    background: var(--button-login-color);
}

/* --- How to Claim Steps --- */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-promotions__steps-list li {
    background: var(--secondary-color);
    padding: 25px 30px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

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

.page-promotions__steps-list p {
    font-size: 16px;
    color: var(--text-color-dark);
}

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

/* --- Terms & Conditions --- */
.page-promotions__terms-list {
    list-style: disc;
    padding-left: 30px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    font-size: 16px;
    color: var(--text-color-dark);
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
}

/* --- FAQ Section --- */
.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
}
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;
}
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: var(--background-light);
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color-dark);
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background: var(--background-light);
  border-radius: 0 0 5px 5px;
  font-size: 15px;
  color: var(--text-color-dark);
}
details.page-promotions__faq-item .page-promotions__faq-answer p {
    margin: 0;
}


/* --- Conclusion Section --- */
.page-promotions__dark-section {
    color: var(--text-color-light);
}
.page-promotions__dark-section .page-promotions__text-block {
    color: var(--text-color-light);
}
.page-promotions__dark-section .page-promotions__text-block a {
    color: var(--text-color-light);
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 38px;
    }
    .page-promotions__section-title {
        font-size: 32px;
    }
    .page-promotions__cta-button {
        padding: 14px 35px;
        font-size: 17px;
    }
    .page-promotions__cta-button--large {
        padding: 16px 45px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: 10px !important; /* Ensure small top padding on mobile */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-image-wrapper img {
        border-radius: 4px;
    }

    .page-promotions__hero-content {
        padding: 0 10px;
    }

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

    .page-promotions__intro-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-promotions__cta-button {
        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__cta-button--large {
        padding: 14px 35px;
        font-size: 17px;
    }
    .page-promotions__cta-center {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }

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

    .page-promotions__section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .page-promotions__text-block,
    .page-promotions__feature-item p,
    .page-promotions__card-description,
    .page-promotions__steps-list p,
    .page-promotions__terms-list li,
    details.page-promotions__faq-item .page-promotions__faq-answer {
        font-size: 15px;
    }

    .page-promotions__features-grid,
    .page-promotions__offer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .page-promotions__card-image {
        height: 180px; /* Adjust height for mobile cards */
    }

    .page-promotions__card-title {
        font-size: 18px;
    }

    .page-promotions__card-button {
        align-self: stretch; /* Stretch button to full width */
        text-align: center;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__steps-list li {
        padding: 20px 25px;
    }

    .page-promotions__step-title {
        font-size: 18px;
    }

    details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; }
    .page-promotions__faq-qtext { font-size: 15px; }
    .page-promotions__faq-toggle { font-size: 20px; width: 24px; height: 24px; }
    details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }

    /* Mobile image overflow prevention */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__container,
    .page-promotions__offer-grid,
    .page-promotions__features-grid,
    .page-promotions__faq-list,
    .page-promotions__steps-list,
    .page-promotions__terms-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 24px;
    }
    .page-promotions__section-title {
        font-size: 22px;
    }
    .page-promotions__cta-button {
        font-size: 15px;
        padding: 10px 25px;
    }
    .page-promotions__cta-button--large {
        font-size: 16px;
        padding: 12px 30px;
    }
    .page-promotions__card-title {
        font-size: 17px;
    }
    .page-promotions__step-title {
        font-size: 17px;
    }
}