/* style/promotions.css */

/* Variables from shared.css and custom palette */
:root {
    --primary-color: #FF8C1A; /* Main Orange */
    --secondary-color: #FFA53A; /* Auxiliary Orange */
    --background-color: #0D0E12; /* Deep background */
    --card-bg: #17191F; /* Card background */
    --text-main-color: #FFF3E6; /* Main text color for dark backgrounds */
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
    --gradient-button: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

/* General page styles for .page-promotions */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for the page content */
    background-color: var(--background-color); /* Overall page background */
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom before footer */
}

/* Content container for max-width and centering */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions__center-content {
    text-align: center;
}

/* Sections */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-color);
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no color filters */
}

.page-promotions__hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    text-align: center;
    box-sizing: border-box;
    background-color: var(--card-bg); /* Use card background for content block */
    color: var(--text-main-color);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: -20px; /* Overlap slightly with image for design */
    position: relative;
    z-index: 1;
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__description {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    word-wrap: break-word; /* Allow text to wrap */
    white-space: normal; /* Allow text to wrap */
}

.page-promotions__btn-primary {
    background: var(--gradient-button);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
    box-shadow: 0 8px 20px rgba(255, 140, 26, 0.6);
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 2px 10px rgba(255, 165, 58, 0.2);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--background-color);
    box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
    transform: translateY(-2px);
}

.page-promotions__btn-small {
    padding: 8px 18px;
    font-size: 0.9em;
    background: var(--gradient-button);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    display: inline-block;
    margin-top: 15px;
}

.page-promotions__btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-promotions__btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* Section specific styles */
.page-promotions__promo-grid {
    padding: 60px 0;
    background-color: var(--background-color); /* Dark background for this section */
    color: var(--text-main-color);
}

.page-promotions__why-choose {
    padding: 60px 0;
    background-color: var(--card-bg); /* Slightly lighter dark background */
    color: var(--text-main-color);
    text-align: center;
}

.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--background-color); /* Dark background */
    color: var(--text-main-color);
}

.page-promotions__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Use primary color for strong CTA */
    color: #ffffff;
    text-align: center;
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
}

.page-promotions__cta-section .page-promotions__section-title {
    color: #ffffff; /* White title on orange background */
}

.page-promotions__section-description {
    font-size: 1.05em;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color); /* Added border */
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no color filters */
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: var(--text-main-color);
}

.page-promotions__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-promotions__card-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
    color: var(--glow-color);
}

.page-promotions__card-text {
    font-size: 0.95em;
    color: var(--text-main-color);
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Why Choose Section */
.page-promotions__why-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__why-item {
    background-color: var(--background-color); /* Darker background for why items */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color); /* Added border */
}

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

.page-promotions__why-icon {
    width: 100px; /* Example size for icon */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: none; /* Ensure no color filters */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__why-item h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-promotions__why-item p {
    font-size: 1em;
    color: var(--text-main-color);
}

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

.page-promotions__faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color); /* Added border */
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    background-color: var(--background-color); /* Darker background for question */
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #2a2c33; /* Slightly lighter hover */
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: 1px solid transparent; /* Remove border when open */
}

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

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-main-color);
}

.page-promotions__faq-answer p {
    margin-bottom: 10px;
}
.page-promotions__faq-answer p:last-child {
    margin-bottom: 0;
}


/* Dark and Light Background sections for contrast */
.page-promotions__dark-section {
    background-color: var(--card-bg);
    color: var(--text-main-color);
}

.page-promotions__light-bg {
    background-color: var(--background-color);
    color: var(--text-main-color);
}

/* Ensure all links inside main content are visible */
.page-promotions a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions a:hover {
    color: var(--glow-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 30px 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.8em);
    }
    .page-promotions__description {
        font-size: 1em;
    }
    .page-promotions__promo-grid,
    .page-promotions__why-choose,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6em, 3.8vw, 2.4em);
    }
}

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 0 15px !important; /* Force padding for mobile */
    }

    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
    }

    .page-promotions__hero-content {
        margin-top: -10px; /* Less overlap on mobile */
    }
}