.page-blog {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-blog__hero-section {
    background-color: #1A1A1A; /* Secondary color for hero background */
    color: #FFD700; /* Primary color for text on dark background */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden; /* Ensure image does not overflow */
}

.page-blog__hero-content {
    max-width: 900px;
    z-index: 1; /* Ensure content is above image if positioned */
}

.page-blog__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for main title */
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Lighter text for description */
}

.page-blog__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #1A1A1A; /* Dark text on gold button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #FFD700;
}

.page-blog__hero-button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    color: #000000;
}

.page-blog__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-blog__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
    opacity: 0.15; /* Subtle background image */
    filter: brightness(0.6); /* Darken the image for better text contrast, this is allowed as it's not changing color hue/saturation/invert */
}

.page-blog__section-title {
    font-size: 2.5em;
    color: #1A1A1A;
    text-align: center;
    margin: 60px 0 40px;
}

.page-blog__section-intro {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px;
}

.page-blog__featured-articles,
.page-blog__latest-news,
.page-blog__in-depth-guides,
.page-blog__community-insights,
.page-blog__faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-blog__articles-grid,
.page-blog__news-list,
.page-blog__guides-grid,
.page-blog__community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog__article-card,
.page-blog__news-item,
.page-blog__guide-card,
.page-blog__community-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__article-card:hover,
.page-blog__news-item:hover,
.page-blog__guide-card:hover,
.page-blog__community-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

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

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

.page-blog__article-title,
.page-blog__news-title,
.page-blog__guide-title,
.page-blog__community-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-blog__article-title a,
.page-blog__news-title a,
.page-blog__guide-title a,
.page-blog__community-title a {
    color: #1A1A1A; /* Dark text for titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover,
.page-blog__news-title a:hover,
.page-blog__guide-title a:hover,
.page-blog__community-title a:hover {
    color: #FFD700; /* Gold on hover */
}

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

.page-blog__article-excerpt,
.page-blog__news-excerpt,
.page-blog__guide-text,
.page-blog__community-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more-button {
    display: inline-block;
    background-color: #FFD700;
    color: #1A1A1A;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start; /* Align button to start of flex container */
}

.page-blog__read-more-button:hover {
    background-color: #e6c200;
    color: #000000;
}

/* Specific styling for guide cards where image might be smaller */
.page-blog__guide-card .page-blog__guide-image {
    height: 200px; /* Adjusted height for guide cards */
}

.page-blog__cta-section {
    background-color: #1A1A1A;
    color: #FFD700;
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
}

.page-blog__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700;
}

.page-blog__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-blog__cta-button--primary {
    background-color: #FFD700;
    color: #1A1A1A;
    border: 2px solid #FFD700;
}

.page-blog__cta-button--primary:hover {
    background-color: #e6c200;
    color: #000000;
}

.page-blog__cta-button--secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-blog__cta-button--secondary:hover {
    background-color: #FFD700;
    color: #1A1A1A;
}

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

.page-blog__faq-items {
    max-width: 900px;
    margin: 40px auto;
    border-top: 1px solid #e0e0e0;
}

.page-blog__faq-item {
    padding: 25px 0;
    border-bottom: 1px solid #e0e0e0;
}

.page-blog__faq-question {
    font-size: 1.3em;
    color: #1A1A1A;
    margin-bottom: 10px;
    cursor: pointer; /* Indicate interactivity */
    position: relative;
    padding-right: 30px; /* Space for an icon */
}

.page-blog__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-blog__faq-question.active::after {
    content: '-';
    transform: rotate(0deg); /* No rotation needed for - */
}

.page-blog__faq-answer {
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 10px;
}

.page-blog__faq-answer.open {
    max-height: 200px; /* Adjust as needed for content length */
    padding-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.5em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 60px 15px;
    }
    .page-blog__hero-title {
        font-size: 2em;
    }
    .page-blog__hero-description {
        font-size: 1.1em;
    }
    .page-blog__articles-grid,
    .page-blog__news-list,
    .page-blog__guides-grid,
    .page-blog__community-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__article-card,
    .page-blog__news-item,
    .page-blog__guide-card,
    .page-blog__community-card {
        margin-bottom: 20px;
    }

    .page-blog__article-image,
    .page-blog__news-image,
    .page-blog__guide-image,
    .page-blog__community-image {
        height: 200px; /* Smaller height for mobile */
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
    }

    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__cta-description {
        font-size: 1.1em;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__cta-button {
        width: 100%;
        max-width: 300px; /* Limit width on small screens */
    }

    /* Ensure content area does not cause horizontal scroll */
    .page-blog {
        overflow-x: hidden;
    }
    .page-blog__featured-articles,
    .page-blog__latest-news,
    .page-blog__in-depth-guides,
    .page-blog__community-insights,
    .page-blog__faq-section {
        padding: 20px 15px;
    }
    /* All images in .page-blog must not be smaller than 200px */
    .page-blog img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum width for content images */
        min-height: 200px; /* Enforce minimum height for content images */
        object-fit: cover; /* Ensure image fills space without distorting */
    }
    /* Override specific card image heights if they become too small */
    .page-blog__article-image,
    .page-blog__news-image,
    .page-blog__guide-image,
    .page-blog__community-image {
        min-height: 200px; /* Ensure card images are not too small */
    }
}