/* Doctors Listing Page Styles */

/* Doctors Hero */
.doctors-hero {
   background: url('<?php echo get_stylesheet_directory_uri(); ?>/assets/images/bgmain.png') !important;
    padding: 60px 0px;
    background-color: #352d74;
}

.doctors-hero-title {
    font-family: "Inter-SemiBold", sans-serif;
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 0;
    font-weight: 600;
    text-align: left;
}



/* Common Search Design Overlap */
.common-search-section {
    position: relative;
    margin-top: -35px;
    z-index: 20;
}

.common-search-wrapper {
    max-width: 800px;
    margin: 0;
}

.home-common-search-wrapper {
    margin: auto !important;
}

.common-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 16px 24px;
    box-shadow: 0px 2px 32px 0px #0000001A;
    transition: all 0.3s ease;
    border: 1.5px solid #352D74;
}

.common-search-bar .search-icon {
    font-size: 20px;
    color: #352D74;
    margin-right: 15px;
    flex-shrink: 0;
}

.common-search-bar .search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #1F2937;
    background: transparent;
    font-family: inherit;
}

.common-search-bar .search-input::placeholder {
    color: #352D74;
    font-family: "Inter-Regular", sans-serif;
    font-size: 16px;
}

/* Doctors Content Section */
.doctors-content-section {
    background: #ffffff;
    padding-top: 80px;
}

/* Doctors List Header */
.doctors-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}



.results-count {
    margin-bottom: 0;
}


.results-count h3 {
    font-family: "Inter-Medium", sans-serif;
    font-size: 20px;
    color: #000000;
}

/* Filter Section Refinement */
.doctors-filter-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.filter-dropdowns {
    display: flex;
    gap: 15px;
}

/* Custom Dropdown Styling */

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-header {
    min-width: 350px;
    padding: 12px 20px;
    border: 1.25px solid #352D74;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    user-select: none;
}

.dropdown-header.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.selected-value {
    font-family: "Inter-Regular", sans-serif;
    font-size: 16px;
    color: #352D74;
}

.dropdown-arrow {
    color: #352D74;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1.25px solid #352D74;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 12px 20px;
    font-family: "Inter-Regular", sans-serif;
    font-size: 16px;
    color: #555555;
    cursor: pointer;
    border-bottom: 1px solid #F3F4F6;
    transition: all 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #F9FAFB;
    color: #352D74;
}

.dropdown-item.active {
    color: #352D74;
    font-weight: 500;
}


/* Specialty Groups */
.specialty-group {
    margin-bottom: 80px;
}

.specialty-group-title {
    font-family: "Inter-Medium", sans-serif;
    font-size: 20px;
    color: #000000;
    margin-bottom: 15px;
}

.specialty-divider {
    width: 100%;
    height: 1.5px;
    background: #E5E7EB;
    margin-bottom: 50px;
    position: relative;
}

.specialty-divider::after {
    content: '';
    position: absolute;
    left: 0;
    top: -1.5px;
    width: 80px;
    height: 2px;
    background: #352D74;
    border-radius: 10px;
}



/* Doctors Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Horizontal Doctor Card Styles */
.doctor-card-horizontal {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    padding: 20px;
    gap: 25px;
    height: 100%;
    transition: all 0.3s ease;
}

.doctor-card-horizontal:hover {
    box-shadow: 0 8px 24px rgba(53, 45, 116, 0.08);
}

