.page-blog {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: var(--background-color, #08160F); /* Body Background */
    line-height: 1.6;
}

.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; /* Small top padding, larger bottom */
    text-align: center;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

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

.page-blog__hero-content {
    padding: 40px 20px;
    max-width: 800px;
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1;
    position: relative;
}

.page-blog__main-title {
    font-size: 2.8rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

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

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

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

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px #57E38D; /* Glow */
}

.page-blog__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Button color for text */
    border: 2px solid #2AD16F;
}

.page-blog__btn-secondary:hover {
    background: #2AD16F;
    color: #F2FFF6;
    box-shadow: 0 0 15px rgba(42, 209, 111, 0.5);
}

.page-blog__section-title {
    font-size: 2.2rem;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin: 60px 0 40px 0;
    font-weight: bold;
}

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

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

.page-blog__post-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    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(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-blog__post-title {
    font-size: 1.4rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-blog__post-excerpt {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
}

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

.page-blog__categories-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green */
}

.page-blog__category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-blog__category-item a {
    display: block;
    background-color: #11271B; /* Card BG */
    color: #F2FFF6; /* Text Main */
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #2E7A4E; /* Border */
}

.page-blog__category-item a:hover {
    background-color: #2AD16F; /* Button */
    color: #08160F; /* Dark text for contrast */
}

.page-blog__faq-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

.page-blog__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    background-color: transparent;
    list-style: none; /* For details/summary */
}

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

.page-blog__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #2AD16F; /* Button color */
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate */
}

.page-blog__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.7;
}

.page-blog__cta-banner {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
    text-align: center;
    overflow: hidden;
}

.page-blog__cta-banner .page-blog__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-blog__cta-content {
    max-width: 700px;
}

.page-blog__cta-title {
    font-size: 2.5rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-blog__cta-text {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-blog__cta-image {
    width: 100%;
    max-width: 400px; /* Limit image width */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: 2.2rem;
    }
    .page-blog__section-title {
        font-size: 2rem;
    }
    .page-blog__cta-title {
        font-size: 2rem;
    }
}

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

    .page-blog__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-blog__main-title {
        font-size: 1.8rem;
    }

    .page-blog__description {
        font-size: 1rem;
    }

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

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important; /* Force full width for mobile buttons */
        max-width: 100% !important;
        padding-left: 15px !important; /* Add padding for text */
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-blog__section-title {
        font-size: 1.8rem;
        margin: 40px 0 30px 0;
    }

    .page-blog__posts-grid {
        grid-template-columns: 1fr;
    }

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

    .page-blog__post-title {
        font-size: 1.2rem;
    }

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

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

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

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

    .page-blog__cta-title {
        font-size: 1.8rem;
    }

    .page-blog__cta-text {
        font-size: 1rem;
    }

    /* Mobile image responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-blog__hero-image-wrapper,
    .page-blog__latest-posts-section,
    .page-blog__posts-grid,
    .page-blog__post-card,
    .page-blog__categories-section,
    .page-blog__faq-section,
    .page-blog__faq-list,
    .page-blog__faq-item,
    .page-blog__cta-banner,
    .page-blog__cta-banner .page-blog__container,
    .page-blog__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-blog__hero-section {
        padding-top: 10px !important; /* body already has padding-top */
    }
}

@media (max-width: 480px) {
    .page-blog__main-title {
        font-size: 1.6rem;
    }
    .page-blog__section-title {
        font-size: 1.6rem;
    }
    .page-blog__cta-title {
        font-size: 1.6rem;
    }
}