/* 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 background is handled by shared.css */
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

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

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

.page-blog__hero-content {
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
    z-index: 1;
    color: #ffffff;
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 100%;
}

.page-blog__intro-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-blog__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 15px;
    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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

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

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

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

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

/* Section Titles */
.page-blog__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
}

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

/* Dark background sections */
.page-blog__dark-bg {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0;
}

/* Light background sections */
.page-blog__light-bg {
    background-color: #282828; /* Slightly lighter than body background for contrast */
    color: #f0f0f0;
    padding: 60px 0;
}

/* Categories Grid */
.page-blog__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog__category-card {
    background-color: #282828; /* Card background in dark section */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Ensure cards are same height */
    box-sizing: border-box;
    color: #ffffff;
}

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

.page-blog__category-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-blog__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

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

.page-blog__card-title a:hover {
    color: #1e87b7;
    text-decoration: underline;
}

.page-blog__card-text {
    font-size: 0.95rem;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-blog__card-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-blog__card-link:hover {
    background-color: #1e87b7;
}

/* Featured Article Section */
.page-blog__article-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-blog__article-image {
    flex: 1 1 400px; /* Allow image to grow/shrink, min width 400px */
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-blog__text-block {
    flex: 2 1 500px; /* Allow text block to grow/shrink, min width 500px */
    color: #f0f0f0;
}

.page-blog__text-block p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.page-blog__text-block strong {
    color: #26A9E0;
}

/* Benefits Section */
.page-blog__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog__benefits-item {
    background-color: #282828;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-blog__benefits-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-blog__benefits-text {
    font-size: 0.95rem;
    color: #cccccc;
}

/* FAQ Section */
.page-blog__faq-list {
    margin-top: 40px;
}

.page-blog__faq-item {
    background-color: #282828;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #26A9E0; /* Brand color for FAQ question background */
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details summary */
}

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

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

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

.page-blog__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
}

.page-blog__faq-answer {
    padding: 20px 25px;
    background-color: #333333; /* Darker background for answer */
    color: #f0f0f0;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-blog__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
}

.page-blog__faq-answer a:hover {
    text-decoration: underline;
}

/* Conclusion Section */
.page-blog__conclusion-section {
    text-align: center;
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-blog__conclusion-text {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-blog__btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-blog__hero-content {
        margin-top: 30px;
    }

    .page-blog__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

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

    .page-blog__article-content {
        flex-direction: column;
    }

    .page-blog__article-image,
    .page-blog__text-block {
        flex: 1 1 100%;
    }
}

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

    .page-blog__hero-section {
        padding-bottom: 40px;
    }

    .page-blog__hero-content {
        margin-top: 20px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        margin-bottom: 15px;
    }

    .page-blog__intro-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

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

    .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__section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
        padding-top: 30px;
    }

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

    .page-blog__category-card {
        padding: 20px;
    }

    .page-blog__category-image {
        height: auto; /* Allow auto height for mobile */
    }

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

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

    .page-blog__article-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-blog__benefits-list {
        grid-template-columns: 1fr;
    }

    .page-blog__benefits-item {
        padding: 25px;
    }

    .page-blog__benefits-heading {
        font-size: 1.2rem;
    }

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

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

    .page-blog__conclusion-section {
        padding: 60px 0;
    }

    .page-blog__conclusion-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-blog__btn-large {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    /* Mobile image responsiveness */
    .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,
    .page-blog__hero-section,
    .page-blog__overview-section,
    .page-blog__featured-article,
    .page-blog__benefits-section,
    .page-blog__faq-section,
    .page-blog__conclusion-section,
    .page-blog__hero-image-wrapper,
    .page-blog__article-content,
    .page-blog__categories-grid,
    .page-blog__benefits-list,
    .page-blog__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-blog__hero-section {
      padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-blog__video-section {
      padding-top: 10px !important; /* body already handles --header-offset */
    }
}