
/* ============================================
   KD CLEANERS BLOG HERO
============================================ */

.kd-blog-hero {
    position: relative;
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 560px;
    padding: 100px 0;

    background-color: #041D3B;

    background-image:
        linear-gradient(
            90deg,
            rgba(4, 29, 59, 0.94) 0%,
            rgba(4, 29, 59, 0.80) 35%,
            rgba(4, 29, 59, 0.48) 70%,
            rgba(4, 29, 59, 0.28) 100%
        ),
        var(--blog-hero-image);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;
    isolation: isolate;
}

/* Use existing global container */

.kd-blog-hero > .container {
    position: relative;
    z-index: 1;
}

/* Hero content */

.kd-blog-hero-content {
    width: 100%;
    max-width: 760px;
}

/* Heading */

.kd-blog-hero h1 {
    margin: 0 0 24px;

    color: #ffffff;
    font-family: "Cabinet Grotesk", sans-serif;
    font-size: clamp(54px, 6vw, 100px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -2px;
}

/* Description */

.kd-blog-hero-content p {
    margin: 0;
    max-width: 720px;

    color: #ffffff;
    font-family: "General Sans", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.65;
}

/* ============================================
   LAPTOP
============================================ */

@media (max-width: 1199px) {

    .kd-blog-hero {
        min-height: 500px;
        padding: 85px 0;
    }

    .kd-blog-hero h1 {
        font-size: 76px;
    }

    .kd-blog-hero-content p {
        font-size: 19px;
    }
}

/* ============================================
   TABLET
============================================ */

@media (max-width: 991px) {

    .kd-blog-hero {
        min-height: 450px;
        padding: 75px 0;
        background-position: 60% center;
    }

    .kd-blog-hero-content {
        max-width: 650px;
    }

    .kd-blog-hero h1 {
        font-size: 66px;
    }

    .kd-blog-hero-content p {
        font-size: 18px;
    }
}

/* ============================================
   MOBILE
============================================ */

@media (max-width: 767px) {

    .kd-blog-hero {
        min-height: 400px;
        padding: 65px 0;

        background-image:
            linear-gradient(
                90deg,
                rgba(4, 29, 59, 0.94) 0%,
                rgba(4, 29, 59, 0.82) 60%,
                rgba(4, 29, 59, 0.62) 100%
            ),
            var(--blog-hero-image);

        background-position: 62% center;
    }

    .kd-blog-hero-content {
        max-width: 100%;
    }

    .kd-blog-hero h1 {
        margin-bottom: 18px;
        font-size: clamp(46px, 10vw, 58px);
        letter-spacing: -1px;
    }

    .kd-blog-hero-content p {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* ============================================
   SMALL MOBILE
============================================ */

@media (max-width: 480px) {

    .kd-blog-hero {
        min-height: 350px;
        padding: 55px 0;
    }

    .kd-blog-hero h1 {
        font-size: 46px;
    }

    .kd-blog-hero-content p {
        font-size: 15px;
    }
}


/* ============================================
   BLOG LISTING SECTION
============================================ */

.kd-blog-list {
    width: 100%;
    padding: 100px 0;
    background: #ffffff;
}

.kd-blog-list-heading {
    max-width: 760px;
    margin: 0 0 45px;
}

.kd-blog-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #0877a3;
    font-family: "General Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.kd-blog-list-heading h2 {
    margin: 0 0 16px;
    color: #041D3B;
    font-family: "Cabinet Grotesk", sans-serif;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.15;
}

.kd-blog-list-heading p {
    margin: 0;
    color: #686868;
    font-family: "General Sans", sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

/* Blog Grid */

.kd-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

/* Blog Card */

.kd-blog-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    transition: box-shadow 0.3s ease,
                transform 0.3s ease;
}

.kd-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(4, 29, 59, 0.10);
}

/* Blog Image */

.kd-blog-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8edf2;
}

.kd-blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.kd-blog-card:hover .kd-blog-card-image img {
    transform: scale(1.05);
}

.kd-blog-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #041D3B;
    color: #ffffff;
    font-weight: 700;
}

/* Card Content */

.kd-blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px;
}

.kd-blog-card-meta {
    margin-bottom: 12px;
    color: #0877a3;
    font-size: 14px;
    font-weight: 600;
}

