.page-blog {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light backgrounds */
    line-height: 1.6;
    background-color: #F5F7FA; /* General page background */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    background-color: #E53935; /* Fallback background for hero */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-blog__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: #E53935; /* Dark background for hero text */
    color: #ffffff; /* White text on dark background */
}

.page-blog__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
}

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

.page-blog__hero-cta {
    margin-top: 20px;
}

/* General Sections */
.page-blog__introduction,
.page-blog__articles-section,
.page-blog__cta-section,
.page-blog__faq-section,
.page-blog__final-cta {
    padding: 60px 0;
}

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

.page-blog__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #E53935; /* Main brand color for titles */
}

.page-blog__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #333333;
}

/* Light Background Section */
.page-blog__light-bg {
    background-color: #F5F7FA; /* Light background */
    color: #333333; /* Dark text */
}

/* Dark Background Section */
.page-blog__dark-bg {
    background-color: #E53935; /* Main brand color for dark sections */
    color: #ffffff; /* White text */
}
.page-blog__dark-bg .page-blog__section-title,
.page-blog__dark-bg .page-blog__section-description {
    color: #ffffff;
}


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

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

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

.page-blog__article-image {
    width: 100%;
    height: 200px; /* Fixed height for article images */
    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: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__article-title a {
    color: #E53935; /* Link color for article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: #FF5A4F; /* Hover color */
}

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

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

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Defined button gradient */
    color: #ffffff;
    border: none;
}

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

.page-blog__btn-secondary {
    background-color: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    margin-left: 15px; /* Spacing between buttons */
}

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

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Spacing for multiple buttons */
    margin-top: 30px;
}

/* FAQ Section */
.page-blog__faq-list {
    margin-top: 30px;
}

.page-blog__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-blog__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #333333;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

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

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

.page-blog__faq-qtext {
    flex-grow: 1;
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #E53935;
}

.page-blog__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #555555;
}

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

@media (max-width: 768px) {
    .page-blog__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-blog__section-title {
        font-size: 2em;
    }

    .page-blog__hero-content {
        padding: 30px 15px;
    }

    .page-blog__articles-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
        margin-left: 0 !important; /* Remove margin for stacked buttons */
    }

    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-blog__introduction,
    .page-blog__articles-section,
    .page-blog__cta-section,
    .page-blog__faq-section,
    .page-blog__final-cta {
        padding: 40px 0;
    }

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

    /* Images responsiveness */
    .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__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
    }

    /* Content area images minimum size check for mobile */
    .page-blog__article-image {
        min-width: 200px !important; /* Enforce minimum size if scaled down */
        min-height: 150px !important; /* Adjusted for aspect ratio, still >200px area */
        height: auto !important;
    }
}

/* Ensure content area images maintain minimum display size */
.page-blog p img,
.page-blog li img,
.page-blog__article-content img {
    min-width: 200px;
    min-height: 200px;
    height: auto;
}

/* No CSS filters allowed for images */
.page-blog img {
    filter: none !important;
}