
/* ==================================================
   ECOMORBIXA - PREMIUM SAAS NEWS HOMEPAGE
   Version 2.0
   Desktop / Tablet / Mobile
================================================== */


:root {
    /* Ecomofolio Brand Colors */
    --eco-home-primary: #1B2CC1;
    --eco-home-hover: #1423A3;

    /* Dark Sections */
    --eco-home-dark: #091540;

    /* Text Colors */
    --eco-home-text: #091540;
    --eco-home-muted: #65708A;

    /* Borders & Background */
    --eco-home-border: #E1E6F2;
    --eco-home-soft: #F3F6FF;

    /* Layout */
    --eco-home-width: 1380px;
    --eco-home-radius: 9px;
}


/* ==================================================
   GLOBAL HOMEPAGE RESET
================================================== */

.eco-main-content {
    display: block;
    min-width: 0;
}

.eco-home-section,
.eco-home-newsletter {
    width: 100%;
}

.eco-home-section *,
.eco-home-newsletter *,
.eco-home-section *::before,
.eco-home-newsletter *::before,
.eco-home-section *::after,
.eco-home-newsletter *::after {
    box-sizing: border-box;
}

.eco-home-section a,
.eco-home-newsletter a {
    text-decoration: none;
}

.eco-home-container {
    width: min(
        calc(100% - 48px),
        var(--eco-home-width)
    );
    margin-inline: auto;
}

.eco-home-section {
    padding: 25px 0;
}

.eco-home-hero {
    padding: 34px 0 55px;
    background: #fff;
}

.eco-home-section h1,
.eco-home-section h2,
.eco-home-section h3,
.eco-home-section h4,
.eco-home-newsletter h2 {
    margin-top: 0;
    letter-spacing: -.45px;
    text-transform: none;
}

.eco-home-section img {
    display: block;
    max-width: 100%;
}

.eco-home-section a:focus-visible,
.eco-home-newsletter a:focus-visible {
    outline: 2px solid var(--eco-home-primary);
    outline-offset: 3px;
}

/* ==================================================
   CATEGORY AND POST META
================================================== */

.eco-home-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 6px 9px;
    background: var(--eco-home-primary);
    border-radius: 4px;
    color: #fff !important;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    transition: background .25s ease;
}

.eco-home-category:hover {
    background: var(--eco-home-hover);
}

.eco-home-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: #81858f;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.eco-meta-separator {
    color: var(--eco-home-primary);
}

/* ==================================================
   FALLBACK IMAGES
================================================== */

.eco-home-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 80px;
    background: linear-gradient(
        135deg,
        #292b30,
        #18191d
    );
}

.eco-home-placeholder span {
    color: #fff;
    font-size: clamp(12px, 1.4vw, 20px);
    font-weight: 700;
    letter-spacing: -.4px;
    opacity: .35;
}

/* ==================================================
   TOP 3 MINI POSTS
================================================== */

.eco-home-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 23px;
}

.eco-mini-post {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 113px;
    padding: 13px;
    background: #f8f9fa;
    border: 1px solid #eceef1;
    border-radius: 8px;
    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

.eco-mini-post:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.07);
}

.eco-mini-post-image {
    display: block;
    flex: 0 0 105px;
    width: 105px;
    height: 85px;
    overflow: hidden;
    border-radius: 6px;
    background: #23252a;
}

.eco-mini-post-image img,
.eco-mini-post-image .eco-home-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.eco-mini-post:hover img {
    transform: scale(1.08);
}

.eco-mini-post-content {
    flex: 1;
    min-width: 0;
}

.eco-mini-post .eco-home-category {
    padding: 4px 7px;
    font-size: 9px;
}

.eco-mini-post h3 {
    margin: 7px 0 6px;
    font-size: 16px;
    line-height: 1.42;
    font-weight: 700;
}

.eco-mini-post h3 a {
    color: #202228;
}

