/* style/blog.css */

/* Custom Properties (Colors) */
:root {
    --page-blog-primary: #11A84E;
    --page-blog-secondary: #22C768;
    --page-blog-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-blog-card-bg: #11271B;
    --page-blog-background: #08160F;
    --page-blog-text-main: #F2FFF6;
    --page-blog-text-secondary: #A7D9B8;
    --page-blog-border: #2E7A4E;
    --page-blog-glow: #57E38D;
    --page-blog-gold: #F2C14E;
    --page-blog-divider: #1E3A2A;
    --page-blog-deep-green: #0A4B2C;
    --page-blog-light-bg-contrast: #ffffff; /* For sections that need light background for contrast */
    --page-blog-dark-text-on-light: #333333; /* For text on light backgrounds */
}

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

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

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

.page-blog__dark-bg {
    background-color: var(--page-blog-background);
    color: var(--page-blog-text-main);
}

.page-blog__light-bg {
    background-color: var(--page-blog-light-bg-contrast); /* Using white for contrast */
    color: var(--page-blog-dark-text-on-light);
}

.page-blog__section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--page-blog-text-main);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

.page-blog__section-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--page-blog-text-secondary);
}

.page-blog__light-bg .page-blog__section-description {
    color: var(--page-blog-dark-text-on-light);
}

.page-blog__paragraph {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--page-blog-text-secondary);
    text-align: left;
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    padding: 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

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

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

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 900px;
    text-align: center;
}

.page-blog__main-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--page-blog-gold);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-blog__description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--page-blog-text-main);
}

/* Buttons */
.page-blog__cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-blog__cta-button,
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-blog__btn-secondary:hover {
    background-color: var(--page-blog-primary);
    color: #ffffff;
    border-color: var(--page-blog-primary);
}

/* Grid Layout for Cards */
.page-blog__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Blog Card */
.page-blog__card {
    background-color: var(--page-blog-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-blog-divider);
    text-align: left;
}

.page-blog__light-bg .page-blog__card {
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.page-blog__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 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: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-blog__light-bg .page-blog__card-title a {
    color: var(--page-blog-dark-text-on-light);
}

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

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

.page-blog__light-bg .page-blog__card-meta {
    color: #666666;
}

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

.page-blog__light-bg .page-blog__card-excerpt {
    color: var(--page-blog-dark-text-on-light);
}

.page-blog__card-link {
    display: inline-block;
    color: var(--page-blog-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__card-link:hover {
    text-decoration: underline;
    color: var(--page-blog-secondary);
}

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

/* Content Wrapper for text and image */
.page-blog__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-blog__content-wrapper.page-blog__content-reverse {
    flex-direction: row-reverse;
}

.page-blog__text-block,
.page-blog__image-block {
    flex: 1;
    min-width: 300px;
}

.page-blog__content-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

/* FAQ Section */
.page-blog__faq-section {
    text-align: center;
}

.page-blog__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    border-top: 1px solid var(--page-blog-divider);
}

.page-blog__faq-item {
    border-bottom: 1px solid var(--page-blog-divider);
    padding: 20px 0;
    text-align: left;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-blog-text-main);
    cursor: pointer;
    list-style: none;
}

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

.page-blog__faq-item summary {
    list-style: none;
}

.page-blog__faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--page-blog-primary);
}

.page-blog__faq-answer {
    padding-top: 15px;
    font-size: 1rem;
    color: var(--page-blog-text-secondary);
    line-height: 1.7;
}

/* Call to Action Section */
.page-blog__call-to-action {
    background-color: var(--page-blog-primary);
    color: #ffffff;
    padding: 80px 0;
    border-radius: 0;
}

.page-blog__call-to-action .page-blog__section-title {
    color: #ffffff;
}

.page-blog__call-to-action .page-blog__section-description {
    color: #ffffff;
    max-width: 900px;
}

.page-blog__call-to-action .page-blog__btn-primary {
    background: var(--page-blog-button-gradient);
    color: #ffffff;
}

.page-blog__call-to-action .page-blog__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.page-blog__call-to-action .page-blog__btn-secondary:hover {
    background-color: #ffffff;
    color: var(--page-blog-primary);
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-blog__grid-layout {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-blog__hero-image {
        max-height: 400px;
    }
}

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

    .page-blog__container {
        padding: 0 15px;
    }

    .page-blog__section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .page-blog__main-title {
        font-size: clamp(2.5rem, 9vw, 3.5rem);
    }

    .page-blog__description,
    .page-blog__section-description,
    .page-blog__paragraph,
    .page-blog__card-excerpt,
    .page-blog__faq-answer {
        font-size: 0.95rem;
    }

    .page-blog__hero-content {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .page-blog__hero-image {
        max-height: 300px;
    }

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

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

    .page-blog__hero-image-wrapper,
    .page-blog__image-block,
    .page-blog__card-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__hero-section,
    .page-blog__content-wrapper,
    .page-blog__text-block,
    .page-blog__image-block,
    .page-blog__faq-list,
    .page-blog__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

    .page-blog__video-section {
        padding-top: 10px !important;
    }

    /* Buttons */
    .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-wrap: wrap !important;
        gap: 10px;
        flex-direction: column;
    }

    .page-blog__content-wrapper {
        flex-direction: column;
    }

    .page-blog__content-wrapper.page-blog__content-reverse {
        flex-direction: column;
    }
}

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

    .page-blog__main-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

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

    .page-blog__faq-question {
        font-size: 1rem;
    }
}