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

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

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

.page-blog__hero-content {
    max-width: 900px;
    text-align: center;
    color: #FFFFFF; /* White text for dark hero image background */
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
    border-radius: 10px;
    z-index: 1;
}

.page-blog__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FCBC45; /* Login button color for emphasis */
}

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

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

.page-blog__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Black text for contrast */
    border: 2px solid #FCBC45;
}

.page-blog__button--primary:hover {
    background-color: #E0A83A;
    border-color: #E0A83A;
}

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

.page-blog__button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-blog__section-title {
    font-size: 2.5em;
    text-align: center;
    margin: 60px 0 40px;
    color: #000000;
    font-weight: bold;
}

.page-blog__featured-articles,
.page-blog__latest-posts,
.page-blog__categories,
.page-blog__cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.page-blog__article-card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.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__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

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

.page-blog__card-title a:hover {
    color: #FCBC45;
}

.page-blog__card-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

.page-blog__post-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-blog__post-item {
    display: flex;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    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.1);
}

.page-blog__post-image {
    width: 300px; /* Min width 200px */
    height: 225px; /* Aspect ratio 4:3 */
    object-fit: cover;
    flex-shrink: 0;
}

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

.page-blog__post-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

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

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

.page-blog__post-meta {
    font-size: 0.9em;
    color: #777777;
    margin-bottom: 15px;
}

.page-blog__post-meta span:not(:last-child) {
    margin-right: 15px;
}

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

.page-blog__view-all-button-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 80px;
}

.page-blog__category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 80px;
}

.page-blog__category-link {
    display: inline-block;
    padding: 12px 25px;
    background-color: #FCBC45;
    color: #000000;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__category-link:hover {
    background-color: #E0A83A;
    color: #FFFFFF;
}

.page-blog__cta-section {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    margin-bottom: 80px;
    overflow: hidden;
}

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

.page-blog__cta-content {
    max-width: 800px;
    text-align: center;
    color: #FFFFFF;
    padding: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    z-index: 1;
}

.page-blog__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FCBC45;
}

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

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

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__hero-description {
        font-size: 1.1em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__card-title {
        font-size: 1.4em;
    }
    .page-blog__post-title {
        font-size: 1.6em;
    }
    .page-blog__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        min-height: 400px;
    }
    .page-blog__hero-title {
        font-size: 2.2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__button {
        width: 80%;
        margin: 0 auto;
    }
    .page-blog__article-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__article-image {
        height: 200px;
    }
    .page-blog__post-item {
        flex-direction: column;
    }
    .page-blog__post-image {
        width: 100%;
        height: 200px; /* Min width 200px, height auto to maintain aspect ratio */
    }
    .page-blog__post-content {
        padding: 20px;
    }
    .page-blog__post-title {
        font-size: 1.4em;
    }
    .page-blog__post-excerpt {
        font-size: 0.9em;
    }
    .page-blog__category-list {
        justify-content: flex-start;
        padding: 0 20px;
    }
    .page-blog__cta-section {
        min-height: 300px;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    /* Ensure content images are responsive and not too small */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
    .page-blog__article-image,
    .page-blog__post-image {
        min-width: 200px;
        min-height: 150px; /* Adjusted to maintain aspect ratio with min-width */
    }
}

@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.6em;
    }
    .page-blog__button {
        width: 90%;
    }
}