/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #333333); /* Default text color, ensuring contrast with light body background */
    background-color: var(--background-color, #F5F7FA); /* Main background color */
    padding-top: 0; /* body handles padding-top */
}

.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    background-color: #E53935; /* Main brand color for hero background */
    padding: 20px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
    margin-bottom: 30px; /* Space between image and content */
}

.page-blog__hero-content {
    text-align: center;
    color: #ffffff; /* White text on brand color background */
    max-width: 900px;
    padding: 0 20px;
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.page-blog__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Section Titles and Descriptions */
.page-blog__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main-color, #333333);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px; /* Consistent top padding for sections */
}

.page-blog__section-description {
    font-size: 1.1rem;
    color: #666666;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s 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-blog__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    transform: translateY(-2px);
}

.page-blog__btn-secondary {
    background-color: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-blog__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #FF5A4F;
    border-color: #FF5A4F;
    transform: translateY(-2px);
}

/* Recent Posts Section */
.page-blog__recent-posts-section {
    padding: 60px 0;
    background-color: var(--background-color, #F5F7FA);
}

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

.page-blog__post-card {
    background-color: var(--card-bg-color, #FFFFFF);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-blog__post-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-blog__post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.page-blog__post-title a {
    color: var(--text-main-color, #333333);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: #E53935;
}

.page-blog__post-meta {
    font-size: 0.9rem;
    color: #888888;
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more {
    display: inline-block;
    color: #E53935;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-blog__read-more:hover {
    color: #FF5A4F;
}

.page-blog__view-all-posts {
    text-align: center;
    margin-top: 50px;
}

/* Game Guides Section */
.page-blog__game-guides-section {
    padding: 60px 0;
    background-color: #E53935; /* Dark section background */
    color: #ffffff; /* White text on dark background */
}

.page-blog__game-guides-section .page-blog__section-title,
.page-blog__game-guides-section .page-blog__section-description {
    color: #ffffff;
}
.page-blog__game-guides-section .page-blog__section-description {
    color: #f0f0f0;
}


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

.page-blog__guide-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on dark background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-blog__guide-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-blog__guide-title {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 20px 20px 10px 20px;
    line-height: 1.3;
}

.page-blog__guide-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__guide-title a:hover {
    color: #FF5A4F;
}

.page-blog__guide-text {
    font-size: 0.95rem;
    color: #f0f0f0;
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

/* Promotions Section */
.page-blog__promotions-section {
    padding: 60px 0;
    background-color: var(--background-color, #F5F7FA);
}

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

.page-blog__card {
    background-color: var(--card-bg-color, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-blog__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block;
}

.page-blog__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main-color, #333333);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-blog__card-text {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Responsible Gaming Section */
.page-blog__responsible-gaming-section {
    padding: 60px 0;
    background-color: #E53935; /* Dark background */
    color: #ffffff;
}

.page-blog__responsible-gaming-section .page-blog__section-title,
.page-blog__responsible-gaming-section .page-blog__section-description {
    color: #ffffff;
}
.page-blog__responsible-gaming-section .page-blog__section-description {
    color: #f0f0f0;
}

.page-blog__content-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-blog__content-image {
    width: 50%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-blog__text-content {
    width: 50%;
    color: #f0f0f0;
}

.page-blog__text-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-blog__text-content .page-blog__btn-secondary {
    margin-top: 20px;
    background-color: #ffffff;
    color: #E53935;
    border-color: #E53935;
}

.page-blog__text-content .page-blog__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #FF5A4F;
    border-color: #FF5A4F;
}

/* Testimonials Section */
.page-blog__testimonials-section {
    padding: 60px 0;
    background-color: var(--background-color, #F5F7FA);
}

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

.page-blog__testimonial-card {
    background-color: var(--card-bg-color, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-blog__testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #FF5A4F;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__testimonial-author {
    font-weight: 600;
    color: var(--text-main-color, #333333);
    font-size: 1rem;
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: var(--background-color, #F5F7FA);
}

.page-blog__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-blog__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main-color, #333333);
    cursor: pointer;
    outline: none;
    list-style: none; /* Remove default marker */
}

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

.page-blog__faq-item summary:hover {
    background-color: #f9f9f9;
}

.page-blog__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E53935;
    margin-left: 15px;
}

.page-blog__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #555555;
    line-height: 1.7;
}

.page-blog__faq-answer p {
    margin-bottom: 10px;
}

.page-blog__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-blog__faq-answer a {
    color: #E53935;
    text-decoration: none;
    font-weight: 600;
}
.page-blog__faq-answer a:hover {
    text-decoration: underline;
}

/* Final CTA Section */
.page-blog__cta-final-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #E53935 0%, #FF5A4F 100%); /* Gradient background */
    color: #ffffff;
    text-align: center;
}

.page-blog__cta-final-section .page-blog__section-title,
.page-blog__cta-final-section .page-blog__section-description {
    color: #ffffff;
}
.page-blog__cta-final-section .page-blog__section-description {
    color: #f0f0f0;
}

.page-blog__cta-final-section .page-blog__btn-primary {
    background: #ffffff; /* White button on gradient background */
    color: #E53935;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-final-section .page-blog__btn-primary:hover {
    background: #f0f0f0;
    color: #FF5A4F;
    transform: translateY(-3px);
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        padding: 0 40px;
    }
    .page-blog__content-block {
        flex-direction: column;
        text-align: center;
    }
    .page-blog__content-image,
    .page-blog__text-content {
        width: 100%;
        max-width: 600px;
    }
    .page-blog__content-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-blog__hero-section {
        padding: 10px 0 40px 0; /* Adjust padding for mobile hero */
    }

    .page-blog__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-blog__hero-description {
        font-size: 1rem;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

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

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

    .page-blog__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        padding-top: 30px;
    }

    .page-blog__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-blog__posts-grid,
    .page-blog__guides-grid,
    .page-blog__promotion-cards,
    .page-blog__testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-blog__post-image,
    .page-blog__guide-image,
    .page-blog__card-image {
        height: 180px; /* Adjust image height for mobile cards */
    }

    .page-blog__post-content,
    .page-blog__guide-item,
    .page-blog__card,
    .page-blog__testimonial-card {
        padding: 20px;
    }

    .page-blog__post-title,
    .page-blog__guide-title,
    .page-blog__card-title {
        font-size: 1.2rem;
    }

    .page-blog__content-image {
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .page-blog__text-content {
        width: 100%;
    }

    .page-blog__text-content p {
        font-size: 1rem;
    }

    .page-blog__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }

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

    /* Enforce image responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Enforce container responsiveness */
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__hero-section,
    .page-blog__recent-posts-section,
    .page-blog__game-guides-section,
    .page-blog__promotions-section,
    .page-blog__responsible-gaming-section,
    .page-blog__testimonials-section,
    .page-blog__faq-section,
    .page-blog__cta-final-section,
    .page-blog__content-block,
    .page-blog__posts-grid,
    .page-blog__guides-grid,
    .page-blog__promotion-cards,
    .page-blog__testimonials-grid,
    .page-blog__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll for content areas */
    }
    
    .page-blog__content-block {
        padding-left: 0;
        padding-right: 0;
    }
    .page-blog__hero-section {
        padding-left: 0;
        padding-right: 0;
    }

    /* Video section top padding (if any, ensure small) */
    .page-blog__video-section {
        padding-top: 10px !important;
    }
}