/* ===== ESHAA PORTFOLIO/CATEGORY CAROUSEL ===== */

.eshaa-portfolio-carousel {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 50px 0 80px;
    background: #4d4d4d;
    overflow: hidden;
}

/* ===== HEADER WITH NAVIGATION ===== */
.eshaa-carousel-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 60px 30px 60px;
    max-width: 1400px;
    margin: 0 auto;

    display: none;
}

.eshaa-carousel-nav {
    display: flex;
    gap: 6px;
}

.eshaa-nav-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 3px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eshaa-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.eshaa-nav-btn span {
    line-height: 1;
}

/* ===== CAROUSEL TRACK ===== */
.eshaa-carousel-track-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.eshaa-category-carousel {
    overflow: hidden;
}

.eshaa-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: stretch;
    padding-left: 40px;
    padding-bottom: 50px;
}

.eshaa-carousel-track.no-transition {
    transition: none !important;
}

.eshaa-carousel-item {
    flex: 0 0 auto;
    padding: 0 12px;
    display: flex;
    align-items: stretch;
}

/* ===== PORTFOLIO/CATEGORY CARD - ALL SAME HEIGHT ===== */
.eshaa-portfolio-card {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: visible;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.eshaa-card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    overflow: visible;
}

/* ===== CARD IMAGE ===== */
.eshaa-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.eshaa-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.eshaa-portfolio-card:hover .eshaa-card-image img {
    transform: scale(1.05);
}

.eshaa-no-image {
    width: 100%;
    height: 100%;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ===== TITLE OVERLAY - BASE STYLES (ALL CENTERED) ===== */
.eshaa-card-overlay {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 16px 24px 18px;
    min-width: 200px;
    max-width: 85%;
    z-index: 5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    text-align: center;
}

/* ===== BOTTOM OVERLAY (Odd items: 1st, 3rd, 5th...) - extends outside ===== */
.eshaa-carousel-item.eshaa-overlay-bottom .eshaa-card-overlay {
    bottom: -35px;
    top: auto;
}

/* ===== TOP OVERLAY (Even items: 2nd, 4th, 6th...) - INSIDE card ===== */
.eshaa-carousel-item.eshaa-overlay-top .eshaa-card-overlay {
    top: -20px;
    bottom: auto;
}

.eshaa-card-category {
    display: block;
    font-size: 16px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 5px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.eshaa-card-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.eshaa-card-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ff7e44;
    margin-right: 8px;
    margin-top: 6px;
    flex-shrink: 0;
}

/* ===== PLUS BUTTON - Attached to Overlay, Bottom Right, Slightly Outside ===== */
.eshaa-card-action {
    position: absolute;
    bottom: -12px;
    right: -12px;
    z-index: 6;
}

.eshaa-plus-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ff7e44;
    color: #fff;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 126, 68, 0.4);
}

.eshaa-portfolio-card:hover .eshaa-plus-btn {
    background: #00684d;
    box-shadow: 0 4px 15px rgba(0, 104, 77, 0.4);
}

/* ===== SIDE PEEK EFFECT ===== */
.eshaa-category-carousel .eshaa-carousel-track-wrapper {
    overflow: visible;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1600px) {
    .eshaa-carousel-header {
        padding: 0 40px 30px 40px;
    }

    .eshaa-carousel-track {
        padding-left: 30px;
    }
}

@media (max-width: 1400px) {
    .eshaa-portfolio-card {
        height: 380px;
    }

    .eshaa-card-overlay {
        padding: 14px 20px 16px;
    }
}

@media (max-width: 1200px) {
    .eshaa-portfolio-card {
        height: 360px;
    }

    .eshaa-carousel-item {
        padding: 0 10px;
    }

    .eshaa-card-overlay {
        padding: 12px 18px 14px;
        min-width: 140px;
    }

    .eshaa-carousel-item.eshaa-overlay-bottom .eshaa-card-overlay {
        bottom: -30px;
    }

    .eshaa-carousel-item.eshaa-overlay-top .eshaa-card-overlay {
        top: 18px;
    }

    .eshaa-carousel-header {
        padding: 0 30px 25px 30px;
    }

    .eshaa-carousel-track {
        padding-left: 20px;
        padding-bottom: 45px;
    }
}

@media (max-width: 1024px) {
    .eshaa-portfolio-carousel {
        padding: 40px 0 70px;
    }

    .eshaa-carousel-header {
        padding: 0 20px 25px 20px;
    }

    .eshaa-portfolio-card {
        height: 340px;
    }

    .eshaa-card-overlay {
        padding: 12px 16px 14px;
        min-width: 130px;
        max-width: 80%;
    }

    .eshaa-carousel-item.eshaa-overlay-bottom .eshaa-card-overlay {
        bottom: -25px;
    }

    .eshaa-carousel-item.eshaa-overlay-top .eshaa-card-overlay {
        top: 15px;
    }

    .eshaa-card-title {
        font-size: 14px;
    }

    .eshaa-card-category {
        font-size: 9px;
    }

    .eshaa-carousel-track {
        padding-left: 15px;
        padding-bottom: 40px;
    }

    .eshaa-card-action {
        bottom: -10px;
        right: -10px;
    }

    .eshaa-plus-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .eshaa-portfolio-carousel {
        padding: 35px 0 65px;
    }

    .eshaa-carousel-header {
        padding: 0 15px 20px 15px;
    }

    .eshaa-portfolio-card {
        height: 380px;
    }

    .eshaa-carousel-item {
        padding: 0 8px;
    }

    .eshaa-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .eshaa-card-overlay {
        padding: 10px 14px 12px;
        min-width: 120px;
        max-width: 90%;
    }

    .eshaa-carousel-item.eshaa-overlay-bottom .eshaa-card-overlay {
        bottom: -22px;
    }

    .eshaa-carousel-item.eshaa-overlay-top .eshaa-card-overlay {
        top: 12px;
    }

    .eshaa-card-category {
        font-size: 9px;
        letter-spacing: 0.3px;
    }

    .eshaa-card-title {
        font-size: 13px;
    }

    .eshaa-card-title::before {
        width: 5px;
        height: 5px;
        margin-right: 6px;
        margin-top: 5px;
    }

    .eshaa-card-action {
        bottom: -8px;
        right: -8px;
    }

    .eshaa-plus-btn {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .eshaa-carousel-track {
        padding-left: 10px;
        padding-bottom: 35px;
    }
}

@media (max-width: 480px) {
    .eshaa-portfolio-carousel {
        padding: 30px 0 60px;
    }

    .eshaa-portfolio-card {
        height: 340px;
    }

    .eshaa-carousel-item {
        padding: 0 6px;
    }

    .eshaa-card-overlay {
        padding: 8px 12px 10px;
        min-width: 100px;
    }

    .eshaa-carousel-item.eshaa-overlay-bottom .eshaa-card-overlay {
        bottom: -20px;
    }

    .eshaa-carousel-item.eshaa-overlay-top .eshaa-card-overlay {
        top: 10px;
    }

    .eshaa-card-title {
        font-size: 12px;
    }

    .eshaa-plus-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .eshaa-carousel-track {
        padding-bottom: 30px;
    }
}