.eco-mini-post h3 a:hover {
    color: var(--eco-home-primary);
}

.eco-mini-post-date {
    color: #888c95;
    font-size: 14px;
}

/* ==================================================
   HERO FEATURED GRID
================================================== */

.eco-home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.eco-hero-main,
.eco-hero-secondary {
    min-width: 0;
}

.eco-hero-secondary {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.eco-image-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--eco-home-radius);
    background: #25272d;
    box-shadow: 0 3px 12px rgba(0,0,0,.04);
    transition: box-shadow .3s ease;
}

.eco-image-card:hover {
    box-shadow: 0 15px 38px rgba(0,0,0,.14);
}

.eco-hero-feature {
    height: 480px;
}

.eco-hero-small {
    min-height: 0;
    height: 230px;
}

.eco-image-cover {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
}

.eco-image-cover img,
.eco-image-cover .eco-home-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.eco-image-card:hover .eco-image-cover img {
    transform: scale(1.075);
}

/* Hero grid first, mini posts below */

.eco-home-hero .eco-home-container {
    display: flex;
    flex-direction: column;
}

.eco-home-hero-grid {
    order: 1;
    margin-bottom: 24px;
}

.eco-home-mini-grid {
    order: 2;
    margin-bottom: 0;
}

/* Overlay */
.eco-image-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.04) 0%,
        rgba(0,0,0,.12) 32%,
        rgba(0,0,0,.52) 67%,
        rgba(0,0,0,.91) 100%
    );
}

.eco-image-overlay-content {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 30px;
    pointer-events: none;
}

.eco-image-overlay-content a {
    pointer-events: auto;
}

.eco-image-overlay-content h1 {
    max-width: 700px;
    margin: 13px 0;
    color: #fff;
    font-size: clamp(27px, 2.8vw, 37px);
    font-weight: 700;
    line-height: 1.22;
}

.eco-image-overlay-content h3 {
    margin: 10px 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.eco-image-overlay-content h1 a,
.eco-image-overlay-content h3 a {
    color: #fff !important;
}

.eco-image-overlay-content h1 a:hover,
.eco-image-overlay-content h3 a:hover {
    color: #3f21ee !important;
}

.eco-image-overlay-content .eco-home-meta {
    color: #e2e3e7;
}

.eco-hero-small .eco-image-overlay-content {
    padding: 22px;
}

.eco-hero-small h3 {
    font-size: 19px;
}

/* ==================================================
   PROMOTIONAL BANNER
================================================== */

.eco-home-promo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    margin-top: 30px;
    padding: 33px 38px;
    color: #fff;
    background: linear-gradient(
        110deg,
        #17191c 0%,
        #252124 60%,
        #512820 100%
    );
    border-radius: 9px;
}

.eco-home-promo::after {
    content: "";
    position: absolute;
    right: 13%;
    top: -65px;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    pointer-events: none;
}

.eco-promo-label {
    display: block;
    color: #4321ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.eco-home-promo h2 {
    margin: 9px 0;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.eco-home-promo p {
    margin: 0;
    color: #d1cdd0;
    font-size: 13px;
    line-height: 1.7;
}

.eco-promo-button,
.eco-newsletter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
    min-height: 45px;
    padding: 12px 20px;
    border: 1px solid var(--eco-home-primary);
    border-radius: 5px;
    background: var(--eco-home-primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 750;
    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.eco-promo-button:hover,
.eco-newsletter-button:hover {
    background: var(--eco-home-hover);
    border-color: var(--eco-home-hover);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,87,51,.25);
}

/* ==================================================
   SECTION HEADINGS
================================================== */

.eco-home-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--eco-home-border);
}

.eco-home-section-heading h2 {
    position: relative;
    margin: 0;
    color: var(--eco-home-text);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;
}

.eco-home-section-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -17px;
    width: 65px;
    height: 3px;
    background: var(--eco-home-primary);
}

