/* =========================================================
   VAASTU MAHAJEEVAN BLOG LISTING
   Premium Navy Blue + Gold Theme
========================================================= */

.kl-blog-hero,
.kl-blog-section,
.kl-blog-hero *,
.kl-blog-section * {
    box-sizing: border-box;
}

.kl-blog-hero .container,
.kl-blog-section .container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
}

/* =========================================================
   HERO
========================================================= */

.kl-blog-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 430px;
    padding: 42px 0 48px;
    overflow: hidden;
    background-color: #0b192c;
    background-image:
        linear-gradient(
            105deg,
            rgba(7, 22, 40, 0.5) 0%,
            rgba(15, 38, 58, 0.5) 45%,
            rgba(30, 43, 48, 0.5) 72%,
            rgba(154, 126, 83, 0.5) 100%
        ),
        var(--blog-hero-image, none);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.kl-blog-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(8, 23, 41, 0.42),
        rgba(12, 32, 49, 0.18) 55%,
        rgba(177, 143, 89, 0.16)
    );
}

.kl-blog-hero::after {
    position: absolute;
    z-index: -1;
    top: -250px;
    right: -110px;
    width: 600px;
    height: 600px;
    content: "";
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(238, 190, 111, 0.22),
        rgba(238, 190, 111, 0.08) 48%,
        transparent 72%
    );
}

.kl-blog-hero-ring {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(255, 229, 182, 0.17);
    border-radius: 50%;
}

.kl-ring-one {
    top: -205px;
    right: -75px;
    width: 500px;
    height: 500px;
}

.kl-ring-two {
    top: -275px;
    right: -135px;
    width: 630px;
    height: 630px;
    border-color: rgba(255, 229, 182, 0.09);
}

.kl-blog-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

/* BREADCRUMB */

.kl-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin: 0 0 30px;
    color: #efbd69;
    font-size: 14px;
    line-height: 1.7;
}

.kl-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kl-breadcrumb a:hover {
    color: #efbd69;
}

.kl-breadcrumb a i,
.kl-breadcrumb-separator {
    color: #efbd69;
}

.kl-breadcrumb-separator {
    font-size: 11px;
}

.kl-current-breadcrumb {
    overflow-wrap: anywhere;
}

/* HERO LABEL */

.kl-hero-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    margin-bottom: 22px;
    padding: 11px 18px;
    color: #efbd69;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(239, 189, 105, 0.48);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.kl-hero-label i {
    font-size: 15px;
}

/* HERO TITLE */

.kl-hero-title {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 4vw, 62px);
    line-height: 1.16;
    font-weight: 750;
    letter-spacing: -1.5px;
    overflow-wrap: anywhere;
}

.kl-hero-title span {
    display: block;
    color: #efbd69;
}

.kl-hero-title-line {
    width: 75px;
    height: 4px;
    margin: 20px 0 17px;
    border-radius: 5px;
    background: linear-gradient(90deg, #efbd69, rgba(239, 189, 105, 0.15));
}

.kl-hero-description {
    max-width: 850px;
    margin: 0;
    color: #d4dce5;
    font-size: 16px;
    line-height: 1.85;
}

.kl-hero-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 24px;
}

.kl-expertise-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.kl-expertise-item i {
    color: #efbd69;
    font-size: 19px;
}

/* =========================================================
   BLOG SECTION
========================================================= */

.kl-blog-section {
    width: 100%;
    padding: 70px 0 80px;
    background: #faf9f6;
}

.kl-blog-section .container {
    padding-inline: 28px;
}

/* SECTION HEADING */

.kl-blog-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.kl-blog-heading-content {
    max-width: 760px;
}

