/* style/blog.css */

/* Base Styles for .page-blog */
.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;
}

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

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
    background-color: #140C0C;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of the image wrapper */
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure image covers the area */
    object-position: center;
}

.page-blog__hero-content {
    background-color: #2A1212; /* Card BG */
    padding: 40px 20px;
    text-align: center;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly for visual effect */
    border-radius: 15px;
    border: 2px solid #6A1E1E; /* Border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    color: #FFF1E8;
}

.page-blog__main-title {
    font-size: clamp(2em, 3.5vw, 3em); /* Responsive H1 font size */
    color: #F3C54D; /* Gold */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-blog__intro-text {
    font-size: 1.15em;
    margin-bottom: 30px;
    color: #FFF1E8;
}

/* Buttons */
.page-blog__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #FFF1E8; /* Text Main */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #7E0D0D; /* Deep Red */
    color: #FFF1E8; /* Text Main */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 2px solid #F3C54D; /* Gold border */
    cursor: pointer;
    font-size: 1.1em;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-secondary:hover {
    background-color: #C61F1F; /* Main Color */
}

.page-blog__btn-outline {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: #F3C54D; /* Gold */
    border: 1px solid #F3C54D; /* Gold */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9em;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-outline:hover {
    background-color: #F3C54D; /* Gold */
    color: #140C0C; /* Background */
}

.page-blog__btn-readmore {
    display: inline-block;
    padding: 8px 15px;
    background-color: #C61F1F; /* Main Color */
    color: #FFF1E8; /* Text Main */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
    margin-top: auto; /* Push to bottom of card */
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-readmore:hover {
    background-color: #E53030; /* Accent Color */
}


/* Featured Categories Section */
.page-blog__featured-categories {
    background-color: #140C0C; /* Background */
    padding: 60px 0;
}

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

.page-blog__category-card {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    height: 100%; /* Ensure cards have equal height */
}

.page-blog__card-title {
    font-size: 1.5em;
    color: #F3C54D; /* Gold */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-blog__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-blog__card-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow list to take available space */
}

.page-blog__card-list li {
    margin-bottom: 8px;
    color: #FFF1E8; /* Text Main */
    font-size: 0.95em;
}

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

.page-blog__card-list a:hover {
    color: #F3C54D; /* Gold */
}

/* Recent Posts Section */
.page-blog__recent-posts {
    background-color: #1A1212; /* Slightly different dark background */
    padding: 60px 0;
}

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

.page-blog__post-card {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

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

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

.page-blog__post-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
    flex-grow: 1; /* Allow title to take available space */
}

.page-blog__post-title a {
    color: #F3C54D; /* Gold */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: #FFB04A; /* Button gradient start color */
}

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

.page-blog__post-excerpt {
    font-size: 0.95em;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 20px;
}

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

/* Why Follow Us Section */
.page-blog__why-follow-us {
    background-color: #140C0C; /* Background */
    padding: 60px 0;
}

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

.page-blog__benefit-item {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #FFF1E8; /* Text Main */
}

.page-blog__benefit-title {
    font-size: 1.4em;
    color: #F3C54D; /* Gold */
    margin-bottom: 15px;
    font-weight: bold;
}

/* CTA Bottom Section */
.page-blog__cta-bottom {
    background-color: #1A1212; /* Slightly different dark background */
    padding: 60px 0;
    text-align: center;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 600px; /* Limit button group width */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

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

.page-blog__faq-list {
    max-width: 800px;
    margin: 0 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; /* Text Main */
}

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

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

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Change to X when open */
}

.page-blog__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    color: #FFF1E8; /* Text Main */
}

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

.page-blog__faq-answer a {
    color: #FFB04A; /* Button gradient start color */
    text-decoration: none;
}

.page-blog__faq-answer a:hover {
    text-decoration: underline;
}

/* Conclusion Section */
.page-blog__conclusion-section {
    background-color: #1A1212; /* Slightly different dark background */
    padding: 60px 0;
    text-align: center;
}

/* General image and container responsiveness */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-blog__section,
.page-blog__card,
.page-blog__container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Ensure content doesn't overflow */
}


/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-blog__container {
        padding: 15px;
    }

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

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

    /* Hero Section */
    .page-blog__hero-section {
        padding-top: 10px;
    }

    .page-blog__hero-image-wrapper {
        max-height: 300px;
    }

    .page-blog__hero-content {
        margin-top: -50px;
        padding: 25px 15px;
        max-width: calc(100% - 30px);
        width: 100%;
        box-sizing: border-box;
    }

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

    .page-blog__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Buttons */
    .page-blog__btn-primary,
    .page-blog__btn-secondary,
    .page-blog__btn-outline,
    .page-blog__btn-readmore,
    .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;
        padding-right: 15px;
        text-align: center;
    }

    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Category Grid */
    .page-blog__category-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

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

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

    /* Recent Posts Grid */
    .page-blog__post-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

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

    /* Benefits Grid */
    .page-blog__benefits-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    /* FAQ Section */
    .page-blog__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-blog__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9em;
    }

    /* General image and container responsiveness for mobile */
    .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;
    }
}