.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly white background */
}

/* Hero Section */
.page-blog__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: #ffffff;
    color: #333333;
}

.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;
    margin-bottom: 30px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-blog__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-blog__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Using clamp for H1 font-size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for H1 */
}

.page-blog__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.page-blog__hero-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%; /* Ensure container width for responsiveness */
    max-width: 400px; /* Limit max width for desktop */
    margin: 0 auto;
    box-sizing: border-box;
}

/* General Section Styles */
.page-blog__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #26A9E0; /* Brand color for section titles */
}

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

.page-blog__paragraph {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

/* Introduction Section */
.page-blog__introduction-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

/* Categories Section */
.page-blog__categories-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Dark background */
    color: #ffffff; /* Light text for dark background */
}

.page-blog__categories-section .page-blog__section-title {
    color: #ffffff; /* White title for dark background */
}

.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-blog__category-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark bg */
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-blog__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-blog__category-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-blog__category-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Why Read Section */
.page-blog__why-read-section {
    padding: 60px 0;
    background-color: #f8f8f8;
    color: #333333;
}

.page-blog__why-read-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-blog__why-read-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__why-read-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

/* Featured Articles Section */
.page-blog__featured-articles-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-blog__article-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-blog__article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-blog__article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-blog__article-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.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; /* Darker shade on hover */
}

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

.page-blog__article-excerpt {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

.page-blog__faq-list {
    margin-top: 30px;
}

.page-blog__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #26A9E0;
    cursor: pointer;
    background-color: #eaf7ff; /* Lighter shade of brand color for summary background */
    border-bottom: 1px solid #d0e8f7;
    transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
    background-color: #d0e8f7;
}

.page-blog__faq-item[open] .page-blog__faq-question {
    background-color: #d0e8f7;
}

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

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

.page-blog__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: #555555;
    background-color: #ffffff;
    line-height: 1.6;
}

/* CTA Section */
.page-blog__cta-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Dark background */
    color: #ffffff; /* Light text for dark background */
    text-align: center;
}

.page-blog__cta-section .page-blog__section-title {
    color: #ffffff;
}

.page-blog__cta-section .page-blog__paragraph {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-blog__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%; /* Ensure container width for responsiveness */
    max-width: 400px; /* Limit max width for desktop */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width */
}

.page-blog__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-blog__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-blog__btn-secondary:hover {
    background-color: #eaf7ff;
    color: #1a7bb0;
    border-color: #1a7bb0;
}

.page-blog__btn-link {
    background: none;
    color: #26A9E0;
    border: 2px solid transparent;
    padding: 0;
    font-weight: 500;
    text-decoration: underline;
}

.page-blog__btn-link:hover {
    color: #1a7bb0;
    text-decoration: none;
}

/* Image/Video responsiveness and minimum size for content area */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px; /* Enforce min size for content images */
}

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

    .page-blog__section-title {
        font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    }
}

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

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

    .page-blog__hero-content {
        padding: 0 15px;
    }

    .page-blog__hero-cta-buttons,
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px;
    }
    
    .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__container {
        padding: 0 15px;
    }

    .page-blog__category-grid,
    .page-blog__why-read-grid,
    .page-blog__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__category-card,
    .page-blog__why-read-item,
    .page-blog__article-card {
        padding: 20px;
    }

    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size for content images */
        min-height: 200px !important; /* Enforce min size for content images */
    }

    .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;
    }

    .page-blog__video-section {
        padding-top: 10px !important; /* body đã đảm nhận --header-offset, cấm var(--header-offset) tại đây */
    }

    .page-blog video,
    .page-blog__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-blog__video-section,
    .page-blog__video-container,
    .page-blog__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}

/* Ensure minimal image size for all content images */
.page-blog__hero-image,
.page-blog__category-image,
.page-blog__article-image {
    min-width: 200px;
    min-height: 200px;
}