/* General styles for the Blog page */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main */
    background-color: #0D0E12; /* Background */
}

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

.page-blog__section-title,
.page-blog__cta-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #FF8C1A; /* Main brand color */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-blog__btn-secondary {
    background-color: transparent;
    color: #FF8C1A;
    border: 2px solid #FF8C1A; /* Border color */
}

.page-blog__btn-secondary:hover {
    background-color: #FF8C1A;
    color: #ffffff;
}

/* HERO Section */
.page-blog__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    margin-bottom: 60px;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    overflow: hidden;
    position: relative;
}

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

.page-blog__hero-content-wrapper {
    padding: 40px 0;
    text-align: center;
    background-color: rgba(13, 14, 18, 0.8); /* Semi-transparent dark background for text */
}

.page-blog__hero-title {
    font-size: 3.2em; /* Adjusted for larger screens, will use clamp if needed */
    color: #FFF3E6; /* Text Main */
    margin-bottom: 20px;
}

.page-blog__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-blog__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Recent Posts Section */
.page-blog__recent-posts-section {
    margin-bottom: 60px;
}

.page-blog__posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.page-blog__post-card {
    background-color: #17191F; /* Card B G */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards with varying content heights align */
}

.page-blog__post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-blog__post-image-wrapper {
    width: 100%;
    height: 220px; /* Fixed height for images in cards */
    overflow: hidden;
}

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

.page-blog__post-content {
    padding: 20px;
    flex-grow: 1; /* Allows content to push footer down */
    display: flex;
    flex-direction: column;
}

.page-blog__post-title {
    font-size: 1.4em;
    color: #FF8C1A; /* Main brand color */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-excerpt {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes date and button to bottom */
}

.page-blog__post-date {
    font-size: 0.85em;
    color: #A84F0C; /* Border color for dates */
    margin-top: auto; /* Pushes date to bottom */
    margin-bottom: 15px;
}

.page-blog__read-more-btn {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff;
    border-radius: 5px;
    font-size: 0.9em;
    text-decoration: none;
    align-self: flex-start; /* Aligns button to the left */
    transition: background-color 0.3s ease;
}

.page-blog__read-more-btn:hover {
    opacity: 0.9;
}

.page-blog__view-all-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* CTA Section */
.page-blog__cta-section {
    background-color: #17191F; /* Card B G */
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.page-blog__cta-content {
    max-width: 900px;
}

.page-blog__cta-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* FAQ Section */
.page-blog__faq-section {
    margin-bottom: 60px;
}

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

.page-blog__faq-item {
    background-color: #17191F; /* Card B G */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #FF8C1A; /* Main brand color */
    list-style: none; /* Hide default marker */
}

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg);
}

.page-blog__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-blog__hero-image-wrapper {
        height: 500px;
    }
}

@media (max-width: 768px) {
    /* General Mobile Adaptations */
    .page-blog__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog__section-title,
    .page-blog__cta-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    /* HERO Section */
    .page-blog__hero-section {
        padding-top: 10px;
        margin-bottom: 40px;
    }
    .page-blog__hero-image-wrapper {
        height: 300px;
    }
    .page-blog__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-blog__hero-content-wrapper {
        padding: 25px 0;
    }
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-blog__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .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;
    }

    /* Recent Posts Section */
    .page-blog__recent-posts-section {
        margin-bottom: 40px;
    }
    .page-blog__posts-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }
    .page-blog__post-image-wrapper {
        height: 180px;
    }
    .page-blog__post-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-blog__post-title {
        font-size: 1.2em;
    }
    .page-blog__post-excerpt {
        font-size: 0.9em;
    }
    .page-blog__view-all-button-wrapper {
        margin-top: 30px;
        padding: 0 15px;
    }

    /* CTA Section */
    .page-blog__cta-section {
        padding: 40px 15px;
        margin-bottom: 40px;
    }
    .page-blog__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* FAQ Section */
    .page-blog__faq-section {
        margin-bottom: 40px;
    }
    .page-blog__faq-item {
        margin-bottom: 10px;
    }
    .page-blog__faq-question {
        padding: 15px;
        font-size: 1em;
    }
    .page-blog__faq-answer {
        padding: 0 15px 15px 15px;
        font-size: 0.9em;
    }

    /* General image and container rules for mobile */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__posts-grid,
    .page-blog__hero-content-wrapper,
    .page-blog__cta-content,
    .page-blog__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}