/*
Theme Name: Ecom Soup Child v1.2.6
Theme URI: https://ecomsoup.com/
Description: EcomSoup magazine child theme based on Kadence Free.
Author: EcomSoup
Template: kadence
Version: 1.2.6
*/

/* =========================================================
   GLOBAL
   ========================================================= */

.es-magazine-homepage {
    --es-black: #111111;
    --es-white: #ffffff;
    --es-gray: #666666;
    --es-light: #f5f5f5;
    --es-border: #e6e6e6;
    --es-cyan: #00ACC1;

    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 70px;
    box-sizing: border-box;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* Kadence native header remains enabled on every page. */

/* =========================================================
   HIDE HOMEPAGE PAGE TITLE
   ========================================================= */

body.home .entry-header,
body.home .page-header,
body.home .entry-title {
    display: none !important;
}

body.home .content-area {
    margin-top: 0 !important;
}

body.home .site-content {
    padding-top: 0 !important;
}


/* =========================================================
   HERO
   ========================================================= */

.es-magazine-hero {
    display: grid;

    grid-template-columns: 7fr 3fr;

    gap: 20px;

    margin-top: 15px;
    margin-bottom: 65px;
}

.es-hero-primary {
    min-width: 0;
}

.es-hero-main {
    position: relative;

    min-height: 600px;

    overflow: hidden;

    background: #00ACC1;
}

.es-hero-main-image {
    position: absolute;
    inset: 0;

    background-color: #00ACC1;
    background-size: cover;
    background-position: center;

    transition: transform .4s ease;
}

.es-hero-main:hover .es-hero-main-image {
    transform: scale(1.025);
}

.es-cyan-placeholder {
    background:
        linear-gradient(
            135deg,
            #00ACC1,
            #0097A7
        );
}

.es-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.90) 0%,
            rgba(0,0,0,.50) 38%,
            rgba(0,0,0,.08) 75%,
            rgba(0,0,0,0) 100%
        );
}

.es-hero-main-content {
    position: absolute;

    left: 45px;
    right: 45px;
    bottom: 42px;

    z-index: 5;

    max-width: 850px;

    color: #ffffff;
}

.es-category-label {
    display: inline-block;

    padding: 6px 10px;

    background: var(--es-label-bg);
    color: var(--es-label-color);

    font-size: 10px;
    line-height: 1;
    font-weight: 900;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.es-hero-main-content .es-category-label {
    margin-bottom: 13px;
}

.es-hero-date {
    margin-bottom: 10px;

    font-size: 11px;
    font-weight: 600;

    opacity: .8;
}

.es-hero-main-content h1 {
    margin: 0 0 14px;

    font-size: clamp(30px, 4vw, 54px);
    line-height: .98;

    letter-spacing: -2.5px;
    font-weight: 900;
}

.es-hero-main-content h1 a {
    color: #ffffff;
    text-decoration: none;
}

.es-hero-main-content p {
    max-width: 700px;

    margin: 0 0 22px;

    color: rgba(255,255,255,.88);

    font-size: 15px;
    line-height: 1.6;
}

.es-read-more {
    display: inline-block;

    padding: 12px 18px;

    background: #ffffff;
    color: #111111;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;

    transition: .2s ease;
}

.es-read-more:hover {
    background: #00ACC1;
    color: #ffffff;
}


/* =========================================================
   HERO SECONDARY
   ========================================================= */

.es-hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.es-side-post {
    display: grid;

    grid-template-columns: 42% 58%;

    min-height: 186px;

    border: 1px solid #e6e6e6;

    background: #ffffff;

    overflow: hidden;
}

.es-side-image {
    position: relative;

    display: block;

    min-height: 186px;

    overflow: hidden;

    background: #00ACC1;
}

.es-side-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .35s ease;
}

.es-side-post:hover .es-side-image img {
    transform: scale(1.05);
}

.es-side-placeholder {
    width: 100%;
    height: 100%;
    min-height: 186px;

    background: #00ACC1;
}

.es-side-content {
    padding: 17px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.es-side-content .es-category-label {
    align-self: flex-start;
    margin-bottom: 9px;
}

.es-side-date {
    color: #888888;

    font-size: 10px;

    margin-bottom: 7px;
}

.es-side-content h3 {
    margin: 0;

    font-size: 17px;
    line-height: 1.25;

    letter-spacing: -.3px;
    font-weight: 800;
}

.es-side-content h3 a {
    color: #111111;
    text-decoration: none;
}

.es-side-content h3 a:hover {
    color: #00ACC1;
}


/* =========================================================
   CATEGORY SECTION
   ========================================================= */

.es-category-section {
    margin-bottom: 65px;
}

.es-section-heading {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;

    padding-bottom: 13px;

    border-bottom: 2px solid #111111;
}

.es-section-title-wrap {
    display: flex;
    align-items: center;

    gap: 10px;
}

.es-section-marker {
    display: block;

    width: 7px;
    height: 28px;
}

.es-section-heading h2 {
    margin: 0;

    color: #111111;

    font-size: 26px;
    line-height: 1;

    font-weight: 900;
    letter-spacing: -1px;
}

.es-view-all {
    color: #555555;

    text-decoration: none;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
}

.es-view-all:hover {
    color: #00ACC1;
}


/* =========================================================
   4 COLUMN POST GRID
   ========================================================= */

.es-post-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.es-post-card {
    min-width: 0;

    background: #ffffff;
}

.es-card-image {
    position: relative;

    display: block;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #00ACC1;
}

.es-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .35s ease;
}

