/* style/blog.css */

/* Base styles for the page content, ensuring text visibility on dark body background */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main */
    background-color: #0D0E12; /* Background */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Match hero image width */
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-blog__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.page-blog__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: bold;
    color: #FFB04D; /* Glow color for emphasis */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(255, 176, 77, 0.5);
}

.page-blog__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF3E6; /* Text Main */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General button styles */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    max-width: 100%; /* Ensure button doesn't overflow */
    text-align: center;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
    color: #FFF3E6; /* Text Main */
    border: 2px solid #D96800; /* Deep Orange */
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

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

.page-blog__btn-secondary {
    background: #17191F; /* Card BG */
    color: #FFA53A; /* Auxiliary color */
    border: 2px solid #FFA53A; /* Auxiliary color */
}

.page-blog__btn-secondary:hover {
    background: #FFA53A;
    color: #17191F; /* Card BG */
    border-color: #FFA53A;
    transform: translateY(-2px);
}

.page-blog__btn-text {
    color: #FFA53A; /* Auxiliary color */
    padding: 0;
    background: none;
    border: none;
    font-size: 1em;
    display: inline-block;
}

.page-blog__btn-text:hover {
    text-decoration: underline;
    color: #FFB04D; /* Glow */
}

/* Common sections styles */
.page-blog__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #FFB04D; /* Glow */
    text-shadow: 0 0 5px rgba(255, 176, 77, 0.3);
}

.page-blog__sub-title {
    font-size: clamp(1.4em, 2.5vw, 2em);
    font-weight: bold;
    color: #FFA53A; /* Auxiliary color */
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.page-blog__dark-section {
    background-color: #17191F; /* Card BG */
    padding: 80px 0;
}

.page-blog__introduction-section,
.page-blog__games-section,
.page-blog__guide-section,
.page-blog__promotions-section,
.page-blog__tips-section,
.page-blog__faq-section,
.page-blog__call-to-action-section {
    padding: 80px 0;
}

.page-blog__games-section,
.page-blog__faq-section {
    background-color: #0D0E12; /* Background */
}

.page-blog__grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.page-blog__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-blog__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-blog__text-block p {
    margin-bottom: 15px;
    color: #FFF3E6; /* Text Main */
}

.page-blog__image-block {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__image-full {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

/* Card styles */
.page-blog__card {
    background-color: #17191F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    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 25px rgba(0, 0, 0, 0.6);
}

.page-blog__card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    display: block;
}

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

.page-blog__card-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__card-title a {
    color: #FFB04D; /* Glow */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
    color: #FFA53A; /* Auxiliary color */
}

.page-blog__card-text {
    font-size: 0.95em;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1;
}

/* CTA in center */
.page-blog__cta-center {
    text-align: center;
    margin-top: 50px;
}

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

.page-blog__faq-item {
    background-color: #17191F; /* Card BG */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.15em;
    color: #FFA53A; /* Auxiliary color */
    background-color: #1E2027; /* Slightly darker for contrast */
    border-bottom: 1px solid #A84F0C; /* Border */
    transition: background-color 0.3s ease;
}

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

.page-blog__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-blog__faq-qtext {
    flex-grow: 1;
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFB04D; /* Glow */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-blog__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #FFF3E6; /* Text Main */
}

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

.page-blog__download-cta,
.page-blog__contact-cta {
    margin-top: 20px;
    text-align: center;
}

.page-blog__cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-blog__hero-section {
        padding: 40px 20px;
    }
    .page-blog__section-title {
        margin-bottom: 30px;
    }
    .page-blog__dark-section,
    .page-blog__introduction-section,
    .page-blog__games-section,
    .page-blog__guide-section,
    .page-blog__promotions-section,
    .page-blog__tips-section,
    .page-blog__faq-section,
    .page-blog__call-to-action-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-blog__hero-section {
        padding: 20px 15px !important; /* Ensure small top padding */
    }
    .page-blog__hero-content {
        padding: 0 15px;
    }
    .page-blog__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-blog__description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary,
    .page-blog__btn-text {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-blog__sub-title {
        font-size: 1.4em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-blog__dark-section,
    .page-blog__introduction-section,
    .page-blog__games-section,
    .page-blog__guide-section,
    .page-blog__promotions-section,
    .page-blog__tips-section,
    .page-blog__faq-section,
    .page-blog__call-to-action-section {
        padding: 40px 0;
    }
    .page-blog__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-blog__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__card-image {
        height: 180px;
    }
    .page-blog__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-blog__faq-answer {
        padding: 15px 20px;
    }

    /* Image responsive for mobile */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-blog__image-block,
    .page-blog__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Content area images must not be smaller than 200px */
    .page-blog .page-blog__card-image,
    .page-blog .page-blog__image-full {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-blog__main-title {
        font-size: 1.8em;
    }
    .page-blog__section-title {
        font-size: 1.6em;
    }
    .page-blog__sub-title {
        font-size: 1.2em;
    }
    .page-blog__card-image {
        height: 150px;
    }
}