/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text on dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    color: #FFFFFF;
}

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

.page-blog__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Blog Posts Grid */
.page-blog__posts-section {
    padding: 60px 0;
    background-color: #0a0a0a; /* Dark background for section */
}

.page-blog__posts-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.08); /* Slightly transparent white for cards */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

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

.page-blog__post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.page-blog__post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-blog__post-content {
    padding: 20px;
}

.page-blog__post-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #26A9E0; /* Brand color for titles */
}

.page-blog__post-excerpt {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-blog__post-meta {
    font-size: 0.85em;
    color: #aaaaaa;
}

/* Pagination */
.page-blog__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 15px;
}

.page-blog__pagination-link,
.page-blog__pagination-current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-blog__pagination-link:hover {
    background-color: #1e87c2;
}

.page-blog__pagination-current {
    background-color: #FFFFFF;
    color: #26A9E0;
    cursor: default;
}

/* Call to Action Section */
.page-blog__cta-section {
    padding: 80px 0;
    background-color: #26A9E0;
    text-align: center;
    color: #FFFFFF;
}

.page-blog__cta-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-blog__cta-image {
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-content {
    max-width: 500px;
    text-align: left;
}

.page-blog__cta-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-blog__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

.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;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    user-select: none;
    background-color: rgba(255, 255, 255, 0.05);
}

.page-blog__faq-item details > summary {
    list-style: none;
}

.page-blog__faq-item details > summary::-webkit-details-marker {
    display: none;
}

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

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

/* Buttons */
.page-blog__btn-primary {
    display: inline-block;
    background-color: #EA7C07; /* Login color */
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-blog__cta-container {
        flex-direction: column;
        text-align: center;
    }

    .page-blog__cta-content {
        text-align: center;
    }
}

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

    .page-blog__container {
        padding: 0 15px;
    }

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

    .page-blog__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

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

    .page-blog__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-blog__posts-section, .page-blog__cta-section, .page-blog__faq-section {
        padding: 40px 0;
    }

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

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

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

    .page-blog__cta-title {
        font-size: 1.8em;
    }

    .page-blog__cta-image {
        max-width: 100%;
    }

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

    /* Mobile image, video, button adaptation */
    .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__posts-section,
    .page-blog__cta-section,
    .page-blog__faq-section,
    .page-blog__posts-grid,
    .page-blog__cta-container,
    .page-blog__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-blog__hero-section {
        padding-top: 10px !important;
    }

    .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;
        flex-direction: column;
    }
}