.page-blog {
    font-family: 'Arial', sans-serif;
    color: #FFF3E6; /* Text Main */
    background-color: #0D0E12; /* Background */
    line-height: 1.6;
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: #FFB04D; /* Glow */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(180deg, #0D0E12 0%, #17191F 100%); /* Card BG for blend */
    border-bottom: 2px solid #A84F0C; /* Border */
}

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

.page-blog__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: #FFB04D; /* Glow */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

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

.page-blog__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-blog__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-blog__btn--primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #ffffff;
    border: none;
}

.page-blog__btn--primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-blog__btn--secondary {
    background: #17191F; /* Card BG */
    color: #FF8C1A; /* Primary color */
    border: 2px solid #A84F0C; /* Border */
}

.page-blog__btn--secondary:hover {
    background: #0D0E12; /* Background */
    color: #FFB04D; /* Glow */
    border-color: #FFB04D; /* Glow */
    transform: translateY(-2px);
}

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

.page-blog__article-card {
    background: #17191F; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #A84F0C; /* Border */
}

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

.page-blog__article-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-blog__article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__article-image {
    transform: scale(1.05);
}

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

.page-blog__article-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__article-title a {
    color: #FFB04D; /* Glow */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: #FFA53A; /* Auxiliary color */
}

.page-blog__article-meta {
    font-size: 0.9em;
    color: #A84F0C; /* Border color for subtle text */
    margin-bottom: 15px;
}

.page-blog__article-excerpt {
    font-size: 1em;
    color: #FFF3E6;
    margin-bottom: 20px;
}

.page-blog__read-more {
    color: #FFA53A; /* Auxiliary color */
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: color 0.3s ease;
}

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

/* Featured Topics Section */
.page-blog__topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.page-blog__topic-card {
    background: #17191F; /* Card BG */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #FFF3E6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid #A84F0C; /* Border */
}

.page-blog__topic-card:hover {
    transform: translateY(-5px);
    background: #0D0E12; /* Background */
}

.page-blog__topic-title {
    font-size: 1.3em;
    color: #FFA53A; /* Auxiliary color */
    margin-bottom: 10px;
}

.page-blog__topic-excerpt {
    font-size: 0.95em;
    color: #FFF3E6;
}

/* Expert Insights Section */
.page-blog__expert-insights {
    text-align: center;
}

.page-blog__figure {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C; /* Border */
}

.page-blog__figure-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-blog__figure-caption {
    background: #17191F; /* Card BG */
    padding: 15px 20px;
    font-size: 0.95em;
    color: #A84F0C; /* Border color for subtle text */
}

.page-blog__text-block {
    text-align: left;
    max-width: 900px;
    margin: 20px auto;
    font-size: 1.1em;
    color: #FFF3E6;
}

.page-blog__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* CTA Banner Section */
.page-blog__cta-banner {
    background: linear-gradient(90deg, #D96800 0%, #FF8C1A 100%); /* Deep Orange to Primary */
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px;
    margin: 40px auto;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid #FFB04D; /* Glow */
}

.page-blog__cta-title {
    font-size: 2.2em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

/* About Blog Section */
.page-blog__about-blog .page-blog__text-block {
    text-align: left;
}

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

/* Contrast Fixes (if needed, though colors are chosen for contrast) */
.page-blog__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-blog__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-blog {
        font-size: 15px;
        line-height: 1.55;
    }

    .page-blog__section {
        padding: 30px 15px;
    }

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

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

    /* Hero Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }

    .page-blog__hero-title {
        font-size: clamp(2em, 8vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-blog__hero-description {
        font-size: 1.05em;
        margin-bottom: 30px;
    }

    .page-blog__hero-cta,
    .page-blog__cta-group,
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Articles Grid */
    .page-blog__articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-blog__article-card {
        margin: 0 auto;
        max-width: 400px; /* Constrain card width for smaller screens */
    }

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

    /* Topics Grid */
    .page-blog__topics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Expert Insights Figure */
    .page-blog__figure {
        margin: 30px auto;
    }
    
    .page-blog__text-block {
        font-size: 1em;
        margin: 15px auto;
        padding: 0 15px; /* Ensure text blocks have padding */
    }

    /* CTA Banner */
    .page-blog__cta-banner {
        padding: 40px 15px;
        margin: 30px auto;
    }

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

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

    /* All images in content area */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Content containers */
    .page-blog__section,
    .page-blog__hero-content,
    .page-blog__article-content,
    .page-blog__topics-grid,
    .page-blog__figure,
    .page-blog__cta-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}