/* Blog Page Styles */


/* ========================
   Hero Banner
   ======================== */

.blog-hero-section {
    min-height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    /* margin-top: 80px; */
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.blog-hero-content {
    padding-left: 4%;
}

.blog-hero-content h1 {
    font-weight: 500;
    color: #fff;
    font-family: "Oswald", sans-serif;
    margin-bottom: 5px;
}

.blog-hero-section .breadcrumb {
    margin-bottom: 0;
}

.blog-hero-section .breadcrumb-item a {
    color: #fff;
    opacity: 0.75;
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.blog-hero-section .breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.blog-hero-section .breadcrumb-item+.breadcrumb-item::before {
    color: #fff;
    opacity: 0.5;
}


/* ========================
   Blog Listing Section
   ======================== */

.blog-listing-section {
    padding: 50px 0 30px;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}


/* Section Title */

.blog-section-title {
    margin-bottom: 40px;
}

.blog-section-title h2 {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.title-underline {
    display: block;
    width: 60px;
    height: 3px;
    background: #ff382e;
    border-radius: 2px;
}


/* ========================
   Blog Cards List (Horizontal)
   ======================== */

.blog-cards-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}


/* ========================
   Single Blog Card — Horizontal Layout
   ======================== */

.single-blog-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #ececec;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}


/* ========================
   Alternating Layout (Reversed cards)
   ======================== */

.single-blog-card.card-reversed {
    flex-direction: row-reverse;
}


/* ========================
   Text Side
   ======================== */

.blog-card-text {
    flex: 1;
    padding: 45px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-text h3 {
    font-family: "Oswald", sans-serif;
    font-weight: 700 !important;
    color: #ff382e !important;
    /* margin-bottom: 0; */
}

.blog-card-text h3 a {
    color: #ff382e;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400 !important;
}

.blog-card-text h3 a:hover {
    color: #ff382e;
}


/* Card divider — reuse global mts-divider (red track + navy ball), wider for cards */

.blog-card-text .mts-divider {
    width: 140px;
    margin: 18px 0 22px;
}


/* ========================
   Card Divider (red line + blue dot)
   ======================== */

.blog-card-divider {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 15px 0 15px;
}

.blog-card-divider .divider-line {
    width: 40px;
    height: 3px;
    background: #ff382e;
    border-radius: 2px;
}

.blog-card-divider .divider-dot {
    width: 10px;
    height: 10px;
    background: #1a3a6b;
    border-radius: 50%;
    margin-left: 2px;
}


/* ========================
   Card Excerpt
   ======================== */

.blog-card-text>p {
    font-size: 15px;
    color: #525252;
    line-height: 1.7;
    margin-bottom: 15px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ========================
   Image Side with Pink Border Frame
   ======================== */

.blog-card-image {
    flex: 0 0 55%;
    max-width: 55%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image a {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #fde3e3;
    padding: 14px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}


/* ========================
   Blog Meta
   ======================== */

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px 60px;
    margin-bottom: 28px;
    font-size: 15px;
    color: #737373;
}

.blog-meta strong {
    color: #1a3a6b;
    font-weight: 700;
}

.blog-meta a {
    color: #1a3a6b;
    text-decoration: none;
    font-weight: 700;
}

.blog-meta a:hover {
    color: #ff382e;
    text-decoration: underline;
}


/* ========================
   Read More Button
   ======================== */


/* `body .read-more-btn` (not just `.read-more-btn`) to match the equal
   specificity of the site-wide button rule in style.css — this file loads
   after style.css, so equal-specificity + !important here wins by source
   order. See feedback_verify-implementation-command memory: a plain,
   non-!important selector here silently loses the box-shadow/radius/hover
   fight to that global rule even though it looks fine in the diff. */

body .read-more-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ff382e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    width: fit-content;
}

body .read-more-btn:hover {
    background: #000 !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

.services-hero-section p.lead {
    font-size: 1rem;
    max-width: 650px;
    font-weight: 400;
    opacity: 1 !important;
    color: #fff !important;
}

.read-more-btn .bi-arrow-right {
    font-size: 1rem;
    font-weight: 900;
    background: transparent;
    color: #fff;
    width: auto;
    height: auto;
    border-radius: 0;
}


/* ========================
   Load More Button
   ======================== */

.load-more-area {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

#load-more-posts {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ff382e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#load-more-posts:hover {
    background: #000;
    color: #fff;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ========================
   CTA Form Section
   ======================== */

.blog-cta-section {
    padding: 70px 0;
    background: #fff2f1;
}

.blog-cta-image {
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
}

.blog-cta-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-cta-form-content .cta-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #8a8f98;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.blog-cta-form-content h2 {
    font-family: "Oswald", sans-serif;
    font-weight: 800;
    color: #161b28;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 16px;
}

.blog-cta-divider {
    width: 90px;
    height: 3px;
    border-radius: 10px;
    background: #ff382e;
    position: relative;
    margin: 0 0 20px;
}

.blog-cta-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #161b28;
}

.blog-cta-form-content>p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 26px;
    max-width: 560px;
}


/* ---- CF7 form (#blogCtaForm) styling: two-column grid ---- */

.blog-cta-form-content .wpcf7-form {
    display: block;
    width: 100%;
}

.blog-cta-form-content .wpcf7-form>.hidden-fields-container,
.blog-cta-form-content .wpcf7-form>fieldset.hidden-fields-container {
    display: none;
}

.blog-cta-form-content #blogCtaForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    align-items: start;
    width: 100%;
}

.blog-cta-form-content #blogCtaForm>.form-group {
    margin: 0;
    min-width: 0;
}

.blog-cta-form-content #blogCtaForm .form-group>p {
    margin: 0;
    /* margin-bottom: 20px; */
}

