/* style/promotions.css */

/* Base Styles */
.page-promotions {
    font-family: Arial, sans-serif;
    color: #333333;
    background-color: #FFFFFF;
    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;
    text-align: center;
}

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #017439;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.page-promotions__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Color Contrast Classes */
.page-promotions__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-promotions__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    color: #ffffff;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-promotions__hero-content {
    z-index: 10;
    max-width: 900px;
    padding: 20px;
}

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

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

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

.page-promotions__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFFFF; /* Ensures contrast for #C30808 background */
    border: 2px solid #C30808;
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-promotions__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

/* Promotion Types Section */
.page-promotions__promotion-types .page-promotions__section-title {
    color: #017439;
}

.page-promotions__promotion-types .page-promotions__section-description {
    color: #555555;
}

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

.page-promotions__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 25px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    color: #333333;
}

.page-promotions__card:hover {
    transform: translateY(-10px);
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

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

.page-promotions__card-title a:hover {
    color: #004d2c;
}

.page-promotions__card-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #017439;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-promotions__card-button:hover {
    background-color: #004d2c;
}

/* Featured Promotions Section */
.page-promotions__featured-promotions .page-promotions__section-title,
.page-promotions__featured-promotions .page-promotions__section-description {
    color: #ffffff;
}

.page-promotions__featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.page-promotions__featured-item {
    background-color: #017439;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__featured-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.page-promotions__featured-content {
    padding: 30px;
    text-align: left;
    color: #ffffff;
    flex-grow: 1;
}

.page-promotions__featured-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

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

.page-promotions__featured-list {
    list-style: disc inside;
    margin-bottom: 30px;
    padding-left: 20px;
    color: #f0f0f0;
}

.page-promotions__featured-list li {
    margin-bottom: 8px;
}

/* How to Claim Section */
.page-promotions__how-to-claim .page-promotions__section-title {
    color: #017439;
}

.page-promotions__how-to-claim .page-promotions__section-description {
    color: #555555;
}

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

.page-promotions__step-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.page-promotions__step-item:hover {
    transform: translateY(-5px);
}

.page-promotions__step-icon-wrapper {
    width: 120px;
    height: 120px;
    background-color: #e0f2f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.page-promotions__step-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.page-promotions__step-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

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

.page-promotions__cta-area {
    margin-top: 50px;
}

/* FAQ Section */
.page-promotions__faq .page-promotions__section-title {
    color: #017439;
}

.page-promotions__faq .page-promotions__section-description {
    color: #555555;
}

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

.page-promotions__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #017439;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #004d2c;
}

.page-promotions__faq-heading {
    margin: 0;
    color: #ffffff;
    font-size: 1.1em; /* Ensure consistent font size */
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
    background-color: #ffffff;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 20px 25px;
}

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 0.95em;
    color: #555555;
}

/* Final CTA Section */
.page-promotions__cta-final {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-promotions__cta-final .page-promotions__section-title {
    color: #ffffff;
}

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

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

    .page-promotions__hero-description {
        font-size: 1.2em;
    }

    .page-promotions__section-title {
        font-size: 2em;
    }

    .page-promotions__featured-title {
        font-size: 1.8em;
    }
}

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

    .page-promotions__hero-section {
        min-height: 500px;
        padding: 40px 15px;
    }

    .page-promotions__hero-title {
        font-size: 2.5em;
    }

    .page-promotions__hero-description {
        font-size: 1.1em;
    }

    .page-promotions__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

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

    .page-promotions__section-title {
        font-size: 1.8em;
    }

    .page-promotions__section-description {
        font-size: 1em;
    }

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

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

    .page-promotions__card-image {
        height: 180px;
    }

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

    .page-promotions__featured-item {
        flex-direction: column;
    }

    .page-promotions__featured-image {
        height: 250px;
    }

    .page-promotions__featured-title {
        font-size: 1.5em;
    }

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

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

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

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

    .page-promotions__cta-final {
        padding: 60px 0;
    }

    /* 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__container,
    .page-promotions__hero-image-wrapper,
    .page-promotions__hero-content,
    .page-promotions__featured-item,
    .page-promotions__featured-content,
    .page-promotions__step-item,
    .page-promotions__faq-item,
    .page-promotions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__hero-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-promotions__hero-cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important; /* Handled by individual buttons */
        padding-right: 0 !important; /* Handled by individual buttons */
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Ensure video elements are responsive, though none are directly in this page */
    .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: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 2em;
    }

    .page-promotions__section-title {
        font-size: 1.5em;
    }

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

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

    .page-promotions__faq-question {
        font-size: 0.9em;
    }
}