.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color, #0D0E12);
    color: var(--text-main-color, #FFF3E6);
}

.page-blog__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-height: 400px; /* Ensure image is not too small */
}

.page-blog__hero-content {
    position: relative; /* Ensure content is above image conceptually, even if visually below */
    z-index: 10;
    max-width: 900px;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(13, 14, 18, 0.8) 0%, rgba(13, 14, 18, 0.9) 100%);
    border-radius: 8px;
    margin-top: -80px; /* Pull up slightly to overlap image for visual flow, but not on text */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__main-title {
    font-size: clamp(2.2em, 3.5vw, 2.8em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: #FFF3E6;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.page-blog__description {
    font-size: 1.1em;
    color: #FFF3E6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
    border: none;
}

.page-blog__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-blog__latest-posts-section {
    padding: 80px 0;
    background-color: var(--background-color, #0D0E12);
}

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

.page-blog__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    color: #FF8C1A;
    text-align: center;
    margin-bottom: 20px;
}

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

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

.page-blog__post-card {
    background-color: var(--card-bg-color, #17191F);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main-color, #FFF3E6);
    border: 1px solid var(--border-color, #A84F0C);
}

.page-blog__post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color, #FFB04D);
}

.page-blog__post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-blog__post-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-blog__post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__post-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #FF8C1A;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-date {
    font-size: 0.9em;
    color: rgba(255, 243, 230, 0.7);
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: #FFF3E6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit excerpt to 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-blog__read-more {
    font-size: 1em;
    font-weight: 600;
    color: #FFA53A;
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.2s ease;
}

.page-blog__read-more:hover {
    color: #FFB04D;
}

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

.page-blog__view-all-button {
    display: inline-block;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 10px rgba(255, 140, 26, 0.3);
    border: none;
}

.page-blog__view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.5);
}

.page-blog__cta-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    background-color: var(--deep-orange-color, #D96800);
}

.page-blog__cta-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle overlay */
    z-index: 0;
    min-width: 200px;
    min-height: 200px;
}

.page-blog__cta-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    color: #FFF3E6;
    padding: 0 20px;
}

.page-blog__cta-title {
    font-size: clamp(2em, 3.5vw, 2.8em);
    font-weight: 700;
    color: #FFF3E6;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.page-blog__cta-description {
    font-size: 1.2em;
    color: #FFF3E6;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

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

.page-blog__btn-secondary {
    background: #17191F;
    color: #FF8C1A;
    border: 2px solid #FF8C1A;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-secondary:hover {
    transform: translateY(-2px);
    background: #FF8C1A;
    color: #FFF3E6;
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-blog__copyright {
    text-align: center;
    padding: 20px;
    background-color: #0D0E12;
    color: rgba(255, 243, 230, 0.6);
    font-size: 0.9em;
    border-top: 1px solid #A84F0C;
}

/* General image styling for content areas */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }

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

    .page-blog__description {
        font-size: 1em;
    }

    .page-blog__section-title {
        font-size: 2.2em;
    }

    .page-blog__posts-grid {
        gap: 25px;
    }

    .page-blog__post-card {
        margin-bottom: 0;
    }

    .page-blog__cta-title {
        font-size: 2.5em;
    }

    .page-blog__cta-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-blog__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-blog__hero-image-wrapper {
        max-height: 400px;
    }

    .page-blog__hero-image {
        min-height: 250px;
    }

    .page-blog__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
        max-width: calc(100% - 30px); /* Ensure padding does not cause overflow */
    }

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

    .page-blog__description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    .page-blog__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        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: 60px 0;
    }

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

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

    .page-blog__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-blog__posts-grid {
        grid-template-columns: 1fr; /* Single column layout for mobile */
        gap: 25px;
    }

    .page-blog__post-image {
        height: 180px;
        min-height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    .page-blog__post-date {
        font-size: 0.85em;
    }

    .page-blog__post-excerpt {
        font-size: 0.9em;
    }

    .page-blog__read-more {
        font-size: 0.95em;
    }

    .page-blog__view-all-button {
        padding: 10px 20px;
        font-size: 0.95em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* CTA Section */
    .page-blog__cta-section {
        padding: 60px 0;
    }

    .page-blog__cta-content {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-blog__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* General image responsiveness for all content images */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Ensure all content containers are responsive */
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__posts-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__copyright {
        font-size: 0.8em;
        padding: 15px;
    }
}