/* ==========================================================================
   Bati Annuaire Pro - Modern Architectural Design System
   Version: 3.0.0 (Strict Flat UI)
   ========================================================================== */

:root {
    --bati-primary: #1a4b8c;
    --bati-yellow: #ffd700;
    --bati-bg: #f8fafd;
    --bati-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --bati-card-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Global Reset for Flat Design */
* {
    border-radius: 0 !important;
}

/* Exception: Avatars & Social Icons must be circular per user Reference UI */
.bati-expert-avatar,
.bati-expert-avatar img,
.social-btn {
    border-radius: 50% !important;
}

body {
    background-color: var(--bati-bg);
}

/* ==========================================================================
   Search Bar (Modern Blue Style)
   ========================================================================== */

.bati-search-container {
    background: var(--bati-primary) !important;
    padding: 30px !important;
    margin-bottom: 40px !important;
}

.bati-search-inputs {
    display: flex !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    background: #fff !important;
}

.bati-input-group {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 15px !important;
    border-right: 1px solid #eee !important;
}

.bati-input-group input,
.bati-input-group select {
    border: none !important;
    width: 100% !important;
    height: 50px !important;
    font-size: 15px !important;
    outline: none !important;
}

.bati-search-submit {
    background: var(--bati-yellow) !important;
    color: #000 !important;
    border: none !important;
    padding: 0 40px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
}

/* ==========================================================================
   Expert Directory Grid (Left-Aligned Layout)
   ========================================================================== */

.bati-expert-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 0 auto 50px !important;
}

@media (max-width: 992px) {
    .bati-expert-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .bati-expert-grid {
        grid-template-columns: 1fr !important;
    }
}

.bati-expert-card {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--bati-card-shadow) !important;
    text-align: left !important;
}

.bati-expert-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--bati-card-shadow-hover) !important;
}

.bati-expert-cover {
    height: 180px !important;
    background-color: #f5f5f5 !important;
}

.bati-expert-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.bati-expert-avatar {
    width: 80px !important;
    height: 80px !important;
    border: 3px solid #fff !important;
    position: absolute !important;
    top: 140px !important;
    /* Overlap cover */
    left: 20px !important;
    z-index: 5 !important;
    background: #fff !important;
}

.bati-expert-info {
    padding: 50px 20px 25px !important;
}

.bati-expert-name {
    color: var(--bati-primary) !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
}

.bati-expert-meta-row {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.bati-expert-company {
    color: #000 !important;
}

.bati-expert-location {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.bati-expert-location .dashicons {
    color: var(--bati-yellow) !important;
}

.bati-expert-btn-more {
    display: inline-block !important;
    padding: 10px 25px !important;
    border: 1px solid var(--bati-primary) !important;
    color: var(--bati-primary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    background: transparent !important;
    transition: 0.2s !important;
}

.bati-expert-btn-more:hover {
    background: var(--bati-primary) !important;
    color: #fff !important;
}

/* ==========================================================================
   Profile details (Reference Screenshot v2)
   ========================================================================== */

.bati-details-v2 {
    max-width: 1200px !important;
    margin: 40px auto !important;
    display: block !important;
}

.bati-breadcrumbs {
    margin-bottom: 30px !important;
    font-size: 14px !important;
    color: #888 !important;
}

.bati-expert-details-header {
    display: flex !important;
    gap: 50px !important;
}

.bati-expert-profile-portrait {
    flex: 0 0 320px !important;
}

.bati-expert-profile-portrait img {
    width: 100% !important;
    height: auto !important;
}

.bati-expert-header-info-wrap {
    flex: 1 !important;
    position: relative !important;
}

.bati-expert-id-row {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 40px !important;
}

.bati-company-name-large {
    font-size: 36px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    margin: 0 0 5px 0 !important;
}

.bati-expert-name-sub {
    font-size: 22px !important;
    color: var(--bati-primary) !important;
    margin-bottom: 10px !important;
}

.bati-location-sub {
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.bati-location-sub .dashicons {
    color: var(--bati-yellow) !important;
}

.bati-expert-top-logo {
    width: 130px !important;
    height: 130px !important;
    border: 1px solid #f0f0f0 !important;
}

.bati-expert-top-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.bati-expert-main-description {
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin-bottom: 40px !important;
}

/* Checkmarks in description lists */
.bati-expert-main-description ul li:before {
    content: "\f147" !important;
    font-family: dashicons !important;
    color: var(--bati-primary) !important;
    margin-right: 10px !important;
}

.bati-expert-contact-section h3 {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin-bottom: 15px !important;
}

.social-btn {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    margin-right: 10px !important;
}

.social-btn.facebook {
    background: #3b5998 !important;
}

.social-btn.instagram {
    background: #000 !important;
}

.social-btn.linkedin {
    background: #0077b5 !important;
}

.social-btn.website {
    background: #888 !important;
}

.social-btn.whatsapp {
    background: #25d366 !important;
}

.social-btn.gmap {
    background: var(--bati-yellow) !important;
}

/* Galerie Section */
.bati-gallery-title {
    color: var(--bati-primary) !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin: 60px 0 30px !important;
}

.bati-expert-gallery-v2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    /* Large image as seen in ref slider */
    gap: 30px !important;
}

.bati-gallery-item-v2 img {
    width: 100% !important;
    height: auto !important;
}