/* style/promotions.css */
/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#0a0a0a) */
}

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

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

.page-promotions__section-title {
    font-size: 2.8em;
    color: #26A9E0; /* Brand color for titles */
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px; /* Or responsive height */
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Desktop padding */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-promotions__cta-button {
    display: inline-block;
    background-color: #26A9E0;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
}

.page-promotions__cta-button:hover {
    background-color: #1a8cc4;
    border-color: #ffffff;
}

/* Promotion Types Section */
.page-promotions__promotion-types {
    background-color: #1a1a1a; /* Darker background for contrast */
}

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

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

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

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

.page-promotions__card-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-promotions__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.page-promotions__card-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    background-color: #0a0a0a;
}

.page-promotions__steps-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-promotions__guide-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__steps-list {
    flex: 1;
    list-style: none;
    padding: 0;
    text-align: left;
}

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 5px solid #26A9E0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__step-title {
    font-size: 1.4em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-promotions__step-text {
    font-size: 1em;
    color: #e0e0e0;
}

.page-promotions__step-text a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
    background-color: #1a1a1a;
}

.page-promotions__content-block {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    margin-top: 40px;
}

.page-promotions__content-subtitle {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-promotions__content-text {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-promotions__text-link {
    color: #EA7C07; /* Login color for a distinct link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-promotions__text-link:hover {
    color: #ff9933;
    text-decoration: underline;
}

/* Why Choose Section */
.page-promotions__why-choose {
    background-color: #0a0a0a;
}

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

.page-promotions__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.page-promotions__feature-icon {
    width: 100%;
    max-width: 250px; /* Adjust based on actual image ratio */
    height: auto;
    margin: 0 auto 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-promotions__feature-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-promotions__feature-text {
    font-size: 1em;
    color: #e0e0e0;
    flex-grow: 1;
}

/* FAQ Section */
.page-promotions__faq {
    background-color: #1a1a1a;
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #26A9E0; /* Brand color for question background */
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #1a8cc4;
}

.page-promotions__faq-title {
    margin: 0;
    font-size: 1em; /* Adjust to fit parent font-size */
    color: #ffffff;
}

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

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px !important;
}

.page-promotions__faq-text {
    margin: 0;
    color: #e0e0e0;
}

.page-promotions__faq-text a {
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
}

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

/* Bottom CTA Section */
.page-promotions__cta-bottom {
    background-color: #0a0a0a;
}

.page-promotions__cta-bottom .page-promotions__container {
    background-color: #26A9E0; /* Brand color background */
    border-radius: 10px;
    padding: 50px 30px;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-bottom .page-promotions__section-title {
    color: #ffffff;
    font-size: 2.5em;
}

.page-promotions__cta-bottom .page-promotions__section-description {
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-promotions__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.page-promotions__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    background-color: #d16b00;
    border-color: #ffffff;
}

.page-promotions__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1a8cc4;
    border-color: #1a8cc4;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__section-title {
        font-size: 2.5em;
    }
    .page-promotions__guide-image {
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding */
    }
    .page-promotions__hero-content {
        max-width: 90%;
    }
    .page-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__cta-button {
        font-size: 1em;
        padding: 12px 25px;
        max-width: 100% !important;
        width: 100% !important;
        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: 2em;
    }
    .page-promotions__section-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-promotions__cards-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__how-to-claim .page-promotions__steps-wrapper {
        flex-direction: column;
    }
    .page-promotions__guide-image {
        max-width: 100%;
        margin-bottom: 30px;
    }
    .page-promotions__steps-list {
        width: 100%;
    }

    .page-promotions__content-subtitle {
        font-size: 1.5em;
    }
    .page-promotions__content-text {
        font-size: 0.95em;
    }

    .page-promotions__features-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px !important;
    }

    .page-promotions__cta-bottom .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__cta-bottom .page-promotions__container {
        padding: 30px 20px;
    }
    .page-promotions__button-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        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;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__hero-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important; /* Ensure no overflow */
    }

    /* Specific container padding for mobile */
    .page-promotions__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__card-title {
        font-size: 1.4em;
    }
    .page-promotions__step-title {
        font-size: 1.2em;
    }
    .page-promotions__cta-bottom .page-promotions__section-title {
        font-size: 1.8em;
    }
}

/* Ensuring contrast for default text elements within dark background */
.page-promotions p,
.page-promotions li,
.page-promotions span {
    color: #f0f0f0; /* Light text for dark body background */
}

/* Overriding for specific sections with brand color background */
.page-promotions__dark-bg {
  color: #ffffff; /* Deep blue background, white text */
  background: #26A9E0;
}
.page-promotions__cta-bottom .page-promotions__section-description {
    color: #f0f0f0; /* Ensure text remains visible on brand color background */
}