/* /public/assets/css/main.css */

/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Custom Font Faces - Gentleman and Optima */
@font-face{font-family:'Gentleman';font-style:normal;font-weight:100;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-100.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-100.woff") format("woff");}
@font-face{font-family:'Gentleman';font-style:normal;font-weight:200;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-200.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-200.woff") format("woff");}
@font-face{font-family:'Gentleman';font-style:normal;font-weight:300;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-300.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-300.woff") format("woff");}
@font-face{font-family:'Gentleman';font-style:normal;font-weight:400;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-400.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-400.woff") format("woff");}
@font-face{font-family:'Gentleman';font-style:normal;font-weight:500;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-500.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-500.woff") format("woff");}
@font-face{font-family:'Gentleman';font-style:normal;font-weight:600;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-600.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-600.woff") format("woff");}
@font-face{font-family:'Gentleman';font-style:normal;font-weight:700;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-700.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-700.woff") format("woff");}
@font-face{font-family:'Gentleman';font-style:normal;font-weight:800;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-800.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-800.woff") format("woff");}
@font-face{font-family:'Gentleman';font-style:normal;font-weight:900;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-900.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-900.woff") format("woff");}
@font-face{font-family:'Gentleman Black';font-style:normal;font-weight:normal;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-black.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/gentleman/gentleman-black.woff") format("woff");}

@font-face{font-family:'Optima';font-style:normal;font-weight:100;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-100.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-100.woff") format("woff");}
@font-face{font-family:'Optima';font-style:italic;font-weight:100;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-100-italic.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-100-italic.woff") format("woff");}
@font-face{font-family:'Optima';font-style:normal;font-weight:200;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-200.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-200.woff") format("woff");}
@font-face{font-family:'Optima';font-style:italic;font-weight:200;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-200-italic.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-200-italic.woff") format("woff");}
@font-face{font-family:'Optima';font-style:normal;font-weight:300;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-300.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-300.woff") format("woff");}
@font-face{font-family:'Optima';font-style:italic;font-weight:300;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-300-italic.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-300-italic.woff") format("woff");}
@font-face{font-family:'Optima';font-style:normal;font-weight:400;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-400.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-400.woff") format("woff");}
@font-face{font-family:'Optima';font-style:italic;font-weight:400;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-400-italic.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-400-italic.woff") format("woff");}
@font-face{font-family:'Optima';font-style:normal;font-weight:500;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-500.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-500.woff") format("woff");}
@font-face{font-family:'Optima';font-style:italic;font-weight:500;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-500-italic.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-500-italic.woff") format("woff");}
@font-face{font-family:'Optima';font-style:normal;font-weight:600;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-600.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-600.woff") format("woff");}
@font-face{font-family:'Optima';font-style:italic;font-weight:600;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-600-italic.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-600-italic.woff") format("woff");}
@font-face{font-family:'Optima';font-style:normal;font-weight:700;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-700.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-700.woff") format("woff");}
@font-face{font-family:'Optima';font-style:italic;font-weight:700;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-700-italic.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-700-italic.woff") format("woff");}
@font-face{font-family:'Optima';font-style:normal;font-weight:800;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-800.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-800.woff") format("woff");}
@font-face{font-family:'Optima';font-style:italic;font-weight:800;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-800-italic.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-800-italic.woff") format("woff");}
@font-face{font-family:'Optima';font-style:normal;font-weight:900;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-900.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-900.woff") format("woff");}
@font-face{font-family:'Optima';font-style:italic;font-weight:900;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-900-italic.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-900-italic.woff") format("woff");}
@font-face{font-family:'Optima Black';font-style:normal;font-weight:normal;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-black.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-black.woff") format("woff");}
@font-face{font-family:'Optima Black';font-style:italic;font-weight:normal;font-display:swap;src:url("https://cdn.blrankings.com/shared/fonts/optima/optima-black-italic.woff2") format("woff2"),url("https://cdn.blrankings.com/shared/fonts/optima/optima-black-italic.woff") format("woff");}

/* Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-muted: #6c757d;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/*--------------------------------------------------------------------------------------------*/
/* Overwrite some styles for accessibility */
/* Add light background to body to improve accessibility by adding some contrast with content */
body, .sidebar, nav.bg-light.py-2 {
	background-color: #F8F9FA !important;	
}
/* Remove border from columns */
.col-md-9, .col-md-3{
	border: 0px !important;
}
/*--------------------------------------------------------------------------------------------*/

/* Header */
.navbar-brand img {
    max-height: 40px;
}

/* Professional Navbar Brand Typography */
.navbar-brand.styled-brand {
    text-decoration: none !important;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.brand-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
    line-height: 1;
}

.brand-main {
    font-family: inherit;
    font-weight: 600;
    font-size: inherit;
    color: #2c3e50;
    transition: all 0.3s ease;
    letter-spacing: inherit;
}

.brand-dot {
    display: inline-flex;
    align-items: center;
    margin: 0 0.1rem;
}

.brand-maple {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    vertical-align: middle;
    line-height: 1;
}

.brand-ca {
    font-family: inherit;
    font-weight: 600;
    font-size: inherit;
    color: #2c3e50;
    transition: all 0.3s ease;
    letter-spacing: inherit;
}

/* Hover effects for navbar brand */
.navbar-brand.styled-brand:hover .brand-main,
.navbar-brand.styled-brand:hover .brand-ca {
    color: #3498db;
}

.navbar-brand.styled-brand:hover .brand-maple {
    transform: rotate(15deg) scale(1.1);
}

/* Premium shimmer effect */
.navbar-brand.styled-brand {
    position: relative;
    overflow: hidden;
}

.navbar-brand.styled-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.navbar-brand.styled-brand:hover::before {
    left: 100%;
}

/* Mobile responsiveness for navbar brand */
@media (max-width: 768px) {
    .brand-text {
        font-size: 1.25rem;
        letter-spacing: 1.5px;
    }
    
    .brand-maple {
        font-size: 1.1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .brand-text {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .brand-maple {
        font-size: 1rem;
    }
}

/* Premium version with more refined typography */
.navbar-brand.styled-brand-premium {
    font-variant-ligatures: contextual;
    font-variant-numeric: lining-nums proportional-nums;
}

.navbar-brand.styled-brand-premium .brand-text {
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
}

/* Alternative font stack if Inter is not available */
@supports not (font-family: 'Inter') {
    .brand-text {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-weight: 400;
    }
    
    .brand-main,
    .brand-ca {
        font-weight: 700;
    }
}

/* Alternative gradient version (like email) */
.navbar-brand.styled-brand-gradient .brand-main {
    background: linear-gradient(90deg, #2c3e50 0%, #3498db 50%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 100%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Bootstrap Tooltip Customization - Make Taller */
.tooltip {
    font-size: 14px;
}

.tooltip-inner {
    padding: 10px 15px;
    max-width: 300px;
    line-height: 1.6;
    background-color: #333;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #333;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #333;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #333;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #333;
}

/* Search Section */
.search-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.search-box {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-box .form-control,
.search-box .form-select {
    height: 48px;
    font-size: 16px;
}

/* Professional Cards */
.professional-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.professional-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.professional-card .rating {
    color: var(--warning-color);
}

.professional-card .badge {
    font-weight: normal;
    padding: 4px 8px;
}

/* Segment Badges */
.badge.bg-secondary {
    font-size: 0.85rem;
    font-weight: normal;
    background-color: #6c757d !important;
}

/* Contact Options Styling */
.contact-options {
    font-size: 0.9rem;
    gap: 1rem;
}

.contact-item {
    display: inline-flex;
    align-items: center;
}

.contact-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.contact-item a:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

.contact-item i {
    font-size: 0.9rem;
}

/* Professional Profile */
.profile-header {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.profile-actions .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Reviews */
.review-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.review-item:last-child {
    border-bottom: none;
}

.star-rating {
    color: var(--warning-color);
}

.rating-input .star {
    cursor: pointer;
    color: #dee2e6;
    transition: color 0.2s;
    font-size: 24px;
}

.rating-input .star:hover,
.rating-input .star.active {
    color: var(--warning-color);
}

/* Map Styling */
#map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Sidebar (Interior Pages) */
.sidebar {
    background: var(--light-bg);
    min-height: calc(100vh - 200px);
    padding: 20px;
    border-right: 1px solid var(--border-color);
}

.sidebar .nav-link {
    color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: white;
    color: var(--primary-color);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a252f;
    border-color: #1a252f;
}

.btn-call {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.btn-call:hover {
    background-color: #219a52;
    border-color: #219a52;
    color: white;
}

.btn-text {
    background-color: var(--info-color);
    border-color: var(--info-color);
    color: white;
}

.btn-text:hover {
    background-color: #138496;
    border-color: #138496;
    color: white;
}

/* Nearby Professional Cards */
.nearby-professional {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.nearby-professional:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.nearby-professional h6 {
    color: var(--primary-color);
    transition: color 0.2s;
    margin-bottom: 0.5rem;
}

.nearby-professional:hover h6 {
    color: var(--secondary-color);
}

.nearby-professional .badge {
    font-size: 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-hero {
        padding: 30px 0;
    }
    
    .search-box {
        padding: 20px;
    }
    
    .sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 20px;
    }
    
    .professional-card {
        padding: 15px;
    }
    
    .professional-card .row {
        flex-direction: column;
    }
    
    .professional-card .col-md-4 {
        text-align: left !important;
        margin-top: 15px;
    }
    
    .contact-options {
        font-size: 0.85rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-item {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .profile-actions .btn {
        display: block;
        width: 100%;
        margin-right: 0;
    }
    
    /* Smaller tooltips on mobile */
    .tooltip-inner {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Loading Animation */
.spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Featured Professionals Home Page */
.featured-professional-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-professional-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.featured-professional-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.featured-professional-card .company-name {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.featured-professional-card .professional-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.featured-professional-card .contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.featured-professional-card .contact-actions a {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.featured-professional-card .contact-actions a:hover {
    text-decoration: underline;
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Modal Improvements */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px;
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    footer,
    .btn,
    .form-control {
        display: none !important;
    }
    
    .professional-card,
    .profile-header {
        break-inside: avoid;
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}






/*
--------------------------------------------
Additional Styles for Swiper Carousel
--------------------------------------------
*/

/* Carousel wrapper to ensure proper sizing */
.carousel-wrapper {
    width: 300px !important;
    margin: 0 auto;
    position: relative;
    perspective: 1200px; /* Add perspective for 3D effect */
}

/* Ensure Bootstrap grid doesn't override carousel dimensions */
.row > .col-md-6.col-lg-4 > .swiper {
    width: 300px !important;
    max-width: 300px !important;
}

/* Bottom margin for carousel container */
section.py-5.bg-light .col-md-6.col-lg-4 {
    margin-bottom: 1.5rem !important; /* Bootstrap mb-4 equivalent */
}

/* Ensure grid columns don't constrain carousel width */
section.py-5.bg-light .col-md-6.col-lg-4 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-width: 320px; /* Slightly larger than carousel to provide padding */
}

/* Color Variables */
:root {
    --carousel-blue: #188EC4;
}

/* Professional Carousel Card Styles */
.professional-carousel-card {
    width: 100%;
    min-height: 420px;
    padding: 30px 20px 50px; /* Added extra bottom padding for indicators */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Force all swiper elements to fixed dimensions */
.professional-swiper,
.professional-swiper .swiper-wrapper,
.professional-swiper .swiper-slide,
.professional-swiper .professional-carousel-card {
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
}

.professional-swiper,
.professional-swiper .swiper-wrapper,
.professional-swiper .swiper-slide,
.professional-swiper .professional-carousel-card {
    height: 450px !important;
    max-height: 450px !important;
    min-height: 450px !important;
}

/* Swiper Container - Fix grey corners and add 3D perspective */
.professional-swiper {
    position: relative;
    background-color: transparent !important;
    overflow: hidden !important; /* Changed from visible to hidden for clean flip */
    border-radius: 16px; /* Match card radius */
    perspective: 1200px; /* Add perspective for 3D flip effect */
}

/* Ensure swiper wrapper takes full height and fix corners */
.professional-swiper .swiper-wrapper {
    min-height: 420px;
    background-color: transparent !important;
    overflow: hidden;
    border-radius: 16px; /* Match card radius */
}

/* Ensure swiper slides fill the container completely and handle 3D */
.professional-swiper .swiper-slide {
    background-color: transparent !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Ensure cards maintain proper 3D transform */
.professional-swiper .professional-carousel-card {
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Initials Circle Styles */
.initials-circle {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    overflow: hidden;
    background-clip: padding-box;
    position: relative;
}

.initials-circle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.initials-circle-small {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    border-radius: 50%;
    top: 15px;
    left: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    overflow: hidden;
    background-clip: padding-box;
    position: relative;
}

.initials-circle-small span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Contact Section Links */
.contact-section a:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

/* Bottom Navigation Container - Only for dots */
.professional-swiper .carousel-bottom-nav {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    width: auto !important;
}

/* Navigation Buttons - Corner Style */
.carousel-nav-btn {
    background-color: transparent;
    color: #188EC4;
    border: none;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 32px;
    font-weight: normal;
    padding: 8px;
    line-height: 1;
    font-family: Arial, sans-serif;
    position: absolute;
    bottom: 20px;
    z-index: 100; /* Increased z-index to stay above flip animation */
}

.carousel-nav-prev {
    left: 20px !important;
}

.carousel-nav-next {
    right: 20px !important;
}

.carousel-nav-btn span:first-child {
    display: block;
    line-height: 1;
}

.carousel-nav-btn:hover {
    color: #0a5f8a;
    transform: scale(1.1);
}

.carousel-nav-btn:active {
    transform: scale(0.95);
}

/* Swiper Pagination - Minimalist Dots */
.professional-swiper .swiper-pagination {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 100; /* Increased z-index to stay above flip animation */
}

.professional-swiper .swiper-pagination-bullet {
    background-color: #c0c0c0 !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    margin: 0 !important;
    opacity: 1 !important;
    transition: all 0.2s ease;
}

.professional-swiper .swiper-pagination-bullet-active {
    background-color: var(--carousel-blue) !important;
    width: 10px !important;
    height: 10px !important;
}


/* Blue Slide Specific Styles */

/* Keep professional name same size on blue slide */
.swiper-slide:nth-child(2) .professional-carousel-card h3 {
    font-size: 1.25rem !important; /* Match h5 size from white slide */
}











/* ===== EXPLICIT WHITE SLIDE STATE ===== */
.professional-swiper.white-active .carousel-nav-btn,
.professional-swiper.white-active .carousel-nav-btn span,
.professional-swiper.white-active .carousel-nav-btn i {
    color: #188EC4 !important;
    transition: color 0.2s ease;
}

.professional-swiper.white-active .carousel-nav-btn:hover {
    color: #0a5f8a !important;
}

.professional-swiper.white-active .carousel-nav-btn:active {
    color: white !important;
    background-color: #188EC4 !important;
    border-radius: 50%;
}

.professional-swiper.white-active .swiper-pagination-bullet {
    background-color: #c0c0c0 !important;
    transition: background-color 0.2s ease;
}

.professional-swiper.white-active .swiper-pagination-bullet-active {
    background-color: #188EC4 !important;
    width: 10px !important;
    height: 10px !important;
}

/* ===== EXPLICIT BLUE SLIDE STATE ===== */
.professional-swiper.blue-active .carousel-nav-btn,
.professional-swiper.blue-active .carousel-nav-btn span,
.professional-swiper.blue-active .carousel-nav-btn i {
    color: white !important;
    transition: color 0.2s ease;
}

.professional-swiper.blue-active .carousel-nav-btn:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

.professional-swiper.blue-active .carousel-nav-btn:active {
    color: #188EC4 !important;
    background-color: white !important;
    border-radius: 50%;
}

.professional-swiper.blue-active .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.4) !important;
    transition: background-color 0.2s ease;
}

.professional-swiper.blue-active .swiper-pagination-bullet-active {
    background-color: white !important;
    width: 10px !important;
    height: 10px !important;
}

/* ===== DEFAULT STATE (fallback) ===== */
.professional-swiper:not(.blue-active):not(.white-active) .carousel-nav-btn,
.professional-swiper:not(.blue-active):not(.white-active) .carousel-nav-btn span,
.professional-swiper:not(.blue-active):not(.white-active) .carousel-nav-btn i {
    color: #188EC4 !important;
}

/* ===== ENSURE FLIP-SIDE BUTTONS STAY INDEPENDENT ===== */
.professional-swiper .flip-side-button,
.professional-swiper.blue-active .flip-side-button,
.professional-swiper.white-active .flip-side-button {
    /* Maintain their own colors */
    background: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.professional-swiper .flip-side-button:hover,
.professional-swiper.blue-active .flip-side-button:hover,
.professional-swiper.white-active .flip-side-button:hover {
    background: #FFFFFF !important;
    color: #188EC4 !important;
    border: 2px solid #FFFFFF !important;
}

/* Force icon visibility in all states */
.carousel-nav-btn i,
.flip-side-button i {
    opacity: 1 !important;
    visibility: visible !important;
}










/* Ensure divider line is white on blue slide */
.swiper-slide:nth-child(2) hr {
    background-color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    border: none !important;
    height: 1px !important;
}

/* Fix initials circle absolute positioning */
.swiper-slide:nth-child(2) .position-relative {
    position: static !important; /* Reset container */
}

.swiper-slide:nth-child(2) .initials-circle-small {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 10;
}

a.flip-side-button, a.flip-side-button:focus{
	background: transparent;
	color: #188EC4;
    border: none !important;
	outline: none  !important;
	width: 50px;
	height:50px;
	overflow: hidden;
	border-radius: 50%;
	text-decoration: none;
	text-align: center;
}
a.flip-side-button:hover{
	background: transparent;
	color: #fff;
    border: none !important;
	outline: none  !important;
	width: 50px;
	height:50px;
	overflow: hidden;
	border-radius: 50%;
	text-decoration: none;
	text-align: center;
}

a.flip-side-button i {
    margin: auto;
	font-size: 26px;
}

a.flip-side-button,
a.flip-side-button:hover {
    text-decoration: none !important;
}

.professional-name-card{
	font-size: calc(1.2625rem + .15vw);
    font-family: 'Optima', Georgia, serif;
    font-weight: 400; /* or choose the weight you prefer: 300, 400, 500, 600, 700 */	 
}

.featured-professionals-title{
	font-size: calc(3rem + .15vw);
    font-family: 'Optima', Georgia, serif;
    font-weight: 400; /* or choose the weight you prefer: 300, 400, 500, 600, 700 */	 
}

/* Responsive Design */
@media (max-width: 768px) {
    .professional-carousel-card {
        width: 300px;
        height: 450px;
        padding: 25px 15px 50px; /* Adjusted bottom padding */
    }
    
    .professional-swiper .swiper-slide {
        height: 450px;
    }
    
    .professional-swiper .swiper-wrapper {
        height: 450px;
        overflow: hidden;
        border-radius: 16px;
    }
    
    .initials-circle {
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
    }
    
    .initials-circle-small {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .carousel-nav-btn {
        font-size: 22px;
        padding: 8px;
    }
    
    .professional-swiper .carousel-bottom-nav {
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .professional-carousel-card {
        width: 280px; /* Slightly smaller on very small screens */
        height: 450px;
        padding: 25px 15px 50px; /* Adjusted padding */
    }
    
    .professional-swiper .swiper-slide {
        height: 450px;
    }
    
    .professional-swiper .swiper-wrapper {
        height: 450px;
        overflow: hidden;
        border-radius: 8px;
    }
    
    .professional-swiper {
        width: 280px;
        margin: 0 auto;
    }
    
    .carousel-nav-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .professional-swiper .carousel-bottom-nav {
        gap: 6px;
        bottom: -25px;
    }
    
    .professional-swiper .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }
    
    .professional-swiper .swiper-pagination-bullet-active {
        width: 8px;
        height: 8px;
    }
}

/* Mobile-specific fixes for initials and icons */
@media (max-width: 768px) {
    /* Fix initials circle display on mobile */
    .initials-circle {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        min-height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        position: relative !important;
    }
    
    .initials-circle span {
        font-size: 1.5rem !important;
        line-height: 1 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .initials-circle-small {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
    }
    
    .initials-circle-small span {
        font-size: 1rem !important;
        line-height: 1 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    /* Fix Font Awesome icons on mobile */
    .fa, .fas, .far, .fab {
        display: inline-block !important;
        font-style: normal !important;
        font-variant: normal !important;
        text-rendering: auto !important;
        line-height: 1 !important;
        -webkit-font-smoothing: antialiased !important;
    }
    
    /* Ensure flip-side-button icons render properly */
    a.flip-side-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }
    
    a.flip-side-button i {
        display: block !important;
        font-size: 22px !important;
        line-height: 1 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    /* Fix professional card dimensions on mobile */
    .professional-carousel-card {
        width: 300px !important;
        height: 450px !important;
    }
    
    /* Ensure proper swiper dimensions */
    .professional-swiper,
    .professional-swiper .swiper-wrapper,
    .professional-swiper .swiper-slide {
        width: 300px !important;
        height: 450px !important;
    }
}

@media (max-width: 576px) {
    /* Even smaller devices */
    .professional-carousel-card {
        width: 280px !important;
        height: 450px !important;
    }
    
    .professional-swiper,
    .professional-swiper .swiper-wrapper,
    .professional-swiper .swiper-slide {
        width: 280px !important;
        height: 450px !important;
    }
    
    /* Smaller initials on very small screens */
    .initials-circle {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
    }
    
    .initials-circle span {
        font-size: 1.25rem !important;
    }
    
    .initials-circle-small {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        min-height: 35px !important;
    }
    
    .initials-circle-small span {
        font-size: 0.875rem !important;
    }
    
    /* Smaller icons on very small screens */
    a.flip-side-button {
        width: 45px !important;
        height: 45px !important;
    }
    
    a.flip-side-button:hover {
        width: 55px !important;
        height: 55px !important;
    }
    
    a.flip-side-button i {
        font-size: 20px !important;
    }
}

/* Ensure Font Awesome is loaded and icons display correctly */
.professional-carousel-card i.fas,
.professional-carousel-card i.fa {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    display: inline-block !important;
}

/* Fix for verified checkmark icon */
i.fa-check-circle {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
}

/* Additional fixes for swiper loop mode */
.professional-swiper .swiper-slide-duplicate {
    width: 300px !important;
    height: 450px !important;
}

@media (max-width: 576px) {
    .professional-swiper .swiper-slide-duplicate {
        width: 280px !important;
        height: 450px !important;
    }
}

/* Fix swiper slide active detection for loop mode */
.professional-swiper .swiper-slide-duplicate-active {
    z-index: 2;
}












/*
------------------------------------add a sleeve to feature professional with top rounded corner
Order of Background colors:
#1B2026 - First Section from top
#2A303A
#F3F3F3
#1A1F25
#F3F3F3
#1A1F25
#484848
#FFFFFF - Footer
*/

/* Featured Professionals Section - Dark Grey Sleeve Effect with Top Shadow */
section.featured-professionals-section {
    background-color: #1B2026;
    border-radius: 30px 30px 0 0; /* Rounded top corners only */
    padding-top: 60px !important;
    padding-bottom: 80px !important;
    margin-top: 0px;
    margin-bottom: -120px;
    position: relative;
	top: -40px;
    overflow: hidden;
    /* Add shadow to the top of the sleeve */
    /* Moderate shadows - balanced prominence */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2),   /* Main shadow */
                0 -6px 20px rgba(0, 0, 0, 0.15),    /* Secondary shadow */
                0 -3px 10px rgba(0, 0, 0, 0.1),     /* Subtle shadow */
                inset 0 3px 6px rgba(0, 0, 0, 0.25); /* Inner shadow */
}

/* Enhanced gradient for more depth with the shadow */
section.featured-professionals-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px; /* Increased height */
    background: linear-gradient(to bottom, 
                rgba(0,0,0,0.2) 0%,    /* Darker at top */
                rgba(0,0,0,0.1) 50%,   /* Mid fade */
                transparent 100%);      /* Fully transparent */
    pointer-events: none;
    z-index: 0;
}

/* Alternative: Add a separate shadow element for more control */
section.featured-professionals-section::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px); /* Slightly narrower than section */
    height: 20px;
    background: transparent;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Ensure proper layering */
section.featured-professionals-section .container {
    position: relative;
    z-index: 2; /* Increased z-index */
}

/* Make the heading white for contrast */
section.featured-professionals-section h2 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    section.featured-professionals-section {
        border-radius: 20px 20px 0 0;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        /* Lighter shadow on mobile */
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.12),
                    inset 0 2px 4px rgba(0, 0, 0, 0.15);
    }
    
    section.featured-professionals-section::after {
        width: calc(100% - 40px); /* Adjust for mobile */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }
}


/* 
-----------------------------------------------------------------------------
SLEEVE FOR PROFESSIONALS NEAR ME
-----------------------------------------------------------------------------
*/
/* Professionals Near Me Section - Different Grey Sleeve Effect with Top Shadow */
section.professionals-near-me-section {
    background-color: #2A303A; /* Different grey from featured professionals */
    border-radius: 30px 30px 0 0; /* Rounded top corners only */
    padding-top: 60px !important;
    padding-bottom: 60px !important;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    /* Add shadow to the top of the sleeve */
    /* Slightly lighter shadows for visual hierarchy */
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.18),    /* Main shadow */
                0 -5px 15px rgba(0, 0, 0, 0.12),    /* Secondary shadow */
                0 -2px 8px rgba(0, 0, 0, 0.08),     /* Subtle shadow */
                inset 0 3px 5px rgba(0, 0, 0, 0.2); /* Inner shadow */
}

/* Enhanced gradient for depth */
section.professionals-near-me-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, 
                rgba(0,0,0,0.15) 0%,   /* Slightly lighter than featured */
                rgba(0,0,0,0.08) 50%,  /* Mid fade */
                transparent 100%);      /* Fully transparent */
    pointer-events: none;
    z-index: 0;
}

/* Shadow element for more control */
section.professionals-near-me-section::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px); /* Slightly different width */
    height: 16px;
    background: transparent;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    z-index: -1;
}

/* Ensure proper layering */
section.professionals-near-me-section .container {
    position: relative;
    z-index: 2;
}

/* Make the heading white for contrast */
section.professionals-near-me-section h2 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
    position: relative;
    z-index: 2;
}

/* Distance badge styling on dark background */
section.professionals-near-me-section .distance-badge .badge {
    background-color: #28a745 !important; /* Keep green but ensure it pops */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    section.professionals-near-me-section {
        border-radius: 20px 20px 0 0;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        /* Lighter shadow on mobile */
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1),
                    inset 0 2px 3px rgba(0, 0, 0, 0.12);
    }
    
    section.professionals-near-me-section::after {
        width: calc(100% - 50px); /* Adjust for mobile */
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    }
}

/* Visual separation between sections if both are visible */
section.featured-professionals-section + section.professionals-near-me-section {
    margin-top: 0; /* Remove margin when adjacent */
    border-radius: 0; /* Remove top radius when following featured section */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1), /* Lighter top shadow */
                inset 0 3px 5px rgba(0, 0, 0, 0.2); /* Keep inner shadow */
}

/* Remove the ::after shadow element when sections are adjacent */
section.featured-professionals-section + section.professionals-near-me-section::after {
    display: none;
}

/* 
-----------------------------------------------------------------------------
SLEEVE FOR FOOTER - Light Grey Tab Effect with Clear-Cut Top
-----------------------------------------------------------------------------
*/
/* Footer Section - Light Grey Sleeve Effect with Sharp Top Edge and Overlap */
footer.footer-sleeve {
    background-color: #F8F9FA !important; /* Light grey matching the bg-light class */
    border-radius: 30px 30px 0 0; /* Rounded top corners only */
    padding-top: 60px !important;
    padding-bottom: 40px !important; /* Restored padding for content */
    margin-top: 0;
    margin-bottom: -120px; /* Negative margin to compensate for the top positioning */
    position: relative;
    top: 0px; /* Negative value to create overlap with sections above */
    overflow: hidden;
    /* Single sharp shadow for clear-cut edge */
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.12); /* Single, tight shadow for definition */
    z-index: 10; /* Ensure footer appears above the dark sections */
}

/* Optional: Add a subtle border for even more definition */
footer.footer-sleeve {
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Very subtle border for crisp edge */
}

/* Remove gradient overlays for cleaner appearance */
footer.footer-sleeve::before {
    display: none; /* No gradient overlay */
}

/* Remove additional shadow element */
footer.footer-sleeve::after {
    display: none; /* No extra shadow complexity */
}

/* Ensure proper layering of footer content */
footer.footer-sleeve .container {
    position: relative;
    z-index: 2;
}

/* Adjust footer heading colors for better contrast on light background */
footer.footer-sleeve h5 {
    color: #2c3e50 !important; /* Dark color for contrast */
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer link styling */
footer.footer-sleeve a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer.footer-sleeve a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Remove default margin when footer follows a dark section */
section.featured-professionals-section + footer.footer-sleeve,
section.professionals-near-me-section + footer.footer-sleeve {
    margin-top: 0 !important;
}

/* Special styling when footer follows professionals near me section */
section.professionals-near-me-section + footer.footer-sleeve {
    top: -140px; /* Increased to maintain proper overlap ratio */
    margin-bottom: -140px; /* Adjust compensation accordingly */
}

/* Mobile responsiveness for footer sleeve */
@media (max-width: 768px) {
    footer.footer-sleeve {
        border-radius: 20px 20px 0 0;
        padding-top: 40px !important;
        padding-bottom: 30px !important;
        top: -60px; /* Proportionally reduced for mobile */
        margin-bottom: -60px; /* Compensate for mobile */
        /* Even simpler shadow on mobile */
        box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    }
    
    section.professionals-near-me-section + footer.footer-sleeve {
        top: -80px; /* Proportionally adjusted for mobile */
        margin-bottom: -80px;
    }
}

/* Ensure the footer doesn't get cut off at the bottom */
body {
    padding-bottom: 0 !important; /* Remove any default padding */
    overflow-x: hidden; /* Prevent horizontal scroll from shadows */
}

/* Fix for when there's content after professionals sections */
.featured-professionals-section.has-near-me + .professionals-near-me-section + footer.footer-sleeve {
    top: -160px; /* Increased overlap when both sections are present */
    margin-bottom: -160px; /* Compensate accordingly */
}

@media (max-width: 768px) {
    .featured-professionals-section.has-near-me + .professionals-near-me-section + footer.footer-sleeve {
        top: -90px; /* Proportionally adjusted for mobile */
        margin-bottom: -90px;
    }
}

/* Additional fix to ensure page height is correct */
html {
    min-height: 100%;
    position: relative;
}













/*
==============================================================================================================
PROFESSIONALS NEAR ME -  /app/views/home/index.php
==============================================================================================================
*/
/* Style 1 */
/*
.search-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}
*/
/* Style 2: The cool-to-warm shift gives depth and energy */
/*
.search-hero {
  background: linear-gradient(
      135deg,
      #667eea 0%,
      #764ba2 50%,
      #6b8dd6 100%
    );
  color: #fff;
  padding: 60px 0;
  margin-bottom: 40px;
}
*/









/* Style 3: Hero Image + Dark Overlay */
.search-hero {
  position: relative;
  overflow: hidden;
  background-color: #1A1F25;  /* fallback */
  background-image: url('https://getmealawyer.ca/public/images/backgrounds/glitter-aesthetic-background.jpg');
  background-repeat: no-repeat;
  background-position: 100% 50%;  /* start at right */
  background-size: 400% 400%;
  padding: 60px 0;
  margin-bottom: 40px;
  color: #fff;
  
  /* slide right→left one cycle, then left→right the next */
  animation: bgPingPong 16s ease-in-out infinite alternate;
}

.search-hero::before {
  /* keep your dark overlay */
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,31,37,0.7);
  backdrop-filter: blur(50px);
  z-index: 1;
}

.search-hero::after {
  /* skewed “Hollywood sheen” */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg) translateX(100%);
  /* sweep left→right one cycle, then right→left next */
  animation: sheenPingPong 4s ease-in-out infinite alternate;
  z-index: 2;
  pointer-events: none;
}

.search-hero * {
  position: relative;
  z-index: 3;
}

/* === Background ping-pong === */
@keyframes bgPingPong {
  from {
    background-position: 100% 50%;
  }
  to {
    background-position: 0% 50%;
  }
}

/* === Sheen ping-pong === */
@keyframes sheenPingPong {
  from {
    transform: skewX(-25deg) translateX(100%);
    opacity: 0;  /* invisible until it moves */
  }
  50% {
    opacity: 0.3; /* fully visible mid-sweep */
  }
  to {
    transform: skewX(-25deg) translateX(-100%);
    opacity: 0;
  }
}









.search-box {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.professional-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.professional-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.contact-options {
    font-size: 0.9rem;
}

.contact-options a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-options a:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

.contact-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-item a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .professional-card {
        padding: 15px;
    }
    
    .contact-options {
        font-size: 0.85rem;
    }
}

/* Swiper-specific overrides to match Bootstrap carousel styling */
.professional-swiper {
    overflow: visible !important;
    border-radius: 16px;
    perspective: 1200px; /* Add perspective for 3D flip */
}

.professional-swiper .swiper-wrapper {
    align-items: center;
}

.professional-swiper .swiper-slide {
    height: 450px !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Ensure cards maintain their appearance during flip */
.professional-swiper .swiper-slide-active {
    z-index: 2;
}

.professional-swiper .professional-carousel-card {
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Hide Swiper's default navigation */
.professional-swiper .swiper-button-prev,
.professional-swiper .swiper-button-next {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    top: auto !important;
    bottom: 20px !important;
    background: none !important;
	color: #188EC4 !important;
}

.professional-swiper .swiper-button-prev {
    left: 20px !important;
    right: auto !important;
}

.professional-swiper .swiper-button-next {
    right: 20px !important;
    left: auto !important;
}

.professional-swiper .swiper-button-prev::after,
.professional-swiper .swiper-button-next::after {
    display: none !important;
}

/* Swiper pagination styling to match Bootstrap indicators */
.professional-swiper .swiper-pagination {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 100; /* Increased z-index to stay above flip animation */
}

.professional-swiper .swiper-pagination-bullet {
    background-color: #c0c0c0 !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    margin: 0 !important;
    opacity: 1 !important;
    transition: all 0.2s ease;
}

.professional-swiper .swiper-pagination-bullet-active {
    background-color: #188EC4 !important;
    width: 10px !important;
    height: 10px !important;
}

/* Blue active state for Swiper */
.professional-swiper.blue-active .carousel-nav-btn,
.professional-swiper.blue-active .carousel-nav-btn span {
    color: white !important;
}

.professional-swiper.blue-active .carousel-nav-btn:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.professional-swiper.blue-active .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5) !important;
}

.professional-swiper.blue-active .swiper-pagination-bullet-active {
    background-color: white !important;
}







/* Professional Near Me Extra Features */
/* Arrow color changes based on active slide and interaction */
.professional-swiper .carousel-nav-btn {
    transition: all 0.2s ease;
}

/* When clicking/active state on white background (first slide) */
.professional-swiper:not(.blue-active) .carousel-nav-btn:active {
    color: white !important;
}

/* When clicking/active state on blue background (second slide) */
.professional-swiper.blue-active .carousel-nav-btn:active {
    color: #188EC4 !important;
}

/* Focus state for accessibility */
.professional-swiper .carousel-nav-btn:focus {
    outline: none;
}

/* Filter/Sort controls styling */
#near-me-controls .form-select {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: white !important;
}

#near-me-controls .form-select:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

#near-me-controls .form-select option {
    background-color: #2A303A;
    color: white;
}




/* ===== CHEVRON NAVIGATION ICONS ===== */
/* Adjust Custom Arrow Button Font Style*/
/* Fix for navigation chevron arrows */
.carousel-nav-btn i.fas.fa-chevron-left,
.carousel-nav-btn i.fas.fa-chevron-right {
	color" #188EC4 !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    font-size: inherit !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Ensure chevron icons are visible */
.carousel-nav-btn span {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Override any conflicting styles */
.carousel-nav-btn span i {
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    transform: none !important;
}

/* ===== CHEVRON NAVIGATION ICONS - SPECIFIC TARGETING ===== */

/* White slide state - blue chevrons */
.professional-swiper.white-active .carousel-nav-btn .nav-icon-wrapper i.fa-chevron-left,
.professional-swiper.white-active .carousel-nav-btn .nav-icon-wrapper i.fa-chevron-right {
    color: #188EC4 !important;
    transition: color 0.2s ease !important;
}

.professional-swiper.white-active .carousel-nav-btn:hover .nav-icon-wrapper i.fa-chevron-left,
.professional-swiper.white-active .carousel-nav-btn:hover .nav-icon-wrapper i.fa-chevron-right {
    color: #0a5f8a !important;
}

/* Blue slide state - white chevrons */
.professional-swiper.blue-active .carousel-nav-btn .nav-icon-wrapper i.fa-chevron-left,
.professional-swiper.blue-active .carousel-nav-btn .nav-icon-wrapper i.fa-chevron-right {
    color: white !important;
    transition: color 0.2s ease !important;
}

.professional-swiper.blue-active .carousel-nav-btn:hover .nav-icon-wrapper i.fa-chevron-left,
.professional-swiper.blue-active .carousel-nav-btn:hover .nav-icon-wrapper i.fa-chevron-right {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Default/Initial state - blue chevrons */
.professional-swiper:not(.blue-active):not(.white-active) .carousel-nav-btn .nav-icon-wrapper i.fa-chevron-left,
.professional-swiper:not(.blue-active):not(.white-active) .carousel-nav-btn .nav-icon-wrapper i.fa-chevron-right {
    color: #188EC4 !important;
}

/* Force chevron icon properties */
.carousel-nav-btn .nav-icon-wrapper i.fa-chevron-left,
.carousel-nav-btn .nav-icon-wrapper i.fa-chevron-right {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Active click state animations */
.professional-swiper.white-active .carousel-nav-btn:active .nav-icon-wrapper i.fa-chevron-left,
.professional-swiper.white-active .carousel-nav-btn:active .nav-icon-wrapper i.fa-chevron-right {
    color: white !important;
}

.professional-swiper.blue-active .carousel-nav-btn:active .nav-icon-wrapper i.fa-chevron-left,
.professional-swiper.blue-active .carousel-nav-btn:active .nav-icon-wrapper i.fa-chevron-right {
    color: #188EC4 !important;
}





/* CICC Logo and Google Review Logo */
/* base rules for all logos */
.logo {
  display: inline-block;  /* inline-block lets width/height apply */
  max-width: 100%;
  height: auto;
  margin: 0 auto;         /* center in its container */
}

/* mobile: fluid widths */
@media screen and (max-width: 767px) {
  .logo–cicc {
    width: 80%;           /* up to 80% of container */
    max-width: 250px;
  }
  .logo–reviews {
    width: 60%;
    max-width: 180px;
    margin-top: 1rem;
  }
}

/* medium: tablets & small desktops */
@media screen and (min-width: 768px) and (max-width: 1249px) {
  .logo–cicc {
    width: 200px;
    /* or fluid if you prefer:
       width: 50%;
       max-width: 280px;
    */
  }
  .logo–reviews {
    width: 160px;
    margin-top: 0;       /* side-by-side, no extra top margin */
    /* or fluid:
       width: 40%;
       max-width: 200px;
    */
  }
}

/* large-desktop: fixed pixel widths */
@media screen and (min-width: 1250px) {
  .logo–cicc {
    width: 280px;
  }
  .logo–reviews {
    width: 200px;
  }
}

