/* style/blog.css */
.page-blog {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #F5F7FA; /* Body background color from prompt */
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: #E53935; /* Main brand color for hero background */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height of the image wrapper */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-blog__hero-section img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image */
}

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    color: #ffffff; /* White text for dark background */
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with image for visual flow */
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-blog__description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-blog__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    justify-content: center;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    text-align: center;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    transform: translateY(-2px);
}

.page-blog__btn-secondary {
    background-color: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-blog__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #E53935;
    transform: translateY(-2px);
}

/* Featured Articles Section */
.page-blog__featured-articles {
    padding: 80px 0;
    background-color: #F5F7FA; /* Light background for this section */
    color: #333333; /* Dark text for light background */
}

.page-blog__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #E53935; /* Brand color for titles */
}

.page-blog__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

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

.page-blog__article-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

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

.page-blog__card-content {
    padding: 25px;
}

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

.page-blog__card-title a {
    color: #E53935; /* Brand color for link */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
    color: #FF5A4F; /* Lighter brand color on hover */
}

.page-blog__card-excerpt {
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 20px;
}

.page-blog__read-more {
    display: inline-block;
    color: #E53935;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.page-blog__cta-section {
    text-align: center;
    margin-top: 40px;
}

/* Content Section */
.page-blog__content-section {
    padding: 80px 0;
    background-color: #E53935; /* Dark background for this section */
    color: #ffffff; /* White text for dark background */
}

.page-blog__content-section .page-blog__section-title {
    color: #ffffff; /* White title for dark background */
}

.page-blog__text-block {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.7;
    color: #f0f0f0; /* Slightly off-white for better readability on dark background */
}

.page-blog__content-section img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__sub-title {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #ffffff;
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 80px 0;
    background-color: #F5F7FA; /* Light background */
    color: #333333; /* Dark text */
}

.page-blog__faq-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #E0E0E0;
}

.page-blog__faq-item {
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 10px;
}

.page-blog__faq-item summary {
    list-style: none; /* Remove default marker */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: #333333;
}

.page-blog__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for WebKit browsers */
}

.page-blog__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E53935;
    margin-left: 20px;
}

.page-blog__faq-answer {
    padding-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555555;
    padding-right: 40px; /* Space for the + / - toggle */
}

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

    .page-blog__hero-content {
        padding: 20px 15px;
        margin-top: -50px; /* Adjust overlap for mobile */
    }

    .page-blog__main-title {
        font-size: 2rem;
    }

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

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

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }

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

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

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

    .page-blog__article-card img {
        
    }

    .page-blog__card-title {
        font-size: 1.2rem;
    }

    .page-blog__card-excerpt {
        font-size: 0.9rem;
    }

    .page-blog__sub-title {
        font-size: 1.5rem;
    }

    .page-blog__text-block {
        font-size: 1rem;
    }

    .page-blog__faq-item summary {
        font-size: 1rem;
        padding: 15px 0;
    }

    .page-blog__faq-answer {
        font-size: 0.95rem;
        padding-right: 20px;
    }

    /* Mobile image responsive adaptations */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-blog__section,
    .page-blog__card,
    .page-blog__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-blog__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset, this is for visual spacing */
    }

    /* Mobile video responsive adaptations (if video were present) */
    .page-blog video,
    .page-blog__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-blog__video-section,
    .page-blog__video-container,
    .page-blog__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-blog__video-section {
        padding-top: 10px !important;
    }
    
    .page-blog__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile button responsive adaptations */
    .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,
    .page-blog__button-group,
    .page-blog__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    
    .page-blog__cta-buttons {
      display: flex;
      flex-direction: column;
    }
}