/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Text Main */
    background-color: #140C0C; /* Background */
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: #F3C54D; /* Gold */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-blog__dark-section {
    background-color: #140C0C; /* Background */
    padding: 60px 0;
}

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

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #140C0C; /* Dark text for light button */
    border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
    color: #FFF1E8;
}

.page-blog__btn-secondary {
    background-color: transparent;
    color: #F3C54D; /* Gold text */
    border: 2px solid #F3C54D; /* Gold border */
}

.page-blog__btn-secondary:hover {
    background-color: #F3C54D;
    color: #140C0C; /* Dark text for gold button */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per instruction */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image on top, content below */
}

.page-blog__hero-image-container {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
}

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

.page-blog__hero-content {
    padding: 40px 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    background-color: #140C0C; /* Background */
    color: #FFF1E8; /* Text Main */
    z-index: 1;
}

.page-blog__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: #F3C54D; /* Gold */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    max-width: 100%; /* Ensure H1 doesn't cause overflow */
}

.page-blog__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF1E8;
}

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

/* Latest Blog Posts */
.page-blog__latest-posts {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-blog__post-card {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #FFF1E8;
}

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

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

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

.page-blog__post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__post-title {
    font-size: 1.4em;
    color: #F3C54D; /* Gold */
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1;
}

.page-blog__post-date {
    font-size: 0.9em;
    color: #E53030; /* Auxiliary color for date */
    margin-bottom: 15px;
    display: block;
}

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

.page-blog__read-more {
    color: #FFB04A; /* Button gradient start color */
    font-weight: bold;
    text-decoration: none;
    align-self: flex-start;
}

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

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

/* Categories Section */
.page-blog__categories {
    background-color: #140C0C;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-blog__category-card {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #FFF1E8;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    background-color: #7E0D0D; /* Deep Red */
}

.page-blog__category-icon {
    font-size: 3em;
    margin-bottom: 15px;
    line-height: 1;
}

.page-blog__category-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #F3C54D; /* Gold */
    line-height: 1.2;
}

/* Featured Article */
.page-blog__featured-article {
    background-color: #140C0C;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-blog__featured-card {
    display: flex;
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    overflow: hidden;
    margin-top: 40px;
    color: #FFF1E8;
}

.page-blog__featured-image-wrapper {
    flex: 1;
    min-width: 50%;
    overflow: hidden;
}

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

.page-blog__featured-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-blog__featured-title {
    font-size: 2em;
    color: #F3C54D; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__featured-excerpt {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF1E8;
}

/* CTA Section */
.page-blog__cta-section {
    background-color: #140C0C;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-blog__cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFF1E8;
}

.page-blog__cta-title {
    font-size: 2.2em;
    color: #F3C54D; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-blog__cta-image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-blog__cta-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

/* FAQ Section */
.page-blog__faq-section {
    background-color: #140C0C;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-blog__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__faq-item {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF1E8;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #F3C54D; /* Gold */
    cursor: pointer;
    background-color: #2A1212;
}

.page-blog__faq-qtext {
    flex-grow: 1;
    line-height: 1.4;
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    line-height: 1;
    color: #FFB04A; /* Button gradient start color */
    pointer-events: none; /* Prevent toggle from interfering with summary click */
}

.page-blog__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #FFF1E8;
    line-height: 1.6;
}

/* Details element specific styling for FAQ */
.page-blog__faq-item[open] .page-blog__faq-toggle {
    content: "−";
}

.page-blog__faq-item summary {
    list-style: none; /* Remove default marker */
}

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

/* Responsive Styles */

/* General mobile image and container adaptations */
@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

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

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

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

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

    /* HERO Section mobile adaptations */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-blog__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

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

    .page-blog__hero-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    .page-blog__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    /* Buttons mobile adaptations */
    .page-blog__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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Latest Blog Posts mobile adaptations */
    .page-blog__posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__post-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Categories Section mobile adaptations */
    .page-blog__category-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

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

    .page-blog__category-icon {
        font-size: 2.5em;
        margin-bottom: 10px;
    }

    .page-blog__category-title {
        font-size: 1em;
    }

    /* Featured Article mobile adaptations */
    .page-blog__featured-card {
        flex-direction: column;
    }

    .page-blog__featured-image-wrapper {
        min-width: 100%;
    }

    .page-blog__featured-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-blog__featured-content {
        padding: 20px 15px;
    }

    .page-blog__featured-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

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

    /* CTA Section mobile adaptations */
    .page-blog__cta-title {
        font-size: 1.8em;
    }

    .page-blog__cta-description {
        font-size: 1em;
    }

    .page-blog__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ Section mobile adaptations */
    .page-blog__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }

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

    /* General image and container force full width */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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;
    }
}

/* @media (max-width: 1024px) - For tablets, if needed. */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        padding: 30px;
    }
    .page-blog__hero-title {
        font-size: clamp(2.2em, 5vw, 3em);
    }
    .page-blog__posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-blog__featured-card {
        flex-direction: column;
    }
    .page-blog__featured-image-wrapper,
    .page-blog__featured-content {
        min-width: 100%;
    }
    .page-blog__cta-content {
        padding: 0 20px;
    }
    .page-blog__cta-image {
        max-width: 90%;
    }
}