/* style/blog.css */

/* Base styles for the blog page, ensuring text is light on the dark body background */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for 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;
}

/* Hero Section */
.page-blog__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background: linear-gradient(135deg, #1a1a2e 0%, #26A9E0 100%); /* Blend with brand color */
    position: relative;
    overflow: hidden;
}

.page-blog__hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above image if any overlap */
    margin-bottom: 30px;
    max-width: 800px;
}

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

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

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Ensure it doesn't get too wide */
    margin-top: 30px; /* Separates image from text */
    position: relative;
    z-index: 1; /* Image below text content if needed */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-blog__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

/* Article Section */
.page-blog__articles-section {
    background-color: #ffffff; /* Light background for article cards */
    padding: 60px 0;
    color: #333333; /* Dark text for light background */
}

.page-blog__article-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: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    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 16px rgba(0, 0, 0, 0.15);
}

.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: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__article-title a {
    color: #26A9E0; /* Brand color for article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: #1a7bb0; /* Slightly darker on hover */
}

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

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

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

/* Feature Section */
.page-blog__features-section {
    background-color: #1a1a2e; /* Dark background */
    padding: 60px 0;
    color: #ffffff; /* Light text */
}

.page-blog__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.page-blog__feature-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark bg */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-blog__feature-item:hover {
    transform: translateY(-8px);
}

.page-blog__feature-icon {
    width: 100px; /* Example size for feature icon */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__feature-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-blog__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

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

/* Guide Section */
.page-blog__guide-section {
    background-color: #ffffff; /* Light background */
    padding: 60px 0;
    color: #333333; /* Dark text */
}

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

.page-blog__guide-text {
    flex: 1;
    min-width: 300px;
}

.page-blog__guide-subtitle {
    font-size: 1.6em;
    font-weight: bold;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-blog__guide-list {
    list-style-type: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-blog__guide-list li {
    margin-bottom: 8px;
    color: #555555;
}

.page-blog__guide-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-blog__guide-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

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

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

.page-blog__faq-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for items */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #26A9E0; /* Brand color for question background */
    border-radius: 8px; /* Apply border-radius to summary */
}

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

.page-blog__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

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

/* Call to Action Bottom Section */
.page-blog__cta-bottom-section {
    background-color: #1a1a2e; /* Dark background */
    padding: 60px 0;
    text-align: center;
    color: #ffffff;
}

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

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure button doesn't exceed container width */
}

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

.page-blog__btn-primary:hover {
    background-color: #1a7bb0; /* Darker shade on hover */
    border-color: #1a7bb0;
}

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

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

.page-blog__btn-download {
    background-color: #EA7C07; /* Login/Download specific color */
    border-color: #EA7C07;
    color: #ffffff;
}
.page-blog__btn-download:hover {
    background-color: #d16a06;
    border-color: #d16a06;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-section {
        padding: 40px 20px;
        padding-top: 10px;
    }

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

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

    .page-blog__article-image {
        height: 200px;
    }

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

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

    .page-blog__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

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

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

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

    /* Images responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Containers responsiveness */
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__article-card,
    .page-blog__feature-item,
    .page-blog__guide-section .page-blog__container,
    .page-blog__faq-section .page-blog__container,
    .page-blog__cta-bottom-section .page-blog__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Guide section layout for mobile */
    .page-blog__guide-content {
        flex-direction: column;
    }

    /* Buttons responsiveness */
    .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; /* Make buttons full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add some padding to prevent text touching edges */
        padding-right: 15px;
    }

    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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