/* style/blog.css */
/* body đã padding-top: var(--header-offset)；trang không được viết lại biến này */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

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

.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* body đã xử lý padding-top, chỉ cần padding nhỏ */
    background-color: #08160F; /* Background */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-blog__hero-content {
    text-align: center;
    padding: 30px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__hero-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
}

.page-blog__hero-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    border: none;
}

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

.page-blog__btn-secondary {
    background: transparent;
    color: #F2FFF6; /* Text Main */
    border: 2px solid #2E7A4E; /* Border */
}

.page-blog__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-blog__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-blog__latest-posts,
.page-blog__categories,
.page-blog__cta-section {
    background-color: #08160F; /* Background */
    padding: 60px 0;
}

.page-blog__featured-articles,
.page-blog__about-blog,
.page-blog__faq-section {
    background-color: #11271B; /* Card BG */
    padding: 60px 0;
}

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

.page-blog__post-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-blog__post-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: #2AD16F;
}

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

.page-blog__post-excerpt {
    font-size: 1em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Giới hạn 3 dòng */
    -webkit-box-orient: vertical;
}

.page-blog__read-more {
    display: inline-block;
    color: #57E38D; /* Glow */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: #2AD16F;
}

.page-blog__view-all {
    text-align: center;
}

.page-blog__categories {
    padding: 60px 0;
}

.page-blog__category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-blog__category-item {
    display: inline-block;
    background-color: #11271B; /* Card BG */
    color: #A7D9B8; /* Text Secondary */
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #2E7A4E; /* Border */
}

.page-blog__category-item:hover {
    background-color: #2AD16F;
    color: #08160F;
}

.page-blog__about-blog .page-blog__about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
}

.page-blog__about-image {
    flex: 0 0 400px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.page-blog__text-block {
    flex: 1;
    min-width: 300px;
    font-size: 1em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
}

.page-blog__text-block:last-child {
    margin-bottom: 0;
}

.page-blog__cta-text {
    font-size: 1.2em;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-blog__faq-item {
    background-color: #08160F; /* Background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    background-color: #11271B; /* Card BG */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-blog__faq-question:hover {
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg);
}

.page-blog__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    background-color: #08160F; /* Background */
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-blog__hero-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

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

    .page-blog__about-blog .page-blog__about-content {
        flex-direction: column;
        align-items: center;
    }

    .page-blog__about-image {
        flex: none;
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .page-blog__container {
        padding: 0 15px;
    }

    .page-blog__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

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

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

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

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

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

    .page-blog__latest-posts,
    .page-blog__featured-articles,
    .page-blog__categories,
    .page-blog__about-blog,
    .page-blog__cta-section,
    .page-blog__faq-section {
        padding: 40px 0;
    }

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

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

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

    .page-blog__post-excerpt {
        -webkit-line-clamp: 4;
    }

    .page-blog__category-list {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .page-blog__category-item {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 12px 15px;
    }

    .page-blog__about-image {
        width: 100%;
    }

    .page-blog__text-block {
        font-size: 0.95em;
    }

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

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

    /* Mobile image responsiveness */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: clamp(1.2em, 7vw, 2em);
    }

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

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

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

    .page-blog__post-excerpt {
        font-size: 0.9em;
    }
}