/* Blog list (/blog) aur category pages (/blog/category/...): views/blogs.php */

.sw-bhero,
.sw-blog {
    --bl-blue: #4b85f0;
    --bl-blue-dark: #3a72dc;
    --bl-navy: #0f1f3d;
    --bl-ink: #1d2b45;
    --bl-muted: #5b6b85;
    --bl-line: #e3e8f0;
    --bl-field: #f4f7fb;
    --bl-serif: 'Playfair Display', Georgia, serif;
}

/* ---------- Hero ---------- */
.sw-bhero {
    position: relative;
    padding: 46px 0 40px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 10%, rgba(75, 133, 240, 0.16), transparent 42%),
        linear-gradient(180deg, #eef4fd 0%, #f8fafd 100%);
    border-bottom: 1px solid var(--bl-line);
    text-align: left;
}
.sw-bhero-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    color: var(--bl-muted);
    font-size: 13px;
}
.sw-bhero-crumbs a {
    color: var(--bl-muted);
    text-decoration: none;
}
.sw-bhero-crumbs a:hover {
    color: var(--bl-blue);
}
.sw-bhero-crumbs strong {
    color: var(--bl-ink);
    font-weight: 500;
}
.sw-bhero-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    color: var(--bl-blue);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.sw-bhero-eyebrow::before {
    content: "";
    width: 48px;
    height: 2px;
    background: var(--bl-blue);
}
.sw-bhero .sw-bhero-title {
    margin: 0 0 14px;
    color: var(--bl-navy);
    font-family: var(--bl-serif);
    font-size: 50px;
    font-weight: 500;
    line-height: 1.12;
    text-align: left;
}
.sw-bhero-title em {
    color: var(--bl-blue);
    font-style: italic;
}
.sw-bhero-sub {
    max-width: 620px;
    margin: 0 0 28px;
    color: var(--bl-muted);
    font-size: 16px;
    line-height: 1.65;
}
.sw-bhero-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 22px;
}
.sw-bsearch {
    position: relative;
    flex: 0 0 340px;
    margin: 0;
}
.sw-bsearch svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--bl-muted);
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}
.sw-bsearch input {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 18px 0 46px;
    background: #fff;
    border: 1px solid var(--bl-line);
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(15, 31, 61, 0.06);
    color: var(--bl-ink);
    font-size: 15px;
}
.sw-bsearch input::placeholder {
    color: #8a93a3 !important;
    opacity: 1;
}
.sw-bsearch input:focus {
    outline: none;
    border-color: var(--bl-blue);
    box-shadow: 0 0 0 3px rgba(75, 133, 240, 0.15);
}
.sw-bchips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sw-bchip {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid var(--bl-line);
    border-radius: 40px;
    color: var(--bl-ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.sw-bchip:hover {
    border-color: var(--bl-blue);
    color: var(--bl-blue);
    text-decoration: none;
}
.sw-bchip.is-active,
.sw-bchip.is-active:hover {
    background: var(--bl-blue);
    border-color: var(--bl-blue);
    color: #fff;
    box-shadow: 0 6px 16px rgba(75, 133, 240, 0.3);
}

/* ---------- Layout ---------- */
.sw-blog {
    padding: 50px 0 70px;
    background: #f8fafd;
}
.sw-blog .row {
    align-items: stretch; /* sidebar poori height le, tabhi form sticky rehta hai */
}

/* Meta row (category, date, read time) */
.sw-bmeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-bottom: 12px;
    color: var(--bl-muted);
    font-size: 13px;
}
.sw-bmeta > span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 14px 2px 0;
    background: #b7c2d4;
    border-radius: 50%;
    vertical-align: middle;
}
.sw-bcat {
    padding: 4px 12px;
    background: rgba(75, 133, 240, 0.1);
    border-radius: 30px;
    color: var(--bl-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
}
.sw-bcat:hover {
    color: var(--bl-blue-dark);
    text-decoration: none;
}

/* Buttons */
.sw-bbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 24px;
    background: var(--bl-blue);
    border: 1.5px solid var(--bl-blue);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(75, 133, 240, 0.3);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
.sw-bbtn:hover {
    background: var(--bl-blue-dark);
    color: #fff;
    text-decoration: none;
}
.sw-bbtn-ghost {
    background: #fff;
    box-shadow: none;
    color: var(--bl-blue);
}
.sw-bbtn-ghost:hover {
    background: rgba(75, 133, 240, 0.08);
    color: var(--bl-blue);
}

/* ---------- Featured (latest) post ---------- */
.sw-bfeat {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    margin-bottom: 30px;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 31, 61, 0.08);
}
.sw-bfeat-img {
    position: relative;
    display: block;
    min-height: 320px;
    overflow: hidden;
    background: #dfe6ef;
}
.sw-bfeat-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.sw-bfeat:hover .sw-bfeat-img img {
    transform: scale(1.04);
}
.sw-bfeat-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--bl-navy);
    border-radius: 30px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.sw-bfeat-body {
    display: flex;
    flex-direction: column;
    padding: 34px 34px 30px;
}
.sw-blog .sw-bfeat-title {
    margin: 0 0 14px;
    font-family: var(--bl-serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
}
.sw-bfeat-title a,
.sw-bcard-title a {
    color: var(--bl-navy);
    text-decoration: none;
}
.sw-bfeat-title a:hover,
.sw-bcard-title a:hover {
    color: var(--bl-blue);
    text-decoration: none;
}
.sw-bfeat-excerpt {
    margin: 0 0 24px;
    color: var(--bl-muted);
    font-size: 15px;
    line-height: 1.7;
}
.sw-bfeat-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--bl-line);
}
.sw-bauthor {
    color: var(--bl-ink);
    font-size: 14px;
    font-weight: 500;
}

