.page-blog {
    color: #333333; /* Dark text for default light body background */
}

.page-blog__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-blog__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-blog__hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff; /* Light text for hero overlay */
    padding: 20px;
    max-width: 900px;
    background: rgba(0, 51, 102, 0.7); /* Dark blue overlay */
    border-radius: 10px;
}

.page-blog__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold accent for title */
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-blog__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #003366; /* Dark blue text */
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__hero-button:hover {
    background-color: #e6c200;
    color: #001a33;
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: #003366; /* Dark blue for section titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-blog__section-intro {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.6;
}

.page-blog__featured-articles,
.page-blog__latest-posts,
.page-blog__about-8y {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-blog__featured-articles {
    background-color: #ffffff;
}

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

.page-blog__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

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

.page-blog__article-title a {
    color: #003366; /* Dark blue for article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: #FFD700; /* Gold on hover */
}

.page-blog__article-excerpt {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.page-blog__read-more {
    display: inline-block;
    color: #003366; /* Dark blue for read more */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.page-blog__posts-list {
    display: grid;
    gap: 40px;
}

.page-blog__post-item {
    display: flex;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-blog__post-image {
    width: 350px; /* Fixed width for post list image */
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

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

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

.page-blog__post-title a {
    color: #003366;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: #FFD700;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.page-blog__cta-section {
    background: linear-gradient(135deg, #003366, #001a33); /* Dark blue gradient */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-blog__cta-content {
    max-width: 800px;
}

.page-blog__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold accent */
}

.page-blog__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.page-blog__cta-button--primary {
    background-color: #FFD700; /* Gold button */
    color: #003366;
    border: 2px solid #FFD700;
}

.page-blog__cta-button--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #001a33;
}

.page-blog__cta-button--secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-blog__cta-button--secondary:hover {
    background-color: #FFD700;
    color: #003366;
}

.page-blog__about-8y {
    background-color: #f0f5f9;
    padding-bottom: 80px;
}

.page-blog__about-8y .page-blog__section-title {
    color: #003366;
}

.page-blog__about-8y .page-blog__section-intro {
    text-align: left;
    color: #444444;
    margin-bottom: 25px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 3em;
    }
    .page-blog__hero-description {
        font-size: 1.1em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__post-image {
        width: 300px;
        height: 200px;
    }
    .page-blog__post-title {
        font-size: 1.4em;
    }
    .page-blog__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px);
    }
    .page-blog__hero-content {
        padding: 15px;
        max-width: 90%;
    }
    .page-blog__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-blog__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-blog__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-blog__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__post-item {
        flex-direction: column;
    }
    .page-blog__post-image {
        width: 100%;
        height: 200px;
    }
    .page-blog__post-content {
        padding: 20px;
    }
    .page-blog__post-title {
        font-size: 1.3em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__cta-button {
        width: 80%;
        max-width: 300px;
    }

    /* Ensure all images within .page-blog are responsive and don't overflow */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
    .page-blog__article-image,
    .page-blog__post-image {
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px;
    }
    .page-blog__article-image {
        height: auto; /* Allow height to adjust for responsiveness */
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__hero-description {
        font-size: 0.9em;
    }
    .page-blog__article-title {
        font-size: 1.3em;
    }
    .page-blog__post-title {
        font-size: 1.2em;
    }
    .page-blog__cta-title {
        font-size: 1.6em;
    }
}