.page-blog {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: #F5F7FA; /* Background color for the page */
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    background-color: #E53935; /* Fallback background */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.page-blog__hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(229, 57, 53, 0.8) 0%, rgba(255, 90, 79, 0.8) 100%);
    border-radius: 10px;
    margin-top: -100px; /* Overlap slightly with the image for visual effect, but text is below */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: #ffffff;
}

.page-blog__hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

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

.page-blog__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

/* Intro Section */
.page-blog__intro-section {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}

.page-blog__intro-title {
    font-size: 2.5rem;
    color: #E53935;
    margin-bottom: 25px;
    font-weight: 700;
}

.page-blog__intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 20px auto;
    color: #333333;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
    padding: 60px 0;
    background-color: #F5F7FA;
}

.page-blog__section-title {
    font-size: 2.2rem;
    color: #E53935;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-blog__blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.page-blog__blog-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

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

.page-blog__card-category {
    display: inline-block;
    background-color: #FF5A4F;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-blog__card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #E53935;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__card-excerpt {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-blog__card-date {
    font-size: 0.85rem;
    color: #777777;
    margin-top: auto;
}

.page-blog__read-more {
    display: block;
    color: #E53935;
    font-weight: 600;
    margin-top: 10px;
    font-size: 0.95rem;
}

.page-blog__view-all-wrapper {
    text-align: center;
}

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

.page-blog__btn-secondary:hover {
    background-color: #E53935;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

/* Categories Section */
.page-blog__categories-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-blog__categories-description {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #333333;
}

.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.page-blog__category-card {
    background-color: #F5F7FA;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__category-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-blog__category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E53935;
    margin-bottom: 10px;
}

.page-blog__category-excerpt {
    font-size: 0.95rem;
    color: #555555;
    padding: 0 15px;
}

/* Why Read Section */
.page-blog__why-read-section {
    padding: 60px 0;
    background-color: #F5F7FA;
}

.page-blog__why-read-description {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #333333;
}

.page-blog__why-read-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog__why-read-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-blog__why-read-item-title {
    font-size: 1.3rem;
    color: #E53935;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-blog__why-read-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
}

/* CTA Section */
.page-blog__cta-section {
    background: linear-gradient(90deg, #E53935 0%, #FF5A4F 100%);
    padding: 60px 0;
    text-align: center;
    color: #ffffff;
}

.page-blog__cta-inner {
    max-width: 900px;
}

.page-blog__cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-blog__cta-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

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

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

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

.page-blog__faq-item summary {
    display: block;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    position: relative;
    list-style: none;
}

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

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.page-blog__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E53935;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg);
}

.page-blog__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-blog__container {
        padding: 20px 30px;
    }

    .page-blog__blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-blog__category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-blog__why-read-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-blog__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-blog__hero-description {
        font-size: 1.1rem;
    }

    .page-blog__intro-title,
    .page-blog__section-title,
    .page-blog__cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-blog__container {
        padding: 15px;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-blog__hero-content {
        padding: 30px 15px;
        margin-top: -80px; /* Adjust overlap */
    }

    .page-blog__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    }

    .page-blog__hero-description {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }

    /* Intro Section */
    .page-blog__intro-section {
        padding: 40px 0 !important;
    }

    .page-blog__intro-title {
        font-size: 1.8rem !important;
    }

    .page-blog__intro-text {
        font-size: 1rem !important;
    }

    /* Latest Posts Section */
    .page-blog__latest-posts-section {
        padding: 40px 0 !important;
    }

    .page-blog__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }

    .page-blog__blog-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 20px !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .page-blog__blog-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog__card-image {
        height: 180px !important;
    }

    .page-blog__card-title {
        font-size: 1.1rem !important;
    }

    .page-blog__card-excerpt {
        font-size: 0.9rem !important;
    }

    /* Categories Section */
    .page-blog__categories-section {
        padding: 40px 0 !important;
    }

    .page-blog__categories-description {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }

    .page-blog__category-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 20px !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .page-blog__category-card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding-bottom: 15px !important;
    }

    .page-blog__category-image {
        height: 150px !important;
    }

    .page-blog__category-title {
        font-size: 1.3rem !important;
    }

    /* Why Read Section */
    .page-blog__why-read-section {
        padding: 40px 0 !important;
    }

    .page-blog__why-read-description {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }

    .page-blog__why-read-list {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 20px !important;
    }

    .page-blog__why-read-item {
        padding: 20px !important;
    }

    .page-blog__why-read-item-title {
        font-size: 1.1rem !important;
    }

    .page-blog__why-read-item p {
        font-size: 0.95rem !important;
    }

    /* CTA Section */
    .page-blog__cta-section {
        padding: 40px 0 !important;
    }

    .page-blog__cta-title {
        font-size: 1.8rem !important;
    }

    .page-blog__cta-description {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }

    .page-blog__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* FAQ Section */
    .page-blog__faq-section {
        padding: 40px 0 !important;
    }

    .page-blog__faq-item summary {
        padding: 15px 20px !important;
        font-size: 1rem !important;
    }

    .page-blog__faq-qtext {
        font-size: 1rem !important;
    }

    .page-blog__faq-toggle {
        font-size: 1.3rem !important;
    }

    .page-blog__faq-answer {
        padding: 0 20px 15px 20px !important;
        font-size: 0.95rem !important;
    }

    /* Universal Image and Container Mobile Adaptations */
    .page-blog img {
        max-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;
    }
}