/* style/blog.css */
.page-blog {
    color: #333333; /* Dark text for light body background */
}

.page-blog__hero-section {
    background-color: #000000; /* Dark background for hero */
    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: 1400px;
    margin: 0 auto;
    position: relative;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.6;
    filter: brightness(0.6); /* Darken image slightly for text readability */
}

.page-blog__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #FFFFFF;
    max-width: 800px;
    padding: 20px;
}

.page-blog__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFFFFF;
}

.page-blog__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
    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;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    font-size: 1.1em;
    cursor: pointer;
}

.page-blog__button--register {
    background-color: #FFFFFF;
    color: #000000;
}

.page-blog__button--register:hover {
    background-color: #F0F0F0;
    transform: translateY(-2px);
}

.page-blog__button--login {
    background-color: #FCBC45;
    color: #000000;
}

.page-blog__button--login:hover {
    background-color: #E0A83A;
    transform: translateY(-2px);
}

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

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

.page-blog__latest-articles {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

.page-blog__article-card {
    background-color: #F8F8F8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-blog__article-card:hover {
    transform: translateY(-8px);
}

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

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

.page-blog__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-blog__article-title a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.page-blog__article-excerpt {
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

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

.page-blog__categories-section {
    padding: 60px 0;
    background-color: #F0F0F0;
}

.page-blog__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.page-blog__category-card {
    background-color: #000000;
    color: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__category-card:hover {
    background-color: #333333;
    transform: translateY(-5px);
}

.page-blog__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

.page-blog__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #F0F0F0;
}

.page-blog__button--join {
    background-color: #FCBC45;
    color: #000000;
    padding: 18px 40px;
    font-size: 1.3em;
}

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

.page-blog__about-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-blog__about-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 20px;
    text-align: justify;
}

/* Responsive Design */
@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;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding-top: var(--header-offset, 80px);
        padding-bottom: 40px;
    }

    .page-blog__hero-content {
        padding: 15px;
        max-width: 90%;
    }

    .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: 80%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-blog__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .page-blog__latest-articles,
    .page-blog__categories-section,
    .page-blog__cta-section,
    .page-blog__about-section {
        padding: 40px 0;
    }

    .page-blog__article-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__article-image {
        height: 200px;
    }

    .page-blog__article-title {
        font-size: 1.3em;
    }

    .page-blog__categories-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__cta-description {
        font-size: 1.1em;
    }

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

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.8em;
    }

    .page-blog__hero-description {
        font-size: 0.9em;
    }

    .page-blog__button {
        font-size: 1em;
        padding: 12px 25px;
    }

    .page-blog__section-title {
        font-size: 1.6em;
    }

    .page-blog__article-title {
        font-size: 1.2em;
    }

    .page-blog__category-card {
        font-size: 1em;
        padding: 20px;
    }

    .page-blog__button--join {
        font-size: 1.1em;
        padding: 15px 30px;
    }
}