/* style/blog.css */

/* General styles for the blog page */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Main text color for dark body background */
    background-color: #140C0C; /* Body background color */
}

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

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

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

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, relying on shared.css for body padding-top */
    padding-bottom: 60px;
    background-color: #140C0C;
}

.page-blog__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-blog__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #FFF1E8;
}

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

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

.page-blog__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    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%);
    color: #FFF1E8;
    border: 2px solid transparent;
}

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

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

.page-blog__btn-secondary:hover {
    background-color: #F3C54D;
    color: #140C0C; /* Dark text on gold hover */
    transform: translateY(-2px);
}

.page-blog__hero-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-blog__main-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

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

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

.page-blog__article-card {
    background-color: #2A1212; /* Card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid #6A1E1E; /* Border color */
}

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

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

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

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

.page-blog__article-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #F3C54D; /* Gold color for article titles */
}

.page-blog__article-excerpt {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #FFF1E8;
}

.page-blog__read-more {
    display: flex;
    align-items: center;
    color: #E53030; /* Auxiliary red color */
    font-weight: bold;
}

.page-blog__arrow {
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.page-blog__article-card:hover .page-blog__arrow {
    margin-left: 10px;
}

/* Recent Articles Section */
.page-blog__recent-articles {
    background-color: #140C0C;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-blog__articles-list {
    display: grid;
    gap: 30px;
}

.page-blog__list-item {
    background-color: #2A1212; /* Card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid #6A1E1E; /* Border color */
}

.page-blog__list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__list-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #FFF1E8;
}

.page-blog__list-thumbnail {
    width: 300px; /* Fixed width for list item thumbnail */
    height: 200px; /* Fixed height */
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.page-blog__list-content {
    padding: 20px;
    flex-grow: 1;
}

.page-blog__list-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #F3C54D; /* Gold color for list titles */
}

.page-blog__list-date {
    font-size: 0.9em;
    color: #6A1E1E; /* Deep Red for date */
    margin-bottom: 10px;
}

.page-blog__list-excerpt {
    font-size: 0.9em;
    line-height: 1.5;
    color: #FFF1E8;
}

/* 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;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2A1212; /* Card background */
    color: #FFF1E8;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #6A1E1E; /* Border color */
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link.is-active {
    background-color: #E53030; /* Auxiliary red */
    color: #FFF1E8;
    border-color: #E53030;
}

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

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

.page-blog__category-card {
    background-color: #2A1212; /* Card background */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #FFF1E8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #6A1E1E; /* Border color */
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.page-blog__category-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #F3C54D; /* Gold color for category titles */
}

.page-blog__category-description {
    font-size: 0.95em;
    color: #FFF1E8;
}

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

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

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

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    color: #F3C54D; /* Gold color for FAQ questions */
    position: relative;
    list-style: none; /* For details/summary */
}

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #E53030; /* Auxiliary red */
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-blog__hero-content {
        order: 2; /* Content below image on smaller screens */
    }

    .page-blog__hero-image {
        order: 1;
    }

    .page-blog__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
}

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

    .page-blog__container {
        padding: 20px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on shared.css for body padding-top */
        padding-bottom: 40px !important;
    }

    .page-blog__hero-container {
        padding: 20px 15px !important;
        gap: 20px !important;
    }

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

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

    /* Buttons */
    .page-blog__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !important; /* Ensure buttons have padding on edges */
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        font-size: 1em !important;
        padding: 12px 20px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-blog__main-image {
        border-radius: 8px !important;
    }

    /* Article Cards */
    .page-blog__articles-grid {
        grid-template-columns: 1fr !important; /* Single column for articles */
        gap: 20px !important;
    }

    .page-blog__article-thumbnail {
        height: 200px !important; /* Adjust height for mobile */
    }

    .page-blog__article-title {
        font-size: 1.3em !important;
    }

    .page-blog__article-excerpt {
        font-size: 0.9em !important;
    }

    /* Recent Articles List */
    .page-blog__list-item {
        flex-direction: column !important; /* Stack image and content vertically */
    }

    .page-blog__list-thumbnail {
        width: 100% !important;
        height: 200px !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .page-blog__list-content {
        padding: 15px !important;
    }

    .page-blog__list-title {
        font-size: 1.2em !important;
    }

    /* Categories Grid */
    .page-blog__categories-grid {
        grid-template-columns: 1fr !important; /* Single column for categories */
        gap: 15px !important;
    }

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

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

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

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