.eco-home-section-heading > a {
    color: #666b73;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.eco-home-section-heading > a:hover {
    color: var(--eco-home-primary);
}

/* ==================================================
   TRENDING NEWS DARK SECTION
================================================== */

.eco-home-trending {
    padding: 70px 0;
    background: #fff;
}

.eco-heading-light {
    border-color: #fff;
}

.eco-heading-light h2 {
    color: #1a1a1a;
}

.eco-heading-light > a {
    color: #1a1a1a;
}

.eco-trending-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: repeat(2, 235px);
    gap: 18px;
}

.eco-trending-large {
    grid-row: span 2;
}

.eco-trending-small {
    min-height: 0;
}

.eco-trending-large h3 {
    font-size: 28px;
    line-height: 1.27;
}

.eco-trending-small h3 {
    font-size: 17px;
    line-height: 1.35;
}

.eco-trending-small .eco-image-overlay-content {
    padding: 20px;
}

.eco-trending-small .eco-home-meta {
    font-size: 14px;
}

/* ==================================================
   TOP STORIES
================================================== */

.eco-home-stories,
.eco-home-editors {
    background: #fff;
}

.eco-home-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 35px;
}

.eco-home-stories-list {
    min-width: 0;
}

.eco-story-row {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: center;
    gap: 23px;
    min-width: 0;
    padding: 0 0 22px;
    margin: 0 0 22px;
    border-bottom: 1px solid #e9eaee;
    transition: transform .3s ease;
}

.eco-story-row:hover {
    transform: translateY(-2px);
}

.eco-story-row:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.eco-story-image {
    display: block;
    width: 100%;
    height: 188px;
    overflow: hidden;
    background: #25272a;
    border-radius: 8px;
}

.eco-story-image img,
.eco-story-image .eco-home-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.eco-story-row:hover .eco-story-image img {
    transform: scale(1.06);
}

.eco-story-content {
    min-width: 0;
}

.eco-story-content h3 {
    margin: 12px 0;
    font-size: 21px;
    line-height: 1.37;
    font-weight: 700;
}

.eco-story-content h3 a {
    color: #191b20;
}

.eco-story-content h3 a:hover {
    color: var(--eco-home-primary);
}

.eco-story-content p {
    display: -webkit-box;
    margin: 0 0 14px;
    overflow: hidden;
    color: #242628;
    font-size: 16px;
    line-height: 1.8;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ==================================================
   SIDEBAR
================================================== */

.eco-home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 23px;
    min-width: 0;
}

.eco-sidebar-widget {
    padding: 23px;
    background: #f7f8fa;
    border: 1px solid #eceef1;
    border-radius: 9px;
}

.eco-sidebar-title {
    position: relative;
    margin: 0 0 23px;
    padding-bottom: 12px;
    color: #17191d;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    border-bottom: 1px solid #e4e6ea;
}

.eco-sidebar-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 43px;
    height: 2px;
    background: var(--eco-home-primary);
}

/* Sidebar Categories */

.eco-sidebar-category-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.eco-sidebar-category-list > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(110deg,#25272c,#393337);
    font-size: 13px;
    font-weight: 750;
    transition: background .25s ease, transform .25s ease;
}

.eco-sidebar-category-list > a:hover {
    color: #fff;
    background: var(--eco-home-primary);
    transform: translateX(3px);
}

.eco-category-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    color: #fff;
    background: rgba(255,255,255,.13);
    font-size: 16px;
}

/* Sidebar Popular Posts */

.eco-sidebar-popular {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eco-sidebar-popular-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.eco-sidebar-thumb {
    display: block;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 50%;
    background: #25272c;
}

.eco-sidebar-thumb img,
.eco-sidebar-thumb .eco-home-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eco-sidebar-thumb .eco-home-placeholder span {
    font-size: 12px;
}

.eco-sidebar-popular-item h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.45;
}

