/* style/promotions.css */

/* Base Styles */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is #000000, so text should be light */
    background-color: #000000; /* Ensure main content area also respects body background */
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: #FFFFFF; /* White for dark background */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly off-white for description */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 100px 20px 60px; /* Adjust padding-top for fixed header */
    padding-top: var(--header-offset, 120px); /* Ensure header offset is applied */
    background-color: #017439; /* Brand primary color for hero background */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-promotions__hero-section .page-promotions__container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.page-promotions__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    color: #FFFF00; /* Specific color for registration/login fonts */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-promotions__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.page-promotions__cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-promotions__cta-group--center {
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* For responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Registration/Login color */
    color: #FFFF00; /* Registration/Login font color */
    border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(195, 8, 8, 0.4);
}

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

.page-promotions__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.page-promotions__btn-primary--small,
.page-promotions__btn-secondary--small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 30px;
}

/* Video Section */
.page-promotions__video-section {
    padding: 80px 20px;
    background-color: #000000;
    text-align: center;
}

.page-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    max-width: 100%;
    height: auto;
    display: block;
    cursor: pointer; /* Indicate clickable */
}

/* Featured Promotions */
.page-promotions__featured-promotions {
    padding: 80px 20px;
    background-color: #0d0d0d; /* Slightly lighter dark background */
}

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

.page-promotions__promo-card {
    background-color: #1a1a1a; /* Darker card background for contrast */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-promotions__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Minimum size requirement */
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    color: #FFFF00; /* Highlight titles */
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__card-link {
    color: #FFFF00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__card-link:hover {
    color: #ffffff;
}

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

/* Benefits Section */
.page-promotions__benefits-section {
    padding: 80px 20px;
    background-color: #000000;
}

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

.page-promotions__benefit-item {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-promotions__benefit-title {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-promotions__benefit-text {
    font-size: 0.95em;
    color: #e0e0e0;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 80px 20px;
    background-color: #0d0d0d;
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__step-item {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.page-promotions__step-title {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 0;
}

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

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 20px;
    background-color: #000000;
}

.page-promotions__faq-list {
    max-width: 800px;
    margin: 50px auto 0 auto;
}

.page-promotions__faq-item {
    background-color: #1a1a1a;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__faq-question:hover {
    background-color: #028a4a;
}

.page-promotions__faq-title {
    margin: 0;
    color: #ffffff; /* Ensure title is white */
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    font-weight: normal;
    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; /* Initial padding, will expand */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px 25px; /* Expanded padding */
}

.page-promotions__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some space at the bottom of the paragraph */
    color: #e0e0e0;
}

/* Conclusion Section */
.page-promotions__conclusion-section {
    padding: 80px 20px;
    background-color: #017439; /* Brand primary color */
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__hero-section .page-promotions__container {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__hero-content {
        text-align: center;
    }
}

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

    .page-promotions__hero-section {
        padding: 80px 15px 40px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied on mobile */
    }

    .page-promotions__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

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

    .page-promotions__cta-group {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
      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-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
      display: flex; /* Ensure flex context for wrap */
      flex-direction: column; /* Stack buttons vertically */
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-promotions__video-section,
    .page-promotions__featured-promotions,
    .page-promotions__benefits-section,
    .page-promotions__how-to-claim,
    .page-promotions__faq-section,
    .page-promotions__conclusion-section {
        padding: 40px 15px;
    }
    
    /* Image responsive rules */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum image width */
        min-height: 200px !important; /* Enforce minimum image height */
    }

    /* Video responsive rules */
    .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;
    }
    
    /* Content area images: enforce minimum size */
    .page-promotions__content-area img,
    .page-promotions__promo-card .page-promotions__card-image,
    .page-promotions__hero-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }

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

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

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-promotions__card-title {
        font-size: 1.2em;
    }
    .page-promotions__benefit-title,
    .page-promotions__step-title {
        font-size: 1.2em;
    }
}

/* Color Contrast Enforcement - Dark body background #000000 */
.page-promotions {
  color: #ffffff; /* Must use light text on dark body background */
}

.page-promotions__card,
.page-promotions__benefit-item,
.page-promotions__step-item,
.page-promotions__faq-item {
  background: #1a1a1a; /* Dark card background */
  color: #ffffff; /* Light text on dark card background */
}

.page-promotions__light-bg {
    background: #1a1a1a; /* Dark background for elements that need to stand out from pure black */
    color: #ffffff;
}

.page-promotions__dark-bg {
    background: #000000;
    color: #ffffff;
}

.page-promotions__faq-question {
    background-color: #017439; /* Brand primary color for question background */
    color: #ffffff;
}