.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: transparent; /* Inherit from body or shared, ensuring content background is light */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    overflow: hidden;
    color: #FFFFFF; /* Light text for hero overlay */
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-blog__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-blog__hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-blog__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #F0F0F0;
}

.page-blog__hero-cta {
    margin-top: 30px;
}

/* Section Titles */
.page-blog__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-blog__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FCBC45;
    border-radius: 2px;
}

/* Buttons */
.page-blog__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.page-blog__button--primary {
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Dark text for contrast */
}

.page-blog__button--primary:hover {
    background-color: #e0a53b;
    color: #000000;
}

.page-blog__button--secondary {
    background-color: #000000;
    color: #FFFFFF; /* Register color text */
    padding: 10px 20px;
    font-size: 1em;
}

.page-blog__button--secondary:hover {
    background-color: #333333;
    color: #FCBC45;
}

.page-blog__button--large {
    padding: 18px 40px;
    font-size: 1.3em;
}

/* Latest Posts Grid */
.page-blog__latest-posts {
    padding: 80px 0;
    background-color: #FFFFFF; /* Explicitly white background for content */
}

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

/* Post Card */
.page-blog__post-card {
    background-color: #F8F8F8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-blog__post-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency, ensures minimum 200px display */
    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;
    margin-bottom: 15px;
    color: #000000;
    line-height: 1.3;
}

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

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

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

/* Call to Action Section */
.page-blog__call-to-action {
    background-color: #000000; /* Main color */
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

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

.page-blog__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

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

@media (max-width: 768px) {
    .page-blog__hero-title {
        font-size: 2.5em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .page-blog__posts-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__post-image {
        height: 200px; /* Ensure minimum display size on mobile */
        max-width: 100%; /* Prevent overflow */
    }
    /* Ensure all images within .page-blog are responsive and don't overflow */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 2em;
    }
    .page-blog__hero-section {
        padding: 60px 15px;
    }
    .page-blog__hero-description {
        font-size: 0.9em;
    }
    .page-blog__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-blog__section-title {
        font-size: 1.5em;
    }
    .page-blog__post-title {
        font-size: 1.2em;
    }
    .page-blog__post-excerpt {
        font-size: 0.85em;
    }
    .page-blog__cta-title {
        font-size: 1.6em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
}