/* style/blog.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
}

.page-blog {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: var(--background-color);
}

.page-blog__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Minimal top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-blog__hero-image-wrapper {
    width: 100%;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px;
}

.page-blog__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-50px);
    position: relative;
    z-index: 1;
}

.page-blog__main-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-blog__description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #555;
    margin-bottom: 30px;
}

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

.page-blog__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    font-size: 1rem;
    min-width: 150px;
    text-align: center;
}

.page-blog__btn--primary {
    background-color: var(--register-button-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-button-color);
}

.page-blog__btn--primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-blog__btn--secondary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-blog__btn--secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-blog__latest-posts,
.page-blog__community-insights,
.page-blog__cta-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-blog__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-blog__section-subtitle {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

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

.page-blog__post-card,
.page-blog__insight-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__post-card:hover,
.page-blog__insight-card:hover {
    transform: translateY(-5px);
}

.page-blog__post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    min-height: 200px;
}

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

.page-blog__post-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-blog__post-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-blog__post-title a:hover {
    text-decoration: underline;
}

.page-blog__post-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-blog__read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: #005a2e;
    text-decoration: underline;
}

.page-blog__insight-card {
    padding: 25px;
}

.page-blog__insight-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-blog__insight-text {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.page-blog__cta-section {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 80px 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

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

.page-blog__cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--secondary-color);
}

.page-blog__cta-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 30px;
    color: var(--secondary-color);
}

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

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        transform: translateY(-30px);
    }
}

@media (max-width: 768px) {
    .page-blog__hero-content {
        padding: 30px 15px;
        transform: translateY(-20px);
    }

    .page-blog__main-title {
        font-size: 2rem;
    }

    .page-blog__description {
        font-size: 1rem;
    }

    .page-blog__latest-posts,
    .page-blog__community-insights,
    .page-blog__cta-section {
        padding: 40px 15px;
    }

    .page-blog__section-title {
        font-size: 2rem;
    }

    .page-blog__section-subtitle {
        font-size: 0.95rem;
    }

    .page-blog__post-grid,
    .page-blog__insight-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__post-image {
        height: 220px;
        min-height: 200px;
    }

    .page-blog__post-title {
        font-size: 1.2rem;
    }

    .page-blog__insight-title {
        font-size: 1.15rem;
    }

    .page-blog__btn {
        width: 100%;
        max-width: 250px;
        font-size: 0.95rem;
    }

    .page-blog__hero-actions, .page-blog__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-blog__cta-title {
        font-size: 2rem;
    }

    .page-blog__cta-description {
        font-size: 1rem;
    }

    .page-blog img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
}