.eco-sidebar-popular-item h4 a {
    color: #27292d;
}

.eco-sidebar-popular-item h4 a:hover {
    color: var(--eco-home-primary);
}

.eco-sidebar-popular-item span:not(.eco-home-placeholder) {
    color: #898d96;
    font-size: 14px;
}

/* Sidebar Tags */

.eco-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eco-sidebar-tags a {
    display: inline-flex;
    align-items: center;
    padding: 9px 11px;
    border: 1px solid #e2e4e8;
    border-radius: 5px;
    color: #545861;
    background: #fff;
    font-size: 14px;
    font-weight:600;
    line-height: 1.3;
    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease;
}

.eco-sidebar-tags a:hover {
    color: #fff;
    background: var(--eco-home-primary);
    border-color: var(--eco-home-primary);
}

/* ==================================================
   VIDEO NEWS
================================================== */

.eco-home-video {
    background: #17191c;
}

.eco-video-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, 125px);
    gap: 15px 25px;
}

.eco-video-feature {
    grid-row: span 3;
}

.eco-video-image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 7px;
    background: #292b30;
}

.eco-video-feature .eco-video-image {
    position: absolute;
    inset: 0;
}

.eco-video-image img,
.eco-video-image .eco-home-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.eco-video-image:hover img {
    transform: scale(1.06);
}

.eco-play-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: var(--eco-home-primary);
    font-size: 14px;
    transform: translate(-50%,-50%);
    box-shadow: 0 5px 18px rgba(0,0,0,.25);
}

.eco-video-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        transparent 35%,
        rgba(0,0,0,.85)
    );
    pointer-events: none;
}

.eco-video-feature .eco-video-content {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 27px;
}

.eco-video-content h3 {
    margin: 10px 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 750;
}

.eco-video-content h3 a {
    color: #fff;
}

.eco-video-content h3 a:hover {
    color: #3910f0;
}

.eco-video-content .eco-home-meta {
    color: #c7c9cd;
}

.eco-video-feature h3 {
    font-size: 23px;
}

.eco-video-small {
    display: grid;
    grid-template-columns: 165px minmax(0,1fr);
    gap: 15px;
    align-items: center;
    min-width: 0;
}

.eco-video-small .eco-video-image {
    width: 100%;
    height: 125px;
}

.eco-video-small .eco-play-icon {
    width: 32px;
    height: 32px;
    font-size: 11px;
}

/* ==================================================
   EDITOR'S PICKS
================================================== */

.eco-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 22px;
}

.eco-editor-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8eaee;
    border-radius: 9px;
    background: #fff;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.eco-editor-card:hover {
    transform: translateY(-5px);
    border-color: #e6d1ca;
    box-shadow: 0 14px 35px rgba(0,0,0,.09);
}

.eco-editor-image {
    display: block;
    height: 220px;
    overflow: hidden;
    background: #24262b;
}

.eco-editor-image img,
.eco-editor-image .eco-home-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.eco-editor-card:hover .eco-editor-image img {
    transform: scale(1.07);
}

.eco-editor-content {
    padding: 19px;
}

.eco-editor-content h3 {
    margin: 11px 0 10px;
    color: #17191d;
    font-size: 18px;
    line-height: 1.42;
    font-weight: 700;
}

.eco-editor-content h3 a {
    color: #17191d;
}

.eco-editor-content h3 a:hover {
    color: var(--eco-home-primary);
}

/* ==================================================
   PAGINATION FIX
================================================== */

.eco-home-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 38px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.eco-home-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    list-style: none;
}

.eco-home-pagination ul.page-numbers > li {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    list-style: none;
}

.eco-home-pagination a.page-numbers,
.eco-home-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #e6e8eb;
    border-radius: 6px;
    background: #f7f8fa;
    color: #292c32;
    box-shadow: none;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.eco-home-pagination a.page-numbers:hover,
