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

.page-blog {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for the page */
    background-color: var(--background-color);
    line-height: 1.6;
}

.page-blog__section {
    padding: 60px 0;
    position: relative;
}

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

.page-blog__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-blog__section-description {
    font-size: 18px;
    color: var(--text-secondary-color);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding */
    background-color: var(--background-color);
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
}

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

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 60px;
}

.page-blog__main-title {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-blog__subtitle {
    font-size: 20px;
    color: var(--text-main-color);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-blog__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-blog__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Latest Articles Section */
.page-blog__latest-articles {
    background-color: var(--background-color);
}

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

.page-blog__article-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-blog__card-title {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: bold;
}

.page-blog__card-title a {
    color: var(--gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
    color: var(--glow-color);
}

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

.page-blog__card-summary {
    font-size: 16px;
    color: var(--text-main-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

/* Featured Topics Section */
.page-blog__featured-topics {
    background-color: var(--deep-green-color);
}

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

.page-blog__topic-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-blog__topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__topic-image {
    width: 200px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-blog__topic-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-blog__topic-title a {
    color: var(--gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__topic-title a:hover {
    color: var(--glow-color);
}

.page-blog__topic-description {
    font-size: 15px;
    color: var(--text-secondary-color);
}

/* Why Choose Us Section */
.page-blog__why-choose-us {
    background-color: var(--background-color);
}

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

.page-blog__feature-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.page-blog__feature-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-blog__feature-title {
    font-size: 24px;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-blog__feature-text {
    font-size: 16px;
    color: var(--text-secondary-color);
}

.page-blog__additional-info {
    font-size: 17px;
    color: var(--text-main-color);
    text-align: center;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-blog__faq-section {
    background-color: var(--deep-green-color);
}

.page-blog__faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-blog__faq-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-blog__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 19px;
    font-weight: bold;
    color: var(--gold-color);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
}

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

.page-blog__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

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

.page-blog__faq-toggle {
    font-size: 24px;
    font-weight: normal;
    margin-left: 15px;
    color: var(--glow-color);
}

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

.page-blog__faq-item[open] summary {
    background-color: rgba(255, 255, 255, 0.08);
    border-bottom: none;
}

.page-blog__faq-item[open] .page-blog__faq-answer {
    border-top: none;
}

/* CTA Section */
.page-blog__cta-section {
    background-color: var(--background-color);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-image-wrapper {
        max-height: 500px;
    }
}

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

    .page-blog__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-blog__section-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .page-blog__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-blog__hero-section {
        padding-top: 10px !important; /* body has --header-offset */
    }

    .page-blog__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-blog__hero-content {
        padding: 15px;
        margin-bottom: 30px;
    }

    .page-blog__main-title {
        font-size: clamp(28px, 7vw, 48px);
        margin-bottom: 15px;
    }

    .page-blog__subtitle {
        font-size: 17px;
        margin-bottom: 20px;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* For stacking buttons */
    }

    .page-blog__articles-grid,
    .page-blog__topics-grid,
    .page-blog__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .page-blog__card-title {
        font-size: 20px;
    }

    .page-blog__card-meta,
    .page-blog__card-summary {
        font-size: 15px;
    }

    .page-blog__topic-image {
        width: 150px;
        height: 100px;
    }

    .page-blog__feature-icon {
        width: 100px;
        height: 100px;
    }

    .page-blog__feature-title {
        font-size: 20px;
    }

    .page-blog__feature-text {
        font-size: 15px;
    }

    .page-blog__faq-item summary {
        font-size: 17px;
        padding: 15px 20px;
    }

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

    /* Ensure all images are responsive */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all video containers are responsive */
    .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 button containers are responsive */
    .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;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-image-wrapper {
        max-height: 200px;
    }

    .page-blog__main-title {
        font-size: clamp(24px, 8vw, 38px);
    }

    .page-blog__subtitle {
        font-size: 16px;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        font-size: 15px;
        padding: 10px 15px;
    }
}