/* 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;
}

.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
   ======================== */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff382e;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    width: fit-content;
}

.read-more-btn:hover {
    background: #e02e25;
    color: #fff;
    transform: translateX(3px);
}

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

.read-more-btn .bi-chevron-double-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 {
    background: #ff382e;
    color: #fff;
    border: 2px solid #ff382e;
    border-radius: 50px;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#load-more-posts:hover {
    background: #e02e25;
    border-color: #e02e25;
}

.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: 60px 0;
    background: #f7f7f7;
}

.blog-cta-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: rgba(100, 100, 111, 0.1) 0px 7px 29px 0px;
    overflow: hidden;
    padding: 40px;
}

.blog-cta-image img {
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
}

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

.blog-cta-form-content h2 {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.blog-cta-form-content>p {
    font-size: 1rem;
    color: #777;
    margin-bottom: 25px;
}

/* CF7 Form Styling inside CTA */
.blog-cta-form-content .wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blog-cta-form-content .wpcf7-form-control:not(.wpcf7-submit) {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 1rem;
    width: 100%;
    background: #fff;
}

.blog-cta-form-content .wpcf7-form-control:focus {
    border-color: #ff382e;
    outline: none;
}

.blog-cta-form-content .wpcf7-checkbox .wpcf7-list-item {
    display: inline-block;
    margin-right: 15px;
    font-size: 1rem;
}

.blog-cta-form-content .wpcf7-submit {
    background: #ff382e;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s;
    margin-top: 10px;
}

.blog-cta-form-content .wpcf7-submit:hover {
    background: #e02e25;
}

/* ========================
   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-wrapper {
        padding: 30px 25px;
    }

    .blog-cta-image img {
        max-width: 100%;
        margin-bottom: 25px;
    }

    .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;
    }

    .posts-list-block {
        margin-bottom: 30px;
    }
}