:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --background-color: #FFFFFF;
}

.page-blog {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-dark);
    background-color: var(--background-color);
}

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

.page-blog__section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-top: 20px;
}

.page-blog__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--login-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    padding-bottom: 40px;
    background-color: var(--background-color);
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

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

.page-blog__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-blog__main-title {
    font-size: clamp(2.2em, 3.5vw, 3.5em);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-blog__description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color-dark);
    margin-bottom: 30px;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-blog__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

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

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

.page-blog__post-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.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: block;
}

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

.page-blog__post-content {
    padding: 20px;
}

.page-blog__post-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-blog__post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

.page-blog__read-more {
    display: inline-block;
    color: var(--login-color);
    font-weight: 600;
    text-decoration: none;
}

.page-blog__read-more:hover {
    text-decoration: underline;
}

.page-blog__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.page-blog__pagination-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 1px solid #ddd;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-blog__pagination-link:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}

.page-blog__pagination-current {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}

/* Categories Section */
.page-blog__categories-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-blog__category-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

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

.page-blog__category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-blog__category-description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* CTA Banner Section */
.page-blog__cta-banner-section {
    background-color: var(--primary-color);
    padding: 60px 0;
    text-align: center;
    color: var(--text-color-light);
}

.page-blog__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.page-blog__cta-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--text-color-light);
}

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

.page-blog__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-blog__btn-secondary:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}

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

details.page-blog__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}

details.page-blog__faq-item summary.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-color-dark);
}

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

details.page-blog__faq-item summary.page-blog__faq-question:hover {
    background: #f5f5f5;
}

.page-blog__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-color-dark);
}

.page-blog__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-color-dark);
}

.page-blog__faq-answer p {
    margin: 0;
    line-height: 1.6;
}

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

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-blog__container {
        padding: 15px;
    }

    .page-blog__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Hero Section Mobile */
    .page-blog__hero-section {
        padding-top: 10px; /* Still small padding */
        padding-bottom: 30px;
    }

    .page-blog__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-blog__hero-image {
        object-fit: contain; /* Specific for mobile hero image */
        height: auto !important; /* Ensure height scales */
        width: 100% !important;
    }

    .page-blog__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

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

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

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

    .page-blog__posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__post-image {
        height: 180px;
    }

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

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

    .page-blog__pagination {
        margin-top: 30px;
    }

    .page-blog__pagination-link {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }

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

    .page-blog__categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__category-card {
        padding: 25px;
        min-height: 150px;
    }

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

    .page-blog__category-description {
        font-size: 14px;
    }

    /* CTA Banner Section Mobile */
    .page-blog__cta-banner-section {
        padding: 40px 0;
    }

    .page-blog__cta-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-blog__cta-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

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

    /* FAQ Section Mobile */
    details.page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px;
    }

    .page-blog__faq-qtext {
        font-size: 15px;
    }

    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 15px 15px;
    }

    /* Universal mobile image and button adaptations */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__cta-button,
    .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;
    }
    .page-blog__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}