:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --main-bg: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-blog {
    background-color: var(--main-bg);
    color: var(--text-main); /* Ensure contrast with dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* General padding for the bottom of the page */
}

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

/* Fixed Header Padding - only small top margin */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, body handles main offset */
    margin-bottom: 40px;
    position: relative;
    overflow: hidden; /* Ensure content doesn't bleed */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px; /* Space between image and content */
}

.page-blog__hero-image {
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    object-fit: cover; /* Maintain aspect ratio, crop if necessary */
    display: block;
    border-radius: 8px;
}

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

.page-blog__main-title {
    font-size: clamp(2.5rem, 4vw, 3.2rem); /* Responsive font size for H1 */
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Subtle glow */
}

.page-blog__description {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-blog__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
    opacity: 0.9;
}

.page-blog__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
}

.page-blog__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--main-bg);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.6);
}

.page-blog__section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

/* Latest Blog Posts Section */
.page-blog__latest-posts-section {
    margin-bottom: 60px;
}

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

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

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

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

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

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

.page-blog__post-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 600;
}

.page-blog__post-meta {
    font-size: 0.9rem;
    color: var(--text-main);
    opacity: 0.7;
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1rem;
    color: var(--text-main);
    opacity: 0.8;
}

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

/* Categories Section */
.page-blog__categories-section {
    margin-bottom: 60px;
}

.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjusted min-width for category cards */
    gap: 20px;
    text-align: center;
}

.page-blog__category-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px; /* Ensure cards are not too small */
    border: 1px solid var(--border-color);
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.3);
}

.page-blog__category-icon {
    width: 250px; /* Min width/height 200px, but fits 250x150 aspect */
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 211, 107, 0.5)); /* Subtle glow for icons */
}

.page-blog__category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* CTA Section */
.page-blog__cta-section {
    background: var(--card-bg);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 60px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.page-blog__cta-text {
    margin-bottom: 30px;
}

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

/* FAQ Section */
.page-blog__faq-section {
    margin-bottom: 60px;
}

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

.page-blog__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
    list-style: none; /* For details/summary */
}

/* Hide default details marker */
.page-blog__faq-item summary::-webkit-details-marker,
.page-blog__faq-item summary::marker {
    display: none;
    content: "";
}

.page-blog__faq-question:hover {
    background-color: #1a1a1a;
}

.page-blog__faq-item[open] .page-blog__faq-question {
    border-bottom-color: var(--border-color);
}

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

.page-blog__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-left: 15px;
    width: 25px;
    text-align: center;
    line-height: 1;
}

.page-blog__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.7;
    opacity: 0.85;
}

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

.page-blog__section,
.page-blog__card,
.page-blog__container,
.page-blog__cta-buttons {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Image color filter restriction */
.page-blog img {
    filter: none; /* Ensure no CSS filters are applied to change image colors */
}

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

    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        margin-bottom: 30px;
    }

    .page-blog__hero-image {
        height: 300px; /* Adjust height for mobile hero image */
        object-fit: contain; /* Ensure full image is visible, no cropping */
        background-color: #000; /* Fallback background for contain */
    }

    .page-blog__main-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .page-blog__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-blog__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-blog__post-grid {
        grid-template-columns: 1fr; /* Single column for blog posts */
        gap: 20px;
    }

    .page-blog__post-image {
        height: 180px; /* Adjust height for mobile blog card images */
    }

    .page-blog__post-title {
        font-size: 1.2rem;
    }

    .page-blog__category-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for categories on mobile */
        gap: 15px;
    }

    .page-blog__category-card {
        min-height: unset; /* Remove min-height for mobile */
        padding: 15px;
    }

    .page-blog__category-icon {
        width: 100%; /* Make them fill container on mobile */
        max-width: 150px; /* Max size for mobile while maintaining aspect */
        height: auto; /* Maintain aspect ratio */
    }

    .page-blog__category-name {
        font-size: 0.9rem;
    }

    .page-blog__cta-section {
        padding: 40px 15px;
    }

    .page-blog__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-blog__faq-toggle {
        font-size: 1.5rem;
    }

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

    /* General image and container responsive styles 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;
        padding-left: 15px;
        padding-right: 15px;
    }
}