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

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

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
    padding-bottom: 60px;
    background-color: #F4F7FB; /* Background */
    text-align: center;
}

.page-blog__hero-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

.page-blog__hero-text-area {
    flex: 1;
    text-align: left;
}

.page-blog__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    color: #000000; /* Custom Color_1776249996415 */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-blog__hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-blog__hero-image-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-blog__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element */
}

/* General Button Styles */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%;
}

.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; /* Primary color */
    border: 2px solid #2F6BFF; /* Primary color */
}

.page-blog__btn-secondary:hover {
    background: #F4F7FB; /* Background */
    color: #1F2D3D; /* Text Main */
    border-color: #1F2D3D; /* Text Main */
}

/* Articles Section */
.page-blog__articles-section {
    padding: 60px 0;
    background-color: #ffffff; /* Card BG for this section */
}

.page-blog__section-title {
    font-size: 2.5em;
    color: #000000; /* Custom Color_1776249996415 */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-blog__articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    gap: 30px;
}

.page-blog__article-card {
    background: #ffffff; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block; /* Ensure block behavior */
}

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

.page-blog__article-title {
    font-size: 1.5em;
    color: #000000; /* Custom Color_1776249996415 */
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-blog__article-date {
    font-size: 0.85em;
    color: #6FA3FF; /* Secondary color */
    display: block;
    margin-top: 10px;
}

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

.page-blog__view-all-button {
    padding-left: 40px;
    padding-right: 40px;
}

/* Call to Action Section */
.page-blog__cta-section {
    padding: 80px 0;
    background-color: #2F6BFF; /* Primary color (dark background) */
    color: #ffffff; /* White text for dark background */
    text-align: center;
}

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

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

.page-blog__cta-buttons-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Ensure images and buttons are responsive by default */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box; /* Ensure padding/border is included in width */
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
    .page-blog__hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 30px;
    }
    .page-blog__hero-text-area {
        text-align: center;
    }
    .page-blog__hero-cta-buttons {
        justify-content: center;
    }
    .page-blog__articles-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
        gap: 25px;
    }
    .page-blog__article-image {
        height: 220px; /* Adjust height for tablet */
    }
    .page-blog__cta-title {
        font-size: 2.2em;
    }
    .page-blog__cta-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Fixed header spacing */
        padding-bottom: 40px;
    }
    .page-blog__hero-content-wrapper {
        padding: 20px 15px;
        gap: 20px;
    }
    .page-blog__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Smaller title on mobile */
        margin-bottom: 15px;
    }
    .page-blog__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-blog__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    .page-blog__hero-cta-buttons .page-blog__btn-primary,
    .page-blog__hero-cta-buttons .page-blog__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Articles Section */
    .page-blog__articles-section {
        padding: 40px 0;
    }
    .page-blog__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-blog__articles-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }
    .page-blog__article-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-blog__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* CTA Section */
    .page-blog__cta-section {
        padding: 50px 0;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-blog__cta-buttons-bottom {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
    }
    .page-blog__cta-buttons-bottom .page-blog__btn-primary,
    .page-blog__cta-buttons-bottom .page-blog__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* General image and button responsiveness for mobile */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary,
    .page-blog a[class*="button"],
    .page-blog a[class*="btn"] {
        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-buttons,
    .page-blog__cta-buttons-bottom,
    .page-blog__button-group,
    .page-blog__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-blog__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}