/* style/blog.css */

/* Base styles for the page-blog scope */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main for dark body background */
    background: #B71C1C; /* Body Background */
}

/* Container for consistent spacing */
.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-blog__section-title {
    font-size: 3em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #FFD86A; /* Gold-like color for titles */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-blog__sub-title {
    font-size: 2em;
    font-weight: 600;
    color: #F4D34D; /* Gold */
    margin-top: 30px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    padding-top: 10px; /* Specific top padding */
    margin-bottom: 40px;
    background: #7A0E0E; /* Deep Red */
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: 600px; /* Fixed height for desktop hero */
    overflow: hidden;
}

.page-blog__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop */
    display: block;
}

.page-blog__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 8px;
    margin-top: -100px; /* Pull content up slightly over the image */
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 800;
    color: #FFD86A; /* Gold-like color */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-blog__intro-text {
    font-size: 1.2em;
    color: #FFF5E1;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* CTA Button */
.page-blog__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
    color: #7A0E0E; /* Deep Red text for contrast */
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #F2B544; /* Border */
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Blog Posts Grid */
.page-blog__latest-posts-section {
    padding: 60px 0;
    background: #D32F2F; /* Card BG */
}

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

.page-blog__post-card {
    background: #7A0E0E; /* Deep Red for card background */
    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;
    border: 1px solid #F2B544; /* Border */
}

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

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

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

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

.page-blog__post-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #FFD86A; /* Gold-like color for post titles */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-meta {
    font-size: 0.9em;
    color: #F4D34D; /* Gold */
    margin-bottom: 15px;
}

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

.page-blog__read-more {
    display: inline-block;
    color: #FFD86A; /* Gold-like color */
    font-weight: bold;
    text-decoration: underline;
}

.page-blog__view-all-button-container {
    text-align: center;
    margin-top: 40px;
}

.page-blog__btn-secondary {
    background: #C91F17; /* Main color */
    color: #FFF5E1; /* Text Main */
    border: 2px solid #F2B544; /* Border */
}

.page-blog__btn-secondary:hover {
    background: #E53935; /* Auxiliary color */
}

/* SEO Content Section */
.page-blog__seo-content-section {
    padding: 60px 0;
    background: #B71C1C; /* Body Background - dark */
    color: #FFF5E1; /* Text Main - light */
}

.page-blog__article-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
}

.page-blog__article-body h3 {
    color: #FFD86A; /* Gold-like color */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-blog__article-body p {
    margin-bottom: 1em;
    color: #FFF5E1;
}

.page-blog__article-body ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

.page-blog__article-body li {
    margin-bottom: 0.5em;
    color: #FFF5E1;
}

.page-blog__article-body strong {
    color: #FFD86A;
}

.page-blog__article-figure {
    margin: 30px 0;
    text-align: center;
}

.page-blog__article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.page-blog__figcaption {
    font-size: 0.9em;
    color: #F4D34D; /* Gold */
    margin-top: 10px;
}

.page-blog__cta-banner {
    position: relative;
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid #F2B544; /* Border */
}

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

.page-blog__cta-banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    padding: 20px;
    box-sizing: border-box;
}

.page-blog__cta-banner-title {
    font-size: 2.5em;
    color: #FFD86A; /* Gold-like color */
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__cta-banner-text {
    font-size: 1.1em;
    color: #FFF5E1;
    margin-bottom: 25px;
    max-width: 700px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
    color: #7A0E0E; /* Deep Red text */
    border: 2px solid #F2B544; /* Border */
}

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

details.page-blog__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #F2B544; /* Border */
    overflow: hidden;
    background: #D32F2F; /* Card BG */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-blog__faq-item summary.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #FFD86A; /* Gold-like color */
    font-weight: bold;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
    display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
    background: #E53935; /* Auxiliary color on hover */
}
.page-blog__faq-qtext {
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFD86A;
}
.page-blog__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #F4D34D; /* Gold */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
    background: #7A0E0E; /* Deep Red */
    border-radius: 0 0 8px 8px;
    color: #FFF5E1;
}

/* General image styling for the page */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        margin-top: -80px;
        padding: 30px 20px;
    }
    .page-blog__main-title {
        font-size: clamp(2.2em, 4.5vw, 3em);
    }
    .page-blog__intro-text {
        font-size: 1.1em;
    }
    .page-blog__section-title {
        font-size: 2.5em;
    }
    .page-blog__sub-title {
        font-size: 1.8em;
    }
    .page-blog__post-card {
        max-width: 450px;
        margin: 0 auto;
    }
    .page-blog__posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    .page-blog__cta-banner-title {
        font-size: 2em;
    }
    .page-blog__cta-banner-text {
        font-size: 1em;
    }
    .page-blog__faq-qtext {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-blog__hero-section {
        padding-top: 10px;
        margin-bottom: 30px;
    }
    .page-blog__hero-image {
        height: 300px;
    }
    .page-blog__hero-image img {
        object-fit: contain !important;
        aspect-ratio: unset !important;
    }
    .page-blog__hero-content {
        margin-top: -50px;
        padding: 20px 15px;
    }
    .page-blog__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-blog__intro-text {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-blog__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Sản phẩm/Blog Post Grid */
    .page-blog__posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__post-card {
        max-width: 100%;
    }
    .page-blog__latest-posts-section {
        overflow-x: hidden;
    }

    /* Tiêu đề & Nội dung SEO */
    .page-blog__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-blog__section-title {
        font-size: 2em;
        margin-bottom: 30px;
        line-height: 1.3;
    }
    .page-blog__sub-title {
        font-size: 1.5em;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-blog__article-body {
        font-size: 1em;
    }
    .page-blog__article-figure {
        margin: 20px 0;
    }
    .page-blog__article-figure img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Hình ảnh chung & container */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-blog__post-image {
        height: 180px;
    }
    .page-blog__cta-banner-image {
        height: 150px;
    }

    /* Nút & container nút */
    .page-blog__view-all-button-container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-blog__cta-banner-content {
        padding: 15px;
    }
    .page-blog__cta-banner-title {
        font-size: 1.8em;
        margin-bottom: 10px;
    }
    .page-blog__cta-banner-text {
        font-size: 0.9em;
        margin-bottom: 15px;
    }
    .page-blog__btn-primary, .page-blog__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .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;
    }
    .page-blog__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* FAQ */
    details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
    .page-blog__faq-qtext { font-size: 1em; }
    .page-blog__faq-toggle { font-size: 20px; }
    details.page-blog__faq-item .page-blog__faq-answer { padding: 0 15px 15px; }
}