/* style/promotions.css */

/* Custom properties for colors from the provided palette */
:root {
    --page-promotions-bg: #08160F; /* Background */
    --page-promotions-card-bg: #11271B; /* Card BG */
    --page-promotions-text-main: #F2FFF6; /* Text Main */
    --page-promotions-text-secondary: #A7D9B8; /* Text Secondary */
    --page-promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --page-promotions-border: #2E7A4E; /* Border */
    --page-promotions-glow: #57E38D; /* Glow */
    --page-promotions-gold: #F2C14E; /* Gold */
    --page-promotions-divider: #1E3A2A; /* Divider */
    --page-promotions-deep-green: #0A4B2C; /* Deep Green */
    --page-promotions-main-color: #11A84E; /* Primary brand color */
    --page-promotions-aux-color: #22C768; /* Auxiliary brand color */
}

.page-promotions {
    background-color: var(--page-promotions-bg);
    color: var(--page-promotions-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
    padding-left: 0; /* Image itself should be full width */
    padding-right: 0;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Ensure image doesn't overflow */
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* H1 font size clamp */
    color: var(--page-promotions-text-main);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-promotions__description {
    font-size: 1.15rem;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General Sections */
.page-promotions__section {
    padding: 60px 0;
}

.page-promotions__dark-section {
    background-color: var(--page-promotions-deep-green); /* Example dark background */
}

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

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--page-promotions-text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--page-promotions-main-color);
    border-radius: 2px;
}

.page-promotions__text-block {
    font-size: 1rem;
    color: var(--page-promotions-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-promotions__card {
    background-color: var(--page-promotions-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding-bottom: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card image display */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__card-title {
    font-size: 1.5rem;
    color: var(--page-promotions-text-main);
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-promotions__card-text {
    font-size: 0.95rem;
    color: var(--page-promotions-text-secondary);
    padding: 0 20px;
    margin-bottom: 25px;
    flex-grow: 1; /* Make text block fill available space */
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons adapt to container width */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-promotions__btn-primary {
    background: var(--page-promotions-btn-gradient);
    color: #ffffff; /* White text for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--page-promotions-main-color); /* Green text for secondary button */
    border: 2px solid var(--page-promotions-main-color);
    box-shadow: 0 2px 10px rgba(17, 168, 78, 0.2);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--page-promotions-main-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__cta-buttons--center {
    margin-top: 40px;
    text-align: center;
}

/* Lists */
.page-promotions__list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    margin-top: 30px;
}

.page-promotions__list-item {
    background-color: var(--page-promotions-card-bg);
    color: var(--page-promotions-text-main);
    padding: 15px 25px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__list-item::before {
    content: '✅';
    margin-right: 15px;
    font-size: 1.2rem;
    color: var(--page-promotions-aux-color);
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--page-promotions-text-main);
    cursor: pointer;
    background-color: var(--page-promotions-card-bg);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: var(--page-promotions-deep-green);
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--page-promotions-aux-color);
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'minus' icon */
}

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

.page-promotions__faq-answer p {
    margin: 0;
}

/* Details element specific styling */
.page-promotions__faq-item summary {
    list-style: none; /* Hide default marker */
}

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-promotions__description {
        font-size: 1.05rem;
    }
    .page-promotions__card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
        padding-bottom: 30px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-promotions__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

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

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

    .page-promotions__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-promotions__text-block {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

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

    .page-promotions__card-image {
        height: 180px !important;
        min-width: 200px !important;
        min-height: 180px !important;
    }

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

    .page-promotions__card-text {
        font-size: 0.85rem;
    }

    .page-promotions__list-item {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

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

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

    /* Mobile image responsiveness - REQUIRED */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-image-wrapper {
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
    .page-promotions__hero-image {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-promotions__hero-content {
      padding-left: 15px !important;
      padding-right: 15px !important;
    }
}

/* Ensure images and containers are responsive */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-promotions__section,
.page-promotions__card,
.page-promotions__container,
.page-promotions__cta-buttons,
.page-promotions__button-group,
.page-promotions__btn-container,
.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Ensure no overflow */
}

/* No CSS filter on images */
.page-promotions img {
    filter: none !important;
}

/* Content area images CSS dimensions lower bound */
.page-promotions img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px;
    min-height: 200px;
}

/* Specific overrides for card images to maintain aspect ratio with object-fit and min-size */
.page-promotions__card-image {
    min-width: 200px;
    min-height: 200px;
    width: 100%; /* Ensure it takes full card width */
    height: 250px; /* Specific height for consistency, object-fit will handle aspect */
    object-fit: cover;
}