/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f8f8; /* Light background for the page */
}

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

/* Hero Section */
.page-blog__hero-section {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff; /* White text for contrast */
    padding-top: 10px; /* Small padding, relying on body for main offset */
    padding-bottom: 60px;
    text-align: center;
}

.page-blog__main-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
    max-width: 900px; /* Constrain H1 width */
    margin-left: auto;
    margin-right: auto;
}

.page-blog__description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

/* Recent Posts Section */
.page-blog__recent-posts-section {
    background-color: #ffffff; /* Light background */
    padding: 60px 0;
}

.page-blog__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Primary brand color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-blog__blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.page-blog__blog-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__blog-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-blog__blog-card-content {
    padding: 20px;
}

.page-blog__blog-card-title {
    font-size: 1.3em;
    color: #333333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__blog-card-meta {
    font-size: 0.9em;
    color: #666666;
    margin-bottom: 15px;
}

.page-blog__blog-card-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

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

.page-blog__read-more-btn:hover {
    color: #1a7bb7; /* Darker shade on hover */
}

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

/* Featured Content Section */
.page-blog__featured-content-section {
    background-color: #26A9E0; /* Primary brand color (dark background) */
    color: #ffffff; /* White text for contrast */
    padding: 80px 0;
}

.page-blog__featured-content-section .page-blog__section-title {
    color: #ffffff; /* White title for dark background */
}

.page-blog__text-block {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-blog__text-block p {
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-blog__text-block h3 {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-blog__text-block ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-blog__text-block ul li {
    margin-bottom: 10px;
}

.page-blog__image-figure {
    margin: 30px auto;
    text-align: center;
    max-width: 800px;
}

.page-blog__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

.page-blog__image-caption {
    font-size: 0.9em;
    color: #e0e0e0;
    margin-top: 10px;
}

/* CTA Buttons */
.page-blog__cta-buttons {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* For button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-blog__btn-primary:hover {
    background-color: #d16d06;
    border-color: #d16d06;
}

.page-blog__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-blog__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7bb7;
    border-color: #1a7bb7;
}

/* General image responsive styles */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-blog__container {
        padding: 15px;
    }

    .page-blog__main-title {
        font-size: 2.4em;
    }

    .page-blog__description {
        font-size: 1.1em;
    }

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

    .page-blog__blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-blog__blog-card-image {
        height: 180px;
    }

    .page-blog__blog-card-title {
        font-size: 1.2em;
    }

    .page-blog__text-block {
        font-size: 1em;
    }

    .page-blog__text-block h3 {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    /* General responsive for images and containers */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-blog__section,
    .page-blog__card,
    .page-blog__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Ensure small padding */
        padding-bottom: 40px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
        margin-bottom: 10px;
    }

    .page-blog__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Recent Posts Section */
    .page-blog__recent-posts-section {
        padding: 40px 0;
    }

    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-blog__blog-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-blog__blog-card-image {
        height: 160px;
    }

    .page-blog__blog-card-title {
        font-size: 1.1em;
    }

    .page-blog__blog-card-excerpt {
        font-size: 0.95em;
    }

    /* Featured Content Section */
    .page-blog__featured-content-section {
        padding: 50px 0;
    }

    .page-blog__text-block {
        font-size: 0.95em;
    }

    .page-blog__text-block h3 {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    /* CTA Buttons */
    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}