/* General page styles */
.page-blog {
    font-family: 'Arial', sans-serif;
    color: #1F2D3D; /* Text Main */
    line-height: 1.6;
    background-color: #F4F7FB; /* Background */
}

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

.page-blog__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__section-description {
    font-size: 18px;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-blog__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2F6BFF; /* Main Color */
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #2F6BFF; /* Main Color */
    cursor: pointer;
}

.page-blog__btn-secondary:hover {
    background-color: #F4F7FB; /* Background */
    color: #2F6BFF;
}

.page-blog__btn-outline {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #2F6BFF;
    color: #2F6BFF;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto; /* For blog cards to push to bottom */
}

.page-blog__btn-outline:hover {
    background-color: #2F6BFF;
    color: #ffffff;
}

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

/* HERO Section */
.page-blog__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    margin-bottom: 60px;
    background-color: #F4F7FB;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.page-blog__hero-content {
    max-width: 900px;
    margin: -100px auto 0 auto; /* Pull up over the image slightly */
    padding: 40px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    z-index: 10;
}

.page-blog__main-title {
    font-size: 48px;
    font-weight: 800;
    color: #2F6BFF; /* Main Color */
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.page-blog__subtitle {
    font-size: 18px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-blog__blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch; /* Ensure cards stretch to same height */
}

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

.page-blog__blog-card:hover {
    transform: translateY(-5px);
}

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

.page-blog__blog-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
}

.page-blog__blog-card-content {
    padding: 20px;
    flex-grow: 1; /* Allow content to grow */
    display: flex;
    flex-direction: column;
}

.page-blog__blog-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__blog-card-meta {
    font-size: 14px;
    color: #6FA3FF; /* Auxiliary Color */
    margin-bottom: 15px;
}

.page-blog__blog-card-excerpt {
    font-size: 15px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to grow */
}

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

/* Categories Section */
.page-blog__categories-section {
    padding: 80px 0;
    background-color: #2F6BFF; /* Main Color */
    color: #ffffff;
}

.page-blog__categories-section .page-blog__section-title,
.page-blog__categories-section .page-blog__section-description {
    color: #ffffff;
}

.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.page-blog__category-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-blog__category-card:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.page-blog__category-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.page-blog__category-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-blog__category-text {
    font-size: 15px;
    color: #f0f0f0;
}

/* Featured Article Section */
.page-blog__featured-article-section {
    padding: 80px 0;
    background-color: #F4F7FB; /* Background */
}

.page-blog__featured-article-content {
    display: flex;
    gap: 40px;
    align-items: center;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.page-blog__featured-image-wrapper {
    flex: 1;
    min-width: 400px;
}

.page-blog__featured-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-blog__featured-text-block {
    flex: 2;
}

.page-blog__featured-title {
    font-size: 32px;
    font-weight: 700;
    color: #2F6BFF; /* Main Color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__featured-excerpt {
    font-size: 18px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
}

.page-blog__featured-paragraph {
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 15px;
}

/* Why Choose Us Section */
.page-blog__why-choose-us-section {
    padding: 80px 0;
    background-color: #2F6BFF; /* Main Color */
    color: #ffffff;
    text-align: center;
}

.page-blog__why-choose-us-section .page-blog__section-title,
.page-blog__why-choose-us-section .page-blog__section-description {
    color: #ffffff;
}

.page-blog__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.page-blog__feature-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.page-blog__feature-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

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

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

.page-blog__cta-buttons--centered {
    margin-top: 40px;
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 80px 0;
    background-color: #F4F7FB; /* Background */
}

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

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

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: #1F2D3D; /* Text Main */
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-blog__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}
.page-blog__faq-question::marker {
    display: none; /* Hide default marker */
}

.page-blog__faq-item[open] .page-blog__faq-question {
    background-color: #f0f5ff; /* Light blue */
    color: #2F6BFF;
}

.page-blog__faq-toggle {
    font-size: 24px;
    font-weight: 600;
    color: #2F6BFF;
    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: 16px;
    color: #1F2D3D; /* Text Main */
}

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

.page-blog__faq-link {
    color: #2F6BFF;
    text-decoration: none;
    font-weight: 600;
}

.page-blog__faq-link:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: 40px;
    }

    .page-blog__section-title {
        font-size: 32px;
    }

    .page-blog__hero-content {
        margin-top: -80px;
        padding: 30px;
    }

    .page-blog__featured-article-content {
        flex-direction: column;
        padding: 30px;
    }

    .page-blog__featured-image-wrapper {
        min-width: unset;
        width: 100%;
    }

    .page-blog__featured-image {
        height: auto;
    }

    .page-blog__blog-card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    /* General responsive */
    .page-blog__container {
        padding: 0 15px;
    }

    .page-blog__hero-section {
        padding-top: 10px; /* Still small padding for hero */
        margin-bottom: 40px;
    }

    .page-blog__hero-content {
        margin-top: -60px;
        padding: 25px;
    }

    .page-blog__main-title {
        font-size: clamp(28px, 8vw, 36px); /* Using clamp for H1 as per rule */
        margin-bottom: 15px;
    }

    .page-blog__subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary,
    .page-blog a[class*="button"],
    .page-blog a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 16px;
    }

    .page-blog__cta-buttons,
    .page-blog__button-group,
    .page-blog__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important; /* Buttons themselves have padding */
        padding-right: 0 !important;
        flex-wrap: wrap !important;
        gap: 10px; /* Spacing between buttons */
    }
}