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

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    text-align: center;
    background-color: #F4F7FB; /* Background */
}

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

.page-blog__main-title {
    font-size: clamp(28px, 4vw, 48px); /* H1 title font-size clamp */
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__description {
    font-size: 18px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

.page-blog__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-blog__btn-secondary:hover {
    background: #F0F0F0;
    transform: translateY(-2px);
}

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

.page-blog__section-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
}

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

.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;
    display: flex;
    flex-direction: column;
}

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

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

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

.page-blog__article-title {
    font-size: 22px;
    font-weight: 600;
    color: #1F2D3D; /* Text Main */
    margin: 20px 20px 10px;
    line-height: 1.3;
}

.page-blog__article-excerpt {
    font-size: 15px;
    color: #1F2D3D; /* Text Main */
    margin: 0 20px 15px;
    flex-grow: 1; /* Pushes meta to bottom */
}

.page-blog__article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 20px;
    border-top: 1px solid #D6E2FF; /* Border */
    font-size: 14px;
    color: #1F2D3D; /* Text Main */
}

.page-blog__article-date {
    color: #6FA3FF; /* Secondary color */
}

.page-blog__read-more {
    color: #2F6BFF; /* Primary color */
    font-weight: 600;
    text-decoration: none;
}

.page-blog__read-more:hover {
    text-decoration: underline;
}

/* Pagination */
.page-blog__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-blog__pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #2F6BFF; /* Primary color */
    border: 1px solid #D6E2FF; /* Border */
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-blog__pagination-link:hover {
    background-color: #2F6BFF; /* Primary color */
    color: #FFFFFF;
}

.page-blog__pagination-link--active {
    background-color: #2F6BFF; /* Primary color */
    color: #FFFFFF;
    border-color: #2F6BFF; /* Primary color */
}

/* CTA Section */
.page-blog__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-blog__dark-section {
    background-color: #2F6BFF; /* Primary color */
    color: #FFFFFF;
}

.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section .page-blog__description {
    color: #FFFFFF;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    /* 1. Top section/CTA */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }

    .page-blog__main-title {
        font-size: 28px;
        margin-bottom: 15px;
        padding: 0 15px; /* Added for better mobile spacing */
    }

    .page-blog__description {
        font-size: 16px;
        margin-bottom: 25px;
        padding: 0 15px;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

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

    /* 2. Single column long text (article wrap) - Using .page-blog__container as the main wrapper */
    .page-blog__container {
        padding: 0 15px;
    }

    .page-blog__articles-section {
        padding: 40px 0;
    }

    .page-blog__section-title {
        font-size: 24px;
        margin-bottom: 30px;
        padding: 0 15px; /* Added for better mobile spacing */
    }

    .page-blog__article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__article-image {
        height: 200px; /* Adjust height for mobile */
    }

    .page-blog__article-title {
        font-size: 18px;
        margin: 15px 15px 8px;
    }

    .page-blog__article-excerpt {
        font-size: 14px;
        margin: 0 15px 10px;
    }

    .page-blog__article-meta {
        padding: 10px 15px 15px;
        font-size: 13px;
    }

    /* 3. General images and figure */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-blog__article-card,
    .page-blog__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 4. Buttons and button containers */
    .page-blog__pagination {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 15px;
    }
    .page-blog__pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* 5. Registration tutorial and FAQ - Not present in this specific blog page structure, but placeholder for the rule */
    /* If they were present, their mobile styles would be here. */
    .page-blog__cta-section {
        padding: 50px 0;
    }

    .page-blog__dark-section .page-blog__section-title,
    .page-blog__dark-section .page-blog__description {
        padding: 0 15px;
    }
}