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

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

.page-blog__dark-section {
    background-color: var(--background-dark);
    color: var(--text-main);
}

.page-blog__light-bg {
    background-color: var(--text-light);
    color: var(--text-dark);
}

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

.page-blog__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__dark-section .page-blog__section-title {
    color: var(--text-main);
}

.page-blog__light-bg .page-blog__section-title {
    color: var(--text-dark);
}

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

.page-blog__light-bg .page-blog__section-description {
    color: #666;
}

.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has padding-top from shared */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
}

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

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

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
}

.page-blog__main-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--gold-color);
    line-height: 1.2;
}

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

.page-blog__btn-primary {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.page-blog__btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

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

.page-blog__latest-posts {
    padding: 60px 0;
}

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

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

.page-blog__post-card:hover {
    transform: translateY(-5px);
}

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

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

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

.page-blog__post-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-main);
    line-height: 1.3;
}

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

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

.page-blog__button-container {
    text-align: center;
}

.page-blog__view-all-button {
    min-width: 200px;
}

.page-blog__categories {
    padding: 60px 0;
}

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

.page-blog__category-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-blog__category-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px var(--glow-color));
}

.page-blog__category-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main);
}

.page-blog__cta-section {
    padding: 80px 0;
}

.page-blog__cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-text {
    flex: 1;
    text-align: left;
}

.page-blog__cta-text .page-blog__section-title {
    text-align: left;
    color: var(--gold-color);
}

.page-blog__cta-text .page-blog__section-description {
    text-align: left;
    color: var(--text-secondary);
}

.page-blog__cta-buttons {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.page-blog__cta-image-wrapper {
    flex-shrink: 0;
    width: 400px;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
}

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

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

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

.page-blog__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main);
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    list-style: none;
}

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

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

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

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

.page-blog__faq-answer {
    padding: 20px 25px;
    font-size: 16px;
    color: var(--text-secondary);
}

.page-blog__contact-cta {
    padding: 60px 0;
    text-align: center;
}

.page-blog__contact-button {
    min-width: 200px;
    margin-top: 20px;
}

/* Common image responsive styles */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-blog__section, .page-blog__card, .page-blog__container, .page-blog__button-container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile Responsive Styles */
@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-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-blog__hero-image {
        object-fit: contain !important;
        height: auto !important;
        max-height: 300px;
    }

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

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

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

    .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__button-container,
    .page-blog__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .page-blog__section-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 15px;
    }

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

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

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

    .page-blog__post-title {
        font-size: 18px;
    }

    .page-blog__categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__category-icon {
        width: 80px;
        height: 80px;
    }

    .page-blog__category-title {
        font-size: 18px;
    }

    .page-blog__cta-content {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }

    .page-blog__cta-text {
        text-align: center;
    }

    .page-blog__cta-text .page-blog__section-title,
    .page-blog__cta-text .page-blog__section-description {
        text-align: center;
    }

    .page-blog__cta-image-wrapper {
        width: 100%;
        height: auto;
        max-height: 250px;
    }

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

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

    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-blog__section,
    .page-blog__card,
    .page-blog__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__contact-cta {
        padding: 40px 0;
    }
}

@media (max-width: 1024px) {
    .page-blog__posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .page-blog__categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .page-blog__cta-content {
        flex-direction: column;
        text-align: center;
    }

    .page-blog__cta-text,
    .page-blog__cta-text .page-blog__section-title,
    .page-blog__cta-text .page-blog__section-description {
        text-align: center;
    }

    .page-blog__cta-buttons {
        justify-content: center;
    }
}