/* style/blog.css */

/* General styles for the blog page, adhering to the dark background from shared.css */
.page-blog {
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Text Main color for dark background */
    background-color: #0A0A0A; /* Background color from custom palette */
    line-height: 1.6;
}

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

.page-blog__section-title {
    font-size: 2.5em; /* Using em for relative sizing */
    color: #F2C14E; /* Primary color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Enforce image on top, content below */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom */
    overflow: hidden;
}

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

.page-blog__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: 20px; /* Space between image and content */
}

.page-blog__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #F2C14E; /* Primary color for H1 */
    margin-bottom: 20px;
    font-size: clamp(2.2em, 4vw, 3.5em); /* Example clamp if absolutely needed */
}

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

/* CTA Button Styles */
.page-blog__cta-button,
.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;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__cta-button {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for light button */
    border: none;
}

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

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111;
    border: none;
}

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

.page-blog__btn-secondary {
    background: #111111; /* Card BG for secondary button */
    color: #F2C14E; /* Primary color for text */
    border: 2px solid #3A2A12; /* Border color */
}

.page-blog__btn-secondary:hover {
    background: #3A2A12; /* Border color on hover */
    color: #FFD36B; /* Glow color for text */
}

/* Recent Posts Section */
.page-blog__recent-posts {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background color from custom palette */
}

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

.page-blog__post-card {
    background-color: #111111; /* 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;
    border: 1px solid #3A2A12; /* Border color */
}

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

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

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

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

.page-blog__post-title a {
    color: #F2C14E; /* Primary color for titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-blog__post-meta {
    font-size: 0.9em;
    color: #CCC;
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: #FFF6D6;
    margin-bottom: 20px;
}

.page-blog__read-more {
    display: inline-block;
    color: #FFD36B; /* Glow color for links */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #FFD36B;
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

.page-blog__read-more:hover {
    color: #F2C14E;
    border-color: #F2C14E;
}

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

/* Categories Section */
.page-blog__categories-section {
    padding: 60px 0;
    background-color: #111111; /* Card BG for this section */
}

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

.page-blog__category-card {
    background-color: #0A0A0A; /* Background color */
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #FFF6D6;
    transition: all 0.3s ease;
    border: 1px solid #3A2A12; /* Border color */
}

.page-blog__category-card:hover {
    background-color: #3A2A12; /* Border color on hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-blog__category-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    /* filter: brightness(1.2); Removed as per strict filter rules */
}

.page-blog__category-name {
    font-weight: bold;
    font-size: 1.1em;
}

/* CTA Banner Section */
.page-blog__cta-banner {
    padding: 80px 0;
    background: linear-gradient(90deg, #F2C14E 0%, #FFD36B 100%); /* Using brand colors for a vibrant CTA */
    text-align: center;
}

.page-blog__cta-content {
    max-width: 900px;
    margin: 0 auto;
    color: #111111; /* Dark text on light background */
}

.page-blog__cta-title {
    font-size: 2.8em;
    color: #111111;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-blog__cta-description {
    font-size: 1.2em;
    color: #333333; /* Slightly darker text for contrast */
    margin-bottom: 40px;
}

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

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background color */
}

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

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

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

.page-blog__faq-question:hover {
    background-color: #3A2A12; /* Border color on hover */
}

.page-blog__faq-question h3 {
    margin: 0;
    color: inherit; /* Inherit color from parent */
    flex-grow: 1;
}

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

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

.page-blog__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Text Main color */
    font-size: 1em;
}

.page-blog__faq-item.active .page-blog__faq-answer {
    max-height: 1000px !important; /* Important for JS toggle */
    padding: 15px 25px 25px 25px;
}

.page-blog__faq-answer p {
    margin: 0;
}

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

    .page-blog__description {
        font-size: 1.1em;
    }

    .page-blog__section-title {
        font-size: 2em;
    }

    .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;
    }

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

    .page-blog__hero-content {
        padding: 30px 15px;
        margin-top: 15px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-blog__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

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

    .page-blog__recent-posts,
    .page-blog__categories-section,
    .page-blog__cta-banner,
    .page-blog__faq-section {
        padding: 40px 0;
    }

    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-blog__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-blog__post-card {
        margin-bottom: 20px;
    }

    .page-blog__post-image {
        height: 180px;
    }

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

    .page-blog__post-title {
        font-size: 1.3em;
    }

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

    .page-blog__category-card {
        padding: 15px;
    }

    .page-blog__category-name {
        font-size: 0.95em;
    }

    .page-blog__cta-title {
        font-size: 1.8em;
    }

    .page-blog__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-blog__faq-answer {
        padding: 0 20px;
    }

    .page-blog__faq-item.active .page-blog__faq-answer {
        padding: 15px 20px 20px 20px;
    }

    /* Images responsiveness */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding, not --header-offset */
    }
}

@media (max-width: 480px) {
    .page-blog__category-grid {
        grid-template-columns: 1fr; /* Stack categories on very small screens */
    }
}