/* style/blog.css */

/* Base styles for page-blog, assuming body background is from shared.css (white #fff) */
/* However, the custom colors specify background: #08160F, so this page will have a dark background. */
.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Custom Background */
}

.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: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #08160F; /* Ensure consistent dark background */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-blog__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: #F2FFF6; /* Text Main */
}

.page-blog__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2FFF6; /* Text Main */
    letter-spacing: 0.05em;
}

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

/* CTA Buttons */
.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.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: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Custom Color */
    color: #ffffff;
    border: 2px solid transparent;
}

.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: #F2FFF6; /* Text Main */
    border: 2px solid #2E7A4E; /* Border Custom Color */
}

.page-blog__btn-secondary:hover {
    background: #11A84E; /* Primary Color */
    color: #ffffff;
    border-color: #11A84E;
}

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

.page-blog__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2FFF6; /* Text Main */
}

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

.page-blog__article-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #F2FFF6; /* Text Main */
    border: 1px solid #2E7A4E; /* Border Custom Color */
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-blog__card-link {
    text-decoration: none;
    color: #F2FFF6; /* Text Main */
    transition: color 0.3s ease;
}

.page-blog__card-link:hover {
    color: #57E38D; /* Glow */
}

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

.page-blog__card-excerpt {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

.page-blog__read-more {
    display: inline-block;
    color: #2AD16F; /* A lighter green from the button gradient for links */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: #57E38D; /* Glow */
    text-decoration: underline;
}

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

/* General Content Section */
.page-blog__content-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Text Main */
}

.page-blog__content-section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #A7D9B8; /* Text Secondary */
}

.page-blog__image-with-text {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-blog__content-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.page-blog__text-block {
    flex-grow: 1;
}

.page-blog__sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #F2FFF6; /* Text Main */
}

.page-blog__inline-link {
    color: #57E38D; /* Glow */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-blog__inline-link:hover {
    color: #F2C14E; /* Gold */
    text-decoration: underline;
}

.page-blog__highlight {
    color: #F2C14E; /* Gold */
    font-weight: 700;
}

/* Strategy Section */
.page-blog__strategy-section {
    padding: 80px 0;
    background-color: #F2FFF6; /* Light background for contrast */
    color: #333333; /* Dark text for contrast */
}

.page-blog__strategy-section .page-blog__section-title {
    color: #08160F; /* Dark text for contrast */
}

.page-blog__strategy-section p {
    color: #333333;
}

.page-blog__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-blog__list-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #11A84E; /* Primary color accent */
}

.page-blog__list-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #08160F; /* Dark text for contrast */
}

.page-blog__list-description {
    font-size: 1rem;
    color: #333333;
}

.page-blog__highlight-dark {
    color: #11A84E; /* Primary color for highlights on light background */
    font-weight: 700;
}

.page-blog__inline-link-dark {
    color: #11A84E; /* Primary color for links on light background */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-blog__inline-link-dark:hover {
    color: #0A4B2C; /* Deep Green for hover */
    text-decoration: underline;
}

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

.page-blog__faq-list {
    margin-top: 40px;
}

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

.page-blog__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    transition: background-color 0.3s ease;
}

.page-blog__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-blog__faq-item summary:hover {
    background-color: rgba(17, 168, 78, 0.1); /* Slight hover effect with primary color */
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-blog__faq-qtext {
    flex-grow: 1;
    color: #F2FFF6; /* Text Main */
}

.page-blog__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    content: '−'; /* Change to minus when open */
}

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

/* CTA Section (Bottom) */
.page-blog__cta-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
    text-align: center;
}


/* Responsive Styles */
@media (max-width: 992px) {
    .page-blog__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

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

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

    .page-blog__image-with-text {
        flex-direction: column;
        gap: 20px;
    }

    .page-blog__content-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* General content padding */
    .page-blog__container {
        padding: 0 15px;
    }

    /* Hero section padding */
    .page-blog__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }

    /* Images responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video responsiveness (if any) */
    .page-blog video,
    .page-blog__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Video containers responsiveness (if any) */
    .page-blog__video-section,
    .page-blog__video-container,
    .page-blog__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    
    /* Buttons responsiveness */
    .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; /* Add padding to prevent text touching edges */
        padding-right: 15px;
    }
    
    /* Button containers responsiveness */
    .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__section-title {
        font-size: 2rem;
    }

    .page-blog__hero-content {
        padding: 0 10px;
    }

    .page-blog__image-with-text {
        flex-direction: column;
    }
    
    .page-blog__content-image {
        min-width: 200px !important; /* Ensure images are not too small */
        min-height: 200px !important;
    }

    .page-blog__list-item {
        min-width: 200px !important; /* Ensure list items are not too small */
    }

    .page-blog__faq-item {
        min-width: 200px !important; /* Ensure FAQ items are not too small */
    }

    .page-blog__article-card {
        min-width: 200px !important; /* Ensure article cards are not too small */
    }

    /* Content area images minimum size check */
    .page-blog__content-area img,
    .page-blog__articles-section img,
    .page-blog__strategy-section img,
    .page-blog__faq-section img,
    .page-blog__cta-section img {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}