/* ==========================================================
   MEP SERVICE DETAILS - LUXURY THEME
   ========================================================== */
.mep-service-details {
    padding: 90px 0;
    font-family: 'Montserrat', sans-serif;
}

/* =========================================
   SIDEBAR NAVIGATION
   ========================================= */
.mep-sidebar {
    position: sticky;
    top: 100px; /* Keeps sidebar in view when scrolling */
}

.mep-sidebar-widget {
    background-color: #F9F9F9;
    border-radius: 12px;
    padding: 30px 25px;
    margin-bottom: 30px;
    border: 1px solid #EEEEEE;
}

.mep-widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.mep-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #D4AE55 0%, #B58410 100%);
}

.mep-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mep-nav-list li {
    margin-bottom: 10px;
}

.mep-nav-list li:last-child {
    margin-bottom: 0;
}

.mep-nav-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: #444444;
    padding: 12px 15px;
    background-color: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mep-nav-list li a:hover,
.mep-nav-list li a.active { /* Add this .active class dynamically in PHP if possible */
    background-color: #111111;
    color: #D4AE55;
    border-color: #111111;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mep-nav-list li a i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mep-nav-list li a:hover i {
    transform: translateX(4px);
}

/* =========================================
   SIDEBAR CONTACT WIDGET (DARK LUXURY)
   ========================================= */
.mep-contact-widget {
    background-color: #111111; /* Dark theme for contrast */
    color: #FFFFFF;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Subtle gold glow behind the dark widget */
.mep-contact-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,174,87,0.1) 0%, transparent 60%);
    z-index: 0;
}

.mep-contact-widget > * {
    position: relative;
    z-index: 1;
}

.mep-contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4AE55 0%, #B58410 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 24px;
    color: #111111;
}

.mep-contact-widget h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.mep-contact-widget p {
    font-size: 14px;
    color: #AAAAAA;
    margin-bottom: 25px;
    line-height: 1.6;
}

.mep-contact-info a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mep-contact-info a:last-child {
    margin-bottom: 0;
}

.mep-contact-info a i {
    color: #D4AE55;
    margin-right: 10px;
    font-size: 16px;
}

.mep-contact-info a:hover {
    background-color: #D4AE55;
    border-color: #D4AE55;
    color: #111111;
}
.mep-contact-info a:hover i {
    color: #111111;
}

/* =========================================
   MAIN CONTENT AREA
   ========================================= */
.mep-main-image-box {
    margin-bottom: 40px;
}

.mep-main-image-box figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);*/
}

.mep-main-image-box img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.mep-main-image-box figure:hover img {
    transform: scale(1.02);
}

.mep-sec-title h2 {
    font-size: 38px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 15px;
    line-height: 1.2;
}

.mep-title-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #D4AE55 0%, #B58410 100%);
    margin-bottom: 30px;
    border-radius: 2px;
}

/* Dynamic Text Formatting 
   (Ensures CMS-generated text looks premium)
*/
.mep-dynamic-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
}

.mep-dynamic-text p {
    margin-bottom: 20px;
}

.mep-dynamic-text h3, 
.mep-dynamic-text h4 {
    font-weight: 600;
    color: #111111;
    margin-top: 30px;
    margin-bottom: 15px;
}

.mep-dynamic-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.mep-dynamic-text ul li {
    margin-bottom: 10px;
    position: relative;
}
.intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #1c1c1c;
    background: #fdf0f3;
    border-left: 3px solid #f4a4b8;
    padding: 14px 16px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 1rem;
    font-family: var(--font-02);
}
.section-label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #555;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 1.5rem;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.service-item {
    font-size: 16px;
    color: #1c1c1c;
    padding: 8px 12px;
    background: #eaf4ee;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.service-item::before {
    content: "🎈";
    font-size: 14px;
}
.nap-box {
    background: #1c1c1c;
    color: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}
.nap-icon {
    color: #f4a4b8;
    margin-top: 2px;
    flex-shrink: 0;
}
/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 991px) {
    .mep-sidebar {
        position: static; /* Remove sticky on mobile/tablets */
        margin-bottom: 40px;
    }
    
    .mep-sidebar-wrapper {
        order: 2; /* Puts sidebar BELOW the main content on mobile */
    }
    
    .col-lg-8 {
        order: 1; /* Puts main content ABOVE the sidebar on mobile */
    }

    .mep-sec-title h2 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .mep-service-details {
        padding: 60px 0;
    }
    .mep-main-image-box img {
        max-height: 350px;
    }
}