/* :root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-color: #6b7280;
} */


:root {
    --primary-color: #6366f1;
    /* Indigo */
    --secondary-color: #4338ca;
    /* Deep Indigo */
    --accent-color: #818cf8;
    /* Soft Accent */
    --success-color: #10b981;
    /* Emerald */
    --warning-color: #fbbf24;
    /* Amber */
    --danger-color: #f43f5e;
    /* Rose Red */
    --dark-color: #0f172a;
    /* Slate Dark */
    --light-color: #f9fafb;
    /* Soft White */
    --gray-color: #94a3b8;
    /* Cool Gray */
}

/* Brand Animations */
@keyframes brandSlideUp {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-3px) rotate(10deg);
    }
}

@keyframes textShimmer {
    0% {
        background-position: -100% center;
    }

    100% {
        background-position: 100% center;
    }
}

.animate-site-name {
    display: inline-block;
    animation: brandSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    background: linear-gradient(to right,
            #ffffff 0%,
            #d1d5db 20%,
            #ffffff 40%,
            #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
        brandSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
        textShimmer 4s linear infinite;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-logo {
    animation: logoFloat 4s ease-in-out infinite;
    color: #ffd700;
    /* Golden color for the scale */
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
    transition: all 0.3s ease;
}

.navbar-brand {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.2) rotate(360deg);
    color: #ffffff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-search-attractive {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.btn-search-attractive:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.4);
}

.btn-search-attractive:active {
    transform: translateY(0) scale(0.98);
}

.hero-search-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    padding: 15px 0 40px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-search-section::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.filter-glass-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group i {
    position: absolute;
    left: 15px;
    color: var(--gray-color);
}

.search-input-group .form-control {
    padding-left: 45px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.filter-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

#search-results-wrapper {
    position: relative;
    z-index: 20;
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.select2-container--default .select2-selection--multiple {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 2px 10px;
    min-height: 48px;
    max-height: 120px;
    overflow-y: auto;
    background: white;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--primary-color) !important;
    border: none !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 2px 8px !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    margin-right: 4px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
}

@media (max-width: 576px) {
    .select2-container--default .select2-selection--multiple .select2-selection__choice {
        font-size: 0.75rem !important;
        padding: 1px 6px !important;
    }
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white !important;
    margin-right: 5px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    margin-top: 4px !important;
    height: 32px !important;
    line-height: 32px !important;
}

/* Ensure placeholder is visible and well-aligned */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 !important;
    width: 100%;
}

.select2-container .select2-selection--multiple .select2-selection__placeholder {
    margin-top: 4px !important;
    line-height: 32px !important;
    color: var(--gray-color) !important;
}

.advocate-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.advocate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.advocate-card .card-img-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.advocate-card .card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advocate-card .featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--warning-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.advocate-card .premium-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    animation: pulse-crown 2s ease-in-out infinite;
}

@keyframes pulse-crown {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.advocate-card .card-body {
    padding: 20px;
}

.advocate-card .advocate-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.advocate-card .advocate-specialization {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.advocate-card .advocate-location {
    color: var(--gray-color);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.advocate-card .advocate-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    margin-top: 15px;
}

.advocate-card .stat-item {
    text-align: center;
}

.advocate-card .stat-value {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

.advocate-card .stat-label {
    font-size: 0.75rem;
    color: var(--gray-color);
}

.rating-stars {
    color: var(--warning-color);
}

/* Featured Slider Styles */
.featured-slider-section {
    background: #f8fafc;
}

.featured-slider-container {
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.featured-slider-container::-webkit-scrollbar {
    height: 4px;
}

.featured-slider-container::-webkit-scrollbar-track {
    background: transparent;
}

.featured-slider-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.featured-slider-container:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: white;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
    width: 25px;
    border-radius: 5px;
}

.slider-arrow.prev {
    left: -10px;
}

.slider-arrow.next {
    right: -10px;
}

#featured-slider {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: 25%;
    transition: all 0.5s ease-in-out;
}

.featured-slide-card {
    padding: 10px;
}

@media (max-width: 1200px) {
    #featured-slider {
        grid-auto-columns: 33.333%;
    }
}

@media (max-width: 991px) {
    #featured-slider {
        grid-auto-columns: 50%;
    }
}

@media (max-width: 767px) {
    #featured-slider {
        grid-auto-columns: 85%;
        gap: 10px;
        padding: 5px;
    }
}

