.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Default text color for dark background */
    background-color: #140C0C; /* Overall background */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure no overflow from image */
    background-color: #140C0C; /* Consistent with body background */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 675px; /* Limit height for hero image */
    display: block;
}

.page-blog__hero-content {
    position: relative; /* Changed from absolute to relative to ensure image-above-text */
    width: 100%;
    max-width: 900px;
    margin-top: 40px; /* Space between image and content */
    padding: 20px;
    background: rgba(42, 18, 18, 0.8); /* Card BG with transparency for content readability */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

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

.page-blog__hero-description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    color: #FFF1E8; /* Text Main */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color */
    color: #FFF1E8; /* Text Main for button text */
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-button--gold {
    background: linear-gradient(180deg, #F3C54D 0%, #D86A14 100%); /* Gold button variant */
    color: #140C0C; /* Dark text for gold button */
}

/* General Section Styling */
.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-blog__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    color: #F3C54D; /* Gold color for section titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-blog__section-title--white {
    color: #FFF1E8; /* White text for titles on dark background */
}

.page-blog__light-bg {
    background-color: #1a1010; /* Slightly lighter dark background for contrast */
    color: #FFF1E8;
}

.page-blog__dark-bg {
    background-color: #140C0C; /* Dark background */
    color: #FFF1E8;
}

.page-blog__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #FFF1E8;
}

.page-blog__text-block--white {
    color: #FFF1E8;
}

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

.page-blog__category-card {
    background-color: #2A1212; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #6A1E1E; /* Border */
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
}

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

.page-blog__category-title {
    font-size: 1.5em;
    color: #F3C54D; /* Gold */
    margin: 20px 15px 10px;
}

.page-blog__category-description {
    font-size: 0.95em;
    color: #FFF1E8; /* Text Main */
    padding: 0 15px 20px;
    min-height: 100px; /* Ensure consistent height for descriptions */
}

.page-blog__category-link {
    display: inline-block;
    background-color: #C61F1F; /* Main color */
    color: #FFF1E8;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-blog__category-link:hover {
    background-color: #E53030; /* Aux color */
}

/* Latest Posts Section */
.page-blog__post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

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

.page-blog__post-card:hover {
    transform: translateY(-5px);
}

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

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

.page-blog__post-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    min-height: 70px; /* Ensure consistent title height */
}

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

.page-blog__post-title a:hover {
    color: #FFB04A; /* Lighter gold for hover */
}

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

.page-blog__post-excerpt {
    font-size: 1em;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 20px;
    min-height: 120px; /* Ensure consistent excerpt height */
}

.page-blog__read-more-button {
    display: inline-block;
    background-color: #C61F1F; /* Main color */
    color: #FFF1E8;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
    background-color: #E53030; /* Aux color */
}

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

/* Highlights Section */
.page-blog__highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

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

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

.page-blog__highlight-description {
    font-size: 1em;
    color: #FFF1E8; /* Text Main */
}

.page-blog__cta-area {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-blog__faq-list {
    margin-top: 30px;
}

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

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: #F3C54D; /* Gold */
    cursor: pointer;
    background-color: #2A1212;
    list-style: none; /* For details/summary */
    -webkit-touch-callout: none; /* Disable text selection on iOS */
    -webkit-user-select: none;   /* Disable text selection on Chrome/Safari */
    -moz-user-select: none;      /* Disable text selection on Firefox */
    -ms-user-select: none;       /* Disable text selection on IE/Edge */
    user-select: none;           /* Standard syntax */
}

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

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFF1E8;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    content: "\2212"; /* Minus sign */
}

.page-blog__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #FFF1E8; /* Text Main */
    text-align: justify;
}

.page-blog__faq-answer p {
    margin-bottom: 15px;
}

.page-blog__faq-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #C61F1F; /* Main color */
    color: #FFF1E8;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.page-blog__faq-button:hover {
    background-color: #E53030; /* Aux color */
}

/* Conclusion Section */
.page-blog__conclusion-section {
    padding-bottom: 60px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        padding: 15px;
    }

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

    .page-blog__hero-description {
        font-size: clamp(0.9em, 1.8vw, 1.1em);
    }

    .page-blog__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }

    .page-blog__category-description,
    .page-blog__post-excerpt {
        min-height: auto; /* Remove fixed height for smaller screens */
    }
}

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

    /* Images */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Videos - not present in this page, but as per general requirement */
    .page-blog video,
    .page-blog__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Containers for images/videos/buttons */
    .page-blog__hero-section,
    .page-blog__introduction-section,
    .page-blog__categories-section,
    .page-blog__latest-posts-section,
    .page-blog__highlights-section,
    .page-blog__faq-section,
    .page-blog__conclusion-section,
    .page-blog__container,
    .page-blog__category-card,
    .page-blog__post-card,
    .page-blog__highlight-item,
    .page-blog__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-blog__hero-section {
      padding-top: 10px !important; /* body already handles header offset */
      padding-left: 0 !important;
      padding-right: 0 !important;
    }

    /* Buttons */
    .page-blog__cta-button,
    .page-blog__category-link,
    .page-blog__read-more-button,
    .page-blog__faq-button,
    .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;
        text-align: center; /* Center text in button */
    }

    .page-blog__cta-area, .page-blog__view-all-posts {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-blog__hero-content {
        margin-top: 20px;
        padding: 15px;
    }

    .page-blog__main-title {
        font-size: 2em;
    }

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

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

    .page-blog__category-grid,
    .page-blog__post-grid,
    .page-blog__highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-blog__faq-toggle {
        font-size: 1.3em;
    }

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