/* style/blog.css */

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

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

.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small padding-top as body handles header offset */
    box-sizing: border-box;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    color: var(--color-text-main);
}

.page-blog__main-title {
    font-size: clamp(2.2em, 5vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__intro-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-blog__cta-button:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
    transform: translateY(-2px);
}

.page-blog__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-gold);
}

.page-blog__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--color-text-secondary);
}

.page-blog__latest-posts,
.page-blog__why-choose-us,
.page-blog__faq-section {
    padding: 60px 20px;
    background-color: #ffffff; /* Light background for these sections */
    color: #333333; /* Dark text for light background */
}

.page-blog__latest-posts .page-blog__section-title,
.page-blog__why-choose-us .page-blog__section-title,
.page-blog__faq-section .page-blog__section-title {
    color: var(--color-deep-green);
}

.page-blog__latest-posts .page-blog__section-description,
.page-blog__why-choose-us .page-blog__section-description,
.page-blog__faq-section .page-blog__section-description {
    color: #555555;
}

.page-blog__dark-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
    padding: 60px 20px;
}

.page-blog__post-grid,
.page-blog__category-grid,
.page-blog__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-blog__post-card,
.page-blog__category-card,
.page-blog__feature-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.page-blog__latest-posts .page-blog__post-card {
    background-color: #f8f8f8;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-blog__latest-posts .page-blog__post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.page-blog__post-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.page-blog__post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__post-image {
    transform: scale(1.05);
}

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

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

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

.page-blog__latest-posts .page-blog__post-title a {
    color: var(--color-deep-green);
}

.page-blog__post-title a:hover {
    color: var(--color-gold);
}

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

.page-blog__latest-posts .page-blog__post-meta {
    color: #777777;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__latest-posts .page-blog__post-excerpt {
    color: #555555;
}

.page-blog__read-more {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__latest-posts .page-blog__read-more {
    color: var(--color-button-gradient-end);
}

.page-blog__read-more:hover {
    color: var(--color-gold);
}

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

.page-blog__category-card {
    text-align: center;
    padding: 30px;
    color: var(--color-text-main);
    background-color: var(--color-card-bg);
}

.page-blog__category-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-blog__category-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-blog__category-title a {
    color: var(--color-gold);
    text-decoration: none;
}

.page-blog__category-title a:hover {
    color: var(--color-primary);
}

.page-blog__category-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

.page-blog__feature-item {
    text-align: center;
    padding: 30px;
    background-color: #f8f8f8;
    color: #333333;
    border: 1px solid #e0e0e0;
}

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

.page-blog__feature-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-deep-green);
}

.page-blog__feature-description {
    font-size: 0.95em;
    color: #555555;
}

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

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

.page-blog__cta-text {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--color-text-main);
}

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

.page-blog__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
}

.page-blog__btn-secondary {
    background: #ffffff;
    color: var(--color-deep-green);
    border: 2px solid var(--color-deep-green);
}

.page-blog__btn-secondary:hover {
    background: var(--color-deep-green);
    color: #ffffff;
}

.page-blog__faq-section {
    padding: 60px 20px;
}

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

.page-blog__faq-item {
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--color-deep-green);
    background-color: #e8e8e8;
    transition: background-color 0.3s ease;
}

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

.page-blog__faq-item summary:hover {
    background-color: #e0e0e0;
}

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-primary);
}

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

.page-blog__faq-answer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    color: #555555;
    background-color: #ffffff;
    font-size: 1em;
}

.page-blog__faq-answer p {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__post-grid,
    .page-blog__category-grid,
    .page-blog__feature-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-blog__hero-section {
        padding: 10px 15px 40px;
    }
    .page-blog__main-title {
        font-size: clamp(1.8em, 7vw, 2.8em);
    }
    .page-blog__intro-description {
        font-size: 1em;
    }
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-blog__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-blog__latest-posts,
    .page-blog__dark-bg,
    .page-blog__why-choose-us,
    .page-blog__faq-section,
    .page-blog__cta-section {
        padding: 40px 15px;
    }
    .page-blog__post-grid,
    .page-blog__category-grid,
    .page-blog__feature-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-blog__post-card,
    .page-blog__category-card,
    .page-blog__feature-item {
        margin: 0 auto;
        max-width: 400px; /* Constrain single column cards */
    }

    /* Mobile image responsive adaptation */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-blog__hero-image-wrapper,
    .page-blog__post-image-wrapper,
    .page-blog__category-card,
    .page-blog__feature-item,
    .page-blog__post-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile button responsive adaptation */
    .page-blog__cta-button,
    .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__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-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

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