.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Fallback to white if --background-color is not defined */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Default to column for mobile first, then row for desktop */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
    overflow: hidden;
}

.page-blog__hero-content {
    max-width: 800px;
    z-index: 10;
    margin-bottom: 30px; /* Space between content and image on mobile */
}

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

.page-blog__description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-blog__btn-primary {
    display: inline-block;
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
    background-color: #d16b06;
}

.page-blog__hero-image {
    width: 100%;
    max-width: 1000px; /* Max width for image */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 30px; /* Space between content and image */
    display: block;
}

/* General Section Styling */
.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-blog__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* 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;
}

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

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

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

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

.page-blog__post-thumbnail {
    width: 100%;
    height: 220px; /* Fixed height for thumbnails */
    object-fit: cover;
    display: block;
}

.page-blog__post-content {
    padding: 20px;
    flex-grow: 1; /* Allows content to expand */
    display: flex;
    flex-direction: column;
}

.page-blog__post-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__post-title a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: #1a7ea0;
}

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

.page-blog__post-meta a {
    color: #666666;
    text-decoration: none;
}

.page-blog__post-meta a:hover {
    text-decoration: underline;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows excerpt to take available space */
}

.page-blog__read-more {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: #1a7ea0;
}

.page-blog__arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.page-blog__read-more:hover .page-blog__arrow {
    transform: translateX(5px);
}

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

.page-blog__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #26A9E0;
    padding: 15px 30px;
    border: 2px solid #26A9E0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Featured Guides Section */
.page-blog__featured-guides {
    padding: 60px 0;
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

.page-blog__featured-guides .page-blog__section-title,
.page-blog__featured-guides .page-blog__section-description {
    color: #ffffff;
}

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

.page-blog__guide-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
    border-radius: 10px;
    padding: 30px;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__guide-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-blog__guide-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-blog__guide-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__guide-title a:hover {
    color: #f0f0f0;
}

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

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

.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-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: #26A9E0;
    cursor: pointer;
    background-color: #f0f8ff; /* Light blue for question background */
    transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
    background-color: #e6f2ff;
}

.page-blog__faq-item[open] .page-blog__faq-question {
    background-color: #e6f2ff;
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to X or simply changes to minus */
}

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

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

.page-blog__btn-inline {
    display: inline-block;
    color: #26A9E0;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__btn-inline:hover {
    color: #1a7ea0;
}

/* CTA Section */
.page-blog__cta-section {
    padding: 80px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
}

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

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

/* General button styles for consistency */
.page-blog a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

/* Media Queries for Responsiveness */
@media (min-width: 769px) {
    .page-blog__hero-section {
        flex-direction: row;
        text-align: left;
        padding: 80px 20px;
    }

    .page-blog__hero-content {
        text-align: left;
        margin-right: 50px;
        margin-bottom: 0;
    }

    .page-blog__hero-image {
        margin-top: 0;
        max-width: 800px;
    }
}

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

    .page-blog__description {
        font-size: 1em;
    }

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

    .page-blog__section-description {
        font-size: 1em;
    }

    .page-blog__post-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__guide-grid {
        grid-template-columns: 1fr;
    }

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

    /* Mobile specific image adaptation */
    .page-blog img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__hero-section,
    .page-blog__latest-posts,
    .page-blog__featured-guides,
    .page-blog__faq-section,
    .page-blog__cta-section,
    .page-blog__post-card,
    .page-blog__guide-card,
    .page-blog__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-blog__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__video-section { /* If a video section were present */
        padding-top: 10px !important;
    }

    /* Mobile specific button adaptation */
    .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;
    }
}

/* CSS for FAQ toggle icon on details element */
.page-blog__faq-item summary {
    list-style: none;
}
.page-blog__faq-item summary::-webkit-details-marker {
    display: none;
}