.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background: #ffffff; /* Explicitly set for content area if not inherited */
}

/* General container for content width */
.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding to containers */
}

/* Hero Introduction Section */
.page-blog__hero-introduction {
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    text-align: center;
    background-color: #f8f8f8; /* Light background for intro */
    color: #333333;
}

.page-blog__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size, not fixed large */
    font-weight: 700;
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__intro-text {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto;
    color: #555555;
}

/* Latest Articles Section */
.page-blog__latest-articles {
    padding: 60px 20px;
    background-color: #ffffff;
}

.page-blog__section-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 600;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
}

.page-blog__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-blog__article-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

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

.page-blog__article-title {
    font-size: 20px;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__article-excerpt {
    font-size: 15px;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-blog__article-date {
    font-size: 13px;
    color: #888888;
    text-align: right;
    display: block;
}

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

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width */
}

.page-blog__view-all-button:hover {
    background: #1e87c0;
    transform: translateY(-2px);
}

/* Why Follow Section */
.page-blog__why-follow {
    padding: 60px 20px;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff; /* White text for contrast */
}

.page-blog__section-title--white {
    color: #ffffff;
}

.page-blog__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-blog__feature-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__feature-title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-blog__feature-description {
    font-size: 16px;
    color: #f0f0f0;
}

/* Betting Journey Section */
.page-blog__betting-journey {
    padding: 60px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

.page-blog__section-description {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #555555;
}

.page-blog__journey-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.page-blog__step-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-blog__step-image {
    width: 100%;
    height: 200px; /* Consistent image height */
    object-fit: contain; /* Keep aspect ratio, fit inside */
    margin-bottom: 20px;
    border-radius: 4px;
}

.page-blog__step-title {
    font-size: 20px;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-blog__step-description {
    font-size: 15px;
    color: #555555;
}

.page-blog__cta-button-container {
    text-align: center;
    margin-top: 40px;
}

/* CTA Section (Bottom) */
.page-blog__cta-section {
    padding: 60px 20px;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
    text-align: center;
}

.page-blog__cta-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-blog__cta-description {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 30px;
    color: #f0f0f0;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    max-width: 600px;
    margin: 0 auto;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width */
}

.page-blog__btn-primary {
    background: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
    background: #d46c05;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-blog__btn-secondary:hover {
    background: #f0f0f0;
    color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

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

details.page-blog__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
details.page-blog__faq-item summary.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
    display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
    background: #f5f5f5;
}
.page-blog__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}
.page-blog__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #555555;
}

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

/* Popular Topics Section */
.page-blog__popular-topics {
    padding: 60px 20px;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
    text-align: center;
}

.page-blog__topic-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-blog__topic-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.page-blog__topic-tag:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* General styles for contrast and elements */
.page-blog h1, .page-blog h2, .page-blog h3, .page-blog h4, .page-blog h5, .page-blog h6 {
    color: #333333; /* Default for headings */
}
.page-blog__dark-bg h1, .page-blog__dark-bg h2, .page-blog__dark-bg h3, .page-blog__dark-bg h4, .page-blog__dark-bg h5, .page-blog__dark-bg h6 {
    color: #ffffff; /* White for headings on dark backgrounds */
}
.page-blog__dark-bg p, .page-blog__dark-bg li {
    color: #f0f0f0; /* Light text on dark backgrounds */
}

/* Ensure no CSS filters are used on images */
.page-blog img {
    filter: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-blog__hero-introduction,
    .page-blog__latest-articles,
    .page-blog__why-follow,
    .page-blog__betting-journey,
    .page-blog__cta-section,
    .page-blog__faq-section,
    .page-blog__popular-topics {
        padding: 40px 15px !important; /* Adjust padding for mobile */
    }

    .page-blog__main-title {
        font-size: clamp(24px, 7vw, 36px);
    }

    .page-blog__intro-text {
        font-size: 16px;
    }

    .page-blog__section-title {
        font-size: clamp(22px, 6vw, 32px);
        margin-bottom: 30px;
    }

    .page-blog__article-grid {
        grid-template-columns: 1fr;
    }

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

    .page-blog__article-title {
        font-size: 18px;
    }

    .page-blog__article-excerpt {
        font-size: 14px;
    }

    .page-blog__view-all-button {
        padding: 10px 25px;
        font-size: 15px;
    }

    .page-blog__feature-grid,
    .page-blog__journey-steps {
        grid-template-columns: 1fr;
    }

    .page-blog__feature-title {
        font-size: 20px;
    }

    .page-blog__feature-description,
    .page-blog__step-description {
        font-size: 15px;
    }

    .page-blog__step-image {
        height: 150px;
        object-fit: contain;
    }

    .page-blog__cta-title {
        font-size: clamp(22px, 6vw, 32px);
    }

    .page-blog__cta-description {
        font-size: 16px;
    }

    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
    }

    .page-blog__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    details.page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px;
    }
    .page-blog__faq-qtext {
        font-size: 15px;
    }
    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 15px 15px;
    }

    .page-blog__topic-tag {
        font-size: 13px;
        padding: 7px 12px;
    }

    /* Images responsiveness */
    .page-blog img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
    .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__hero-section {
        padding-top: 10px !important;
    }
}