/* style/blog.css */

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

.page-blog {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background-color: #f8f8f8; /* A light background for the page content */
}

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

.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--color-background);
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
}

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

.page-blog__hero-content {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    max-width: 900px;
    color: var(--color-text-main);
    background-color: var(--color-background);
    border-radius: 8px;
    margin-top: -80px; /* Overlap image slightly for visual effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-blog__main-title {
    font-size: clamp(2em, 5vw, 3.2em);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-blog__hero-description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-button {
    display: inline-block;
    background: var(--color-button-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-button--secondary {
    background: var(--color-deep-green);
    border: 2px solid var(--color-primary);
    color: var(--color-text-main);
}

.page-blog__cta-button--secondary:hover {
    background: var(--color-primary);
}

.page-blog__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-blog__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-gold);
    border-radius: 2px;
}

.page-blog__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: #333333;
}

.page-blog__intro-section, .page-blog__why-go888-section, 
.page-blog__categories-section, .page-blog__strategy-section, 
.page-blog__community-section, .page-blog__featured-articles, 
.page-blog__faq-section, .page-blog__conclusion-section {
    padding: 60px 0;
    background-color: #ffffff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-blog__why-go888-section {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-blog__why-go888-section .page-blog__section-title {
    color: var(--color-text-main);
}

.page-blog__why-go888-section .page-blog__text-block {
    color: var(--color-text-secondary);
}

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

.page-blog__feature-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.page-blog__feature-card:hover {
    transform: translateY(-5px);
}

.page-blog__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-blog__feature-description {
    color: var(--color-text-secondary);
}

.page-blog__category-list, .page-blog__strategy-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-blog__category-item, .page-blog__strategy-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.page-blog__category-item:hover, .page-blog__strategy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-blog__category-title, .page-blog__strategy-title {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-blog__category-description, .page-blog__strategy-description {
    color: #555555;
    font-size: 0.95em;
}

.page-blog__highlight {
    color: var(--color-primary);
    font-weight: bold;
}

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

.page-blog__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

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

.page-blog__article-content {
    padding: 20px;
}

.page-blog__article-title {
    font-size: 1.4em;
    margin-bottom: 10px;
}

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

.page-blog__article-title a:hover {
    color: var(--color-primary);
}

.page-blog__article-date {
    font-size: 0.9em;
    color: #888888;
    margin-bottom: 15px;
}

.page-blog__article-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

.page-blog__read-more {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: var(--color-deep-green);
}

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

.page-blog__faq-list {
    margin-top: 30px;
}

.page-blog__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--color-deep-green);
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

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

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-primary);
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    content: '−';
}

.page-blog__faq-answer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    color: #555555;
    font-size: 1em;
    background-color: #ffffff;
}

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

.page-blog__conclusion-section {
    text-align: center;
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-blog__conclusion-section .page-blog__section-title {
    color: var(--color-text-main);
}

.page-blog__conclusion-section .page-blog__text-block {
    color: var(--color-text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.8em);
    }

    .page-blog__section-title {
        font-size: clamp(1.6em, 3.5vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-blog__container {
        padding: 0 15px;
    }

    .page-blog__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
    }

    .page-blog__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
    }

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

    .page-blog__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-blog__intro-section, .page-blog__why-go888-section, 
    .page-blog__categories-section, .page-blog__strategy-section, 
    .page-blog__community-section, .page-blog__featured-articles, 
    .page-blog__faq-section, .page-blog__conclusion-section {
        padding: 40px 0;
    }

    .page-blog__section-title {
        font-size: clamp(1.5em, 5vw, 2.2em);
        margin-bottom: 30px;
    }

    .page-blog__text-block {
        font-size: 0.95em;
    }

    .page-blog__feature-grid, .page-blog__category-list, 
    .page-blog__strategy-list, .page-blog__article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__feature-card, .page-blog__category-item, 
    .page-blog__strategy-item, .page-blog__article-card {
        padding: 20px;
    }

    .page-blog__feature-title {
        font-size: 1.3em;
    }

    .page-blog__article-image {
        height: 180px;
    }

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

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

    .page-blog__faq-answer {
        padding: 15px;
        font-size: 0.95em;
    }

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

    /* Mobile specific container adaptation */
    .page-blog__hero-section,
    .page-blog__intro-section,
    .page-blog__why-go888-section,
    .page-blog__categories-section,
    .page-blog__strategy-section,
    .page-blog__community-section,
    .page-blog__featured-articles,
    .page-blog__faq-section,
    .page-blog__conclusion-section,
    .page-blog__container,
    .page-blog__feature-card,
    .page-blog__category-item,
    .page-blog__strategy-item,
    .page-blog__article-card,
    .page-blog__view-all-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* Ensure button responsiveness */
    .page-blog__cta-button,
    .page-blog__cta-button--secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-blog__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
    }
}

@media (max-width: 480px) {
    .page-blog__hero-content {
        margin-top: -20px;
        padding: 20px 10px;
    }
    .page-blog__main-title {
        font-size: clamp(1.4em, 8vw, 2em);
    }
    .page-blog__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-blog__section-title {
        font-size: clamp(1.3em, 6vw, 1.8em);
    }
}