/* style/blog.css */
.page-blog {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    background-color: #0056B3; /* Primary blue background for hero */
    color: #ffffff;
    padding: 80px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-blog__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-blog__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-blog__button--primary {
    background-color: #FFD700; /* Gold button */
    color: #0056B3; /* Dark blue text */
    border: 2px solid #FFD700;
}

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

.page-blog__button--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-blog__button--secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

.page-blog__button--text {
    background: none;
    border: none;
    color: #0056B3;
    padding: 0;
    min-width: unset;
    font-size: 1em;
    text-align: left;
    text-decoration: underline;
}

.page-blog__button--text:hover {
    color: #003d80;
    transform: none;
}

/* Latest Posts Section */
.page-blog__latest-posts {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-blog__section-title {
    font-size: 2.5em;
    color: #0056B3;
    text-align: center;
    margin-bottom: 20px;
}

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

.page-blog__post-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.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

.page-blog__post-title {
    font-size: 1.5em;
    color: #0056B3;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

.page-blog__post-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* CTA Section */
.page-blog__cta-section {
    background-color: #0056B3; /* Primary blue background */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

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

.page-blog__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__section-title {
        font-size: 2.2em;
    }
    .page-blog__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 60px 0;
    }
    .page-blog__hero-title {
        font-size: 2.2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__button {
        width: 100%;
        max-width: 300px;
    }
    .page-blog__post-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__section-intro {
        font-size: 1em;
    }
    .page-blog__cta-title {
        font-size: 2em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    .page-blog__post-image {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
    }
    .page-blog__post-card img,
    .page-blog__post-content img,
    .page-blog__latest-posts img,
    .page-blog__cta-section img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size for content images */
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__button {
        padding: 12px 20px;
        font-size: 1em;
    }
}