:root {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --card-bg: #2A1212;
    --site-bg-dark: #140C0C;
    --text-main: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red-color: #7E0D0D;
    --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --header-offset: 122px; /* Default, will be overridden by shared.css */
}

.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--site-bg-dark);
}

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

/* --- Hero Section --- */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
    position: relative;
    overflow: hidden;
    background-color: var(--site-bg-dark);
}

.page-blog__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    display: block;
}

.page-blog__hero-text-block {
    text-align: center;
    padding: 20px 0;
    max-width: 900px;
}

.page-blog__hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 100%;
}

.page-blog__hero-description {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 30px;
}

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

/* --- General Buttons --- */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog a[class*="button"],
.page-blog a[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

.page-blog__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-blog__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-blog__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 10px rgba(243, 197, 77, 0.2);
}

.page-blog__btn-secondary:hover {
    background: rgba(243, 197, 77, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(243, 197, 77, 0.4);
}

/* --- Section Titles --- */
.page-blog__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-blog__section-subtitle {
    font-size: 18px;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Latest Articles Section --- */
.page-blog__latest-articles-section {
    padding: 60px 0;
    background-color: var(--site-bg-dark);
}

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

.page-blog__article-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-blog__article-link {
    text-decoration: none;
    display: block;
    color: var(--text-main);
}

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

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

.page-blog__article-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__article-excerpt {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-blog__article-date {
    font-size: 14px;
    color: rgba(255, 241, 232, 0.7);
    display: block;
}

.page-blog__view-all-button-container {
    text-align: center;
}

/* --- Explore Categories Section --- */
.page-blog__explore-categories-section {
    padding: 60px 0;
    background-color: var(--deep-red-color);
}

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

.page-blog__category-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    border: 1px solid var(--border-color);
}

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

.page-blog__category-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
}

.page-blog__category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--gold-color);
    text-align: center;
    padding: 0 15px;
}

/* --- Why rr8 Blog Section --- */
.page-blog__why-rr8-blog-section {
    padding: 60px 0;
    background-color: var(--site-bg-dark);
}

.page-blog__features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-blog__feature-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-blog__feature-icon {
    width: 100px; 
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(243, 197, 77, 0.5));
}

.page-blog__feature-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-blog__feature-description {
    font-size: 15px;
    color: var(--text-main);
}

/* --- FAQ Section (using <details>) --- */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: var(--deep-red-color);
}

.page-blog__faq-list {
    margin-top: 40px;
}

details.page-blog__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}
details.page-blog__faq-item summary.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
    display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
    background: rgba(var(--gold-color), 0.1);
}
.page-blog__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--gold-color);
}
.page-blog__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 8px 8px;
    font-size: 16px;
    color: var(--text-main);
}
details.page-blog__faq-item .page-blog__faq-answer p {
    margin: 0;
}

/* --- CTA Section --- */
.page-blog__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    text-align: center;
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-blog__cta-title {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-blog__cta-description {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 40px;
}

.page-blog__cta-button {
    padding: 18px 40px;
    font-size: 20px;
}

/* --- General Image & Button Responsiveness --- */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-blog__container,
.page-blog__section,
.page-blog__card,
.page-blog__cta-buttons,
.page-blog__button-group,
.page-blog__btn-container,
.page-blog__articles-grid,
.page-blog__categories-grid,
.page-blog__features-grid,
.page-blog__faq-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

/* --- Mobile Responsiveness (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-blog__container {
        padding: 15px;
    }

    /* Banner __hero-section */
    .page-blog__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
    }

    .page-blog__hero-title {
        font-size: 32px;
        line-height: 1.3;
    }

    .page-blog__hero-description {
        font-size: 16px;
    }

    .page-blog__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px; /* Add padding to buttons container */
    }
    .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;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Section Titles */
    .page-blog__section-title {
        font-size: 28px;
    }

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

    /* Latest Articles Section */
    .page-blog__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__article-image {
        height: 180px; /* Adjust height for mobile */
    }
    .page-blog__article-title {
        font-size: 18px;
    }
    .page-blog__article-excerpt {
        font-size: 14px;
    }
    .page-blog__view-all-button-container {
        padding: 0 15px; /* Add padding to button container */
    }

    /* Explore Categories Section */
    .page-blog__categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .page-blog__category-image {
        height: 140px;
    }
    .page-blog__category-title {
        font-size: 18px;
    }

    /* Why rr8 Blog Section */
    .page-blog__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-blog__feature-icon {
        width: 80px;
        height: 80px;
    }
    .page-blog__feature-title {
        font-size: 20px;
    }
    .page-blog__feature-description {
        font-size: 14px;
    }

    /* FAQ Section */
    details.page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px;
    }
    .page-blog__faq-qtext {
        font-size: 16px;
    }
}