/* style/blog-cobet-latest-promotions.css */

/* Root variables for colors */
:root {
    --cobet-primary: #11A84E; /* Main color */
    --cobet-secondary: #22C768; /* Auxiliary color */
    --cobet-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    --cobet-card-bg: #11271B; /* Card Background */
    --cobet-bg: #08160F; /* Section Background */
    --cobet-text-main: #F2FFF6; /* Main text color */
    --cobet-text-secondary: #A7D9B8; /* Secondary text color */
    --cobet-border: #2E7A4E; /* Border color */
    --cobet-glow: #57E38D; /* Glow color */
    --cobet-gold: #F2C14E; /* Gold color */
    --cobet-divider: #1E3A2A; /* Divider color */
    --cobet-deep-green: #0A4B2C; /* Deep Green color */
}

/* General page styling */
.page-blog-cobet-latest-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--cobet-text-main); /* Light text on dark background */
    background-color: var(--cobet-bg); /* Ensure sections have explicit background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-blog-cobet-latest-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content block */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--cobet-deep-green); /* Fallback background for hero */
}

.page-blog-cobet-latest-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit hero image height for better content visibility */
}

.page-blog-cobet-latest-promotions__hero-content {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--cobet-deep-green); /* Content block background */
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
}

.page-blog-cobet-latest-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--cobet-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-blog-cobet-latest-promotions__hero-description {
    font-size: 1.1rem;
    color: var(--cobet-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-blog-cobet-latest-promotions__cta-buttons--center {
    margin-top: 40px;
}

.page-blog-cobet-latest-promotions__btn-primary,
.page-blog-cobet-latest-promotions__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-blog-cobet-latest-promotions__btn-primary {
    background: var(--cobet-btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-blog-cobet-latest-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-blog-cobet-latest-promotions__btn-secondary:hover {
    background-color: var(--cobet-secondary);
    color: var(--cobet-bg); /* Darker text on lighter background */
    transform: translateY(-2px);
}

/* Section Styling */
.page-blog-cobet-latest-promotions__section {
    padding: 60px 0;
    background-color: var(--cobet-bg); /* Default section background */
}

.page-blog-cobet-latest-promotions__dark-bg {
    background-color: var(--cobet-deep-green); /* Specific dark background section */
    color: var(--cobet-text-main);
}

.page-blog-cobet-latest-promotions__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--cobet-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-blog-cobet-latest-promotions__text-block {
    font-size: 1.05rem;
    color: var(--cobet-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

/* Grid for promotion types */
.page-blog-cobet-latest-promotions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-blog-cobet-latest-promotions__card {
    background-color: var(--cobet-card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cobet-divider);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-blog-cobet-latest-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-blog-cobet-latest-promotions__card-title {
    font-size: 1.5rem;
    color: var(--cobet-gold);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.page-blog-cobet-latest-promotions__card-description {
    font-size: 0.95rem;
    color: var(--cobet-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Steps Grid */
.page-blog-cobet-latest-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-blog-cobet-latest-promotions__step-card {
    background-color: var(--cobet-card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cobet-divider);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-blog-cobet-latest-promotions__step-icon {
    width: 60px;
    height: 60px;
    background: var(--cobet-btn-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(42, 209, 111, 0.5);
}

.page-blog-cobet-latest-promotions__step-title {
    font-size: 1.4rem;
    color: var(--cobet-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-blog-cobet-latest-promotions__step-description {
    font-size: 0.95rem;
    color: var(--cobet-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* List Styling (Why choose) */
.page-blog-cobet-latest-promotions__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-blog-cobet-latest-promotions__list-item {
    background-color: var(--cobet-card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--cobet-divider);
}

.page-blog-cobet-latest-promotions__list-icon {
    width: 80px; /* Enforce minimum size */
    height: 80px; /* Enforce minimum size */
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    background-color: var(--cobet-deep-green); /* Placeholder background */
}

.page-blog-cobet-latest-promotions__list-content {
    flex-grow: 1;
}

.page-blog-cobet-latest-promotions__list-title {
    font-size: 1.3rem;
    color: var(--cobet-gold);
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 600;
}

.page-blog-cobet-latest-promotions__list-description {
    font-size: 0.95rem;
    color: var(--cobet-text-secondary);
    margin-bottom: 0;
}

/* FAQ Section */
.page-blog-cobet-latest-promotions__faq-list {
    margin-top: 30px;
}

.page-blog-cobet-latest-promotions__faq-item {
    background-color: var(--cobet-card-bg);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--cobet-divider);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-blog-cobet-latest-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cobet-text-main);
    cursor: pointer;
    list-style: none; /* For <summary> tag */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.page-blog-cobet-latest-promotions__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <summary> */
}

.page-blog-cobet-latest-promotions__faq-question::marker {
    display: none; /* Hide default marker for <summary> */
}

.page-blog-cobet-latest-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--cobet-gold);
}

.page-blog-cobet-latest-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--cobet-secondary);
    transition: transform 0.3s ease;
}

.page-blog-cobet-latest-promotions__faq-item[open] .page-blog-cobet-latest-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate + to become X or - */
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-blog-cobet-latest-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-blog-cobet-latest-promotions__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-blog-cobet-latest-promotions__hero-content {
        padding: 30px 15px;
    }

    .page-blog-cobet-latest-promotions__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-blog-cobet-latest-promotions__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

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

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

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

    .page-blog-cobet-latest-promotions__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-blog-cobet-latest-promotions__text-block {
        font-size: 1rem;
    }

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

    .page-blog-cobet-latest-promotions__card,
    .page-blog-cobet-latest-promotions__step-card {
        padding: 20px;
    }

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

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

    .page-blog-cobet-latest-promotions__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .page-blog-cobet-latest-promotions__step-title {
        font-size: 1.2rem;
    }

    .page-blog-cobet-latest-promotions__list-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .page-blog-cobet-latest-promotions__list-icon {
        margin-bottom: 15px;
    }

    .page-blog-cobet-latest-promotions__list-title {
        font-size: 1.2rem;
    }

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

    .page-blog-cobet-latest-promotions__faq-qtext {
        font-size: 1rem;
    }

    .page-blog-cobet-latest-promotions__faq-toggle {
        font-size: 1.5rem;
    }

    .page-blog-cobet-latest-promotions__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }

    /* Mobile image/video/button adaptation */
    .page-blog-cobet-latest-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-blog-cobet-latest-promotions video,
    .page-blog-cobet-latest-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-blog-cobet-latest-promotions__section,
    .page-blog-cobet-latest-promotions__card,
    .page-blog-cobet-latest-promotions__container,
    .page-blog-cobet-latest-promotions__hero-content,
    .page-blog-cobet-latest-promotions__cta-buttons,
    .page-blog-cobet-latest-promotions__video-section,
    .page-blog-cobet-latest-promotions__video-container,
    .page-blog-cobet-latest-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure content does not overflow */
    }

    .page-blog-cobet-latest-promotions__video-section {
        padding-top: 10px !important; /* Small top padding, not --header-offset */
    }
}