.page-blog {
    background-color: #0A0A0A; /* Background color */
    color: #FFF6D6; /* Text Main color */
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.page-blog__hero-section {
    position: relative;
    margin-bottom: 40px;
    padding: 0 15px; /* Add horizontal padding for smaller screens */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/5; /* Approx 1920x600 */
    object-fit: cover;
    border-radius: 8px;
    filter: none; /* Ensure no color filters */
}

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

.page-blog__hero-content h1 {
    font-size: clamp(1.5rem, 4.5vw, 2.5rem); /* Adjusted clamp for H1 on blog page, slightly larger max than general H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #F2C14E; /* Main color for emphasis */
}

.page-blog__hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__blog-grid-section {
    padding: 40px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-blog__blog-card {
    background-color: #111111; /* Card BG color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #3A2A12; /* Border color */
}

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

.page-blog__card-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9; /* For blog post images */
    overflow: hidden;
}

.page-blog__card-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: none; /* Ensure no color filters */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-blog__card-date {
    font-size: 0.9em;
    color: #FFD36B; /* Accent color */
    margin-bottom: 10px;
}

.page-blog__card-title {
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow title to take available space */
}

.page-blog__card-title a {
    color: #FFF6D6; /* Text Main color */
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-blog__card-title a:hover {
    color: #F2C14E; /* Main color on hover */
}

.page-blog__card-excerpt {
    font-size: 1em;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main color */
    margin-bottom: 20px;
}

.page-blog__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for contrast on button */
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.page-blog__read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__view-all-posts-section {
    text-align: center;
    margin-top: 50px;
    padding: 0 15px;
}

.page-blog__view-all-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.page-blog__view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 849px) {
    .page-blog__hero-content h1 {
        font-size: clamp(1.1rem, 4.5vw, 1.75rem); /* Use the specified clamp for H1 on mobile */
    }

    .page-blog__hero-content p {
        font-size: 1em;
    }

    .page-blog__grid-container {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .page-blog__blog-card {
        margin-bottom: 20px;
    }

    .page-blog__card-image {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure no content causes horizontal scroll on mobile */
@media (max-width: 768px) {
    .page-blog {
        padding-left: 12px;
        padding-right: 12px;
    }
    .page-blog__hero-section,
    .page-blog__blog-grid-section,
    .page-blog__view-all-posts-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-blog__hero-image,
    .page-blog__card-image {
        max-width: 100% !important;
        height: auto !important;
    }
}