.eco-home-pagination span.page-numbers.current {
    color: #fff;
    background: var(--eco-home-primary);
    border-color: var(--eco-home-primary);
}

.eco-home-pagination a.page-numbers:hover {
    transform: translateY(-2px);
}

.eco-home-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: #777b83;
}

.eco-home-pagination .prev,
.eco-home-pagination .next {
    font-size: 15px;
}

/* WordPress / Hello Elementor nav reset */

.eco-home-pagination nav,
.eco-home-pagination .navigation,
.eco-home-pagination .nav-links {
    display: flex;
    justify-content: center;
    width: auto;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
}

.eco-home-pagination .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ==================================================
   NEWSLETTER BANNER
================================================== */

.eco-home-newsletter {
    padding: 0 0 72px;
    background: #fff;
}

.eco-newsletter-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 245px;
    padding: 42px 52px;
    overflow: hidden;
    border-radius: 9px;
    background: linear-gradient(
        110deg,
        #17191c 0%,
        #292124 55%,
        #542a23 100%
    );
}

.eco-newsletter-content {
    position: relative;
    z-index: 2;
}

.eco-newsletter-eyebrow {
    display: block;
    color: #1114e2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.eco-newsletter-content h2 {
    margin: 10px 0;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.eco-newsletter-content p {
    margin: 0 0 23px;
    max-width: 510px;
    color: #c7c8cc;
    font-size: 14px;
    line-height: 1.8;
}

.eco-newsletter-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    flex: 0 0 320px;
    transform: rotate(-12deg);
}

.eco-newsletter-decoration span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 77px;
    padding: 16px;
    color: #fff;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.16);
    font-size: 23px;
    font-weight: 700;
}

.eco-newsletter-decoration span:nth-child(2) {
    background: var(--eco-home-primary);
    transform: translateY(-13px);
}

/* ==================================================
   EMPTY STATES
================================================== */

.eco-empty-posts {
    grid-column: 1 / -1;
    padding: 65px 25px;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #ebedf0;
    border-radius: 9px;
}

.eco-empty-posts h2 {
    margin-bottom: 12px;
    color: #191b20;
    font-size: 28px;
}

.eco-empty-posts p,
.eco-home-empty {
    color: #747983;
    font-size: 14px;
    line-height: 1.8;
}

/* ==================================================
   SCROLL ANIMATIONS
================================================== */

.eco-reveal {
    transition:
        opacity .65s ease,
        transform .65s cubic-bezier(.22,1,.36,1),
        box-shadow .3s ease;
}

.eco-reveal.eco-reveal-pending {
    opacity: 0;
    transform: translateY(25px);
}

.eco-reveal.eco-reveal-pending.eco-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================================
   LAPTOP - 1200px
================================================== */

@media (max-width: 1200px) {

    .eco-home-mini-grid {
        gap: 14px;
    }

    .eco-mini-post-image {
        flex-basis: 90px;
        width: 90px;
        height: 78px;
    }

    .eco-mini-post h3 {
        font-size: 13px;
    }

    .eco-home-content-grid {
        grid-template-columns: minmax(0,1fr) 290px;
        gap: 25px;
    }

    .eco-story-row {
        grid-template-columns: 230px minmax(0,1fr);
        gap: 18px;
    }

    .eco-story-image {
        height: 170px;
    }

    .eco-story-content h3 {
        font-size: 19px;
    }

    .eco-trending-grid {
        grid-template-rows: repeat(2, 210px);
    }
}

/* ==================================================
   TABLET - 991px
================================================== */

