/* style/blog.css */
.page-blog {
    color: #333333; /* Dark text for default light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.page-blog__hero-section {
    background-color: #0A2463; /* Primary dark blue background */
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-blog__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.7;
}

.page-blog__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    max-width: 800px;
    z-index: 10;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 8px;
}

.page-blog__hero-title {
    font-size: 2.8em;
    color: #FFD700; /* Secondary gold color for emphasis */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.page-blog__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-blog__hero-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-blog__latest-posts,
.page-blog__categories,
.page-blog__cta-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.page-blog__latest-posts {
    background-color: #ffffff;
}

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

.page-blog__section-title {
    font-size: 2.2em;
    color: #0A2463; /* Primary dark blue for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

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

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

.page-blog__post-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

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

.page-blog__post-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #0A2463;
    font-weight: bold;
}

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

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

.page-blog__post-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

.page-blog__read-more {
    display: inline-block;
    color: #FFD700; /* Secondary gold color */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__read-more:hover {
    color: #0A2463;
    border-color: #0A2463;
}

.page-blog__category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-blog__category-card {
    background-color: #0A2463; /* Primary dark blue */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__category-card:hover {
    background-color: #FFD700; /* Secondary gold on hover */
    color: #0A2463;
}

.page-blog__cta-section {
    background-color: #0A2463; /* Primary dark blue background */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-blog__cta-title {
    font-size: 2.5em;
    color: #FFD700; /* Secondary gold color */
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-blog__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Secondary gold color for CTA */
    color: #0A2463; /* Dark blue text for contrast */
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-blog__hero-title {
        font-size: 2.2em;
    }
    .page-blog__hero-description {
        font-size: 1.1em;
    }
    .page-blog__section-title,
    .page-blog__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding-top: var(--header-offset, 80px);
        padding-bottom: 40px;
    }
    .page-blog__hero-content {
        padding: 15px;
    }
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__posts-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__post-image {
        height: 200px;
    }
    .page-blog__post-title {
        font-size: 1.2em;
    }
    .page-blog__category-grid {
        flex-direction: column;
        align-items: center;
    }
    .page-blog__category-card {
        width: 80%;
        text-align: center;
    }
    .page-blog__cta-title {
        font-size: 2em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    .page-blog__cta-button {
        padding: 15px 25px;
        font-size: 1.1em;
    }
    /* Ensure content images do not overflow */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
    /* Specific rule for content area images to prevent smaller than 200px */
    .page-blog__posts-grid img,
    .page-blog__hero-image {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.5em;
    }
    .page-blog__hero-description {
        font-size: 0.9em;
    }
    .page-blog__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-blog__section-title,
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__latest-posts,
    .page-blog__categories,
    .page-blog__cta-section {
        padding: 40px 15px;
    }
}