@media (max-width: 575px) {
    #featured-slider {
        grid-auto-columns: 100%;
    }
}

.advocate-card-small {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

/* New Banner Style Card - Optimized for Multi-Row */
/* Minimal Advocate Card Design */
.advocate-banner-card {
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 12px;
}

.advocate-banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.banner-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.banner-img-container {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    position: relative;
}

.banner-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-info {
    flex-grow: 1;
    min-width: 0;
    padding-top: 5px;
}

.banner-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    line-height: 1.2;
}

.banner-qualification {
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.banner-specializations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 5px;
}

.spec-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.spec-badge:hover {
    background: var(--primary-color);
    color: white;
}

.banner-actions-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

/* Icon-style View Profile Button */
.btn-view-profile {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    flex-grow: 0;
}

.btn-view-profile:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.social-actions {
    display: flex;
    gap: 8px;
}

.social-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.social-action-btn:hover {
    color: var(--primary-color);
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.social-action-btn.liked {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.social-action-btn.liked:hover {
    background-color: #dc2626;
    /* Darker red on hover */
    border-color: #dc2626;
    color: white;
}

.premium-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: 2px solid white;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    top: auto;
    /* Reset top */
}

@media (max-width: 767px) {
    .banner-content-wrapper {
        gap: 12px;
        margin-bottom: 10px;
    }

    .banner-img-container {
        width: 55px;
        height: 55px;
    }

    .banner-name {
        font-size: 1.1rem;
    }

    .btn-view-profile {
        width: 36px;
        height: 36px;
    }

    .social-action-btn {
        width: 36px;
        height: 36px;
    }
}







/* Advertisement Section Styles */
.ad-big-container img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ad-small-container img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ad-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.ad-placeholder-small {
    width: 100%;
    aspect-ratio: 4 / 3;
}

/* Advertisement Overlays & Captions */
.ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    transition: all 0.3s ease;
}

.ad-big-container:hover .ad-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.ad-small-caption {
    transition: transform 0.3s ease;
}

.ad-small-container:hover .ad-small-caption {
    transform: translateY(-5px);
}

.x-small {
    font-size: 0.7rem;
}

.bg-opacity-75 {
    background-color: rgba(0, 0, 0, 0.75) !important;
}

.transition-all {
    transition: all 0.5s ease-in-out;
}

.load-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.pagination-section {
    margin-top: 30px;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #e5e7eb;
    padding: 10px 18px;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light-color) 0%, #e0e7ff 100%);
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    width: 250px;
    padding: 20px 0;
    transition: all 0.3s ease;
    z-index: 1050;
    flex-shrink: 0;
    overscroll-behavior: contain;
}

@media (max-width: 991.98px) {
    .dashboard-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 250px;
        transform: translateX(-100%);
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: none;
        /* Let d-none handle it, but we'll override it with mobile-show */
    }

    .dashboard-sidebar.mobile-show {
        display: block !important;
        transform: translateX(0);
        visibility: visible;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 1040;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .sidebar-overlay.show {
        visibility: visible;
        opacity: 1;
    }
}

