.page-blog {
    padding-bottom: 40px; /* Add some padding at the bottom for content */
    background-color: #140C0C; /* Background */
    color: #FFF1E8; /* Main text color */
}

/* Hero Section */
.page-blog__hero-section {
    width: 100%;
    margin: 0;
    overflow: hidden;
    padding-top: 10px; /* Small top padding */
}

.page-blog__hero-banner {
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.page-blog__hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9; /* Adjusted for a common hero aspect ratio, 1920x1080 */
    object-fit: cover;
    object-position: center;
    filter: none; /* Ensure no filter is applied */
}

.page-blog__hero-content {
    max-width: 1200px;
    margin: 20px auto 40px auto;
    padding: 0 20px;
    text-align: center;
}

.page-blog__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #F3C54D; /* Gold color for main title */
    margin-bottom: 15px;
    /* Use clamp for responsive font size */
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Adjusted for blog page, not homepage H1 */
}

.page-blog__description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #FFF1E8; /* Text Main */
}

.page-blog__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #140C0C; /* Dark text for contrast on bright button */
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 200px; /* Ensure button is not too small */
}

.page-blog__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Latest Posts Section */
.page-blog__latest-posts {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-blog__section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: #F3C54D; /* Gold color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

.page-blog__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #E53030; /* Auxiliary color */
    margin: 10px auto 0;
    border-radius: 2px;
}

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

.page-blog__post-card {
    background-color: #2A1212; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #6A1E1E; /* Border color */
    display: flex;
    flex-direction: column;
}

.page-blog__post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-blog__post-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    filter: none; /* No filters */
    border-bottom: 1px solid #6A1E1E; /* Border color */
    min-height: 200px; /* Ensure minimum size */
}

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

.page-blog__post-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #F3C54D; /* Gold for post titles */
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.page-blog__post-link:hover .page-blog__post-title {
    color: #FFB04A; /* Lighter gold on hover */
}

.page-blog__post-meta {
    font-size: 0.9rem;
    color: #E53030; /* Auxiliary color for meta */
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1rem;
    color: #FFF1E8; /* Text Main */
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #140C0C; /* Dark text for contrast */
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.page-blog__view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.page-blog__cta-section {
    background-color: #2A1212; /* Card BG */
    padding: 50px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #6A1E1E; /* Border color */
}

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

.page-blog__cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #F3C54D; /* Gold */
    margin-bottom: 20px;
    font-weight: 700;
}

.page-blog__cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-blog__cta-register-button,
.page-blog__cta-login-button {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #140C0C; /* Dark text for contrast */
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 180px; /* Ensure buttons are not too small */
}

.page-blog__cta-register-button:hover,
.page-blog__cta-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-blog__main-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .page-blog__post-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    .page-blog__post-card img {
        height: auto; /* Allow image height to be auto on mobile */
        min-height: 200px;
    }

    .page-blog__hero-banner img {
        aspect-ratio: 16 / 9; /* Maintain aspect ratio for hero */
    }
}

@media (max-width: 768px) {
    .page-blog__hero-content,
    .page-blog__latest-posts,
    .page-blog__cta-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__post-card img {
        max-width: 100%;
        height: auto;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-blog__cta-register-button,
    .page-blog__cta-login-button,
    .page-blog__cta-button,
    .page-blog__view-all-button {
        width: 100%;
        max-width: 300px; /* Constrain width for mobile buttons */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 549px) {
    .page-blog__main-title {
        font-size: clamp(1.3rem, 7vw, 2rem);
    }
    .page-blog__description {
        font-size: 1rem;
    }
    .page-blog__section-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }
    .page-blog__post-title {
        font-size: 1.2rem;
    }
    .page-blog__post-excerpt {
        font-size: 0.95rem;
    }
}

/* Ensure no content area image is smaller than 200px */
.page-blog img {
    min-width: 200px;
    min-height: 200px;
}