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

.page-blog__hero-section {
    padding-top: var(--header-offset, 120px);
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: #000000; /* Dark background for hero section */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-blog__hero-container {
    position: relative;
    width: 100%;
    max-width: 1920px; /* Max width for the image container */
    margin: 0 auto;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.7; /* Slightly dim the image for text readability */
}

.page-blog__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    color: #FFFFFF; /* Light text for dark overlay */
}

.page-blog__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FCBC45; /* Highlight with login color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.page-blog__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.1em;
    text-align: center;
    min-width: 150px;
}

.page-blog__button--register {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

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

.page-blog__button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

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

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

.page-blog__latest-articles,
.page-blog__categories,
.page-blog__featured-article,
.page-blog__cta-section,
.page-blog__newsletter {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

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

.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-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;
    min-height: 200px; /* Ensure card is not too small */
}

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

.page-blog__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Image minimum size */
}

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

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

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

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

.page-blog__article-excerpt {
    font-size: 0.95em;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-blog__read-more {
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

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

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

.page-blog__category-item {
    display: inline-block;
    background-color: #000000;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.95em;
    border: 2px solid #000000;
}

.page-blog__category-item:hover {
    background-color: #FCBC45;
    color: #000000;
    border-color: #FCBC45;
}

.page-blog__featured-content {
    display: flex;
    gap: 40px;
    align-items: center;
    background-color: #F8F8F8;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.page-blog__featured-image {
    width: 60%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 400px; /* Minimum size for featured image */
    min-height: 200px;
}

.page-blog__featured-text {
    width: 40%;
}

.page-blog__featured-title {
    font-size: 2em;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

.page-blog__featured-excerpt {
    font-size: 1.1em;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.page-blog__cta-content {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.page-blog__cta-image {
    width: 40%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-blog__cta-text {
    width: 50%;
    max-width: 600px;
    text-align: left;
}

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

.page-blog__cta-description {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 30px;
}

.page-blog__button--primary {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

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

.page-blog__newsletter {
    background-color: #F0F0F0;
    padding: 80px 0;
}

.page-blog__newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-blog__newsletter-input {
    padding: 15px 20px;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    font-size: 1em;
}

.page-blog__button--subscribe {
    background-color: #000000;
    color: #FFFFFF;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.5em;
    }
    .page-blog__hero-description {
        font-size: 1.1em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__featured-content {
        flex-direction: column;
        text-align: center;
    }
    .page-blog__featured-image {
        width: 80%;
        min-width: 200px;
    }
    .page-blog__featured-text {
        width: 100%;
    }
    .page-blog__cta-content {
        flex-direction: column;
    }
    .page-blog__cta-image {
        width: 80%;
        min-width: 200px;
    }
    .page-blog__cta-text {
        width: 100%;
        text-align: center;
    }
    .page-blog__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-title {
        font-size: 2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    .page-blog__button {
        width: 100%;
        max-width: 250px;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__article-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__article-image {
        height: 200px;
        min-height: 200px;
    }
    .page-blog__featured-image {
        width: 100%;
        min-width: 200px;
    }
    .page-blog__cta-image {
        width: 100%;
        min-width: 200px;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__newsletter-form {
        flex-direction: column;
    }
    .page-blog__newsletter-input,
    .page-blog__button--subscribe {
        max-width: 100%;
    }
    .page-blog__hero-section img,
    .page-blog__latest-articles img,
    .page-blog__featured-article img,
    .page-blog__cta-section img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.5em;
    }
    .page-blog__hero-description {
        font-size: 0.9em;
    }
    .page-blog__section-title {
        font-size: 1.5em;
    }
    .page-blog__cta-title {
        font-size: 1.5em;
    }
}