.es-post-card:hover .es-card-image img {
    transform: scale(1.04);
}

.es-card-category {
    margin-top: 9px;
    line-height: 1;
}

.es-card-category .es-category-label {
    position: static;
    display: inline-block;
}

.es-image-placeholder {
    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            #00ACC1,
            #0097A7
        );
}

.es-card-content {
    padding-top: 13px;
}

.es-card-date {
    color: #888888;

    font-size: 10px;

    margin-bottom: 7px;
}

.es-card-title {
    margin: 0 0 8px;

    font-size: 18px;
    line-height: 1.25;

    font-weight: 800;
    letter-spacing: -.4px;
}

.es-card-title a {
    color: #111111;
    text-decoration: none;
}

.es-card-title a:hover {
    color: #00ACC1;
}

.es-card-excerpt {
    margin: 0;

    color: #777777;

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   EMPTY HERO
   ========================================================= */

.es-empty-hero {
    min-height: 600px;

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    background: #00ACC1;

    color: #ffffff;

    text-align: center;
}

.es-empty-hero span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.es-empty-hero h1 {
    margin: 15px 0 0;
    font-size: 50px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .es-magazine-hero {
        grid-template-columns: 1fr;
    }

    .es-hero-main {
        min-height: 540px;
    }

    .es-hero-secondary {
        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .es-side-post {
        display: block;
    }

    .es-side-image {
        height: 170px;
        min-height: 170px;
    }

    .es-side-placeholder {
        min-height: 170px;
    }

    .es-side-content {
        min-height: 140px;
    }

    .es-post-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .es-magazine-homepage {
        padding-left: 15px;
        padding-right: 15px;
    }

    .es-brand {
        padding-top: 20px;
    }

    .es-brand a {
        font-size: 25px;
    }

    .es-magazine-nav {
        gap: 18px;
        padding-bottom: 20px;
    }

    .es-magazine-hero {
        gap: 15px;
        margin-bottom: 45px;
    }

    .es-hero-main {
        min-height: 480px;
    }

    .es-hero-main-content {
        left: 22px;
        right: 22px;
        bottom: 25px;
    }

    .es-hero-main-content h1 {
        font-size: 35px;
        letter-spacing: -1.2px;
    }

    .es-hero-main-content p {
        font-size: 13px;
    }

    .es-hero-secondary {
        display: flex;
        gap: 12px;
    }

    .es-side-post {
        display: grid;

        grid-template-columns: 38% 62%;

        min-height: 130px;
    }

    .es-side-image {
        min-height: 130px;
        height: auto;
    }

    .es-side-placeholder {
        min-height: 130px;
    }

    .es-side-content {
        padding: 12px;
        min-height: auto;
    }

    .es-side-content h3 {
        font-size: 14px;
    }

    .es-section-heading {
        margin-bottom: 15px;
    }

    .es-section-heading h2 {
        font-size: 21px;
    }

    .es-view-all {
        font-size: 9px;
    }

    .es-post-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .es-card-title {
        font-size: 16px;
    }

    .es-card-excerpt {
        display: none;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .es-post-grid {
        grid-template-columns: 1fr;
    }

    .es-side-post {
        grid-template-columns: 35% 65%;
    }

    .es-side-content h3 {
        font-size: 15px;
    }
}


/* Kadence native header remains enabled on posts and pages. */

/* EcomSoup v1.2.4: editorial width, not full-width */
@media (min-width: 1200px) {
  .es-magazine-homepage { max-width: 1500px; }
}




/* EcomSoup v1.2.6: refine hero scale, side-card height and divider width */
.es-hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    height: 600px;
    min-height: 0;
}

.es-side-post {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
}

.es-side-image,
.es-side-placeholder {
    min-height: 0;
    height: 100%;
}

/* Align the Kadence header divider with the homepage category content line. */
.site-header {
    border-bottom: 0 !important;
}

.site-header .site-header-row-container-inner {
    width: calc(100% - 40px);
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 2px solid #111;
    box-sizing: border-box;
}

body.home .es-magazine-hero {
    gap: 0;
    margin-top: 30px;
}

/* Category labels for ordinary homepage cards sit below the image.
   Hero and side-feature labels retain their existing placement. */
.es-card-category + .es-card-content {
    padding-top: 9px;
}

@media (max-width: 1000px) {
    .es-hero-secondary {
        height: auto;
    }
    .es-side-post {
        flex: initial;
        min-height: 186px;
    }
    .es-side-image,
    .es-side-placeholder {
        min-height: 186px;
    }
    .site-header .site-header-row-container-inner {
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 767px) {
    .es-hero-secondary {
        gap: 10px !important;
    }
    .site-header .site-header-row-container-inner {
        width: calc(100% - 32px);
    }
    body.home .es-magazine-hero {
        gap: 14px;
        margin-top: 22px;
    }
}
