/* =========================================================
   blog.css
   Shared stylesheet for all Auto Clinic PCMC blog pages.
   Scoped to .blog-post-wrap so it never touches theme files.
   ========================================================= */

/* -------------------------------------------------
   1. Outer section vs inner content area (two-tone bg)
   ------------------------------------------------- */
.blog-post-wrap {
    background-color: #EDF2F7;
    /* area outside the blog content card */
    padding: 60px 0;
}

.blog-post-wrap .container {
    max-width: 1000px;
}

.blog-content-card {
    background-color: #FFFFFF;
    /* blog content area */
    border-radius: 10px;
    padding: 50px 60px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* -------------------------------------------------
   2. Base typography
   ------------------------------------------------- */
.blog-post-wrap,
.blog-post-wrap * {
    font-family: 'Open Sans', sans-serif;
    /* color: #000; */
}

.blog-post-wrap p,
.blog-post-wrap li,
.blog-post-wrap span,
.blog-post-wrap a,
.blog-post-wrap .post-meta,
.blog-post-wrap .faq-answer-inner p,
.blog-post-wrap .faq-answer-inner li {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

.blog-post-wrap a {
    text-decoration: none;
}

/* -------------------------------------------------
   3. Hero image
   ------------------------------------------------- */
.blog-post-hero-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    display: block;
}

/* -------------------------------------------------
   4. Meta row
   ------------------------------------------------- */
.blog-post-wrap .post-meta {
    margin-bottom: 18px;
    letter-spacing: .3px;
}

.blog-post-wrap .post-meta span {
    margin-right: 18px;
    display: inline-block;
}

.blog-post-wrap .post-meta i {
    margin-right: 6px;
    color: #2684E5;
}

/* -------------------------------------------------
   5. Headings
   ------------------------------------------------- */
.blog-post-wrap h1.post-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.3;
    color: #000;
    margin: 0 0 18px;
}

.blog-post-wrap h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.35;
    color: #000;
    margin: 34px 0 16px;
}

.blog-post-wrap h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.4;
    color: #000;
    margin: 22px 0 12px;
}

.blog-post-wrap article>h2:first-of-type,
.blog-post-wrap article>h1+h2 {
    margin-top: 0;
}

.blog-post-wrap .intro-lead {
    font-weight: 600;
    font-size: 17px;
    line-height: 26px;
}

/* -------------------------------------------------
   6. Lists
   ------------------------------------------------- */
.blog-post-wrap ul.post-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.blog-post-wrap ul.post-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
}

.blog-post-wrap ul.post-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #2684E5;
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 13px;
}

/* -------------------------------------------------
   7. Services grid
   ------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 40px;
    margin-bottom: 8px;
}

.services-grid .service-block h3 {
    margin-top: 0;
}

/* -------------------------------------------------
   8. Areas / models tag pills
   ------------------------------------------------- */
.areas-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 22px;
}

.areas-tags span {
    background: #EDF2F7;
    border: 1px solid #DCE4EC;
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 14px;
    line-height: 20px;
    color: #000;
}

/* -------------------------------------------------
   9. Why-choose cards
   ------------------------------------------------- */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 16px 0 8px;
}

.why-choose-grid .wc-card {
    background: #EDF2F7;
    border-radius: 8px;
    padding: 20px 22px;
}

.why-choose-grid .wc-card h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 18px;
}

.why-choose-grid .wc-card p {
    margin-bottom: 0;
}

/* -------------------------------------------------
   10. CTA box
   ------------------------------------------------- */
.cta-box {
    background: #2684E5;
    border-radius: 10px;
    padding: 36px 32px;
    text-align: center;
    margin: 34px 0 0;
}

.cta-box h2,
.cta-box p {
    color: #FFFFFF;
}

.cta-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.cta-box p {
    margin-bottom: 18px;
}

.cta-box .cta-btn {
    display: inline-block;
    background: #FFFFFF;
    color: #2684E5;
    padding: 13px 32px;
    border-radius: 30px;
    font-weight: 700;
    transition: .3s;
}

.cta-box .cta-btn:hover {
    background: #000;
    color: #FFFFFF;
}

/* -------------------------------------------------
   11. FAQ accordion (primary color #2684E5)
   ------------------------------------------------- */
.faq-section {
    margin: 34px 0 0;
}

.faq-section h2 {
    margin-top: 0;
}

.faq-item {
    border: 1px solid #DCE4EC;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 20px;
    cursor: pointer;
    background: #EDF2F7;
}

.faq-question h3 {
    margin: 0;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
}

.faq-toggle-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2684E5;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: transform .3s ease;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    background: #FFFFFF;
}

.faq-answer-inner {
    padding: 0 20px 18px;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

/* -------------------------------------------------
   12. Closing article text directly after FAQ
   ------------------------------------------------- */
.faq-section+h2 {
    margin-top: 34px;
}

/* -------------------------------------------------
   13. Responsive breakpoints (Bootstrap-aligned)
   xs: <576px | sm: >=576px | md: >=768px
   lg: >=992px | xl: >=1200px | xxl: >=1400px
   ------------------------------------------------- */

/* sm and up */
@media (min-width: 576px) {
    .blog-content-card {
        padding: 40px 35px;
    }
}

/* md and up */
@media (min-width: 768px) {
    .blog-post-wrap {
        padding: 50px 0;
    }

    .blog-content-card {
        padding: 45px 50px;
    }

    .blog-post-wrap h1.post-title {
        font-size: 34px;
    }

    .blog-post-wrap h2 {
        font-size: 26px;
    }
}

/* lg and up */
@media (min-width: 992px) {
    .blog-content-card {
        padding: 50px 60px;
    }
}

/* xl and up */
@media (min-width: 1200px) {
    .blog-post-wrap .container {
        max-width: 1040px;
    }
}

/* xxl and up */
@media (min-width: 1400px) {
    .blog-post-wrap .container {
        max-width: 1100px;
    }

    .blog-content-card {
        padding: 55px 70px;
    }
}

/* xs (below sm, <576px) — single column, tighter spacing */
@media (max-width: 575.98px) {
    .blog-post-wrap {
        padding: 35px 0;
    }

    .blog-content-card {
        padding: 26px 18px;
        border-radius: 6px;
    }

    .blog-post-wrap h1.post-title {
        font-size: 24px;
    }

    .blog-post-wrap h2 {
        font-size: 20px;
        margin: 26px 0 12px;
    }

    .blog-post-wrap h3 {
        font-size: 17px;
    }

    .services-grid,
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .blog-post-hero-img {
        max-height: 220px;
        margin-bottom: 20px;
    }

    .cta-box,
    .faq-section {
        margin-top: 26px;
    }

    .cta-box {
        padding: 26px 20px;
    }

    .faq-question {
        padding: 14px 16px;
    }

    .faq-answer-inner {
        padding: 0 16px 16px;
    }

    .blog-post-wrap .post-meta span {
        display: block;
        margin-bottom: 6px;
        margin-right: 0;
    }
}

/* between xs and md (sm only, 576–767px) */
@media (min-width: 576px) and (max-width: 767.98px) {

    .services-grid,
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-post-wrap h1.post-title {
        font-size: 27px;
    }
}