@media (max-width: 991px) {

    .eco-home-section {
        padding: 28px 0;
    }

    .eco-home-hero {
        padding-top: 25px;
    }

    .eco-home-mini-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .eco-home-hero-grid {
        grid-template-columns: 1.3fr 1fr;
        gap: 15px;
    }

    .eco-hero-feature {
        height: 410px;
    }

    .eco-hero-small {
        height: 197.5px;
    }

    .eco-hero-secondary {
        gap: 15px;
    }

    .eco-image-overlay-content {
        padding: 20px;
    }

    .eco-hero-small .eco-image-overlay-content {
        padding: 16px;
    }

    .eco-hero-small h3 {
        font-size: 16px;
    }

    .eco-home-content-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .eco-home-sidebar {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        align-items: start;
    }

    .eco-home-sidebar .eco-sidebar-widget:last-child {
        grid-column: 1 / -1;
    }

    .eco-story-row {
        grid-template-columns: 250px minmax(0,1fr);
    }

    .eco-video-small {
        grid-template-columns: 120px minmax(0,1fr);
        gap: 12px;
    }

    .eco-video-small .eco-video-image {
        height: 125px;
    }

    .eco-newsletter-decoration {
        flex-basis: 240px;
    }
}

/* ==================================================
   MOBILE - 767px
================================================== */

@media (max-width: 767px) {

    .eco-home-container {
        width: calc(100% - 30px);
    }

    .eco-home-section {
        padding: 40px 0;
    }

    .eco-home-hero {
        padding-top: 20px;
    }

    .eco-home-mini-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 18px;
    }

    .eco-mini-post {
        min-height: 95px;
        padding: 10px;
    }

    .eco-mini-post-image {
        flex-basis: 95px;
        width: 95px;
        height: 74px;
    }

    .eco-home-hero-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .eco-hero-feature {
        height: 380px;
    }

    .eco-hero-feature h1 {
        font-size: 26px;
    }

    .eco-hero-secondary {
        grid-template-columns: repeat(2,minmax(0,1fr));
        grid-template-rows: auto;
        gap: 12px;
    }

    .eco-hero-small {
        height: 205px;
    }

    .eco-hero-small h3 {
        font-size: 15px;
    }

    .eco-hero-small .eco-image-overlay-content {
        padding: 13px;
    }

    .eco-hero-small .eco-home-meta {
        font-size: 10px;
    }

    .eco-home-promo {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 26px;
    }

    .eco-home-promo h2 {
        font-size: 22px;
    }

    .eco-home-section-heading h2 {
        font-size: 22px;
    }

    .eco-trending-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        grid-template-rows: auto;
        gap: 12px;
    }

    .eco-trending-large {
        grid-column: 1 / -1;
        grid-row: auto;
        height: 320px;
    }

    .eco-trending-small {
        height: 195px;
    }

    .eco-trending-large h3 {
        font-size: 23px;
    }

    .eco-trending-small h3 {
        font-size: 14px;
    }

    .eco-trending-small .eco-image-overlay-content {
        padding: 12px;
    }

    .eco-trending-small .eco-home-meta {
        display: none;
    }

    .eco-story-row {
        grid-template-columns: 145px minmax(0,1fr);
        gap: 13px;
        padding-bottom: 17px;
        margin-bottom: 17px;
    }

    .eco-story-image {
        height: 130px;
    }

    .eco-story-content h3 {
        font-size: 16px;
        margin: 9px 0;
    }

    .eco-story-content p {
        display: none;
    }

    .eco-home-sidebar {
        grid-template-columns: 1fr;
    }

    .eco-home-sidebar .eco-sidebar-widget:last-child {
        grid-column: auto;
    }

    .eco-video-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    .eco-video-feature {
        grid-row: auto;
        height: 310px;
    }

    .eco-video-small {
        grid-template-columns: 140px minmax(0,1fr);
    }

    .eco-video-small .eco-video-image {
        height: 115px;
    }

    .eco-editor-grid {
        gap: 13px;
    }

    .eco-editor-image {
        height: 165px;
    }

    .eco-editor-content {
        padding: 13px;
    }

    .eco-editor-content h3 {
        font-size: 15px;
    }

    .eco-newsletter-inner {
        padding: 30px 25px;
        min-height: 0;
    }

    .eco-newsletter-content h2 {
        font-size: 24px;
    }

    .eco-newsletter-decoration {
        display: none;
    }

    .eco-home-newsletter {
        padding-bottom: 45px;
    }
}

