/* ================================================
   ESPRESSIMO BLOG POSTS WIDGET Proto V1
   ================================================ */

.elementor-widget-espressimo_blog_posts_proto_v1 {
    width: 100%;
}

.elementor-widget-espressimo_blog_posts_proto_v1 .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* ------------------------------------------------
   SECTION
   ------------------------------------------------ */
.esp-blog {
    background-color: #fff9f2;
    border-bottom: 1px solid #e6dad4;
}

/* ------------------------------------------------
   HEADER
   ------------------------------------------------ */
.esp-blog__header {
    padding: 36px;
    border-bottom: 1px solid #e6dad4;
}

.esp-blog__heading {
    margin: 0;
}

/* ------------------------------------------------
   CAROUSEL
   ------------------------------------------------ */
.esp-blog__carousel {
    display: flex;
    align-items: stretch;
}

/* ------------------------------------------------
   NAV BUTTONS
   ------------------------------------------------ */
.esp-blog__nav {
    flex-shrink: 0;
    width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #522c25;
    transition: background-color 0.2s;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.esp-blog__nav:hover {
    background-color: #f6ede3 !important;
}

.esp-blog__nav--prev {
    border-left: 1px solid #e6dad4 !important;
}

.esp-blog__nav--next {
    border-right: 1px solid #e6dad4 !important;
}

.esp-blog__nav:disabled {
    opacity: 0.2;
    cursor: default;
}

/* ------------------------------------------------
   TRACK
   ------------------------------------------------ */
.esp-blog__track-wrap {
    flex: 1;
    overflow: hidden;
}

.esp-blog__track {
    display: flex;
    transition: transform 0.7s ease;
    will-change: transform;
}

/* ------------------------------------------------
   CARD
   ------------------------------------------------ */
.esp-blog__card {
    flex-shrink: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box;
    text-decoration: none; /* client Case 8: whole card is a link — keep card styling */
    color: inherit;
}

.esp-blog__card:hover {
    background-color: #f0e6dc;
}

/* ------------------------------------------------
   IMAGE  (4:3 landscape)
   ------------------------------------------------ */
.esp-blog__img-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.esp-blog__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.5s ease;
}

.esp-blog__card:hover .esp-blog__img {
    transform: scale(1.04);
}

.esp-blog__img-overlay {
    position: absolute;
    inset: 0;
    background-color: transparent;
    transition: background-color 0.3s;
    border-radius: 8px;
}

.esp-blog__card:hover .esp-blog__img-overlay {
    background-color: rgba(0,0,0,0.08);
}

/* ------------------------------------------------
   TEXT
   ------------------------------------------------ */
.esp-blog__date {
    margin: 0 0 8px 0;
}

.esp-blog__title {
    margin: 0 0 12px 0;
    transition: color 0.2s;
    font-weight: 500 !important; /* was 700 (Style-tab) — too thick; lighter per design */
}

.esp-blog__link {
    margin-top: auto;
    text-decoration: underline !important;
    display: inline-block;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .esp-blog__header {
        padding: 24px;
    }
    .esp-blog__nav {
        width: 44px;
    }
    /* Card width is driven by the carousel JS (responsive cards-per-view) — don't override it here. */
    .esp-blog__card {
        padding: 20px;
    }
    .esp-blog__img {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .esp-blog__header {
        padding: 18px 16px;
        text-align: center;   /* item 9 — centre the section title on mobile */
    }
    /* Item 10 — visible round nav arrows overlaid on the carousel (mobile). */
    .esp-blog__carousel { position: relative; }
    .esp-blog__nav {
        position: absolute;
        top: 40%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        border: none !important;
        background: rgba(255, 255, 255, 0.94) !important;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(82, 44, 37, 0.22);
        z-index: 5;
    }
    .esp-blog__nav--prev { right: 8px; }
    .esp-blog__nav--next { left: 8px; }
    .esp-blog__nav:disabled { opacity: 0.35; }
    .esp-blog__card {
        padding: 16px;
    }
}
