/* style/blog.css */

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

.page-blog {
    background-color: var(--page-blog-background);
    color: var(--page-blog-text-main);
    font-family: Arial, sans-serif;
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 60px;
    background-color: var(--page-blog-deep-green);
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for hero image */
}

.page-blog__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content up slightly over image for visual flow */
    background-color: var(--page-blog-card-bg);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
}

.page-blog__hero-title {
    color: var(--page-blog-text-main);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.page-blog__hero-description {
    color: var(--page-blog-text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Section Titles & Descriptions */
.page-blog__section-title {
    color: var(--page-blog-text-main);
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.page-blog__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-blog-glow-color);
    border-radius: 2px;
}

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

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

.page-blog__btn-primary {
    background: var(--page-blog-button-gradient);
    color: var(--page-blog-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(var(--page-blog-glow-color-rgb), 0.4);
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--page-blog-glow-color-rgb), 0.6);
    opacity: 0.9;
}

.page-blog__btn-secondary {
    background: none;
    color: var(--page-blog-glow-color);
    border: 2px solid var(--page-blog-glow-color);
    margin-left: 15px;
}

.page-blog__btn-secondary:hover {
    background: var(--page-blog-glow-color);
    color: var(--page-blog-background);
    transform: translateY(-3px);
}

/* Featured Posts Section */
.page-blog__featured-posts {
    padding: 60px 0;
    background-color: var(--page-blog-background);
}

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

.page-blog__card {
    background-color: var(--page-blog-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-blog-border-color);
}

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

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

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

.page-blog__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

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

.page-blog__card-excerpt {
    font-size: 1em;
    color: var(--page-blog-text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* All Posts Section */
.page-blog__all-posts {
    padding: 60px 0;
    background-color: var(--page-blog-deep-green);
}

.page-blog__posts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.page-blog__post-item {
    background-color: var(--page-blog-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-blog-border-color);
}

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

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

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

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

.page-blog__post-excerpt {
    font-size: 1em;
    color: var(--page-blog-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-blog__read-more {
    color: var(--page-blog-glow-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    text-decoration: underline;
    color: var(--page-blog-gold-color);
}

/* Pagination */
.page-blog__pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-blog__pagination-link {
    display: block;
    padding: 10px 18px;
    border-radius: 5px;
    background-color: var(--page-blog-card-bg);
    color: var(--page-blog-text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--page-blog-border-color);
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link--active {
    background: var(--page-blog-button-gradient);
    color: var(--page-blog-text-main);
    border-color: transparent;
}

/* CTA Banner */
.page-blog__cta-banner {
    padding: 80px 0;
    background-color: var(--page-blog-background);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-blog__cta-banner .page-blog__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-blog__cta-image {
    width: 100%;
    height: auto;
    max-width: 1000px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: block;
}

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

.page-blog__cta-title {
    color: var(--page-blog-glow-color);
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__cta-description {
    color: var(--page-blog-text-secondary);
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

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

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

.page-blog__faq-item {
    background-color: var(--page-blog-card-bg);
    border: 1px solid var(--page-blog-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.page-blog__faq-item summary:hover {
    color: var(--page-blog-glow-color);
}

.page-blog__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg);
}

.page-blog__faq-answer {
    padding: 0 25px 20px;
    color: var(--page-blog-text-secondary);
    line-height: 1.6;
    font-size: 1em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        margin-top: -60px;
        padding: 30px;
    }
    .page-blog__hero-title {
        font-size: 2.5em;
    }
    .page-blog__cta-title {
        font-size: 2.2em;
    }
}

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

    /* Hero Section */
    .page-blog__hero-section {
        padding-bottom: 40px;
    }
    .page-blog__hero-content {
        margin-top: -40px;
        padding: 20px;
    }
    .page-blog__hero-title {
        font-size: 2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 15px;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Section Titles & Descriptions */
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__section-description {
        font-size: 1em;
    }

    /* Featured Posts */
    .page-blog__cards-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__card-image {
        height: 200px;
    }

    /* All Posts */
    .page-blog__post-title {
        font-size: 1.3em;
    }

    /* CTA Banner */
    .page-blog__cta-banner {
        padding: 40px 0;
    }
    .page-blog__cta-image {
        margin-bottom: 30px;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }

    /* FAQ */
    .page-blog__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-blog__faq-answer {
        padding: 0 20px 15px;
    }

    /* Images responsive */
    .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__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-blog__hero-section, .page-blog__featured-posts, .page-blog__all-posts, .page-blog__cta-banner, .page-blog__faq-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}