/* blog.css */
.page-blog {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color, ensuring contrast */
    padding-bottom: 40px; /* General padding for the bottom of the page content */
}

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

/* Hero Section */
.page-blog__hero-section {
    background-color: #FFFFFF; /* White background */
    padding: 40px 0;
    text-align: center;
    padding-top: 10px; /* Small top padding for first section to prevent header overlap */
}

.page-blog__main-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: #26A9E0; /* Primary color */
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
}

/* Posts Section */
.page-blog__posts-section {
    background-color: #f8f8f8; /* Light gray background */
    padding: 60px 0;
}

.page-blog__section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    color: #26A9E0; /* Primary color */
    text-align: center;
    margin-bottom: 40px;
}

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

.page-blog__post-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px 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(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-blog__post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-blog__post-image {
    width: 100%;
    height: auto; /* Allow height to adjust based on aspect ratio */
    aspect-ratio: 16 / 9; /* Maintain aspect ratio of 800x450 */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no CSS filter is applied */
    border-bottom: 1px solid #eee;
}

.page-blog__post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #26A9E0; /* Primary color */
    margin: 15px 20px 10px;
    line-height: 1.4;
}

.page-blog__post-meta {
    font-size: 0.9rem;
    color: #777777;
    margin: 0 20px 10px;
}

.page-blog__post-excerpt {
    font-size: 1rem;
    color: #555555;
    margin: 0 20px 20px;
    flex-grow: 1; /* Makes excerpt take available space */
}

.page-blog__read-more-btn {
    display: inline-block;
    background-color: #26A9E0; /* Primary color */
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin: 0 20px 20px;
    align-self: flex-start; /* Align button to start */
}

.page-blog__read-more-btn:hover {
    background-color: #1a8cc7; /* Slightly darker blue */
}

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

.page-blog__view-all-btn {
    display: inline-block;
    background-color: #26A9E0; /* Primary color */
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.page-blog__view-all-btn:hover {
    background-color: #1a8cc7;
}

/* CTA Section */
.page-blog__cta-section {
    background-color: #FFFFFF; /* White background */
    padding: 60px 0;
    text-align: center;
}

.page-blog__cta-title {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    font-weight: 700;
    color: #26A9E0; /* Primary color */
    margin-bottom: 20px;
}

.page-blog__cta-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555555;
    max-width: 700px;
    margin: 0 auto 30px;
}

.page-blog__cta-button {
    display: inline-block;
    background-color: #EA7C07; /* Login/CTA color */
    color: #FFFFFF;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.page-blog__cta-button:hover {
    background-color: #cc6a06; /* Slightly darker orange */
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-blog__main-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
    .page-blog__description {
        font-size: 1rem;
    }
    .page-blog__section-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }
    .page-blog__posts-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
    .page-blog__post-title {
        font-size: 1.2rem;
    }
    .page-blog__cta-title {
        font-size: clamp(1.4rem, 5.5vw, 2rem);
    }
    .page-blog__cta-text {
        font-size: 1rem;
    }
    .page-blog__cta-button {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-blog img { /* Target all images within .page-blog content area */
        max-width: 100%;
        height: auto;
    }
    .page-blog__container {
        padding: 0 15px;
    }
    .page-blog__posts-section,
    .page-blog__cta-section {
        padding: 40px 0;
    }
    .page-blog__hero-section {
        padding: 30px 0;
        padding-top: 10px; /* Small top padding for first section */
    }
}

@media (max-width: 549px) {
    .page-blog__main-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }
    .page-blog__description {
        font-size: 0.95rem;
    }
    .page-blog__section-title {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
    }
    .page-blog__post-title {
        font-size: 1.1rem;
    }
    .page-blog__cta-title {
        font-size: clamp(1.3rem, 6.5vw, 1.8rem);
    }
    .page-blog__cta-text {
        font-size: 0.95rem;
    }
    .page-blog__cta-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
}