/* ==================================================
   SMALL MOBILE - 480px
================================================== */

@media (max-width: 480px) {

    .eco-hero-feature {
        height: 330px;
    }

    .eco-hero-secondary {
        grid-template-columns: 1fr;
    }

    .eco-hero-small {
        height: 220px;
    }

    .eco-story-row {
        grid-template-columns: 115px minmax(0,1fr);
        gap: 12px;
    }

    .eco-story-image {
        height: 115px;
    }

    .eco-story-content h3 {
        font-size: 14px;
        line-height: 1.45;
    }

    .eco-story-content .eco-home-meta {
        font-size: 10px;
    }

    .eco-story-content .eco-home-category {
        font-size: 9px;
    }

    .eco-editor-grid {
        grid-template-columns: 1fr;
    }

    .eco-editor-image {
        height: 205px;
    }

    .eco-editor-content h3 {
        font-size: 17px;
    }

    .eco-trending-small {
        height: 180px;
    }

    .eco-trending-small h3 {
        font-size: 12px;
    }

    .eco-home-pagination a.page-numbers,
    .eco-home-pagination span.page-numbers {
        min-width: 37px;
        height: 37px;
        padding: 0 10px;
        font-size: 12px;
    }
}

/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {

    .eco-home-section *,
    .eco-home-newsletter *,
    .eco-home-section *::before,
    .eco-home-section *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .eco-reveal.eco-reveal-pending {
        opacity: 1;
        transform: none;
    }
}



/* ==========================================
   ECOMOFOLIO FULL WIDTH HERO SLIDER
========================================== */

.eco-featured-slider-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #091540;
}

.eco-featured-slider {
    position: relative;
    width: 100%;
    height: clamp(550px, 43vw, 790px);
    overflow: hidden;
    isolation: isolate;
}

.eco-featured-slides {
    position: absolute;
    inset: 0;
}

/* Individual slides */

.eco-featured-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity .7s ease,
        visibility .7s ease;
}

.eco-featured-slide.is-active {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Background image */

.eco-featured-bg,
.eco-featured-overlay {
    position: absolute;
    inset: 0;
}

.eco-featured-bg {
    overflow: hidden;
}

.eco-featured-bg-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.eco-featured-slide.is-active .eco-featured-bg-image {
    transform: scale(1);
}

.eco-featured-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        125deg,
        #091540 0%,
        #1b2cc1 100%
    );
}

/* Overlay for text readability */

.eco-featured-overlay {
    background: linear-gradient(
        to bottom,
        rgba(4, 9, 27, .08) 0%,
        rgba(4, 9, 27, .18) 32%,
        rgba(4, 9, 27, .52) 62%,
        rgba(4, 9, 27, .91) 100%
    );
}

/* Bottom content */

.eco-featured-content {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    width: 100%;
    padding: 0 95px 112px;
}

.eco-featured-content-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    align-items: end;
    gap: clamp(40px, 6vw, 110px);
    width: 100%;
    max-width: 1190px;
    margin: 0 auto;
}

.eco-featured-left,
.eco-featured-right {
    min-width: 0;
}

/* Category badge */

.eco-featured-category {
    margin-bottom: 25px;
}

.eco-featured-category .eco-home-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    border-radius: 30px;
    background: #1b2cc1;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.eco-featured-category .eco-home-category:hover {
    background: #1423a3;
    color: #fff;
}

/* Main title */

.eco-featured-title {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: clamp(22px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: -.8px;
}

.eco-featured-title a {
    color: #fff !important;
    text-decoration: none !important;
}

.eco-featured-title a:hover {
    color: #dfe5ff !important;
}

/* Right column */

.eco-featured-right {
    padding-bottom: 5px;
}

.eco-featured-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 25px;
    margin-bottom: 27px;
    color: #f2f3f8;
    font-size: 13px;
    font-weight: 600;
}

