/* style/blog.css */

/* --- Base Styles & Typography --- */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main color for dark background */
    background-color: #0A0A0A; /* Background color from custom palette */
}

.page-blog__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Ensure no horizontal overflow */
}

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

.page-blog__section-title {
    font-size: 2.8em;
    color: #F2C14E; /* Main brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__section-description {
    font-size: 1.1em;
    color: #FFF6D6;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-blog__hero-section {
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%); /* Darker gradient for hero background */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-blog__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-blog__hero-image {
    width: 100%;
    max-width: 1200px; /* Actual display width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px; /* Space between image and text */
    display: block; /* Ensure no extra space below image */
}

.page-blog__hero-text-content {
    text-align: center;
    max-width: 800px;
}

.page-blog__main-title {
    font-size: clamp(2.5em, 4vw, 3.5em); /* H1 font size constraint */
    color: #F2C14E;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.page-blog__intro-description {
    font-size: 1.2em;
    color: #FFF6D6;
    margin-bottom: 30px;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure buttons adapt to container */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color from custom palette */
    color: #111111; /* Dark text for light button */
    border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(242, 193, 78, 0.4);
}

.page-blog__btn-secondary {
    background: #111111; /* Card BG color */
    color: #FFD36B; /* Glow color for text */
    border: 2px solid #FFD36B; /* Glow color for border */
}

.page-blog__btn-secondary:hover {
    background: #FFD36B;
    color: #111111;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 211, 107, 0.3);
}

/* --- Article Grid --- */
.page-blog__latest-articles {
    background-color: #0A0A0A; /* Background color */
}

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

.page-blog__article-card {
    background: #111111; /* Card BG color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 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;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take available space */
}

.page-blog__card-title a {
    color: #F2C14E; /* Main brand color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
    color: #FFD36B; /* Auxiliary color on hover */
}

.page-blog__card-meta {
    font-size: 0.9em;
    color: #FFF6D6; /* Text Main color */
    margin-bottom: 15px;
}

.page-blog__card-excerpt {
    font-size: 1em;
    color: #FFF6D6; /* Text Main color */
    margin-bottom: 20px;
}

.page-blog__read-more {
    display: inline-block;
    color: #FFD36B; /* Glow color for read more link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-blog__read-more:hover {
    text-decoration: underline;
    color: #F2C14E;
}

.page-blog__view-all-button-container {
    text-align: center;
}

/* --- Deep Dive & Tips/Strategies Sections --- */
.page-blog__dark-section {
    background-color: #111111; /* Card BG color for dark sections */
}

.page-blog__feature-grid,
.page-blog__strategy-grid,
.page-blog__support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog__feature-item,
.page-blog__strategy-item,
.page-blog__support-item {
    background: #0A0A0A; /* Background color for items within dark sections */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #3A2A12; /* Border color */
}

.page-blog__feature-title,
.page-blog__strategy-title,
.page-blog__support-title {
    font-size: 1.6em;
    color: #F2C14E;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* --- FAQ Section --- */
.page-blog__faq-list {
    margin-top: 40px;
}

.page-blog__faq-item {
    background: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    color: #F2C14E;
    font-weight: bold;
    cursor: pointer;
    background: #0A0A0A; /* Background color */
    transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
    background-color: #1b1b1b;
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD36B; /* Glow color for toggle */
}

.page-blog__faq-item.active .page-blog__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-blog__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding for collapsed state */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Text Main color */
}

.page-blog__faq-item.active .page-blog__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px; /* Padding for expanded state */
}

.page-blog__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    color: #FFF6D6;
}

/* --- Final CTA Section --- */
.page-blog__cta-final {
    background-color: #0A0A0A; /* Background color */
    padding-bottom: 80px;
    padding-top: 80px;
}

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

/* --- Global Image Styles --- */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no image filters are applied */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-blog__section-title {
        font-size: 2.2em;
    }
    .page-blog__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
}

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-blog__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset, from shared */
        padding-bottom: 40px;
    }
    .page-blog__section {
        padding: 40px 0;
    }
    .page-blog__container {
        padding: 0 15px; /* Smaller padding on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-blog__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-blog__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-blog__intro-description {
        font-size: 1.1em;
    }
    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Ensure buttons have padding from edge */
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-blog__article-grid {
        grid-template-columns: 1fr; /* Single column for articles */
        gap: 20px;
    }
    .page-blog__article-card {
        margin-left: 0;
        margin-right: 0;
    }
    .page-blog__article-image {
        height: 200px;
    }
    .page-blog__card-title {
        font-size: 1.2em;
    }
    .page-blog__feature-grid,
    .page-blog__strategy-grid,
    .page-blog__support-grid {
        grid-template-columns: 1fr; /* Single column for features/strategies */
        gap: 20px;
    }
    .page-blog__feature-title,
    .page-blog__strategy-title,
    .page-blog__support-title {
        font-size: 1.4em;
    }
    .page-blog__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-blog__faq-answer {
        padding: 10px 20px 20px;
    }
    .page-blog__faq-item.active .page-blog__faq-answer {
        padding: 10px 20px 20px !important;
    }
    /* Ensure all images in content areas are responsive */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}