.kd-blog-card h3 {
    margin: 0 0 14px;
    font-family: "Cabinet Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.kd-blog-card h3 a {
    color: #041D3B;
    text-decoration: none;
}

.kd-blog-card h3 a:hover {
    color: #05B8F4;
}

.kd-blog-card-body > p {
    margin: 0 0 24px;
    color: #686868;
    font-family: "General Sans", sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

/* Explore More Button */

.kd-blog-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 12px;
    margin-top: auto;
    padding: 13px 22px;
    border-radius: 8px;
    background: #0877a3;
    color: #ffffff;
    font-family: "General Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.kd-blog-explore:hover {
    background: #041D3B;
    color: #ffffff;
}

/* ============================================
   PAGINATION
============================================ */

.kd-blog-pagination {
    margin-top: 55px;
}

.kd-blog-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kd-blog-pagination a,
.kd-blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid #e1e8ef;
    border-radius: 8px;
    color: #041D3B;
    font-weight: 600;
    text-decoration: none;
}

.kd-blog-pagination a:hover,
.kd-blog-pagination .current {
    background: #05B8F4;
    border-color: #05B8F4;
    color: #ffffff;
}

.kd-blog-empty {
    color: #686868;
    font-size: 17px;
}

/* ============================================
   TABLET
============================================ */

@media (max-width: 991px) {
    .kd-blog-list {
        padding: 75px 0;
    }

    .kd-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .kd-blog-card-body {
        padding: 22px;
    }

    .kd-blog-card h3 {
        font-size: 22px;
    }
}

/* ============================================
   MOBILE
============================================ */

@media (max-width: 767px) {
    .kd-blog-list {
        padding: 60px 0;
    }

    .kd-blog-list-heading {
        margin-bottom: 30px;
    }

    .kd-blog-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .kd-blog-card h3 {
        font-size: 22px;
    }

    .kd-blog-pagination {
        margin-top: 35px;
    }

    .kd-blog-pagination a,
    .kd-blog-pagination span {
        min-width: 40px;
        min-height: 40px;
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .kd-blog-card-body {
        padding: 20px;
    }

    .kd-blog-list-heading p {
        font-size: 15px;
    }
}


/* KD Cleaners Search Results */

.kd-search-hero {
    padding: 100px 0 85px;
    background: linear-gradient(135deg, #031d39, #063b62);
    text-align: center;
    color: #ffffff;
}

.kd-search-hero h1 {
    margin: 16px 0;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 500;
    color: #ffffff;
}

.kd-search-hero p {
    color: #e1ebf4;
    font-size: 16px;
}

.kd-search-hero .kd-single-search {
    display: flex;
    width: min(100%, 620px);
    margin: 30px auto 0;
    padding: 6px;
    background: #ffffff;
    border-radius: 10px;
}

.kd-search-hero .kd-single-search input {
    flex: 1;
    min-width: 0;
    padding: 14px;
    border: none;
    background: transparent;
    font: inherit;
}

.kd-search-hero .kd-single-search button {
    padding: 14px 24px;
    background: #05b8f4;
    color: #031d39;
    border: none;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
}

.kd-search-results {
    padding-top: 80px;
    padding-bottom: 100px;
}

.kd-search-empty {
    padding: 60px 20px;
    text-align: center;
}

.kd-search-empty a {
    display: inline-block;
    margin-top: 20px;
    color: #007ca9;
    font-weight: 700;
}

@media (max-width: 767px) {
    .kd-search-hero {
        padding: 65px 0;
    }

    .kd-search-hero .kd-single-search button {
        padding: 12px 16px;
    }

    .kd-search-results {
        padding: 55px 0;
    }
}

/* Search results: category filter */
.kd-search-hero .kd-single-search select {
    flex: 0 1 190px;
    min-width: 0;
    margin: 0 6px;
    padding: 14px 10px;
    border: none;
    border-left: 1px solid #d5e5f1;
    background: transparent;
    color: #031d39;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 600px) {
    .kd-search-hero .kd-single-search {
        flex-wrap: wrap;
    }

    .kd-search-hero .kd-single-search input {
        flex: 1 1 100%;
    }

    .kd-search-hero .kd-single-search select {
        flex: 1 1 60%;
        margin: 0;
        border-left: none;
        border-top: 1px solid #d5e5f1;
    }

    .kd-search-hero .kd-single-search button {
        flex: 1 1 30%;
    }
}
