/* 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: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    padding-bottom: 40px;
    background-color: #F4F7FB; /* Background */
}

.page-blog__hero-image-container {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-blog__hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.page-blog__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 15px;
}

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

/* CTA Button - General */
.page-blog__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-blog__cta-button--centered {
    display: block;
    margin: 30px auto 0 auto;
    width: fit-content; /* Adjust width to content for centered button */
}

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

.page-blog__section-title--light {
    color: #ffffff;
}

/* Text Blocks */
.page-blog__text-block {
    font-size: 1em;
    margin-bottom: 15px;
    color: #1F2D3D; /* Text Main */
}

.page-blog__text-block--light {
    color: #f0f0f0;
}

/* Categories Section */
.page-blog__categories-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

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

.page-blog__category-card {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #1F2D3D; /* Text Main */
    display: flex;
    flex-direction: column;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-blog__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-blog__category-card .page-blog__card-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 20px 20px 10px 20px;
    color: #1F2D3D; /* Text Main */
    line-height: 1.3;
}

.page-blog__category-card .page-blog__card-title a {
    color: #2F6BFF; /* Main Color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__category-card .page-blog__card-title a:hover {
    color: #000000; /* Custom Color_1776249996415 */
}

.page-blog__category-card .page-blog__card-description {
    font-size: 0.95em;
    color: #1F2D3D; /* Text Main */
    padding: 0 20px 20px 20px;
    flex-grow: 1; /* Ensure description takes available space */
}

/* Why Read Section */
.page-blog__why-read-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-blog__feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.page-blog__list-item {
    background-color: #F4F7FB; /* Background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #1F2D3D; /* Text Main */
}

.page-blog__list-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #2F6BFF; /* Main Color */
    margin-bottom: 10px;
}

.page-blog__list-description {
    font-size: 0.95em;
    color: #1F2D3D; /* Text Main */
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

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

.page-blog__article-card {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    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 6px 20px rgba(0, 0, 0, 0.12);
}

.page-blog__article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-blog__article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__article-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__article-title a {
    color: #1F2D3D; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: #2F6BFF; /* Main Color */
}

.page-blog__article-meta {
    font-size: 0.85em;
    color: #666666; /* A slightly lighter grey for meta info */
    margin-bottom: 15px;
}

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

.page-blog__read-more-button {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #2F6BFF; /* Main Color */
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align button to start */
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__read-more-button:hover {
    background-color: #4A8BFF; /* Lighter shade for hover */
}

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

/* CTA Section at bottom */
.page-blog__cta-section {
    background: linear-gradient(135deg, #2F6BFF, #6FA3FF); /* Blend of Main and Auxiliary colors */
    padding: 60px 0;
    text-align: center;
    color: #ffffff;
}

.page-blog__cta-container {
    max-width: 900px;
}

.page-blog__cta-button--primary {
    background: #ffffff;
    color: #2F6BFF; /* Main Color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button--primary:hover {
    background: #f0f0f0;
    color: #2F6BFF;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General image styling to prevent small icons */
.page-blog img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space without distorting */
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    /* HERO Section Mobile */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 20px;
    }

    .page-blog__hero-image-container {
        max-height: 300px;
    }

    .page-blog__main-title {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

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

    .page-blog__cta-button {
        padding: 10px 20px;
        font-size: 0.95em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-blog__cta-button--centered {
        width: 100% !important;
    }

    /* Section Titles Mobile */
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    /* Categories Section Mobile */
    .page-blog__categories-section,
    .page-blog__why-read-section,
    .page-blog__latest-articles-section,
    .page-blog__cta-section {
        padding: 30px 0;
    }

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

    .page-blog__category-card .page-blog__card-title {
        font-size: 1.2em;
        margin: 15px 15px 8px 15px;
    }

    .page-blog__category-card .page-blog__card-description {
        padding: 0 15px 15px 15px;
    }

    /* Why Read Section Mobile */
    .page-blog__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Latest Articles Section Mobile */
    .page-blog__article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__article-image {
        height: 180px;
    }

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

    .page-blog__article-meta {
        font-size: 0.8em;
    }

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

    .page-blog__read-more-button {
        padding: 7px 12px;
        font-size: 0.85em;
        width: 100% !important; /* Ensure full width */
        text-align: center;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Images and Containers Mobile */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important;
    }
    
    .page-blog__container,
    .page-blog__section,
    .page-blog__card,
    .page-blog__category-card,
    .page-blog__article-card,
    .page-blog__hero-content,
    .page-blog__cta-container,
    .page-blog__view-all-button-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Button specific overrides for mobile */
    .page-blog__cta-button,
    .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__cta-buttons,
    .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__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}

/* Color Contrast Fixes (if needed) */
.page-blog__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-blog__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}