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

.page-blog {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* #FFF6D6 */
    background-color: var(--background-color); /* #0A0A0A */
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    padding-top: 10px; /* As per fixed header rule */
    margin-bottom: 40px;
    overflow: hidden;
    background-color: var(--card-bg-color); /* #111111 */
}

.page-blog__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Image above, text below */
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-text-container {
    padding: 0 20px 40px;
}

.page-blog__hero-title {
    font-size: 3.2em; /* Use em to allow browser scaling */
    font-weight: bold;
    color: var(--text-main-color); /* #FFF6D6 */
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__hero-description {
    font-size: 1.2em;
    color: rgba(255, 246, 214, 0.8); /* Lighter #FFF6D6 */
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__hero-cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient); /* linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%) */
    color: #0A0A0A; /* Dark text on bright button */
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

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

/* Latest Posts Section */
.page-blog__latest-posts-section {
    padding: 40px 0;
    background-color: var(--background-color); /* #0A0A0A */
}

.page-blog__section-title {
    font-size: 2.5em;
    color: var(--text-main-color); /* #FFF6D6 */
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.page-blog__section-subtitle {
    font-size: 1.1em;
    color: rgba(255, 246, 214, 0.7); /* Lighter #FFF6D6 */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
    gap: 30px;
    margin-bottom: 40px;
}

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

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

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

.page-blog__post-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color); /* #3A2A12 */
}

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

.page-blog__post-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--text-main-color); /* #FFF6D6 */
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__post-excerpt {
    font-size: 0.95em;
    color: rgba(255, 246, 214, 0.7); /* Lighter #FFF6D6 */
    margin-bottom: 15px;
    line-height: 1.5;
}

.page-blog__post-date {
    font-size: 0.85em;
    color: rgba(255, 246, 214, 0.5); /* Even lighter #FFF6D6 */
    display: block;
    margin-bottom: 10px;
}

.page-blog__read-more {
    display: inline-block;
    font-size: 0.9em;
    color: var(--primary-color); /* #F2C14E */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: var(--secondary-color); /* #FFD36B */
}

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

.page-blog__pagination-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg-color); /* #111111 */
    color: var(--text-main-color); /* #FFF6D6 */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid var(--border-color); /* #3A2A12 */
}

.page-blog__pagination-link:hover:not(.page-blog__pagination-link--disabled):not(.page-blog__pagination-link--active) {
    background-color: var(--primary-color); /* #F2C14E */
    color: #0A0A0A; /* Dark text on primary */
}

.page-blog__pagination-link--active {
    background: var(--button-gradient); /* linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%) */
    color: #0A0A0A; /* Dark text on active */
    cursor: default;
}

.page-blog__pagination-link--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color); /* #F2C14E */
    color: #0A0A0A; /* Dark text on primary */
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__view-all-button:hover {
    background-color: var(--secondary-color); /* #FFD36B */
    transform: translateY(-2px);
}

/* CTA Section */
.page-blog__cta-section {
    background-color: var(--card-bg-color); /* #111111 */
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color); /* #3A2A12 */
}

.page-blog__cta-title {
    font-size: 2.8em;
    color: var(--text-main-color); /* #FFF6D6 */
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.page-blog__cta-description {
    font-size: 1.1em;
    color: rgba(255, 246, 214, 0.8); /* Lighter #FFF6D6 */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* For mobile responsiveness */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background: var(--button-gradient); /* linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%) */
    color: #0A0A0A; /* Dark text on bright button */
}

.page-blog__btn-secondary {
    background: transparent;
    color: var(--text-main-color); /* #FFF6D6 */
    border: 2px solid var(--primary-color); /* #F2C14E */
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__btn-secondary:hover {
    background-color: var(--primary-color); /* #F2C14E */
    color: #0A0A0A; /* Dark text on primary */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: var(--background-color); /* #0A0A0A */
}

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

.page-blog__faq-item {
    background-color: var(--card-bg-color); /* #111111 */
    border: 1px solid var(--border-color); /* #3A2A12 */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color); /* #FFF6D6 */
}

.page-blog__faq-item summary {
    display: block; /* For details/summary to work nicely with custom styling */
    padding: 20px 25px;
    cursor: pointer;
    outline: none;
    position: relative;
    font-weight: bold;
    font-size: 1.15em;
    color: var(--text-main-color); /* #FFF6D6 */
    transition: background-color 0.3s ease;
}

.page-blog__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

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

.page-blog__faq-item summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color); /* #F2C14E */
}

.page-blog__faq-item[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg); /* Rotate for minus sign */
}

.page-blog__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 246, 214, 0.7); /* Lighter #FFF6D6 */
}

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

/* General image styling */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default object-fit */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__section-title {
        font-size: 2.2em;
    }
    .page-blog__cta-title {
        font-size: 2.4em;
    }
    .page-blog__posts-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
        gap: 25px;
    }
}

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

    /* Hero Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Ensure minimal top padding */
        margin-bottom: 20px;
    }
    .page-blog__hero-image {
        margin-bottom: 15px;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    .page-blog__hero-text-container {
        padding: 0 15px 30px;
    }
    .page-blog__hero-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Responsive font size */
        margin-bottom: 10px;
    }
    .page-blog__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-blog__hero-cta-button {
        padding: 12px 25px !important;
        font-size: 1em !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Latest Posts Section */
    .page-blog__latest-posts-section {
        padding: 30px 0;
    }
    .page-blog__section-title {
        font-size: 2em;
        margin-bottom: 10px;
    }
    .page-blog__section-subtitle {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-blog__posts-grid {
        grid-template-columns: 1fr; /* 1 column for mobile */
        gap: 20px;
    }
    .page-blog__post-image {
        height: 180px; /* Adjust height for mobile */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* ensure auto height */
    }
    .page-blog__post-title {
        font-size: 1.15em;
    }
    .page-blog__post-excerpt {
        font-size: 0.9em;
    }

    /* Pagination */
    .page-blog__pagination-link {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }

    /* CTA Section */
    .page-blog__cta-section {
        padding: 40px 15px;
    }
    .page-blog__cta-title {
        font-size: clamp(1.8em, 7vw, 2.2em); /* Responsive font size */
        margin-bottom: 15px;
    }
    .page-blog__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Section */
    .page-blog__faq-section {
        padding: 40px 0;
    }
    .page-blog__faq-list {
        margin-top: 20px;
    }
    .page-blog__faq-item summary {
        padding: 18px 20px;
        font-size: 1.05em;
    }
    .page-blog__faq-item summary::after {
        right: 20px;
    }
    .page-blog__faq-answer {
        padding: 0 20px 18px;
        font-size: 0.95em;
    }

    /* General image & container responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__hero-content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__hero-content-wrapper {
        padding: 0; /* Override container padding, text-container handles it */
    }
}