/* ==========================================================================
   EME PORTFOLIO — client website cards
   Layout follows the reference: screenshot on top, white content bar BELOW
   with company name, domain, tagline and a circular arrow button.
   Load AFTER the core theme CSS.
   ========================================================================== */

.eme-site-grid-intro {
    max-width: 780px;
    margin: 18px auto 0;
    color: #6B7280;
    font-size: 17px;
    line-height: 1.75;
    text-align: center;
}

.eme-site-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #E4EBF2;
    border-bottom: 3px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(6, 31, 53, .07);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

/* reference behaviour: dark rule appears along the bottom on hover */
.eme-site-card:hover {
    transform: translateY(-6px);
    border-color: #DCE7F1;
    border-bottom-color: #0F4E81;
    box-shadow: 0 20px 44px rgba(6, 31, 53, .14);
}

/* ---- screenshot ---- */

.eme-site-card .image-area {
    position: relative;
    margin: 0;
    /* image files are 696x782; the card shows a shorter centred band of them
       so the browser mockup fills the frame without dead space */
    aspect-ratio: 8 / 5;
    overflow: hidden;
    background: #EDF4FA;
}

.eme-site-card .image-area a {
    display: block;
    width: 100%;
    height: 100%;
}

.eme-site-card .image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform .6s ease;
}

.eme-site-card:hover .image-area img {
    transform: scale(1.04);
}

/* ---- white content bar ---- */

.eme-site-card .content-area {
    position: static;
    flex: 1 1 auto;
    padding: 24px 22px 26px;
    background: #ffffff;
}

.eme-site-card .content-area .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
}

.eme-site-card .content-area .left {
    min-width: 0;
}

.eme-site-card .title {
    margin: 0 0 6px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
}

.eme-site-card .title a {
    color: #0F4E81;
    text-decoration: none;
    transition: color .3s ease;
}

.eme-site-card .title a:hover {
    color: #2FB6F0;
}

.eme-site-domain {
    display: block;
    margin-bottom: 5px;
    color: #2FB6F0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    word-break: break-word;
}

.eme-site-card .designation {
    margin: 0;
    color: #6B7280;
    font-size: 13.5px;
    line-height: 1.6;
}

/* ---- arrow button ---- */

.eme-site-card .share {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #CBD9E6;
    color: #0F4E81;
    font-size: 14px;
    transition: all .3s ease;
}

.eme-site-card .share:hover,
.eme-site-card:hover .share {
    background: #0F4E81;
    border-color: #0F4E81;
    color: #ffffff;
}

@media (max-width: 1199px) {
    .eme-site-card .title {
        font-size: 18px;
    }

    .eme-site-card .content-area {
        padding: 20px 18px 22px;
    }
}

@media (max-width: 767px) {
    .eme-site-grid-intro {
        font-size: 16px;
    }

    .eme-site-card .title {
        font-size: 17px;
    }

    .eme-site-card .share {
        width: 42px;
        height: 42px;
    }
}