/* style/blog.css */
.page-blog {
    background-color: #FFFFFF; /* Assuming main content area has a white background */
    color: #333333; /* Default text color for light background */
    padding-top: 10px; /* Small top padding, assuming body already has --header-offset */
}

.page-blog__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: #100224; /* Dark background for hero section */
    padding-bottom: 40px;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    max-height: 675px; /* Max height for hero image */
}

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

.page-blog__main-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
}

.page-blog__hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    background-color: #26A9E0; /* Main brand color */
    color: #FFFFFF;
    border: none;
    cursor: pointer;
}

.page-blog__cta-button:hover {
    background-color: #1a8cc7; /* Slightly darker on hover */
}

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

.page-blog__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0; /* Main brand color for section titles */
}

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

.page-blog__post-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px; /* Ensure card is not too small */
}

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

.page-blog__post-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card image display */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

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

.page-blog__post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__post-title a {
    text-decoration: none;
    color: #26A9E0; /* Link color for post titles */
    transition: color 0.3s ease;
}

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

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

.page-blog__post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

.page-blog__view-all {
    text-align: center;
}

.page-blog__cta-section {
    background-color: #100224; /* Dark background for CTA section */
    padding: 60px 20px;
    text-align: center;
    color: #FFFFFF;
}

.page-blog__cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-blog__cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    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 buttons to wrap on smaller screens */
}

.page-blog__cta-buttons .btn {
    min-width: 180px;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-blog__cta-buttons .btn--primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #FFFFFF;
}

.page-blog__cta-buttons .btn--primary:hover {
    background-color: #d16e06;
}

.page-blog__cta-buttons .btn--secondary {
    background-color: #26A9E0; /* Main brand color for secondary CTA */
    color: #FFFFFF;
}

.page-blog__cta-buttons .btn--secondary:hover {
    background-color: #1a8cc7;
}

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

    .page-blog__hero-description {
        font-size: 1rem;
    }

    .page-blog__section-title {
        font-size: 2rem;
    }

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

    .page-blog__post-image {
        height: 200px; /* Slightly reduce height on smaller screens */
    }

    .page-blog__cta-title {
        font-size: 1.8rem;
    }

    .page-blog__cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 549px) {
    .page-blog {
        padding-top: 8px; /* Even smaller top padding on very small screens */
    }
    .page-blog__hero-section {
        padding-bottom: 30px;
    }
    .page-blog__hero-content {
        padding: 15px;
    }
    .page-blog__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-blog__section-title {
        font-size: 1.8rem;
    }
    .page-blog__post-grid {
        grid-template-columns: 1fr; /* Single column layout on smallest screens */
    }
    .page-blog__post-card {
        margin-bottom: 20px;
    }
    .page-blog__cta-section {
        padding: 40px 15px;
    }
    .page-blog__cta-title {
        font-size: 1.6rem;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__cta-buttons .btn {
        width: 100%;
        max-width: 300px; /* Limit width for full-width buttons */
        margin: 0 auto;
    }
    /* Ensure all images in content area are responsive and not too small */
    .page-blog__post-image,
    .page-blog__post-card img,
    .page-blog__latest-posts img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
    /* Specific rule for images within .page-blog to ensure min-size and responsiveness */
    .page-blog img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum display size */
        min-height: 200px; /* Enforce minimum display size */
        object-fit: cover;
    }
}