/* style/promotions.css */

/* Base styles for the page content */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity if shared.css doesn't */
}

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

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

.page-promotions__section:nth-of-type(even) {
    background-color: #f8f8f8;
}

.page-promotions__heading {
    font-size: 36px;
    color: #017439; /* Primary color for headings */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 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: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #017439, #3cb371); /* Gradient for hero background */
    color: #FFFFFF; /* White text on dark background */
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for main title on dark background */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

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

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-register {
    background: #C30808; /* Custom red for register */
    color: #FFFF00; /* Custom yellow for register text */
    border: 2px solid #C30808;
    box-shadow: 0 4px 15px rgba(195, 8, 8, 0.4);
}

.page-promotions__btn-register:hover {
    background: #e02020;
    border-color: #e02020;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(195, 8, 8, 0.5);
}

.page-promotions__btn-login {
    background: #C30808; /* Custom red for login */
    color: #FFFF00; /* Custom yellow for login text */
    border: 2px solid #C30808;
    box-shadow: 0 4px 15px rgba(195, 8, 8, 0.4);
}

.page-promotions__btn-login:hover {
    background: #e02020;
    border-color: #e02020;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(195, 8, 8, 0.5);
}

/* General Buttons */
.page-promotions__btn-primary {
    background: #017439; /* Primary color */
    color: #ffffff;
    border: 2px solid #017439;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

.page-promotions__btn-secondary {
    background: #ffffff;
    color: #017439; /* Primary color for text */
    border: 2px solid #017439;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

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

/* Overview Section */
.page-promotions__overview-section .page-promotions__heading {
    color: #017439;
}

/* Types Section */
.page-promotions__types-section {
    background-color: #f8f8f8;
}

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

.page-promotions__card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it doesn't leave extra space below */
}

.page-promotions__card-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text block to take available space */
}

.page-promotions__card-button {
    display: block; /* Make button full width of card */
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Terms Section */
.page-promotions__terms-section {
    background: #017439; /* Primary color background */
    color: #ffffff; /* White text on primary background */
    padding: 80px 0;
}

.page-promotions__terms-section .page-promotions__heading {
    color: #FFFF00; /* Yellow heading for contrast */
}

.page-promotions__terms-section .page-promotions__text-block {
    color: #f0f0f0;
}

.page-promotions__list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 900px;
    text-align: left;
}

.page-promotions__list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 17px;
    color: #ffffff;
    line-height: 1.5;
}

.page-promotions__list-item-title {
    color: #FFFF00; /* Yellow for list item titles */
}

/* Claim Section */
.page-promotions__claim-section .page-promotions__heading {
    color: #017439;
}

.page-promotions__numbered-list {
    list-style: decimal;
    padding-left: 25px;
    margin: 30px auto;
    max-width: 900px;
    text-align: left;
}

.page-promotions__numbered-list li {
    font-size: 17px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333333;
}

.page-promotions__numbered-list .page-promotions__list-item-title {
    color: #017439; /* Primary color for list item titles */
}

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

.page-promotions__faq-section .page-promotions__heading {
    color: #017439;
    margin-bottom: 40px;
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-promotions__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
    background: #eeeeee;
}

.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none;
}

.page-promotions__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #017439; /* Primary color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-promotions__faq-item.active .page-promotions__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #017439;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign effect */
    color: #C30808; /* Red for active toggle */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #fdfdfd;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
    background: #fdfdfd;
    border-color: #017439;
}

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
}

/* Conclusion Section */
.page-promotions__conclusion-section {
    background: linear-gradient(135deg, #017439, #025a2e);
    color: #ffffff;
    padding: 80px 0;
}

.page-promotions__conclusion-section .page-promotions__heading {
    color: #FFFF00;
}

.page-promotions__conclusion-section .page-promotions__text-block {
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content h1 {
        font-size: 42px;
    }
    .page-promotions__hero-description {
        font-size: 18px;
    }
    .page-promotions__heading {
        font-size: 32px;
    }
    .page-promotions__card-title {
        font-size: 22px;
    }
    .page-promotions__card-text {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__hero-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-promotions__cta-button,
    .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__button-group {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

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

    .page-promotions__container {
        padding: 0 15px;
    }

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

    .page-promotions__text-block {
        font-size: 16px;
    }

    .page-promotions__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__card {
        padding: 20px;
    }

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

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

    .page-promotions__card-text {
        font-size: 14px;
    }

    .page-promotions__list,
    .page-promotions__numbered-list {
        margin: 20px auto;
        padding-left: 20px;
    }

    .page-promotions__list li,
    .page-promotions__numbered-list li {
        font-size: 15px;
        padding: 12px 15px;
    }

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

    .page-promotions__faq-question h3 {
        font-size: 16px;
    }

    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 26px;
        height: 26px;
    }

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

    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px !important;
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */ /* Already applied to container, avoid double padding */
        /* padding-right: 15px; */
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-content h1 {
        font-size: 28px;
    }
    .page-promotions__hero-description {
        font-size: 15px;
    }
    .page-promotions__heading {
        font-size: 24px;
    }
    .page-promotions__cta-button {
        font-size: 16px;
        padding: 12px 25px;
    }
    .page-promotions__card-title {
        font-size: 18px;
    }
    .page-promotions__faq-question h3 {
        font-size: 15px;
    }
}