/* style/blog.css */

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

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

.page-blog__section-title {
    font-size: 2.5em;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-blog__section-subtitle {
    font-size: 1.1em;
    color: #1F2D3D;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    background-color: #F4F7FB;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px;
}

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

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

.page-blog__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #000000; /* Custom Color_1776249996415 */
    margin-bottom: 20px;
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

.page-blog__description {
    font-size: 1.2em;
    color: #1F2D3D;
    margin-bottom: 30px;
}

.page-blog__hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__read-more-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

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

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

.page-blog__btn-secondary:hover {
    background: #F4F7FB; /* Background */
    color: #2F6BFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.1);
}

.page-blog__read-more-btn {
    background: #2F6BFF;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-blog__read-more-btn:hover {
    background: #4A8BFF;
}

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

.page-blog__posts-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: 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__post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-blog__post-image-wrapper {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    overflow: hidden;
}

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

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

.page-blog__post-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-blog__post-title a {
    color: #1F2D3D; /* Text Main */
    text-decoration: none;
}

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

.page-blog__post-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: #444;
    margin-bottom: 20px;
}

.page-blog__view-all-button-wrapper {
    text-align: center;
}

/* Categories Section */
.page-blog__categories-section {
    padding: 60px 0;
    background-color: #2F6BFF; /* Main Color */
    color: #ffffff;
}

.page-blog__categories-section .page-blog__section-title,
.page-blog__categories-section .page-blog__section-subtitle {
    color: #ffffff;
}

.page-blog__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.page-blog__category-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.page-blog__category-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.page-blog__category-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ffffff;
}

.page-blog__category-description {
    font-size: 0.95em;
    color: #e0e0e0;
}

/* Featured Posts Section - Similar to Latest Posts */
.page-blog__featured-posts-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

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

.page-blog__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-blog__faq-item {
    margin-bottom: 15px;
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 8px;
    overflow: hidden;
    background-color: #F8F9FA;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #1F2D3D; /* Text Main */
    cursor: pointer;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
    background-color: #F4F7FB;
}

.page-blog__faq-question::-webkit-details-marker {
    display: none;
}

.page-blog__faq-question::marker {
    display: none;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    content: '−';
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    margin-left: 15px;
    color: #2F6BFF;
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(180deg);
}

.page-blog__faq-answer {
    padding: 0 25px 18px;
    font-size: 1em;
    color: #444;
    line-height: 1.7;
}

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

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

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

.page-blog__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive styles */

/* Desktop/Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        max-width: 768px;
    }

    .page-blog__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

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

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

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

    .page-blog__category-card {
        min-height: 120px;
    }

    .page-blog__cta-title {
        font-size: 2.2em;
    }

    .page-blog__cta-description {
        font-size: 1.1em;
    }
}

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

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

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

    .page-blog__hero-content {
        padding: 0 15px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important;
        margin-bottom: 15px;
    }

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

    .page-blog__hero-buttons,
    .page-blog__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons */
    .page-blog__btn-primary,
    .page-blog__btn-secondary,
    .page-blog__read-more-btn,
    .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;
        text-align: center;
    }

    /* General Images */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-blog__hero-image-wrapper,
    .page-blog__post-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        height: auto !important; /* Allow height to adjust for mobile */
    }

    .page-blog__post-image-wrapper {
        height: 180px; /* Adjust height for mobile post cards */
    }

    /* Sections and Cards */
    .page-blog__latest-posts-section,
    .page-blog__categories-section,
    .page-blog__featured-posts-section,
    .page-blog__faq-section,
    .page-blog__cta-section {
        padding: 30px 0;
    }

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

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

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

    .page-blog__post-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .page-blog__categories-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__category-card {
        min-height: 100px;
        padding: 20px;
    }

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

    .page-blog__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-blog__faq-answer {
        padding: 0 20px 15px;
    }

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

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

    /* Ensure no horizontal scroll */
    .page-blog__latest-posts-section,
    .page-blog__categories-section,
    .page-blog__featured-posts-section,
    .page-blog__faq-section,
    .page-blog__cta-section,
    .page-blog__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}