/* Premium Modern Design System for Making Expert Visible */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background-color: #f8fafc;
    background-image: radial-gradient(rgba(148, 163, 184, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    color: #1e293b;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif !important;
}

/* Hero Banner Revamp */
.hero-banner {
    color: #222222;
    padding: 60px 40px;
    margin: 0;
    overflow: hidden;
    position: relative !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 75% 25%, rgba(20, 184, 166, 0.15) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.hero-banner>* {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -1.5px;
    line-height: 1.15;
    background: linear-gradient(to right, #0d9488 30%, #222222 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.10rem;
    opacity: 2.95;
    font-weight: 400;
    max-width: 90%;
    margin: 0 auto 40px auto;
    line-height: 1.65;
    color: #222222;
}

/* Stats Grid */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgb(13 148 136);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgb(131 131 131 / 12%);
    border-radius: 20px;
    padding: 20px 35px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: #14b8a6;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 4px;
    display: block;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

@media only screen and (min-width: 1024px) {
    .hero-banner>.row,
    .main-grid-container {
        width: 80% !important;
        max-width: none !important;
        margin-left: 10% !important;
        margin-right: 10% !important;
    }
}

/* Page Content Grid Spacing */
.main-grid-container {
    margin-top: 0;
    position: relative;
    z-index: 10;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Premium Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    padding: 35px;
    margin-bottom: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 25px;
    border-bottom: 2px solid #f8fafc;
    padding-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.card-title i {
    color: #0d9488;
    font-size: 1.5rem;
    background: #f0fdfa;
    padding: 10px;
    border-radius: 12px;
}

.total-cadre-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0fdfa;
    color: #0d9488;
    border: 1px solid #ccfbf1;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 9999px;
    cursor: default;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin-left: 2px;
    letter-spacing: 0;
}

.total-cadre-badge:hover {
    background: #0d9488;
    color: #ffffff;
    border-color: #0d9488;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

/* Form Controls */
label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    border-radius: 12px !important;
    border: 1px solid rgba(107, 107, 107, 0.8) !important;
    padding: 18px 18px !important;
    height: auto !important;
    font-size: 0.95rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus {
    background: #ffffff !important;
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1) !important;
    outline: none !important;
}

/* Buttons */
.btn-primary {
    background-color: #114B3E !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 20px 20px !important;
    font-weight: 700 !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: none !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(17, 75, 62, 0.15);
}

.btn-primary:hover {
    background-color: #0d3a30 !important;
    box-shadow: 0 12px 24px rgba(17, 75, 62, 0.3) !important;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: #f8fafc !important;
    color: #334155 !important;
    border-radius: 12px !important;
    padding: 14px 28px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.btn-primary-outline {
    background-color: transparent !important;
    color: #114B3E !important;
    border: 2px solid #114B3E !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    transition: all 0.4s ease !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-primary-outline:hover {
    background-color: #114B3E !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(17, 75, 62, 0.15) !important;
    transform: translateY(-1px);
}

/* Tabs Styling */
.portal-tabs {
    display: flex;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 25px;
    gap: 5px;
}

.portal-tab-btn {
    flex: 1;
    text-align: center;
    padding: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px 8px 0 0;
    font-size: 0.95rem;
}

.portal-tab-btn:hover {
    background-color: #f8fafc;
    color: #1e293b;
}

.portal-tab-btn.active {
    color: #114B3E;
    background-color: #ffffff;
    border-bottom: 3px solid #114B3E;
}

.portal-tab-content {
    display: none;
}

.portal-tab-content.active {
    display: block;
}

#searchResults {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Expert Card Grid */
.expert-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.expert-card:hover {
    border-color: #5eead4;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(13, 148, 136, 0.15), 0 10px 20px -5px rgba(13, 148, 136, 0.1);
    z-index: 2;
}

.expert-card:hover .hover-view-hint {
    opacity: 1 !important;
    visibility: visible !important;
}

.expert-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.expert-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: linear-gradient(135deg, #114B3E 0%, #0d9488 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
    border: 4px solid #ffffff;
    margin-top: -5px;
}

.expert-card-title-section {
    flex: 1;
}

.expert-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.expert-designation {
    font-size: 0.9rem;
    color: #0d9488;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.expert-meta {
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.expert-meta i {
    color: #94a3b8;
    font-size: 1.1rem;
    width: 18px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.badge-container {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.expert-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Training Category Badge Color Mappings */
.category-nrm {
    background: #e0f2fe;
    color: #0369a1;
}

.category-swc {
    background: #dcfce7;
    color: #15803d;
}

.category-fra {
    background: #dbeafe;
    color: #1d4ed8;
}

.category-health {
    background: #f3e8ff;
    color: #6b21a8;
}

.category-education {
    background: #fef3c7;
    color: #b45309;
}

.category-shg {
    background: #fee2e2;
    color: #b91c1c;
}

.category-other {
    background: #f1f5f9;
    color: #475569;
}

.expert-card-download-btn {
    width: auto;
    display: block;
    margin: 0 auto;
    padding: 12px 24px;
    font-size: 0.92rem;
    font-weight: 700;
    background-color: #b88235 !important;
    border-radius: 8px;
    border: none;
    color: #ffffff !important;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.expert-card-download-btn:hover {
    background-color: #0d9488 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

@media only screen and (max-width: 640px) {
    .expert-card {
        padding: 20px;
    }

    .expert-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .expert-name {
        font-size: 1.15rem;
    }
}

/* Custom CSS Modal Backdrop */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-modal-content {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
    z-index: 100;
    line-height: 1;
}

.close-modal:hover {
    color: #1e293b;
}

/* Modal Layout Styles */
.modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 30px;
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 30px;
    padding: 30px;
}

@media (max-width: 768px) {
    .modal-body-grid {
        grid-template-columns: 1fr;
    }
}

.modal-sidebar {
    border-right: 1px solid #f1f5f9;
    padding-right: 30px;
}

@media (max-width: 768px) {
    .modal-sidebar {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 30px;
    }
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h4 {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid #0d9488;
    padding-left: 8px;
}

.sidebar-section p {
    font-size: 0.92rem;
    margin-bottom: 8px;
    line-height: 1.5;
    color: #475569;
}

.modal-main-content {
    display: flex;
    flex-direction: column;
}

.modal-tabs-container {
    width: 100%;
}

.modal-tab-header {
    display: flex;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 20px;
    gap: 15px;
}

.modal-tab-btn {
    padding: 10px 15px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.modal-tab-btn.active {
    color: #0d9488;
    border-bottom-color: #0d9488;
}

#modal-trainings,
#modal-jobs,
.modal-tab-pane {
    display: none;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #0d9488 #f1f5f9;
}

#modal-trainings.active,
#modal-jobs.active,
.modal-tab-pane.active {
    display: block;
}

/* Custom scrollbars with visible scroll thumb for the tab pane */
#modal-trainings::-webkit-scrollbar,
#modal-jobs::-webkit-scrollbar,
.modal-tab-pane::-webkit-scrollbar {
    width: 10px;
}

#modal-trainings::-webkit-scrollbar-track,
#modal-jobs::-webkit-scrollbar-track,
.modal-tab-pane::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}

#modal-trainings::-webkit-scrollbar-thumb,
#modal-jobs::-webkit-scrollbar-thumb,
.modal-tab-pane::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}

#modal-trainings::-webkit-scrollbar-thumb:hover,
#modal-jobs::-webkit-scrollbar-thumb:hover,
.modal-tab-pane::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Visible scroll buttons (up and down steppers) */
#modal-trainings::-webkit-scrollbar-button:single-button,
#modal-jobs::-webkit-scrollbar-button:single-button,
.modal-tab-pane::-webkit-scrollbar-button:single-button {
    display: block;
    height: 12px;
    width: 10px;
    background-color: #e2e8f0;
}

#modal-trainings::-webkit-scrollbar-button:single-button:vertical:decrement,
#modal-jobs::-webkit-scrollbar-button:single-button:vertical:decrement,
.modal-tab-pane::-webkit-scrollbar-button:single-button:vertical:decrement {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 6px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23334155'%3E%3Cpath d='M8 4l6 6H2z'/%3E%3C/svg%3E");
}

#modal-trainings::-webkit-scrollbar-button:single-button:vertical:increment,
#modal-jobs::-webkit-scrollbar-button:single-button:vertical:increment,
.modal-tab-pane::-webkit-scrollbar-button:single-button:vertical:increment {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 6px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23334155'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
}

#modal-trainings::-webkit-scrollbar-button:single-button:hover,
#modal-jobs::-webkit-scrollbar-button:single-button:hover,
.modal-tab-pane::-webkit-scrollbar-button:single-button:hover {
    background-color: #cbd5e1;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.modal-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-align: left;
    padding: 12px;
    font-size: 0.85rem;
    border-bottom: 2px solid #e2e8f0;
}

.modal-table td {
    padding: 12px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.modal-table tr:hover {
    background-color: #f8fafc;
}

.modal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
}
.modal-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* Floating Download Bar styling */
.download-bar {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 9999px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    gap: 25px;
    z-index: 1000;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
    from {
        bottom: -100px;
        opacity: 0;
    }

    to {
        bottom: 60px;
        opacity: 1;
    }
}

/* Helper styles */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 8px;
}

.step-dot {
    flex: 1;
    height: 6px;
    background: #cbd5e1;
    border-radius: 9999px;
    transition: background-color 0.3s ease;
}

.step-dot.active {
    background: #0d9488;
}

/* General Utilities */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s;
}

.checkbox-input:checked {
    background-color: #0d9488;
    border-color: #0d9488;
}

/* Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Tab View Styling */
.tabs-navigation {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
}

.tab-btn {
    border: none;
    border-radius: 9999px;
    padding: 6px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    background: transparent;
    color: #64748b;
}

.tab-btn.active {
    background: #b88235 !important;
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(184, 130, 53, 0.2), 0 2px 4px -1px rgba(184, 130, 53, 0.1);
}

.tab-btn.active:hover {
    background: #0d9488 !important;
}

.tab-btn:hover:not(.active) {
    color: #0f172a;
    background: rgba(184, 130, 53, 0.1);
}

/* Map Popups Styles */
.leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    padding: 6px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.leaflet-popup-tip {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.map-popup-card {
    padding: 5px;
    width: 250px;
}

.map-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.map-popup-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0d9488;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    object-fit: cover;
}

.map-popup-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.map-popup-designation {
    font-size: 0.8rem;
    color: #0d9488;
    font-weight: 600;
}

.map-popup-meta {
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.35;
}

.map-popup-meta i {
    color: #94a3b8;
    width: 14px;
    text-align: center;
    margin-top: 1px;
    flex-shrink: 0;
}

.map-popup-btn {
    display: block;
    width: 100%;
    background: #0d9488;
    color: #ffffff !important;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.map-popup-btn:hover {
    background: #0b7a70;
}

/* Snapchat-style Custom Avatar Pin styling */
.custom-map-pin {
    position: relative;
    width: 48px;
    height: 48px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-avatar-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0d9488;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.pin-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-map-pin:hover .pin-avatar-wrapper {
    transform: scale(1.15);
    border-color: #2dd4bf;
    background: #0b7a70;
}

/* Glowing pulse effect */
.custom-map-pin::after {
    content: '';
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #0d9488;
    animation: pinPulse 2s infinite ease-out;
    pointer-events: none;
    z-index: -1;
}

@keyframes pinPulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Tail at the bottom of the pin */
.pin-tail {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
    z-index: 2;
    transition: border-top-color 0.2s;
}

.custom-map-pin:hover .pin-tail {
    border-top-color: #2dd4bf;
}

/* Override default Leaflet background/border for custom divIcon */
.leaflet-custom-icon {
    background: transparent !important;
    border: none !important;
}

/* Floating status badge beacon animation */
@keyframes beaconPulse {
    0% {
        transform: scale(0.85);
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(13, 148, 136, 0);
    }
    100% {
        transform: scale(0.85);
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
    }
}

/* Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    width: 100%;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pagination-btn:hover:not(:disabled) {
    border-color: #0d9488;
    color: #0d9488;
    background: rgba(13, 148, 136, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
}

.pagination-btn.active {
    background: #0d9488;
    color: #ffffff;
    border-color: #0d9488;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.pagination-ellipsis {
    color: #94a3b8;
    font-weight: 700;
    padding: 0 8px;
    font-size: 1.1rem;
}

/* Map Search Overlay Styling */
.map-search-overlay {
    position: absolute;
    top: 15px;
    left: 55px;
    z-index: 1000;
    max-width: 480px;
    width: calc(100% - 70px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Map Controls Styling */
.map-controls-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(13, 148, 136, 0.25);
    padding: 6px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 6px;
    transition: all 0.3s ease;
}

.map-ctrl-btn {
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    outline: none;
}

.map-ctrl-btn i {
    font-size: 1rem;
    vertical-align: middle;
}

.map-ctrl-btn:hover:not(.active) {
    background: rgba(184, 130, 53, 0.1);
    color: #b88235;
}

.map-ctrl-btn.active {
    background: #b88235 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(184, 130, 53, 0.25);
}

.map-ctrl-btn.active:hover {
    background: #0d9488 !important;
}

/* Button Base Colors: #b88235 */
#btnApplyFilters,
#btnApplyFilters2,
.btn-explore-action,
.btn-register-action,
#btnSecureDownload,
#btnSendDownloadOTP,
#btnVerifyDownloadOTP,
#excelBtn {
    background-color: #b88235 !important;
    border-color: #b88235 !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

/* Button Hover Color Transitions: #b88235 -> #0d9488 */
#btnApplyFilters:hover,
#btnApplyFilters2:hover,
.btn-explore-action:hover,
.btn-register-action:hover,
#btnSecureDownload:hover,
#btnSendDownloadOTP:hover,
#btnVerifyDownloadOTP:hover,
#excelBtn:hover {
    background-color: #0d9488 !important;
    border-color: #0d9488 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3) !important;
}

.btn-reset-filters {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-reset-filters:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
    transform: translateY(-1px);
}

/* Mobile and Tablet Responsiveness Overrides */
@media only screen and (max-width: 768px) {
    html, body, .main-wrapper {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .hero-banner {
        padding: 25px 12px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .hero-banner > .row {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    .hero-title {
        font-size: 1.85rem !important;
        letter-spacing: -0.5px !important;
        word-break: break-word !important;
    }
    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
        max-width: 100% !important;
    }
    .hero-search-container {
        padding: 16px 12px !important;
        margin-bottom: 25px !important;
        border-radius: 16px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .stats-container {
        gap: 12px !important;
        margin-top: 25px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .stat-item {
        max-width: 100% !important;
        width: 100% !important;
        flex: 1 1 100% !important;
        padding: 14px 16px !important;
        box-sizing: border-box !important;
    }
    .stat-number {
        font-size: 1.8rem !important;
    }
    #indiaMap {
        height: 380px !important;
        max-width: 100% !important;
    }
    .map-controls-container {
        top: 8px !important;
        right: 8px !important;
        padding: 4px !important;
        max-width: calc(100% - 16px) !important;
        flex-wrap: wrap !important;
    }
    .map-search-overlay {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 12px !important;
    }
    .map-ctrl-btn {
        padding: 5px 8px !important;
        font-size: 0.72rem !important;
    }
    .main-grid-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    .glass-card {
        padding: 18px 12px !important;
        border-radius: 16px !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    .explore-info-card,
    .network-info-card {
        padding: 20px 14px !important;
        border-radius: 16px !important;
        margin: 20px auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .explore-info-card .row,
    .network-info-card .row {
        gap: 16px !important;
        flex-direction: column !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .explore-info-card .columns,
    .network-info-card .columns {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .explore-image-card {
        height: 200px !important;
        width: 100% !important;
    }
    .download-bar {
        bottom: 15px !important;
        width: calc(100% - 20px) !important;
        max-width: 420px !important;
        padding: 10px 14px !important;
        gap: 8px !important;
        font-size: 0.82rem !important;
        border-radius: 14px !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }
    .download-bar button.btn-primary {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    .row {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .columns, .column {
        box-sizing: border-box !important;
    }
}

@media only screen and (max-width: 640px) {
    #searchForm .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        margin: 0 !important;
    }
    #searchForm .columns {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }
    #searchForm .columns:not(:last-child) {
        margin-bottom: 12px !important;
    }
    #btnApplyFilters {
        width: 100% !important;
        justify-content: center !important;
    }
    #btnAdvancedSearch {
        font-size: 0.85rem !important;
    }
    #searchForm2 > div {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    #searchForm2 > div > div {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    #btnApplyFilters2 {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media only screen and (max-width: 480px) {
    .hero-banner {
        padding: 18px 8px !important;
    }
    .hero-title {
        font-size: 1.5rem !important;
    }
    .glass-card {
        padding: 14px 8px !important;
    }
    .glass-card .card-title {
        font-size: 1.15rem !important;
    }
    .tabs-navigation .tab-btn {
        padding: 5px 10px !important;
        font-size: 0.78rem !important;
    }
    .btn-reset-filters {
        padding: 5px 10px !important;
        font-size: 0.78rem !important;
    }
    .btn-explore-action,
    .btn-register-action {
        width: 100% !important;
        padding: 10px 18px !important;
    }
}

/* General Layout Optimization */
.expert-card-header {
    padding-right: 35px !important;
}

/* Animated Interactive Image Cards */
.explore-image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border: 1px solid #cbd5e1;
    height: 320px;
    background: #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.explore-image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
    border-color: #0d9488;
}

.explore-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-image-card:hover img {
    transform: scale(1.08);
}

.explore-image-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 75, 62, 0.7) 0%, rgba(17, 75, 62, 0.1) 60%, transparent 100%);
    transition: background 0.4s ease;
}

.explore-image-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(17, 75, 62, 0.85) 0%, rgba(17, 75, 62, 0.2) 60%, transparent 100%);
}

.explore-image-card .card-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Outfit', sans-serif;
    transition: transform 0.4s ease;
}

.explore-image-card:hover .card-caption {
    transform: translateY(-3px);
}

/* Scroll Offset Anchor Fix for Fixed Header & Viewport Reach */
#mapViewContainer {
    position: relative;
    min-height: calc(100vh - 90px);
}

#indiaMap {
    min-height: 480px;
}

#profile,
#mapViewContainer,
#listViewContainer {
    scroll-margin-top: 80px;
}

#indiaMap:focus,
.leaflet-container:focus {
    outline: none !important;
}

@media only screen and (max-width: 640px) {
    #indiaMap {
        height: calc(100vh - 170px) !important;
        min-height: 450px !important;
        max-width: 100% !important;
    }
}

/* Hide spiderfy lines connecting clustered markers */
.leaflet-cluster-spider-leg {
    display: none !important;
    stroke-opacity: 0 !important;
    opacity: 0 !important;
}