.kl-section-label {
    display: inline-block;
    margin-bottom: 11px;
    color: #a77b35;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.kl-blog-heading-content h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(29px, 2.8vw, 40px);
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.kl-blog-heading-content h2 span {
    color: #a77b35;
}

.kl-blog-heading-content p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================================
   SEARCH
========================================================= */

.kl-blog-search-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.kl-blog-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 470px;
    min-height: 52px;
    background: #fff;
    border: 1px solid #e8e2d7;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(23, 35, 55, 0.035);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.kl-blog-search:focus-within {
    border-color: #a77b35;
    box-shadow: 0 0 0 3px rgba(167, 123, 53, 0.09);
}

.kl-search-icon {
    flex-shrink: 0;
    margin-left: 15px;
    color: #a77b35;
    font-size: 15px;
}

.kl-blog-search input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 12px;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: none;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
}

.kl-blog-search input::placeholder {
    color: #989da4;
}

.kl-blog-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    min-height: 39px;
    margin-right: 5px;
    padding: 0 14px;
    color: #fff;
    background: #172b40;
    border: 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.kl-blog-search button:hover {
    background: #a77b35;
}

/* =========================================================
   BLOG GRID — FOUR CARDS PER ROW
========================================================= */

.kl-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

/* =========================================================
   BLOG CARD
========================================================= */

.kl-blog-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee9e0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(23, 35, 55, 0.045);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.kl-blog-card:hover {
    transform: translateY(-5px);
    border-color: #dfcfb1;
    box-shadow: 0 13px 30px rgba(23, 35, 55, 0.1);
}

/* CARD IMAGE */

.kl-blog-card-image {
    position: relative;
    width: 100%;
    height: 195px;
    flex-shrink: 0;
    overflow: hidden;
    background: #e9e7e2;
}

.kl-blog-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.kl-blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.kl-blog-card:hover .kl-blog-card-image img {
    transform: scale(1.055);
}

.kl-blog-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #b18a4d;
    background: linear-gradient(135deg, #172b40, #3a4a55);
    font-size: 38px;
}

/* BADGES */

.kl-blog-featured-badge,
.kl-blog-trending-badge {
    position: absolute;
    top: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: calc(50% - 15px);
    padding: 6px 8px;
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.kl-blog-featured-badge {
    left: 10px;
    background: #a77b35;
}

.kl-blog-trending-badge {
    right: 10px;
    background: #172b40;
}

/* CARD BODY */

.kl-blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 17px;
}

/* CATEGORY + DATE */

.kl-blog-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 13px;
}

.kl-blog-category {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 8px;
    color: #8a642d;
    background: #f8f1e5;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.kl-blog-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #818792;
    font-size: 10px;
    line-height: 1.6;
}

.kl-blog-date i {
    color: #a77b35;
}

/* TITLE */

.kl-blog-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 54px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.kl-blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kl-blog-card-title a:hover {
    color: #a77b35;
}

/* DESCRIPTION */

.kl-blog-card-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    min-height: 68px;
    margin: 0 0 18px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

/* CARD FOOTER */

.kl-blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid #f0ede7;
}

.kl-blog-reading-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.kl-blog-reading-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 10px;
}

.kl-blog-reading-info i {
    color: #a77b35;
}

.kl-blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a77b35;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.kl-blog-read-more i {
    transition: transform 0.3s ease;
}

.kl-blog-read-more:hover {
    color: #805b22;
}

.kl-blog-read-more:hover i {
    transform: translateX(4px);
}

/* =========================================================
   PAGINATION
========================================================= */

.kl-blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.kl-blog-pagination nav {
    display: flex;
    justify-content: center;
}

.kl-blog-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
}

.kl-blog-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #e8e2d7;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.kl-blog-pagination .page-link:hover,
.kl-blog-pagination .page-item.active .page-link {
    color: #fff;
    background: #172b40;
    border-color: #172b40;
}

/* EMPTY STATE */

.kl-blog-empty {
    max-width: 700px;
    margin: 20px auto 0;
    padding: 55px 25px;
    background: #fff;
    border: 1px solid #eee9e0;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 28px rgba(23, 35, 55, 0.045);
}

.kl-blog-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: #a77b35;
    background: #f8f1e5;
    border-radius: 50%;
    font-size: 26px;
}