.form-group.form-group-full.cf7-pref-box p.cf7-pref-title {
    margin-bottom: 20px !important;
}

.blog-cta-form-content #blogCtaForm .form-group>p br {
    display: none;
}

.blog-cta-form-content #blogCtaForm>.form-group-full,
.blog-cta-form-content #blogCtaForm>.wpcf7-response-output,
.blog-cta-form-content .wpcf7-form>.wpcf7-response-output {
    grid-column: 1 / -1;
}


/* Fields are placeholder-led (no visible label), matching the reference design */

.blog-cta-form-content #blogCtaForm>.form-group>p>label,
.blog-cta-form-content #blogCtaForm>.form-group>label {
    display: none;
}

.blog-cta-form-content input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.blog-cta-form-content select,
.blog-cta-form-content textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #D4D4D4;
    background: #fff;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #161b28;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-cta-form-content textarea {
    height: 140px;
    resize: vertical;
}

.blog-cta-form-content input::placeholder,
.blog-cta-form-content textarea::placeholder {
    color: #9aa0ab;
}

.blog-cta-form-content select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.blog-cta-form-content input:focus,
.blog-cta-form-content select:focus,
.blog-cta-form-content textarea:focus {
    outline: none;
    border-color: #ff382e;
    box-shadow: 0 0 0 3px rgba(255, 56, 46, 0.14);
}


/* Preferred Payment Preferences box */

.blog-cta-form-content .cf7-pref-box {
    background: #fff;
    border: 1px solid #D4D4D4;
    border-radius: 12px;
    padding: 22px 24px;
}

.blog-cta-form-content .cf7-pref-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #161b28;
    font-size: 0.98rem;
    margin: 0 0 16px;
}

.blog-cta-form-content .cf7-pref-req {
    color: #ff382e;
}

.blog-cta-form-content .cf7-pref-note {
    font-weight: 400;
    color: #9aa0ab;
    font-size: 0.85rem;
}

.blog-cta-form-content .cf7-pref-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-cta-form-content .cf7-pref-checks .wpcf7-list-item {
    margin: 0;
}

.blog-cta-form-content .cf7-pref-checks .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.blog-cta-form-content .cf7-pref-checks input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #ff382e;
    border-radius: 5px;
}


/* The submit control is now a hand-written `<button>` (see the CF7 "Blog
   Sidebar Enquiry" form's Form tab — swapped from `[submit]` to raw HTML so
   it can hold an icon; a plain `<input type="submit">` can't have children).
   `body .wpcf7-submit.blog-cta-submit` matches the site-wide `body
   .wpcf7-submit` rule's specificity so it reliably wins with !important —
   see feedback_verify-implementation-command memory. */

body .wpcf7-submit.blog-cta-submit,
.blog-cta-form-content .blog-cta-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    margin-top: 4px;
    background: #ff382e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 45px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    cursor: pointer;
    height: 50px;
    margin-bottom: 20px;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

body .wpcf7-submit.blog-cta-submit:hover,
.blog-cta-form-content .blog-cta-submit:hover {
    background: #000 !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}


/* Security note */

.blog-cta-security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #6b7280;
    margin: 16px 0 0;
}

.blog-cta-security-note i {
    color: #6b7280;
    font-size: 0.95rem;
}


/* ========================
   Popular & Recent Posts Section
   ======================== */

.blog-posts-lists-section {
    padding: 60px 0;
}

.posts-list-block h3 {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
}

.posts-list-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.posts-list-block ul li {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.posts-list-block ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.posts-list-block .post-list-title {
    font-family: "Oswald", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    transition: color 0.3s;
}

.posts-list-block .post-list-title:hover {
    color: #ff382e;
}

.posts-list-block ul li p {
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
    margin: 0;
}


/* ========================
   Bottom CTA Strip
   ======================== */

.blog-bottom-cta {
    padding: 30px 0 60px;
}

.blog-bottom-cta-inner {
    background-color: #fff5f5;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 50px 50px;
    position: relative;
    overflow: hidden;
}

.bis-process-flow-custom .bis-desc {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.4;
}

.blog-bottom-cta-inner .bottom-cta-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.blog-bottom-cta-inner h2 {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}


/* ========================
   No Posts Message
   ======================== */

.no-posts-message {
    text-align: center;
    font-size: 18px;
    color: #737373;
    padding: 40px 0;
}


/* ========================
   Responsive
   ======================== */

@media (max-width: 991px) {
    .blog-hero-section {
        min-height: 260px;
        margin-top: 70px;
    }
    .single-blog-card,
    .single-blog-card.card-reversed {
        flex-direction: column;
    }
    .blog-card-image {
        flex: none;
        max-width: 100%;
        height: 280px;
    }
    .blog-card-text {
        padding: 30px 28px;
    }
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .blog-cta-image {
        max-width: 420px;
        margin: 0 auto;
    }
    .blog-bottom-cta-inner {
        padding: 35px 30px;
    }
}

@media (max-width: 767px) {
    .blog-hero-section {
        min-height: 220px;
        margin-top: 60px;
    }
    .blog-card-text {
        padding: 24px 22px;
    }
    .blog-card-text .mts-divider {
        width: 110px;
    }
    .blog-card-image {
        height: 240px;
        padding: 10px;
    }
    .blog-bottom-cta-inner {
        padding: 30px 20px;
        text-align: center;
    }
    .blog-cta-form-content #blogCtaForm,
    .blog-cta-form-content .wpcf7-form {
        grid-template-columns: 1fr;
    }
    .blog-cta-form-content .cf7-pref-checks {
        grid-template-columns: 1fr;
    }
    .blog-cta-form-content .blog-cta-submit {
        width: 100%;
    }
    .posts-list-block {
        margin-bottom: 30px;
    }
}