/* style/blog.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --background-color: #08160F;
    --card-bg-color: #11271B;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-blog {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Sử dụng màu chữ chính */
    background-color: var(--background-color); /* Sử dụng màu nền chính */
    line-height: 1.6;
}

.page-blog a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-blog a:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Chỉ sử dụng padding-top nhỏ */
    background-color: var(--deep-green-color);
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
}

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

.page-blog__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.page-blog__hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.page-blog__hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-blog__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-blog__section-description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--text-secondary-color);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-blog__article-card, .page-blog__promo-card, .page-blog__strategy-item, .page-blog__security-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover, .page-blog__promo-card:hover, .page-blog__strategy-item:hover, .page-blog__security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__article-image, .page-blog__promo-image, .page-blog__strategy-image, .page-blog__security-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

.page-blog__article-title, .page-blog__promo-title, .page-blog__strategy-title, .page-blog__security-title {
    font-size: 1.3rem;
    color: var(--text-main-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__article-title a, .page-blog__promo-title a, .page-blog__strategy-title a, .page-blog__security-title a {
    color: var(--text-main-color);
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover, .page-blog__promo-title a:hover, .page-blog__strategy-title a:hover, .page-blog__security-title a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-blog__article-meta {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    margin-bottom: 15px;
}

.page-blog__article-excerpt, .page-blog__promo-text, .page-blog__strategy-text, .page-blog__security-text {
    font-size: 1rem;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: bold;
    margin-top: auto;
}

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

.page-blog__btn-primary, .page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-blog__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

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

.page-blog__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-blog__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--background-color);
}

.page-blog__strategy-grid, .page-blog__promotion-cards, .page-blog__security-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-blog__strategy-item, .page-blog__security-item {
    text-align: center;
    padding-bottom: 20px;
}

.page-blog__strategy-item img, .page-blog__security-item img {
    
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-blog__faq-section {
    background-color: var(--deep-green-color);
    padding: 60px 20px;
    border-radius: 10px;
    max-width: 1200px;
    margin: 40px auto;
}

.page-blog__faq-section .page-blog__section-title {
    color: var(--gold-color);
    margin-bottom: 40px;
}

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

.page-blog__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    color: var(--text-main-color);
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

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

.page-blog__faq-question .page-blog__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--secondary-color);
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    content: '−';
}

.page-blog__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary-color);
    line-height: 1.6;
    border-top: 1px solid var(--divider-color);
}

.page-blog__cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--deep-green-color);
    margin-top: 40px;
}

.page-blog__cta-section .page-blog__section-title {
    color: var(--gold-color);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        padding: 15px;
    }
    .page-blog__hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    .page-blog__hero-description {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    }
}

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-blog__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-blog__hero-content {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        padding: 20px;
        background-color: var(--deep-green-color);
        border-radius: 0;
    }
    .page-blog__hero-image-wrapper {
        max-height: 300px;
    }
    .page-blog__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-blog__hero-description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
    .page-blog__section {
        padding: 40px 15px;
    }
    .page-blog__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
    .page-blog__section-description {
        font-size: clamp(0.85rem, 2.2vw, 1rem);
    }
    .page-blog__article-list,
    .page-blog__strategy-grid,
    .page-blog__promotion-cards,
    .page-blog__security-content {
        grid-template-columns: 1fr;
    }
    .page-blog__article-card, .page-blog__promo-card, .page-blog__strategy-item, .page-blog__security-item {
        margin-bottom: 20px;
    }
    .page-blog__article-image, .page-blog__promo-image, .page-blog__strategy-image, .page-blog__security-image {
        height: 180px;
    }

    /* Mobile responsive image styles */
    .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,
    .page-blog__hero-section,
    .page-blog__faq-section,
    .page-blog__cta-section,
    .page-blog__article-list,
    .page-blog__strategy-grid,
    .page-blog__promotion-cards,
    .page-blog__security-content,
    .page-blog__hero-actions,
    .page-blog__cta-actions {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-blog__hero-actions, .page-blog__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        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__faq-section {
        padding: 40px 15px;
    }
    .page-blog__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-blog__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.95rem;
    }
    .page-blog__cta-section {
        padding: 50px 15px;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-blog__hero-description {
        font-size: clamp(0.8rem, 3vw, 0.95rem);
    }
    .page-blog__section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
    .page-blog__article-title, .page-blog__promo-title, .page-blog__strategy-title, .page-blog__security-title {
        font-size: 1.1rem;
    }
    .page-blog__article-meta, .page-blog__article-excerpt, .page-blog__promo-text, .page-blog__strategy-text, .page-blog__security-text {
        font-size: 0.9rem;
    }
    .page-blog__faq-question {
        font-size: 0.95rem;
    }
    .page-blog__faq-answer {
        font-size: 0.9rem;
    }
}