:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-blog {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* #F2FFF6 */
    background-color: var(--bg-color); /* #08160F */
    line-height: 1.6;
    font-size: 16px;
}

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

.page-blog__section {
    padding: 60px 0;
}

.page-blog__dark-section {
    background-color: var(--card-bg); /* #11271B */
    color: var(--text-main); /* #F2FFF6 */
}

.page-blog__section-title {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--gold); /* #F2C14E */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-blog__section-description,
.page-blog__paragraph {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-blog__paragraph {
    text-align: left;
    margin-bottom: 15px;
    font-size: 1em;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, not --header-offset */
    overflow: hidden;
    background-color: var(--bg-color); /* Ensure background is dark */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure image is responsive */
}

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-blog__main-title {
    font-size: clamp(32px, 5vw, 60px); /* H1 clamp as per rule */
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-blog__subtitle {
    font-size: 1.25em;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 30px;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-blog__btn-secondary {
    background: transparent;
    color: var(--text-main); /* #F2FFF6 */
    border: 2px solid var(--border-color); /* #2E7A4E */
}

.page-blog__btn-secondary:hover {
    background: var(--border-color); /* #2E7A4E */
    color: #ffffff;
    transform: translateY(-2px);
}

/* Latest Posts Section */
.page-blog__post-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); /* #11271B */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main); /* #F2FFF6 */
}

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

.page-blog__post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

.page-blog__post-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--gold); /* #F2C14E */
    line-height: 1.3;
}

.page-blog__post-date {
    font-size: 0.9em;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more {
    color: var(--glow); /* #57E38D */
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
}

.page-blog__read-more:hover {
    text-decoration: underline;
}

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

/* About Platform Section */
.page-blog__about-platform .page-blog__paragraph {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

.page-blog__feature-item {
    background-color: var(--card-bg); /* #11271B */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__feature-title {
    font-size: 1.5em;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 15px;
}

.page-blog__feature-description {
    color: var(--text-secondary); /* #A7D9B8 */
}

/* Game Categories Section */
.page-blog__game-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-blog__game-link {
    background-color: var(--deep-green); /* #0A4B2C */
    color: var(--text-main); /* #F2FFF6 */
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__game-link:hover {
    background-color: var(--glow); /* #57E38D */
    color: #000000; /* Dark text on light hover */
    transform: translateY(-3px);
}

/* FAQ Section */
.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); /* #11271B */
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-main); /* #F2FFF6 */
}

.page-blog__faq-item details > summary {
    list-style: none; /* Hide default marker */
}

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

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    color: var(--gold); /* #F2C14E */
    border-bottom: 1px solid var(--divider-color); /* #1E3A2A */
}

.page-blog__faq-item[open] .page-blog__faq-question {
    border-bottom: 1px solid var(--glow); /* #57E38D */
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-blog__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-secondary); /* #A7D9B8 */
}

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

/* Call to Action Bottom */
.page-blog__cta-bottom {
    text-align: center;
}

/* Global image styles (min size, no small icons) */
.page-blog img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-blog {
        font-size: 15px;
    }

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

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

    .page-blog__main-title {
        font-size: clamp(28px, 8vw, 48px);
    }

    .page-blog__subtitle {
        font-size: 1em;
    }

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

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-blog__hero-section {
        padding-bottom: 40px;
    }

    .page-blog__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-blog__post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-blog__post-image {
        min-height: 200px; /* Ensure images maintain min size */
        height: 200px;
    }

    .page-blog__post-title {
        font-size: 1.2em;
    }

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

    .page-blog__game-links {
        flex-direction: column;
        gap: 15px;
    }

    .page-blog__game-link {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
    
    /* Mobile image, video, button responsiveness overrides */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-blog__section,
    .page-blog__card,
    .page-blog__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-blog video,
    .page-blog__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-blog__video-section,
    .page-blog__video-container,
    .page-blog__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }

    .page-blog__video-section {
        padding-top: 10px !important;
    }

    .page-blog__cta-buttons,
    .page-blog__button-group,
    .page-blog__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
    }
}