/* style/blog.css */
.page-blog {
    color: #333333;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-blog__hero-section {
    background-color: #f8f8f8;
    padding: var(--header-offset, 120px) 20px 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-blog__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-blog__hero-title {
    font-size: 2.8em;
    color: #8B0000;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-blog__hero-button {
    display: inline-block;
    background-color: #FFD700;
    color: #8B0000;
    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;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-blog__hero-image-wrapper {
    max-width: 1000px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-blog__posts-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.page-blog__section-title {
    font-size: 2.2em;
    color: #8B0000;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-blog__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    margin: 15px auto 0;
    border-radius: 2px;
}

.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: 12px;
    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 25px rgba(0, 0, 0, 0.2);
}

.page-blog__post-image-wrapper {
    width: 100%;
    height: 250px; /* Fixed height for consistent card appearance */
    overflow: hidden;
}

.page-blog__post-image {
    width: 100%;
    height: 100%;
    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: #8B0000;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-blog__post-title a {
    color: #8B0000;
    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: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.page-blog__cta-section {
    background-color: #8B0000;
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
    margin-top: 60px;
}

.page-blog__cta-title {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 20px;
}

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

.page-blog__cta-button {
    display: inline-block;
    background-color: #FFD700;
    color: #8B0000;
    padding: 18px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-blog__more-resources-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

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

.page-blog__resource-card {
    background-color: #f0f0f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-blog__resource-card:hover {
    transform: translateY(-3px);
}

.page-blog__resource-title {
    font-size: 1.4em;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-blog__resource-title a {
    color: #8B0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-blog__resource-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
}

.page-blog__resource-link {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__resource-link:hover {
    color: #8B0000;
}

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

@media (max-width: 768px) {
    .page-blog {
        padding-top: var(--header-offset, 120px); /* Ensure mobile also respects header offset */
    }
    .page-blog__hero-section {
        flex-direction: column;
        padding: var(--header-offset, 120px) 15px 40px;
    }
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__hero-description {
        font-size: 0.95em;
    }
    .page-blog__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-blog__posts-section, .page-blog__more-resources-section {
        padding: 15px;
    }
    .page-blog__post-grid, .page-blog__resource-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__post-image-wrapper {
        height: 200px;
    }
    .page-blog__post-title {
        font-size: 1.3em;
    }
    .page-blog__cta-section {
        padding: 40px 15px;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }

    /* Ensure images do not overflow on mobile */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.5em;
    }
    .page-blog__section-title {
        font-size: 1.5em;
    }
    .page-blog__cta-title {
        font-size: 1.5em;
    }
    .page-blog__post-title {
        font-size: 1.1em;
    }
    .page-blog__post-excerpt, .page-blog__resource-text {
        font-size: 0.9em;
    }
}