/* style/blog.css */
/* Base styles for .page-blog */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main */
    background: #0D0E12; /* Background */
    min-height: 100vh;
}

.page-blog__content-wrapper {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

.page-blog__dark-section,
.page-blog__dark-bg {
    background: #17191F; /* Card BG */
}

.page-blog__main-title,
.page-blog__section-title {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #FFF3E6;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-blog__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.page-blog__intro-text,
.page-blog__community-text,
.page-blog__final-cta-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Buttons */
.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping for desktop too if many buttons */
}

.page-blog__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button max-width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(255, 165, 58, 0.6);
}

.page-blog__btn-secondary {
    background: transparent;
    color: #FFA53A;
    border: 2px solid #FFA53A;
}

.page-blog__btn-secondary:hover {
    background: #FFA53A;
    color: #0D0E12;
}

.page-blog__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding for header offset */
    padding-bottom: 80px;
    background: #0D0E12;
}

/* Article Grid Section */
.page-blog__article-grid,
.page-blog__guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-blog__article-card,
.page-blog__guide-card {
    background: #17191F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-blog__article-image,
.page-blog__guide-image,
.page-blog__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-blog__article-title,
.page-blog__guide-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    color: #FFF3E6;
}

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

.page-blog__article-excerpt {
    font-size: 0.95em;
    color: #FFF3E6;
}

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

/* Featured Guides Section */
.page-blog__guide-card {
    text-align: center;
}

.page-blog__guide-card .page-blog__guide-image {
    height: 220px;
}

.page-blog__guide-card .page-blog__guide-title {
    font-size: 1.3em;
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-blog__guide-card .page-blog__guide-excerpt {
    font-size: 0.9em;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Promotions Section */
.page-blog__promo-box {
    display: flex;
    background: #17191F;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    align-items: center;
    margin-bottom: 40px;
}

.page-blog__promo-image {
    width: 50%;
    height: 350px;
    object-fit: cover;
}

.page-blog__promo-content {
    width: 50%;
    padding: 40px;
}

.page-blog__promo-title {
    font-size: 2em;
    font-weight: bold;
    color: #FFF3E6;
    margin-top: 0;
    margin-bottom: 20px;
}

.page-blog__promo-description {
    font-size: 1.1em;
    color: #FFF3E6;
    margin-bottom: 30px;
}

/* Community Section */
.page-blog__community-section {
    padding: 80px 0;
    text-align: center;
}

/* Why Choose Section */
.page-blog__why-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-blog__why-item {
    background: #17191F;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__why-item-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFA53A;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-blog__why-item-description {
    font-size: 1em;
    color: #FFF3E6;
}

/* Final CTA Section */
.page-blog__final-cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-blog__final-cta-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: 2.8em;
    }
    .page-blog__section-title {
        font-size: 2.2em;
    }
    .page-blog__promo-title {
        font-size: 1.8em;
    }
    .page-blog__promo-image {
        height: 300px;
    }
    .page-blog__promo-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    /* Top Section / Hero Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 50px;
    }
    .page-blog__main-title {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .page-blog__intro-text {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
    }
    .page-blog__btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-blog__btn-large {
        padding: 15px 25px;
        font-size: 1.1em;
    }

    /* General Section Padding and Content Wrapper */
    .page-blog__section {
        padding: 40px 0;
    }
    .page-blog__content-wrapper {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    /* Images */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        box-sizing: border-box !important;
    }

    /* Article Grid Section */
    .page-blog__article-grid,
    .page-blog__guide-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__article-image,
    .page-blog__guide-image,
    .page-blog__promo-image {
        height: 200px; /* Adjust height for mobile */
    }
    .page-blog__article-content {
        padding: 15px;
    }
    .page-blog__article-title,
    .page-blog__guide-title {
        font-size: 1.2em;
    }
    .page-blog__article-meta {
        font-size: 0.85em;
    }
    .page-blog__article-excerpt {
        font-size: 0.9em;
    }
    .page-blog__view-all-cta {
        margin-top: 30px;
    }

    /* Promotions Section */
    .page-blog__promo-box {
        flex-direction: column;
    }
    .page-blog__promo-image,
    .page-blog__promo-content {
        width: 100%;
        padding: 25px;
    }
    .page-blog__promo-image {
        height: 250px;
    }
    .page-blog__promo-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    .page-blog__promo-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Community Section */
    .page-blog__community-section {
        padding: 50px 0;
    }

    /* Why Choose Section */
    .page-blog__why-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__why-item {
        padding: 25px;
    }
    .page-blog__why-item-title {
        font-size: 1.3em;
    }
    .page-blog__why-item-description {
        font-size: 0.95em;
    }

    /* Final CTA Section */
    .page-blog__final-cta-section {
        padding: 50px 0;
    }
    .page-blog__final-cta-text {
        font-size: 1em;
    }
}