/* ==========================================================
   MEP LIGHT LUXURY CARD UI (Protected from theme overrides)
   ========================================================== */
.mep-services-section {
    padding: 80px 0;
    background-color: #FAFAFA; /* Very light clean background */
    font-family: 'Montserrat', sans-serif;
}

/* Header Styling */
.mep-section-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin-bottom: 10px !important;
}
.mep-section-subtitle {
    font-size: 16px !important;
    color: #555555 !important;
}

/* Base Card Styling */
.mep-card {
    background-color: #FFFFFF !important;
    border-radius: 8px !important;
    border: 1px solid #EEEEEE !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden !important;
    transition: all 0.3s ease-in-out !important;
    display: flex;
    flex-direction: column;
}

.mep-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

/* Fix for Admin Pencil Icon */
.mep-card .th-admin-edit {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Image Wrapper - FORCES uniform squares for all images */
.mep-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Forces perfect squares */
    overflow: hidden;
    background-color: #F5F5F5;
}

.mep-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching */
    transition: transform 0.5s ease;
}

.mep-card:hover .mep-card-img-wrap img {
    transform: scale(1.05); /* Gentle zoom */
}

/* Hover Overlay & Button */
.mep-card-overlay {
    position: absolute;
    bottom: -50px; /* Hides button below edge */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.mep-card:hover .mep-card-overlay {
    opacity: 1;
    bottom: 0; /* Slides button up smoothly */
}

.mep-btn-gold {
    background: linear-gradient(90deg, #D4AE55 0%, #B58410 100%) !important;
    color: #FFFFFF !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-decoration: none !important; /* Kills the blue underline */
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.mep-btn-gold:hover {
    background: #111111 !important;
    color: #D4AE55 !important;
}

/* Text Content Area */
.mep-card-body {
    padding: 25px 20px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mep-title-link {
    text-decoration: none !important; /* Kills the default blue link */
    outline: none !important;
}

.mep-title-link h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    margin-bottom: 12px !important;
    transition: color 0.2s ease !important;
}

.mep-title-link:hover h3 {
    color: #D4AE55 !important; /* Turns gold on hover */
}

.mep-summary {
    font-size: 14px !important;
    color: #777777 !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .mep-card-overlay {
        opacity: 1;
        bottom: 0; /* Keeps button visible on mobile (no hover on touch) */
    }
}