.kl-blog-empty h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 25px;
    font-weight: 700;
}

.kl-blog-empty p {
    max-width: 500px;
    margin: 0 auto 23px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.kl-blog-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    color: #fff;
    background: #172b40;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.kl-blog-empty-button:hover {
    color: #fff;
    background: #a77b35;
}

/* =========================================================
   LAPTOP / SMALL DESKTOP
========================================================= */

@media (max-width: 1199px) {
    .kl-blog-section .container {
        padding-inline: 22px;
    }

    .kl-blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .kl-blog-card-image {
        height: 190px;
    }

    .kl-blog-card-body {
        padding: 16px;
    }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {
    .kl-blog-hero {
        min-height: 400px;
    }

    .kl-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .kl-blog-card-image {
        height: 225px;
    }

    .kl-blog-card-body {
        padding: 20px;
    }

    .kl-blog-card-title {
        font-size: 19px;
    }

    .kl-blog-card-description {
        font-size: 13px;
    }

    .kl-blog-date,
    .kl-blog-category {
        font-size: 11px;
    }

    .kl-blog-read-more,
    .kl-blog-reading-info span {
        font-size: 11px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {
    .kl-blog-hero {
        min-height: auto;
        padding: 30px 0 38px;
    }

    .kl-breadcrumb {
        gap: 9px;
        margin-bottom: 24px;
        font-size: 12px;
    }

    .kl-breadcrumb a {
        gap: 7px;
    }

    .kl-hero-label {
        gap: 8px;
        margin-bottom: 19px;
        padding: 9px 13px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    .kl-hero-label i {
        font-size: 13px;
    }

    .kl-hero-title {
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.22;
        letter-spacing: -0.6px;
    }

    .kl-hero-title-line {
        width: 58px;
        height: 3px;
        margin: 17px 0 14px;
    }

    .kl-hero-description {
        font-size: 13px;
        line-height: 1.85;
    }

    .kl-hero-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        margin-top: 20px;
    }

    .kl-expertise-item {
        gap: 9px;
        font-size: 12px;
    }

    .kl-expertise-item i {
        font-size: 17px;
    }

    .kl-blog-section {
        padding: 42px 0 50px;
    }

    .kl-blog-section-heading {
        margin-bottom: 21px;
    }

    .kl-section-label {
        font-size: 10px;
    }

    .kl-blog-heading-content h2 {
        font-size: 28px;
    }

    .kl-blog-heading-content p {
        font-size: 13px;
    }

    .kl-blog-search-wrapper {
        margin-bottom: 23px;
    }

    .kl-blog-search {
        max-width: 100%;
        min-height: 48px;
    }

    .kl-blog-search input {
        height: 46px;
        padding-inline: 9px;
        font-size: 12px;
    }

    .kl-search-icon {
        margin-left: 11px;
        font-size: 13px;
    }

    .kl-blog-search button {
        gap: 5px;
        min-height: 36px;
        padding-inline: 10px;
        font-size: 11px;
    }

    .kl-blog-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .kl-blog-card-image {
        height: 230px;
    }

    .kl-blog-card-body {
        padding: 19px;
    }

    .kl-blog-meta {
        gap: 9px;
    }

    .kl-blog-card-title {
        min-height: auto;
        font-size: 19px;
    }

    .kl-blog-card-description {
        min-height: auto;
        font-size: 13px;
    }

    .kl-blog-card-footer {
        gap: 12px;
    }

    .kl-blog-pagination {
        margin-top: 32px;
    }

    .kl-blog-empty {
        padding: 38px 18px;
    }

    .kl-blog-empty h3 {
        font-size: 23px;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {
    .kl-hero-title {
        font-size: 29px;
    }



    .kl-blog-card-image {
        height: 200px;
    }

    .kl-blog-card-body {
        padding: 16px;
    }

    .kl-blog-card-footer {
        align-items: flex-start;
    }

    .kl-blog-reading-info {
        gap: 8px;
    }
}
