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

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

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column; /* Default column for upper-text-lower-image or text-left-image-right in mobile */
    align-items: center;
    text-align: center;
    background: linear-gradient(90deg, #17191F 0%, #0D0E12 100%); /* Card BG to Background */
    position: relative;
    overflow: hidden;
}

.page-blog__hero-content-wrapper {
    max-width: 800px;
    padding: 20px;
    z-index: 1;
}

.page-blog__hero-title {
    font-size: 3em;
    font-weight: bold;
    color: #FFB04D; /* Glow */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: 1.2em;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 30px;
}

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

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    margin-top: 40px;
    z-index: 0;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6; /* Text Main */
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
    transform: translateY(-2px);
}

.page-blog__btn-secondary {
    background: transparent;
    color: #FF8C1A; /* Primary color */
    border-color: #FF8C1A; /* Primary color */
}

.page-blog__btn-secondary:hover {
    background: rgba(255, 140, 26, 0.1); /* Light transparent primary */
    color: #FFA53A; /* Auxiliary color */
    border-color: #FFA53A; /* Auxiliary color */
    transform: translateY(-2px);
}

.page-blog__btn-large {
    padding: 16px 40px;
    font-size: 1.2em;
}

/* Section Titles & Descriptions */
.page-blog__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFB04D; /* Glow */
    text-align: center;
    margin-bottom: 20px;
    margin-top: 40px;
}

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

/* Articles Section */
.page-blog__articles-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background */
}

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

.page-blog__article-card {
    background-color: #17191F; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #A84F0C; /* Border */
}

.page-blog__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(255, 140, 26, 0.3);
}

.page-blog__article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

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

.page-blog__article-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #FFB04D; /* Glow */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__article-meta {
    font-size: 0.9em;
    color: #FFA53A; /* Auxiliary color */
    margin-bottom: 15px;
}

.page-blog__article-excerpt {
    font-size: 1em;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-blog__read-more {
    display: inline-block;
    color: #FF8C1A; /* Primary color */
    font-weight: bold;
    text-decoration: none;
}

.page-blog__read-more:hover {
    text-decoration: underline;
    color: #FFA53A; /* Auxiliary color */
}

/* Pagination */
.page-blog__pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-blog__pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 20px;
    text-decoration: none;
    color: #FFF3E6; /* Text Main */
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border */
    transition: all 0.3s ease;
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link--active {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6; /* Text Main */
    border-color: transparent;
}

/* CTA Section */
.page-blog__cta-section {
    background: linear-gradient(135deg, #FF8C1A 0%, #FFA53A 100%); /* Primary to Auxiliary */
    padding: 80px 0;
    text-align: center;
    color: #FFF3E6; /* Text Main */
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFF3E6; /* Text Main */
}

.page-blog__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-blog__faq-item {
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFB04D; /* Glow */
    cursor: pointer;
    list-style: none; /* For details summary */
    transition: background-color 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-question {
    background-color: #1e2029; /* Slightly darker */
}

.page-blog__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: #FF8C1A; /* Primary */
}

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

/* Responsive Styles */
@media (min-width: 769px) {
    .page-blog__hero-section {
        flex-direction: row; /* Desktop: text left, image right */
        text-align: left;
        padding-left: 16px;
        padding-right: 16px;
    }
    .page-blog__hero-content-wrapper {
        flex: 1 1 50%;
        max-width: 50%;
        padding: 40px;
    }
    .page-blog__hero-image-wrapper {
        flex: 1 1 50%;
        max-width: 50%;
        margin-top: 0;
    }
    .page-blog__hero-title {
        font-size: clamp(2.5em, 4vw, 3.5em); /* Use clamp for H1 */
    }
    .page-blog__hero-cta-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__hero-description {
        font-size: 1.1em;
    }
    .page-blog__section-title {
        font-size: 2.2em;
    }
    .page-blog__cta-title {
        font-size: 2.5em;
    }
    .page-blog__article-card {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .page-blog__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    /* Hero Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Specific top padding */
        flex-direction: column !important; /* Stack content vertically */
        text-align: center !important;
    }
    .page-blog__hero-content-wrapper {
        padding: 20px !important;
        max-width: 100% !important;
        flex: none !important;
    }
    .page-blog__hero-image-wrapper {
        margin-top: 30px !important;
        max-width: 100% !important;
        flex: none !important;
    }
    .page-blog__hero-title {
        font-size: 2em !important; /* Smaller H1 for mobile */
    }
    .page-blog__hero-description {
        font-size: 1em !important;
    }
    .page-blog__hero-cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    /* Buttons - MUST be full width */
    .page-blog__btn-primary,
    .page-blog__btn-secondary,
    .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 !important;
        padding-right: 15px !important;
    }
    .page-blog__hero-cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 15px !important;
    }
    .page-blog__cta-section .page-blog__btn-primary { /* Specific for CTA section button */
        max-width: 80% !important; /* Slightly smaller than full width for aesthetic */
        width: 80% !important;
        margin: 0 auto !important;
    }

    /* Section Titles & Descriptions */
    .page-blog__section-title {
        font-size: 1.8em !important;
        margin-top: 30px !important;
    }
    .page-blog__section-description {
        font-size: 0.95em !important;
        margin-bottom: 30px !important;
    }

    /* Articles Section */
    .page-blog__article-grid {
        grid-template-columns: 1fr !important; /* Single column */
        gap: 20px !important;
    }
    .page-blog__article-card {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    .page-blog__article-title {
        font-size: 1.2em !important;
    }
    .page-blog__article-image {
        height: 180px !important; /* Adjust height for mobile */
    }

    /* Pagination */
    .page-blog__pagination {
        margin-top: 30px !important;
        gap: 8px !important;
    }
    .page-blog__pagination-link {
        min-width: 35px !important;
        height: 35px !important;
        padding: 0 10px !important;
        font-size: 0.9em !important;
    }

    /* CTA Section */
    .page-blog__cta-title {
        font-size: 2em !important;
    }
    .page-blog__cta-description {
        font-size: 1.1em !important;
    }
    .page-blog__cta-section {
        padding: 50px 0 !important;
    }

    /* FAQ Section */
    .page-blog__faq-question {
        font-size: 1.1em !important;
        padding: 15px 20px !important;
    }
    .page-blog__faq-answer {
        padding: 0 20px 15px !important;
        font-size: 0.95em !important;
    }
    .page-blog__faq-toggle {
        font-size: 1.3em !important;
    }

    /* General image responsive style */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}