.doctor-card-left {
    flex-shrink: 0;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-photo-container {
    width: 200px;
    height: 220px;
    border-radius: 100px;
    background: linear-gradient(91.08deg, #2E2A5C 0.53%, #352D74 43.65%, #C2337B 61.54%, #AD3278 98.7%);

    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 20px;
}

/* .doctor-photo {
    width: 150px;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
} */

.doctor-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doctor-card-horizontal .doctor-card-name {
    font-family: "Inter-SemiBold", sans-serif;
    font-size: 20px;
    color: #000000;
    margin-bottom: 8px;
    font-weight: 600;
}

.doctor-card-horizontal .doctor-card-designation {
    font-family: "Inter-Regular", sans-serif;
    font-size: 15px;
    color: #352D74;
    margin-bottom: 12px;
}

.doctor-card-horizontal .doctor-card-experience {
    font-family: "Inter-Regular", sans-serif;
    font-size: 14px;
    color: #352D74;
    margin-bottom: 8px;
}

.doctor-card-horizontal .doctor-card-experience strong {
    font-weight: 600;
}

.doctor-card-horizontal .doctor-card-qualification {
    font-family: "Inter-Regular", sans-serif;
    font-size: 14px;
    color: #717171;
    margin-bottom: 12px;
}

.doctor-card-horizontal .doctor-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Inter-Regular", sans-serif;
    font-size: 14px;
    color: #717171;
    margin-bottom: 15px;
}

.doctor-card-horizontal .location-icon {
    flex-shrink: 0;
}

.doctor-card-horizontal .doctor-card-divider {
    height: 1px;
    background-color: #D0D5FF;
    margin: 0 0 15px 0;
}

.doctor-card-horizontal .doctor-card-actions {
    display: flex;
    gap: 15px;
}

.doctor-card-horizontal .doctor-action-btn {
    padding: 8px 16px;
    border-radius: 50px;
    font-family: "Inter-Medium", sans-serif;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #352D74;
    color: #352D74;
    background: transparent;
    white-space: nowrap;
}

.doctor-card-horizontal .doctor-action-btn.view-profile {
    gap: 6px;
}

.doctor-card-horizontal .doctor-action-btn:hover {
    background: #352D74;
    color: #ffffff;
}


/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results p {
    font-family: "Inter-Regular", sans-serif;
    font-size: 16px;
    color: #6B7280;
}

/* Specialty Swiper Customization */
.specialists-swiper-container {
    position: relative;
    padding: 0 10px;
}

.specialists-swiper {
    padding: 10px 0 30px;
}

.spec-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(53, 45, 116, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.spec-nav-btn:hover {
    background: #4A3C8A;
    transform: translateY(-50%) scale(1.1);
}

.spec-nav-btn.disabled {
    display: none !important;
    pointer-events: none;
}

.spec-prev {
    left: -24px;
}

.spec-next {
    right: -24px;
}

.spec-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spec-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #D1D5DB;
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.spec-pagination .swiper-pagination-bullet-active {
    background: #352D74;
    width: 24px;
    border-radius: 4px;
}

@media screen and (max-width: 1200px) {
    .doctor-card-left {
        width: 160px;
    }
}

/* Visibility Utilities */
@media screen and (min-width: 992px) {
    .mobile-only {
        display: none !important;
    }
    .mobile-only-flex {
        display: none !important;
    }
}

@media screen and (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }

    .doctor-card-horizontal {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .doctor-card-right {
        align-items: center;
    }

    .doctor-card-left {
        width: 200px;
    }

    .doctor-card-horizontal .doctor-card-designation {
        text-align: center;
    }

    .spec-nav-btn {
        display: none !important;
    }
}

/* Responsive Design Overrides */
@media screen and (max-width: 991px) {
    .doctors-hero-title {
        font-size: 36px;
    }

    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .common-search-bar .search-input {
        font-size: 14px;
    }

    .common-search-bar .search-input::placeholder {
        font-size: 14px;
    }

    .filter-dropdowns {
        flex-direction: column !important;
    }

    .doctors-list-header {
        flex-direction: column !important;
    }

    .doctors-filter-section {
        margin-top: 20px !important;
    }

    .dropdown-header {
        min-width: 100% !important;
    }
}


@media screen and (max-width: 640px) {
    .doctors-hero {
        padding: 40px 0;
    }

    .doctors-hero-title {
        font-size: 28px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .doctors-filter-section {
        padding: 20px;
    }

    .filter-search-bar .search-input {
        padding: 14px 16px 14px 48px;
        font-size: 14px;
    }

    .doctor-action-btn {
        font-size: 12px;
    }

    .doctors-content-section {
        padding-top: 40px;
    }
}

/* Mobile Controls Additions */
.mobile-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding: 0 8px;
}

.btn-mobile-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background-color: #352D74;
    color: white;
}

.btn-mobile-nav:disabled, .btn-mobile-nav.disabled {
    background-color: #D1D5DB;
    cursor: not-allowed;
}

.dots-container {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.keen-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D1D5DB;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    cursor: pointer;
}

.keen-dot.active {
    background-color: #2E2A72;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.doctor-photo {
    width: 200px;
    object-fit: cover;
    object-position: top;
}