/* style/blog.css */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
}

.page-blog__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, relying on shared.css for body padding */
    padding-bottom: 60px;
    background-color: #F4F7FB; /* Consistent with page background */
}

.page-blog__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
}

.page-blog__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-blog__hero-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
}

.page-blog__hero-description {
    font-size: 1.1em;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 30px;
}

.page-blog__hero-cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-blog__hero-image {
    flex: 1 1 40%;
    text-align: center;
}

.page-blog__hero-main-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(47, 107, 255, 0.2); /* Glow */
}

/* General Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button Gradient */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-blog__btn-secondary {
    background: #ffffff; /* Card BG */
    color: #2F6BFF; /* Main Color */
    border: 2px solid #2F6BFF; /* Main Color */
}

.page-blog__btn-secondary:hover {
    background: #2F6BFF; /* Main Color */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

/* Section Titles */
.page-blog__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
    padding-bottom: 60px;
    background-color: #F4F7FB;
}

.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: #ffffff; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #D6E2FF; /* Border */
}

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

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

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

.page-blog__post-content {
    padding: 20px;
}

.page-blog__post-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__post-excerpt {
    font-size: 0.95em;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 15px;
}

.page-blog__post-date {
    font-size: 0.85em;
    color: #666;
}

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

/* CTA Section (Dark Background) */
.page-blog__cta-section {
    background: #2F6BFF; /* Main Color */
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-blog__cta-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-blog__cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #ffffff;
}

/* About Blog Section */
.page-blog__about-blog-section {
    padding-top: 60px;
    padding-bottom: 80px;
    background-color: #F4F7FB;
}

.page-blog__about-blog-section p {
    font-size: 1em;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 15px;
    text-align: justify;
}

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

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed Header & Main Content Spacing */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on shared.css for body padding */
    }

    .page-blog__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        gap: 30px;
    }

    .page-blog__hero-content {
        order: 2; /* Content below image on mobile */
    }

    .page-blog__hero-image {
        order: 1; /* Image above content on mobile */
    }

    .page-blog__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-blog__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-blog__hero-cta-group {
        flex-direction: column;
        gap: 10px;
    }

    /* Buttons */
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__hero-cta-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Section Titles */
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 40px;
    }

    /* Latest Posts */
    .page-blog__post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__post-thumbnail {
        height: 180px;
    }

    .page-blog__post-content {
        padding: 15px;
    }

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

    .page-blog__post-excerpt {
        font-size: 0.9em;
    }

    /* CTA Section */
    .page-blog__cta-section {
        padding: 60px 0;
    }

    .page-blog__cta-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-blog__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    /* About Blog Section */
    .page-blog__about-blog-section {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .page-blog__about-blog-section p {
        padding: 0 15px;
    }

    /* Universal Image Responsive */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-blog__container,
    .page-blog__post-card,
    .page-blog__cta-section > .page-blog__container,
    .page-blog__about-blog-section > .page-blog__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}