/* ---------- Grid cards ---------- */
.sw-bgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}
.sw-bcard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 31, 61, 0.07);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.sw-bcard:hover {
    box-shadow: 0 16px 40px rgba(15, 31, 61, 0.13);
    transform: translateY(-3px);
}
.sw-bcard-img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dfe6ef;
}
.sw-bcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.sw-bcard:hover .sw-bcard-img img {
    transform: scale(1.05);
}
.sw-bcard-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 30px;
    color: var(--bl-blue);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.sw-bcard-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 24px 24px;
}
.sw-blog .sw-bcard-title {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    font-family: var(--bl-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.38;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.sw-bcard-excerpt {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: var(--bl-muted);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.sw-blink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--bl-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.sw-blink span {
    transition: transform 0.2s ease;
}
.sw-blink:hover {
    color: var(--bl-blue-dark);
    text-decoration: none;
}
.sw-blink:hover span,
.sw-bcard:hover .sw-blink span {
    transform: translateX(4px);
}

/* Load more + search states */
.sw-bcard.is-more,
.sw-bitem.is-hidden {
    display: none;
}
.sw-blog.is-searching .sw-bcard.is-more:not(.is-hidden) {
    display: flex;
}
.sw-blog.is-searching .sw-bmore-wrap {
    display: none;
}
.sw-bmore-wrap {
    margin-top: 36px;
    text-align: center;
}
.sw-bnone,
.sw-bempty {
    padding: 50px 24px;
    background: #fff;
    border: 1px dashed var(--bl-line);
    border-radius: 16px;
    color: var(--bl-muted);
    font-size: 15px;
    text-align: center;
}
.sw-bempty h2 {
    margin: 0 0 8px;
    color: var(--bl-navy);
    font-family: var(--bl-serif);
    font-size: 26px;
}
.sw-bempty p {
    margin: 0 0 20px;
}

/* ---------- Sidebar ---------- */
.sw-bside-sticky {
    position: sticky;
    top: 100px;
}
.sw-bside-card {
    margin-bottom: 26px;
    padding: 26px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 31, 61, 0.07);
}
.sw-benq {
    border-top: 4px solid var(--bl-blue);
}
.sw-benq-eyebrow {
    margin-bottom: 8px;
    color: var(--bl-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.sw-benq h3 {
    margin: 0 0 8px;
    color: var(--bl-navy);
    font-family: var(--bl-serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
}
.sw-benq p {
    margin: 0 0 20px;
    color: var(--bl-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Form (same look as the homepage enquiry form) */
.sw-benq-form .input-group {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 12px;
}
.sw-benq-form input[type="text"],
.sw-benq-form input[type="email"] {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    background-color: var(--bl-field);
    border: 1px solid var(--bl-line);
    border-radius: 10px;
    box-shadow: none;
    color: var(--bl-navy);
    font-size: 14px;
}
.sw-benq-form input::placeholder {
    color: #8a93a3 !important;
    opacity: 1;
}
.sw-benq-form input[type="text"]:focus,
.sw-benq-form input[type="email"]:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--bl-blue);
    box-shadow: 0 0 0 3px rgba(75, 133, 240, 0.15);
}
.sw-benq-form .select2-container {
    flex: 0 0 112px;
    width: 112px !important;
}
.sw-benq-form .select2 .selection .select2-selection--single {
    display: flex;
    align-items: center;
    width: 112px;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0 10px;
    background-color: var(--bl-field);
    border: 1px solid var(--bl-line);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    color: var(--bl-navy);
    font-size: 13px;
}
.sw-benq-form .select2 .selection .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
}
.sw-benq-form select.countryCode {
    flex: 0 0 112px;
    width: 112px;
    height: 48px;
    background-color: var(--bl-field);
    border: 1px solid var(--bl-line);
    border-right: 0;
    border-radius: 10px 0 0 10px;
}
.sw-benq-form .select2-container + input[type="text"],
.sw-benq-form select.countryCode + input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    border-radius: 0 10px 10px 0;
}
.sw-benq-form .btn-box {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.sw-benq-form .btn-box .request-btn,
.sw-benq-form .btn-box .form-call-btn {
    flex: 1;
    width: auto;
    height: 48px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 48px;
    text-align: center;
    text-transform: none;
}
.sw-benq-form .btn-box .request-btn {
    background-color: var(--bl-blue);
    border: 0;
    box-shadow: 0 8px 20px rgba(75, 133, 240, 0.35);
    color: #fff;
}
.sw-benq-form .btn-box .request-btn:hover {
    background-color: var(--bl-blue-dark);
}
.sw-benq-form .btn-box .form-call-btn {
    background-color: #fff;
    border: 1.5px solid var(--bl-blue);
    color: var(--bl-blue);
}
.sw-benq-form .btn-box .form-call-btn:hover {
    background-color: rgba(75, 133, 240, 0.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .sw-bfeat {
        grid-template-columns: 1fr;
    }
    .sw-bfeat-img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}
@media (max-width: 991px) {
    .sw-bside-sticky {
        position: static;
    }
    .sw-blog-side {
        margin-top: 40px;
    }
}
@media (max-width: 767px) {
    .sw-bhero {
        padding: 28px 0 30px;
    }
    .sw-bhero-crumbs {
        margin-bottom: 18px;
    }
    .sw-bhero .sw-bhero-title {
        font-size: 34px;
    }
    .sw-bhero-sub {
        margin-bottom: 22px;
        font-size: 15px;
    }
    .sw-bsearch {
        flex: 1 1 100%;
    }
    .sw-bchips {
        flex-wrap: nowrap;
        width: calc(100% + 30px);
        margin-right: -15px;
        padding-right: 15px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .sw-bchips::-webkit-scrollbar {
        display: none;
    }
    .sw-blog {
        padding: 30px 0 50px;
    }
    .sw-bfeat-body {
        padding: 22px 20px 22px;
    }
    .sw-blog .sw-bfeat-title {
        font-size: 23px;
    }
    .sw-bgrid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
