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

.page-blog__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Main Title Section */
.page-blog__main-title-section {
    padding-top: 10px; /* Small top padding, not --header-offset */
    padding-bottom: 40px;
    background-color: #f8f8f8; /* Light background for the title section */
    text-align: center;
}

.page-blog__main-title {
    font-size: clamp(28px, 3.5vw, 48px); /* H1 font-size with clamp */
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Posts Grid Section */
.page-blog__posts-grid {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-blog__post-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px 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__post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-blog__post-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for thumbnails */
    overflow: hidden;
}

.page-blog__post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__post-thumbnail img {
    transform: scale(1.05);
}

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

.page-blog__post-title {
    font-size: 22px;
    color: #26A9E0; /* Brand color for post titles */
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 600;
}

.page-blog__post-meta {
    font-size: 14px;
    color: #888888;
    margin-bottom: 15px;
}

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

.page-blog__read-more {
    display: inline-block;
    color: #EA7C07; /* Login color for read more */
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: #1e1765; /* Darker on hover */
}

/* Pagination */
.page-blog__pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.page-blog__pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-blog__pagination-link:hover:not(.is-active) {
    background-color: #e0f2f7;
    border-color: #26A9E0;
}

.page-blog__pagination-link.is-active {
    background-color: #26A9E0;
    color: #ffffff;
    border-color: #26A9E0;
    cursor: default;
}

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

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

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

.page-blog__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog__faq-item summary {
    display: block; /* Ensures full clickability */
    list-style: none; /* Removes default marker */
    padding: 20px 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    position: relative;
    transition: background-color 0.3s ease;
}

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

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

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

.page-blog__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-blog__faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' or similar for open state */
}

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

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

/* General image and container responsive styles */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-blog__section,
.page-blog__card,
.page-blog__container,
.page-blog__grid,
.page-blog__main-title-section,
.page-blog__posts-grid,
.page-blog__faq-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Ensure content does not overflow */
}

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

    /* Main Title Section */
    .page-blog__main-title-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-blog__main-title {
        font-size: 32px; /* Adjusted for mobile */
        padding: 0 15px;
    }

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

    /* Posts Grid Section */
    .page-blog__posts-grid {
        padding: 40px 0;
    }

    .page-blog__grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        padding: 0 15px; /* Add padding to grid container */
    }

    .page-blog__post-card {
        margin: 0;
    }

    .page-blog__post-thumbnail {
        height: 180px; /* Slightly smaller thumbnails on mobile */
    }

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

    .page-blog__post-excerpt {
        font-size: 15px;
    }

    /* Pagination */
    .page-blog__pagination {
        margin-top: 30px;
        padding: 0 15px;
        flex-wrap: wrap; /* Allow pagination links to wrap */
        justify-content: center;
    }

    .page-blog__pagination-link {
        flex-grow: 1; /* Distribute space among links */
        min-width: unset;
        width: auto;
        padding: 0 10px;
    }
    
    .page-blog__pagination-link:last-child {
        flex-grow: 0; /* "Next" button might not grow as much */
    }

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

    .page-blog__faq-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-blog__faq-list {
        padding: 0 15px;
    }

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

    .page-blog__faq-item summary {
        padding: 15px 20px;
        font-size: 16px;
    }

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

    /* Universal mobile image adaptation */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Universal mobile container adaptation */
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__grid,
    .page-blog__main-title-section,
    .page-blog__posts-grid,
    .page-blog__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by specific elements or grid/flex containers */
    }
}