/* style/blog.css */

/* General styles for the blog page */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Text Main */
    background: #F5F7FA; /* Background */
}

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

/* Hero Section (Banner for Blog Page) */
.page-blog__hero-section {
    background: #F5F7FA; /* Background */
    padding-top: 10px; /* Small top padding, relies on body padding-top */
    padding-bottom: 40px;
    color: #333333;
}

.page-blog__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-blog__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-blog__main-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #E53935; /* Primary color for main title */
}

.page-blog__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #333333;
}

.page-blog__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For responsiveness */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

.page-blog__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

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

.page-blog__hero-image {
    flex: 1 1 40%;
    text-align: center;
    min-width: 300px;
}

.page-blog__side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Articles Section */
.page-blog__articles-section {
    padding: 60px 0;
    background: #F5F7FA; /* Background */
}

.page-blog__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #E53935; /* Primary color */
    text-align: center;
    margin-bottom: 50px;
}

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

.page-blog__article-card {
    background: #ffffff; /* Card BG */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E0E0E0; /* Border */
}

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

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

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

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

.page-blog__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #E53935; /* Primary color for title */
    line-height: 1.3;
}

.page-blog__card-date {
    font-size: 0.9em;
    color: #666666;
    margin-bottom: 15px;
    display: block;
}

.page-blog__card-excerpt {
    font-size: 1em;
    color: #333333;
    margin-bottom: 20px;
}

.page-blog__read-more {
    color: #E53935; /* Primary color */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-blog__arrow-icon {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__arrow-icon {
    transform: translateX(5px);
}

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

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background: #F5F7FA; /* Background */
}

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

.page-blog__faq-item {
    background: #ffffff; /* Card BG */
    border: 1px solid #E0E0E0; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #E53935; /* Primary color */
    cursor: pointer;
    background: #ffffff;
    list-style: none; /* Remove default marker for details summary */
}

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

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

.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 for 'x' effect */
}

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

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


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-blog__hero-container {
        gap: 30px;
        padding: 30px 16px;
    }

    .page-blog__main-title {
        font-size: 2.5em;
    }

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

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

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

    .page-blog__card-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    /* General Mobile Styles */
    .page-blog {
        font-size: 15px;
    }

    .page-blog__container,
    .page-blog__hero-container,
    .page-blog__articles-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-x: hidden; /* Prevent horizontal scroll */
    }

    /* Hero Section Mobile */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding, relies on body padding-top */
        padding-bottom: 30px;
    }

    .page-blog__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 20px;
    }

    .page-blog__hero-content {
        flex: 1 1 100%;
        min-width: unset;
    }

    .page-blog__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-blog__description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 10px; /* Adjust padding for buttons within container */
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
    }

    .page-blog__hero-image {
        flex: 1 1 100%;
        min-width: unset;
        order: -1; /* Image appears above content on mobile */
    }

    .page-blog__side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Articles Section Mobile */
    .page-blog__articles-section {
        padding: 40px 0;
    }

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

    .page-blog__article-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-blog__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: 200px !important; /* Adjusted height for mobile cards */
    }

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

    .page-blog__card-excerpt {
        font-size: 0.95em;
    }

    .page-blog__view-all {
        margin-top: 40px;
    }

    /* FAQ Section Mobile */
    .page-blog__faq-section {
        padding: 40px 0;
    }

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

    .page-blog__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* General Image Responsive Rules */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
}