.dashboard-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 25px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.stats-card.success {
    background: linear-gradient(135deg, #059669 0%, var(--success-color) 100%);
}

.stats-card.warning {
    background: linear-gradient(135deg, #d97706 0%, var(--warning-color) 100%);
}

.stats-card.danger {
    background: linear-gradient(135deg, #dc2626 0%, var(--danger-color) 100%);
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
}

.stats-card .stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: var(--primary-color);
    color: white;
}

.table th {
    font-weight: 600;
    padding: 15px;
    border: none;
}

.table td {
    padding: 15px;
    vertical-align: middle;
}

.badge-pending {
    background: var(--warning-color);
}

.badge-approved {
    background: var(--success-color);
}

.badge-rejected {
    background: var(--danger-color);
}

.profile-image-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid var(--primary-color);
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alert {
    border-radius: 10px;
    border: none;
}

.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .filter-section {
        margin-top: 0;
        border-radius: 0;
    }
}

@media (min-width: 992px) {
    .col-lg-custom-8 {
        flex: 0 0 auto;
        width: 12.5%;
    }

    /* Compact card styles for 8-column layout */
    .col-lg-custom-8 .advocate-card .card-body {
        padding: 10px;
    }

    .col-lg-custom-8 .advocate-card .advocate-name {
        font-size: 0.9rem;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .col-lg-custom-8 .advocate-card .advocate-specialization {
        font-size: 0.75rem;
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .col-lg-custom-8 .advocate-card .advocate-location {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }

    .col-lg-custom-8 .rating-stars {
        font-size: 0.7rem;
    }

    .col-lg-custom-8 .advocate-card .advocate-stats {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
        padding-top: 10px;
        margin-top: 10px;
    }

    .col-lg-custom-8 .advocate-card .stat-item {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2px;
    }

    .col-lg-custom-8 .advocate-card .stat-label {
        font-size: 0.65rem;
        text-align: left;
    }

    .col-lg-custom-8 .advocate-card .stat-value {
        font-size: 0.8rem;
        text-align: right;
    }

    .col-lg-custom-8 .advocate-card .stat-item:last-child {
        margin-top: 5px;
        justify-content: center;
    }

    .col-lg-custom-8 .btn-sm {
        font-size: 0.75rem;
        padding: 4px 10px;
        width: 100%;
    }

    .col-lg-custom-8 .card-img-container {
        padding-top: 100%;
        /* Keep aspect ratio */
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .filter-section {
        padding: 20px;
    }

    .advocate-card .advocate-stats {
        flex-wrap: wrap;
        gap: 10px;
    }

    .dashboard-sidebar {
        min-height: auto;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .auth-card {
        margin: 20px;
    }
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 30px;
}

.loading-spinner.active {
    display: block;
}

.no-results {
    text-align: center;
    padding: 50px 20px;
    color: var(--gray-color);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.view-toggle .btn {
    padding: 8px 15px;
}

.view-toggle .btn.active {
    background: var(--primary-color);
    color: white;
}

.list-view .advocate-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.list-view .advocate-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.list-view .advocate-info {
    flex: 1;
}

.contact-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-section .form-control {
    pointer-events: auto !important;
    cursor: text !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    position: relative;
    z-index: 1;
}

.contact-section .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.contact-section textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.about-section {
    padding: 80px 0;
}

.about-feature {
    text-align: center;
    padding: 30px;
}

.about-feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Advocate Banner Card Styles */
.advocate-banner-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    height: 100%;
    padding: 10px;
}

.advocate-banner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.advocate-banner-card .card-img-container {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-right: 15px;
}

.advocate-banner-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advocate-banner-card .card-body {
    flex: 1;
    padding: 0;
    min-width: 0;
    /* Prevent text overflow */
}

.advocate-banner-card .advocate-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.advocate-banner-card .advocate-specialization {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.advocate-banner-card .advocate-location {
    color: var(--gray-color);
    font-size: 0.8rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.advocate-banner-card .rating-stars {
    font-size: 0.75rem;
    margin-bottom: 0;
}

.advocate-banner-card .advocate-actions {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    min-width: 100px;
    border-left: 1px solid #f3f4f6;
    padding-left: 15px;
}

.advocate-banner-card .stat-badge {
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 4px;
}

.advocate-banner-card .btn-view {
    font-size: 0.8rem;
    padding: 6px 12px;
    width: 100%;
    text-align: center;
    border-radius: 6px;
}

.advocate-banner-card .featured-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
}

@media (max-width: 767px) {
    .advocate-banner-card {
        /* flex-direction: column;  REMOVED to keep banner view on mobile */
        /* text-align: center; REMOVED */
        padding: 10px;
        /* Reduced padding */
    }

    .advocate-banner-card .card-img-container {
        margin-right: 15px;
        /* Restored margin */
        margin-bottom: 0;
        /* Removed bottom margin */
        width: 70px;
        /* Slightly smaller on mobile */
        height: 70px;
        flex: 0 0 70px;
        /* Prevent shrinking/growing */
    }

    .advocate-banner-card .advocate-actions {
        margin-left: 10px;
        /* Reduced margin */
        margin-top: 0;
        border-left: 1px solid #f3f4f6;
        /* Restore border */
        padding-left: 10px;
        border-top: none;
        /* Remove top border */
        padding-top: 0;
        width: auto;
        /* Auto width */
        flex-direction: column;
        /* Keep actions vertical or maybe row if space allows? Let's keep column for compactness */
        justify-content: center;
        align-items: stretch;
        /* Stretch buttons */
        min-width: 80px;
    }
}


/* --- UI Improvements --- */

/* Scrolling Component */
.scrolling-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 20px;
    /* Space for scrollbar */
    scrollbar-width: thin;
}

.scrolling-wrapper::-webkit-scrollbar {
    height: 8px;
}

.scrolling-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.scrolling-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.scrolling-wrapper .advocate-card-small {
    flex: 0 0 auto;
    width: 200px;
    /* Reduced width for vertical card */
}

/* Small Advocate Card - Now Banner Style */
.advocate-card-small {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    display: block;
}

.advocate-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.advocate-card-small .card-img-container {
    position: relative;
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    padding-top: 0;
}

.advocate-card-small {
    animation: border-pulse 3s infinite alternate;
}

@keyframes border-pulse {
    0% {
        border-color: #eee;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    100% {
        border-color: var(--warning-color);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
    }
}

.advocate-card-small .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: static;
    /* Override absolute */
}

/* Featured Badge in absolute corner of card, optional override */
.advocate-card-small .featured-badge {
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
}



/* Enhanced Premium Badge */
.premium-icon-large {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-left: 5px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Dashboard Published Cases */
.published-cases-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Modern Profile Page Styles */
.profile-modern-container {
    background: #fdfdfd;
}

.profile-header-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    border-radius: 24px;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.2);
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.profile-main-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.modern-profile-img-wrap {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    position: relative;
}

.modern-profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.verified-badge-large {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--success-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 4px solid #111827;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-header-info {
    flex-grow: 1;
}

.profile-name-status {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.profile-name-status h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.profile-specialization-tag {
    font-size: 1.1rem;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 15px;
}

.profile-location-text {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-stats-row {
    display: flex;
    gap: 30px;
}

.stat-item-modern {
    display: flex;
    flex-direction: column;
}

.stat-item-modern .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.stat-item-modern .value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Detail Cards */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.detail-card-modern {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    height: 100%;
}

.detail-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.icon-box-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.detail-card-modern h6 {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.detail-card-modern .detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

/* Section Icons */
.section-header-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.section-header-modern i {
    color: var(--primary-color);
}

.section-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #1e293b;
}

/* Sidebar Custom Link Actions */
.profile-action-sidebar {
    position: sticky;
    top: 100px;
}

.action-card-modern {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.modern-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modern-btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.price-card-modern {
    background: #f8fafc;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-row .label {
    color: #64748b;
    font-size: 0.9rem;
}

.price-row .price {
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .profile-main-flex {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-header-card {
        padding: 30px 20px;
    }

    .profile-name-status {
        justify-content: center;
    }

    .profile-name-status h1 {
        font-size: 2rem;
    }

    .header-stats-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-action-sidebar {
        position: static;
        margin-top: 20px;
    }
}

/* General Responsiveness Enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .filter-glass-container {
        padding: 20px;
    }

    .hero-search-section {
        padding: 60px 0;
    }

    .hero-search-section::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Utility to ensure Select2 works well on mobile */
.select2-container {
    width: 100% !important;
}

img {
    max-width: 100%;
    height: auto;
}

/* Ultra-Premium Registration Button */
.btn-register-premium {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
    background-size: 200% auto;
    color: white !important;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    z-index: 1;
}

.btn-register-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
    background-position: right center;
}

.btn-register-premium:active {
    transform: translateY(0) scale(0.98);
}

.btn-register-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: all 0.6s ease;
}

.btn-register-premium:hover::before {
    left: 150%;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Modern Navbar Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px;
    margin-top: 10px !important;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    animation: dropdownSlideUp 0.3s ease forwards;
}

@keyframes dropdownSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Dashboard UI Utilities */
.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.custom-table thead th {
    background-color: #f8fafc;
    border-top: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #64748b;
    padding: 15px 20px;
}

.custom-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

/* Soft Backgrounds */
.bg-soft-primary {
    background-color: rgba(99, 102, 241, 0.1) !important;
    color: #6366f1 !important;
}

.bg-soft-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.bg-soft-info {
    background-color: rgba(14, 165, 233, 0.1) !important;
    color: #0ea5e9 !important;
}

.bg-soft-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
}

.bg-soft-danger {
    background-color: rgba(244, 63, 94, 0.1) !important;
    color: #f43f5e !important;
}

/* Rounded Pills */
.badge.rounded-pill {
    padding: 0.5em 1.25em;
    font-weight: 600;
}