/* style/blog.css */
/* Base styles for the blog page */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* body handles the main background */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    background-color: #1a1a2e; /* Dark background for the hero section */
    color: #ffffff;
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 10px;
    overflow: hidden;
}

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

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

.page-blog__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for title */
}

.page-blog__lead-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Light text for description */
}

/* CTA Buttons in Hero */
.page-blog__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px;
    justify-content: center;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    text-align: center;
}

.page-blog__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-blog__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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

/* Articles Overview Section */
.page-blog__articles-overview {
    background-color: #ffffff; /* Light background for articles */
    padding: 60px 20px;
    color: #333333; /* Dark text for light background */
}

.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-blog__section-title {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-blog__section-title--light {
    color: #ffffff;
}

.page-blog__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-blog__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

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

.page-blog__article-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: #1e87b8;
}

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

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

.page-blog__read-more {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start; /* Align to the start of the flex container */
}

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

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

/* FAQ Section */
.page-blog__faq-section {
    background-color: #1a1a2e; /* Dark background */
    padding: 60px 20px;
    color: #ffffff; /* Light text */
}

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

.page-blog__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background for items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
    font-weight: normal;
}

.page-blog__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.6;
}

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

/* CTA Section at the bottom */
.page-blog__cta-section {
    background-color: #ffffff; /* Light background */
    padding: 60px 20px;
    text-align: center;
    color: #333333; /* Dark text */
}

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

    .page-blog__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }

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

    .page-blog__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-blog__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-blog__lead-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to container for buttons */
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding: 10px 15px !important; /* Adjust padding */
        box-sizing: border-box !important;
    }

    .page-blog__articles-overview,
    .page-blog__faq-section,
    .page-blog__cta-section {
        padding: 40px 15px;
    }

    .page-blog__container {
        padding-left: 0 !important; /* Remove container padding if it exists from desktop */
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-blog__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-blog__articles-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

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

    .page-blog__article-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-blog__faq-question {
        font-size: 1em;
        padding: 15px;
    }

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