/* style/blog.css */

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

.page-blog__dark-section {
    background-color: #0d0d0d; /* Slightly lighter than body for contrast */
    color: #ffffff;
    padding: 60px 0;
}

.page-blog__light-bg {
    background-color: #1a1a1a; /* Dark gray for contrast */
    color: #ffffff;
    padding: 60px 0;
}

.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: #0a0a0a;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* 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;
    min-height: 300px;
}

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

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

.page-blog__btn-primary {
    display: inline-block;
    background-color: #26A9E0;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border: 2px solid #26A9E0;
    box-sizing: border-box;
}

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

.page-blog__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

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

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

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

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

.page-blog__post-title {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-blog__post-title a:hover {
    color: #26A9E0;
}

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

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

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

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

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

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

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

.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    justify-content: center;
}

.page-blog__category-card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-blog__category-card:hover {
    background-color: #26A9E0;
    color: #ffffff;
    border-color: #26A9E0;
}

.page-blog__cta-description {
    text-align: center;
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-blog__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    list-style: none;
}

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

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

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

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
    color: #EA7C07;
}

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

/* Responsive styles */
@media (max-width: 768px) {
    .page-blog__container,
    .page-blog__hero-content,
    .page-blog__posts-section .page-blog__container,
    .page-blog__categories-section .page-blog__container,
    .page-blog__cta-section .page-blog__container,
    .page-blog__faq-section .page-blog__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-blog__hero-image {
        min-height: 200px;
    }

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

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

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

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

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

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

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

    .page-blog__category-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .page-blog__category-card {
        font-size: 0.95rem;
        padding: 15px;
    }

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

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

    /* Ensure all images are responsive */
    .page-blog img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}