.eco-featured-date {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.eco-featured-description {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #f4f5fc;
    font-size: clamp(15px, 1.15vw, 20px);
    font-weight: 500;
    line-height: 1.8;
}

/* Navigation arrows */

.eco-featured-slider .eco-featured-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 50%;
    background: rgba(9,21,64,.12);
    color: #fff;
    box-shadow: none;
    cursor: pointer;
    transition:
        background .25s ease,
        border-color .25s ease;
}

.eco-featured-slider .eco-featured-arrow:hover {
    background: #1b2cc1;
    border-color: #1b2cc1;
    color: #fff;
}

.eco-featured-prev {
    left: 32px;
}

.eco-featured-next {
    right: 32px;
}

/* Pagination progress bars */

.eco-featured-pagination {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: min(790px, 75%);
    transform: translateX(-50%);
}

.eco-featured-slider .eco-featured-dot {
    position: relative;
    flex: 1;
    height: 22px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.eco-featured-dot::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,.37);
}

.eco-featured-dot span {
    position: absolute;
    top: 10px;
    left: 0;
    width: 0;
    height: 3px;
    background: #fff;
}

.eco-featured-dot.is-complete span {
    width: 100%;
}

.eco-featured-dot.is-active span {
    animation: eco-slide-progress 5s linear forwards;
}

@keyframes eco-slide-progress {
    from { width: 0; }
    to   { width: 100%; }
}

/* Entrance animation */

.eco-featured-left,
.eco-featured-right {
    transition:
        opacity .65s ease,
        transform .65s ease;
}

.eco-featured-slide:not(.is-active) .eco-featured-left,
.eco-featured-slide:not(.is-active) .eco-featured-right {
    opacity: 0;
    transform: translateY(24px);
}

/* Empty state */

.eco-featured-empty {
    padding: 130px 20px;
    background: #091540;
    color: #fff;
    text-align: center;
}

.eco-featured-empty h2 {
    color: #fff;
}

/* Tablet */

@media (max-width: 1024px) {
    .eco-featured-slider {
        height: 650px;
    }

    .eco-featured-content {
        padding: 0 75px 100px;
    }

    .eco-featured-content-inner {
        gap: 35px;
    }

    .eco-featured-title {
        font-size: clamp(29px, 4vw, 43px);
    }

    .eco-featured-prev {
        left: 15px;
    }

    .eco-featured-next {
        right: 15px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .eco-featured-slider {
        height: min(720px, 86dvh);
        min-height: 510px;
    }

    .eco-featured-bg-image {
        object-position: center;
    }

    .eco-featured-content {
        padding: 0 24px 91px;
    }

    .eco-featured-content-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .eco-featured-category {
        margin-bottom: 15px;
    }

    .eco-featured-title {
        font-size: clamp(28px, 7vw, 38px);
        line-height: 1.22;
    }

    .eco-featured-meta {
        margin-bottom: 12px;
        gap: 12px;
        font-size: 12px;
    }

    .eco-featured-description {
        font-size: 14px;
        line-height: 1.6;
        -webkit-line-clamp: 3;
    }

    .eco-featured-slider .eco-featured-arrow {
        top: 42%;
        width: 36px;
        height: 36px;
    }

    .eco-featured-prev {
        left: 12px;
    }

    .eco-featured-next {
        right: 12px;
    }

    .eco-featured-pagination {
        bottom: 24px;
        width: calc(100% - 48px);
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eco-featured-slide,
    .eco-featured-bg-image,
    .eco-featured-left,
    .eco-featured-right {
        transition: none !important;
        animation: none !important;
    }

    .eco-featured-dot.is-active span {
        animation: none;
        width: 100%;
    }
}

