/* =========================================================
   CLEANNORA BLOG
   Premium Blog Page Styles
   Brand: Emerald Green / Gold / White
   ========================================================= */

:root {
    --blog-green: #083D2B;
    --blog-green-light: #0d5a40;
    --blog-gold: #F4BF19;
    --blog-gold-dark: #d9a700;
    --blog-white: #ffffff;
    --blog-cream: #f8f7f2;
    --blog-soft: #f1f6f3;
    --blog-text: #17251f;
    --blog-muted: #68756f;
    --blog-border: #e4ebe7;
    --blog-shadow: 0 18px 50px rgba(8, 61, 43, 0.10);
    --blog-radius: 22px;
}


/* =========================================================
   GLOBAL
   ========================================================= */

.cleannora-blog-page {
    background: #ffffff;
    color: var(--blog-text);
    overflow: hidden;
}

.cleannora-blog-page *,
.cleannora-blog-page *::before,
.cleannora-blog-page *::after {
    box-sizing: border-box;
}

.cleannora-blog-page img {
    max-width: 100%;
    display: block;
}

.cleannora-blog-page a {
    text-decoration: none;
}

.blog-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   BLOG HERO
   ========================================================= */

.blog-hero {
    width: min(1440px, calc(100% - 32px));
    min-height: 530px;
    margin: 32px auto 0;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 30px;
    background: var(--blog-cream);
}

.blog-hero-content {
    width: 53%;
    padding: 75px 30px 75px 75px;
    position: relative;
    z-index: 3;
}

.blog-eyebrow,
.section-mini-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blog-gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.1px;
    text-transform: uppercase;
}

.blog-eyebrow::before,
.section-mini-label::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--blog-gold);
    border-radius: 10px;
}

.blog-hero h1 {
    margin: 18px 0 20px;
    color: var(--blog-green);
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -2.5px;
    font-weight: 800;
}

.blog-hero-content > p {
    max-width: 590px;
    margin: 0;
    color: var(--blog-muted);
    font-size: 17px;
    line-height: 1.75;
}


/* =========================================================
   SEARCH
   ========================================================= */

.blog-search-box {
    width: min(570px, 100%);
    height: 58px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--blog-border);
    border-radius: 100px;
    padding: 5px;
    box-shadow: 0 12px 30px rgba(8, 61, 43, 0.08);
}

.blog-search-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 20px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--blog-text);
    font-family: inherit;
    font-size: 14px;
}

.blog-search-box input::placeholder {
    color: #9ba7a1;
}

.blog-search-box button {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 0;
    border-radius: 50%;
    background: var(--blog-green);
    color: #ffffff;
    cursor: pointer;
    font-size: 24px;
    display: grid;
    place-items: center;
    transition: 0.25s ease;
}

.blog-search-box button:hover {
    background: var(--blog-gold);
    color: var(--blog-green);
    transform: scale(1.04);
}


/* =========================================================
   POPULAR TOPICS
   ========================================================= */

.blog-popular {
    margin-top: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-popular strong {
    margin-right: 4px;
    color: var(--blog-green);
    font-size: 12px;
    font-weight: 700;
}

.popular-tag {
    border: 1px solid var(--blog-border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--blog-muted);
    border-radius: 100px;
    padding: 7px 12px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: 0.25s ease;
}

.popular-tag:hover {
    border-color: var(--blog-gold);
    background: #fffaf0;
    color: var(--blog-green);
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.blog-hero-image {
    position: absolute;
    inset: 0 0 0 43%;
    overflow: hidden;
}

.blog-hero-image::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--blog-cream) 0%,
        rgba(248, 247, 242, 0.88) 10%,
        rgba(248, 247, 242, 0.15) 38%,
        transparent 60%
    );
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   FEATURED SECTION
   ========================================================= */

.blog-featured-section {
    padding-top: 85px;
}

.blog-featured {
    min-height: 420px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
    background: var(--blog-green);
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow);
}

