/* General styles for .page-blog content */
.page-blog {
    background-color: #0D0E12; /* Background */
    color: #FFF3E6; /* Text Main */
    font-family: Arial, sans-serif;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    box-sizing: border-box;
    overflow-x: hidden;
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px; /* Minimal top padding */
}

.page-blog__hero-image-wrapper {
    margin-bottom: 20px;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9; /* General aspect ratio for hero images */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-content {
    padding: 0 15px;
}

.page-blog__hero-content h1 {
    color: #FF8C1A; /* Primary color */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    /* No fixed font-size for h1, relying on context/defaults/clamp if needed */
}

.page-blog__hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #FFF3E6; /* Text Main */
}

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

.page-blog__posts-section h2 {
    text-align: center;
    color: #FFA53A; /* Auxiliary color */
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 600;
}

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

.page-blog__post-card {
    background-color: #17191F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    border: 1px solid #A84F0C; /* Border */
    display: flex;
    flex-direction: column;
}

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

.page-blog__post-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency in cards */
    object-fit: cover;
    display: block;
}

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

.page-blog__post-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-card-content h3 a {
    color: #FFA53A; /* Auxiliary color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-card-content h3 a:hover {
    color: #FFB04D; /* Glow */
}

.page-blog__post-card-date {
    font-size: 0.9rem;
    color: #FF8C1A; /* Primary color */
    margin-bottom: 15px;
}

.page-blog__post-card-excerpt {
    font-size: 1rem;
    line-height: 1.5;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6; /* Text Main */
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
}

.page-blog__read-more-btn:hover {
    filter: brightness(1.1);
}

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

.page-blog__view-all-posts-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6; /* Text Main */
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.page-blog__view-all-posts-btn:hover {
    filter: brightness(1.1);
}

/* CTA Section */
.page-blog__cta-section {
    background-color: #17191F; /* Card BG */
    padding: 50px 20px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #A84F0C; /* Border */
    margin-top: 60px;
}

.page-blog__cta-section h2 {
    color: #FF8C1A; /* Primary color */
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-blog__cta-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #FFF3E6; /* Text Main */
}

.page-blog__cta-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6; /* Text Main */
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.page-blog__cta-btn:hover {
    filter: brightness(1.1);
}

/* Responsive Styles */
@media (max-width: 849px) {
    .page-blog__hero-content h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    .page-blog__posts-section h2 {
        font-size: 2rem;
    }
    .page-blog__post-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-blog__cta-section h2 {
        font-size: 2rem;
    }
    .page-blog__cta-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 549px) {
    .page-blog__hero-content h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-blog__hero-content p {
        font-size: 1rem;
    }
    .page-blog__posts-section h2 {
        font-size: 1.8rem;
    }
    .page-blog__post-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__post-card-image {
        height: 180px;
    }
    .page-blog__post-card-content h3 {
        font-size: 1.2rem;
    }
    .page-blog__cta-section h2 {
        font-size: 1.8rem;
    }
    .page-blog__cta-section p {
        font-size: 1rem;
    }
}

/* Ensure images in content area are responsive in mobile media query */
@media (max-width: 768px) {
    .page-blog__post-card-image,
    .page-blog__hero-image {
        max-width: 100%;
        height: auto;
    }
    .page-blog img { /* General rule for all images within .page-blog */
        max-width: 100%;
        height: auto;
    }
}