/* style/promotions.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E; /* Green Gold main */
    --secondary-color: #22C768; /* Green Gold secondary */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-dark: #08160F; /* Body background from shared */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-promotions {
    background-color: var(--background-dark); /* Ensure consistency with body background */
    color: var(--text-main); /* Light text on dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--deep-green);
    overflow: hidden; /* Ensure no overflow from images */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none; /* No filter allowed */
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    z-index: 2;
    position: relative;
    margin-top: -100px; /* Pull content up slightly over the image for better flow */
    background: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.page-promotions__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.page-promotions__subtitle {
    font-size: clamp(1em, 1.5vw, 1.3em);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrap on desktop */
    box-sizing: border-box; /* Ensure padding/border included in width */
    max-width: 100%;
    word-wrap: break-word;
}

.page-promotions__btn-primary,
.page-promotions__card-button {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-primary:hover,
.page-promotions__card-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background-color: rgba(17, 168, 78, 0.1);
}

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

.page-promotions__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__featured-offers {
    background-color: var(--background-dark);
}

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

.page-promotions__offer-card,
.page-promotions__step-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensure cards have equal height in a row */
}

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

.page-promotions__card-title,
.page-promotions__step-title {
    font-size: 1.5em;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__card-text,
.page-promotions__step-text {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-promotions__card-button {
    margin-top: auto; /* Push button to bottom */
    width: fit-content; /* Adjust width to content */
    align-self: center; /* Center button in card */
    white-space: normal;
}

.page-promotions__how-to-join {
    background-color: var(--deep-green);
}

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

.page-promotions__step-card .page-promotions__card-image {
    height: 180px; /* Slightly smaller image for steps */
}

.page-promotions__button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap */
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-promotions__button-group .page-promotions__btn-primary,
.page-promotions__button-group .page-promotions__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    white-space: normal;
    word-wrap: break-word;
    width: auto; /* Adjust width naturally */
}

.page-promotions__terms-conditions {
    background-color: var(--deep-green); /* Dark section background */
    color: var(--text-main); /* Light text */
}

.page-promotions__dark-section .page-promotions__section-title {
    color: var(--gold-color);
}

.page-promotions__dark-section .page-promotions__section-description {
    color: var(--text-secondary);
}

.page-promotions__faq {
    background-color: var(--background-dark);
}

.page-promotions__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-promotions__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-promotions__faq-item summary {
    list-style: none; /* Remove default marker for details */
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Hide marker for Webkit browsers */
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.15); /* Slight hover effect */
}

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-promotions__faq-answer p {
    margin-bottom: 15px;
}

.page-promotions__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

.page-promotions__cta-final {
    padding: 60px 0;
    background-color: var(--deep-green);
}

.page-promotions__cta-final .page-promotions__container {
    background-color: var(--card-bg); /* Use card background for final CTA container */
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

/* Video styles (if any, kept for robustness) */
.page-promotions video,
.page-promotions__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}
.page-promotions__video-section,
.page-promotions__video-container,
.page-promotions__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -80px;
        padding: 25px;
    }

    .page-promotions__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

    .page-promotions__section-title {
        font-size: clamp(1.6em, 3.5vw, 2.5em);
    }

    .page-promotions__offer-card,
    .page-promotions__step-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important;
    }

    .page-promotions__hero-content {
        margin-top: -60px;
        padding: 20px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-promotions__subtitle {
        font-size: 1em;
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__card-button,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important; /* Allow text wrap */
        word-wrap: break-word !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-promotions__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
    }

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

    .page-promotions__offer-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-promotions__card-image {
        height: auto; /* Allow height to adjust */
    }

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

    .page-promotions__card-text,
    .page-promotions__step-text {
        font-size: 0.95em;
    }

    .page-promotions__button-group {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-promotions__button-group .page-promotions__btn-primary,
    .page-promotions__button-group .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
    }

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

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

    .page-promotions__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9em;
    }

    /* Images 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-section,
    .page-promotions__hero-image-wrapper,
    .page-promotions__offer-grid,
    .page-promotions__steps-grid,
    .page-promotions__faq-list,
    .page-promotions__cta-buttons,
    .page-promotions__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video responsiveness */
    .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: 10px !important;
    }
}

/* Ensure images meet min size requirement */
.page-promotions img:not(.page-promotions__hero-image) {
    min-width: 200px;
    min-height: 200px;
}
.page-promotions__card-image {
    min-width: 200px; /* Explicitly set min-width for card images */
    min-height: 200px; /* Explicitly set min-height for card images */
}

/* Ensure no filter on images */
.page-promotions img {
    filter: none;
}

/* Content area images CSS dimensions lower bound */
.page-promotions img {
    /* Default styles for all images in content area */
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}

/* Specific rules to prevent small display sizes for content images */
.page-promotions__offer-card img,
.page-promotions__step-card img {
    width: 100%; /* Ensures it takes available width */
    height: auto; /* Maintains aspect ratio */
    min-width: 200px; /* Explicitly set min-width to meet requirement */
    min-height: 200px; /* Explicitly set min-height to meet requirement */
}