.blog-featured-content {
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 100px;
    background: rgba(244, 191, 25, 0.14);
    color: var(--blog-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.article-category,
.card-category {
    display: block;
    margin-bottom: 10px;
    color: var(--blog-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.blog-featured h2 {
    max-width: 540px;
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(30px, 3.5vw, 46px);
    line-height: 1.12;
    letter-spacing: -1.2px;
}

.blog-featured-content > p {
    max-width: 530px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.75;
}

.blog-primary-btn {
    width: fit-content;
    margin-top: 26px;
    padding: 13px 19px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 100px;
    background: var(--blog-gold);
    color: var(--blog-green);
    font-size: 13px;
    font-weight: 800;
    transition: 0.25s ease;
}

.blog-primary-btn:hover {
    background: #ffffff;
    color: var(--blog-green);
    transform: translateY(-2px);
}

.blog-primary-btn span {
    font-size: 17px;
}

.blog-featured .article-meta {
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.62);
}

.blog-featured-image {
    min-height: 420px;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-featured:hover .blog-featured-image img {
    transform: scale(1.035);
}


/* =========================================================
   META
   ========================================================= */

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    color: var(--blog-muted);
    font-size: 11px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.meta-icon {
    color: var(--blog-gold);
}


/* =========================================================
   CATEGORY SECTION
   ========================================================= */

.blog-category-section {
    padding-top: 90px;
}

.blog-section-heading {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
}

.blog-section-heading h2 {
    margin: 9px 0 0;
    color: var(--blog-green);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -1px;
}

.view-all-btn {
    border: 0;
    background: transparent;
    color: var(--blog-green);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.view-all-btn span {
    margin-left: 7px;
    color: var(--blog-gold-dark);
    font-size: 17px;
}

.view-all-btn:hover {
    color: var(--blog-gold-dark);
}

.blog-category-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.category-tab {
    min-height: 90px;
    border: 1px solid var(--blog-border);
    border-radius: 17px;
    background: #ffffff;
    color: var(--blog-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: 0.25s ease;
}

.category-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--blog-soft);
    color: var(--blog-green);
    font-size: 17px;
}

.category-tab:hover,
.category-tab.active {
    border-color: var(--blog-green);
    background: var(--blog-green);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(8, 61, 43, 0.12);
}

.category-tab:hover .category-icon,
.category-tab.active .category-icon {
    background: rgba(244, 191, 25, 0.16);
    color: var(--blog-gold);
}


/* =========================================================
   ARTICLES
   ========================================================= */

.blog-articles-section {
    padding-top: 85px;
    padding-bottom: 95px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.blog-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(8, 61, 43, 0.045);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--blog-shadow);
}

.blog-card-image {
    display: block;
    height: 220px;
    overflow: hidden;
    background: var(--blog-soft);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-content h3 {
    margin: 0;
    color: var(--blog-green);
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -0.4px;
}

.blog-card-content h3 a {
    color: inherit;
}

.blog-card-content h3 a:hover {
    color: var(--blog-gold-dark);
}

.blog-card-content p {
    margin: 12px 0 20px;
    color: var(--blog-muted);
    font-size: 13px;
    line-height: 1.7;
}

.blog-card .article-meta {
    padding-top: 16px;
    border-top: 1px solid var(--blog-border);
}


/* =========================================================
   NO RESULTS
   ========================================================= */

.blog-no-results {
    padding: 55px 20px;
    text-align: center;
    border: 1px dashed var(--blog-border);
    border-radius: var(--blog-radius);
    background: var(--blog-soft);
}

.blog-no-results[hidden] {
    display: none;
}

.blog-no-results h3 {
    margin: 0 0 8px;
    color: var(--blog-green);
}

.blog-no-results p {
    margin: 0;
    color: var(--blog-muted);
    font-size: 14px;
}


/* =========================================================
   NEWSLETTER
   ========================================================= */

.blog-newsletter-section {
    padding: 0 0 90px;
}

.blog-newsletter {
    min-height: 270px;
    padding: 45px 55px;
    display: grid;
    grid-template-columns: auto 1fr minmax(330px, 430px);
    align-items: center;
    gap: 35px;
    border-radius: var(--blog-radius);
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(244, 191, 25, 0.14),
            transparent 30%
        ),
        var(--blog-soft);
}

.newsletter-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--blog-green);
    color: var(--blog-gold);
    font-size: 24px;
}

.newsletter-content h2 {
    margin: 10px 0 10px;
    color: var(--blog-green);
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.newsletter-content p {
    max-width: 500px;
    margin: 0;
    color: var(--blog-muted);
    font-size: 13px;
    line-height: 1.7;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-wrap {
    width: 100%;
    height: 54px;
    padding: 4px;
    display: flex;
    background: #ffffff;
    border: 1px solid var(--blog-border);
    border-radius: 100px;
}

.newsletter-input-wrap input {
    flex: 1;
    min-width: 0;
    padding: 0 17px;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
}

.newsletter-input-wrap button {
    border: 0;
    padding: 0 19px;
    border-radius: 100px;
    background: var(--blog-green);
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.newsletter-input-wrap button:hover {
    background: var(--blog-gold);
    color: var(--blog-green);
}

.newsletter-form small {
    display: block;
    margin: 10px 15px 0;
    color: #89958f;
    font-size: 10px;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 991px) {

    .blog-hero {
        min-height: 500px;
    }

    .blog-hero-content {
        width: 65%;
        padding: 60px 30px 60px 50px;
    }

    .blog-hero-image {
        inset: 0 0 0 48%;
    }

    .blog-hero h1 {
        font-size: 48px;
    }

    .blog-featured {
        grid-template-columns: 1fr 1fr;
    }

    .blog-featured-content {
        padding: 40px;
    }

    .blog-category-tabs {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-newsletter {
        grid-template-columns: auto 1fr;
    }

    .newsletter-form {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .blog-container {
        width: min(100% - 28px, 600px);
    }

    .blog-hero {
        width: calc(100% - 20px);
        min-height: auto;
        margin-top: 18px;
        display: block;
        border-radius: 22px;
    }

    .blog-hero-content {
        width: 100%;
        padding: 42px 24px 28px;
    }

    .blog-hero h1 {
        margin-top: 14px;
        font-size: 38px;
        line-height: 1.08;
        letter-spacing: -1.5px;
    }

    .blog-hero-content > p {
        font-size: 14px;
        line-height: 1.65;
    }

    .blog-search-box {
        height: 54px;
        margin-top: 23px;
    }

    .blog-search-box button {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .blog-popular {
        display: none;
    }

    .blog-hero-image {
        position: relative;
        inset: auto;
        height: 250px;
    }

    .blog-hero-image::before {
        display: none;
    }

    .blog-hero-image img {
        object-position: center;
    }


    /* Featured */

    .blog-featured-section {
        padding-top: 50px;
    }

    .blog-featured {
        display: flex;
        flex-direction: column-reverse;
        border-radius: 19px;
    }

    .blog-featured-image {
        min-height: 240px;
        height: 240px;
    }

    .blog-featured-content {
        padding: 30px 24px 32px;
    }

    .blog-featured h2 {
        font-size: 29px;
    }

    .blog-featured-content > p {
        font-size: 13px;
    }


    /* Sections */

    .blog-category-section {
        padding-top: 58px;
    }

    .blog-articles-section {
        padding-top: 58px;
        padding-bottom: 65px;
    }

    .blog-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .blog-section-heading h2 {
        font-size: 30px;
    }


    /* Categories */

    .blog-category-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-tab {
        min-height: 78px;
    }


    /* Cards */

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .blog-card-image {
        height: 220px;
    }

    .blog-card-content {
        padding: 21px;
    }

    .blog-card-content h3 {
        font-size: 19px;
    }


    /* Newsletter */

    .blog-newsletter-section {
        padding-bottom: 60px;
    }

    .blog-newsletter {
        padding: 30px 24px;
        grid-template-columns: 1fr;
        gap: 20px;
        border-radius: 20px;
    }

    .newsletter-icon {
        width: 55px;
        height: 55px;
        border-radius: 16px;
    }

    .newsletter-content h2 {
        font-size: 27px;
    }

    .newsletter-form {
        grid-column: auto;
    }

    .newsletter-input-wrap {
        height: auto;
        padding: 5px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        border-radius: 16px;
    }

    .newsletter-input-wrap input {
        min-height: 45px;
        width: 100%;
    }

    .newsletter-input-wrap button {
        min-height: 45px;
        width: 100%;
        border-radius: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .blog-hero h1 {
        font-size: 33px;
    }

    .blog-eyebrow,
    .section-mini-label {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .blog-category-tabs {
        grid-template-columns: 1fr 1fr;
    }

    .blog-card-image {
        height: 205px;
    }

    .blog-featured h2 {
        font-size: 26px;
    }

}

/* =========================================================
   CLEANNORA BLOG - SPACING COMPACT OVERRIDE
   ========================================================= */

/* Hero ke neeche ka gap */
.blog-featured-section {
    padding-top: 45px !important;
}

/* Featured article ke neeche ka gap */
.blog-category-section {
    padding-top: 50px !important;
}

/* Category ke neeche Latest Articles ka gap */
.blog-articles-section {
    padding-top: 50px !important;
    padding-bottom: 55px !important;
}

/* Category heading aur buttons ke beech */
.blog-section-heading {
    margin-bottom: 20px !important;
}

/* Category cards ki height thodi compact */
.category-tab {
    min-height: 78px !important;
}

/* Category section aur article heading ka overall gap */
.blog-category-tabs {
    margin-bottom: 0 !important;
}

/* Newsletter se pehle unnecessary gap */
.blog-articles-section {
    margin-bottom: 0 !important;
}

/* Newsletter section ka top gap */
.blog-newsletter-section {
    padding-top: 0 !important;
    padding-bottom: 55px !important;
}

/* Newsletter box ko thoda compact */
.blog-newsletter {
    min-height: 220px !important;
    padding-top: 35px !important;
    padding-bottom: 35px !important;
}


/* =========================================================
   DESKTOP - TIGHTER SPACING
   ========================================================= */

@media (min-width: 992px) {

    .blog-featured-section {
        padding-top: 55px !important;
    }

    .blog-category-section {
        padding-top: 55px !important;
    }

    .blog-articles-section {
        padding-top: 55px !important;
        padding-bottom: 60px !important;
    }

    .blog-newsletter-section {
        padding-bottom: 55px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .blog-featured-section {
        padding-top: 35px !important;
    }

    .blog-category-section {
        padding-top: 40px !important;
    }

    .blog-articles-section {
        padding-top: 40px !important;
        padding-bottom: 45px !important;
    }

    .blog-newsletter-section {
        padding-bottom: 40px !important;
    }

    .blog-newsletter {
        min-height: auto !important;
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

}