.all-doctors-section {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.all-doctors-container {
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.all-doctors-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.all-doctors-text {
    width: 575px;
}

.all-doctors-title {
    display: flex;
    gap: 8px;
    height: 48px;
}

.all-doctors-title-main {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 100%;
    color: #E8E6D4;
}

.all-doctors-title-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 40px;
    line-height: 100%;
    color: var(--color-orange);
}

.all-doctors-description {
    margin-top: 20px;
    width: 575px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    color: #E8E6D4;
}

.all-doctors-cards-wrapper {
    /* width: 1200px; */
    margin: 0;
    /* overflow: hidden; */
}

.all-doctor-filter-form {
    margin: 40px 0 20px;
}

.all-doctors-cards-track {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 10px;
    transition: transform 0.4s ease;
    will-change: transform;
    /* padding: 0 20px; */
    /* align-items: baseline; */
    align-content: stretch;
}

.all-doctor-card {
    display: flex;
    flex-direction: column;
    width: 282px;
    height: 429px;
    background-color: #E8E6D4;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    padding-bottom: 20px;
    gap: 10px;
    flex-shrink: 0;
}

.all-doctor-photo {
    width: 282px;
    height: 282px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.all-doctor-info {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    gap: 0;
}

.all-doctor-name {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -0.01em;
    color: #18383C;
    margin-top: 10px;
    margin-bottom: 10px;
    height: 19px;
}

.all-doctor-description {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -0.01em;
    color: #18383C;
    height: 51px;
    margin-bottom: 20px;
}

.all-doctor-experience {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--color-orange);
    height: 17px;
    margin-bottom: 20px;
}

/* ===== Фильтры ===== */
.all-doctors-filter-wrapper {
    /* width: 1200px; */
    /* height: 188px; */
    margin: 0 auto;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.all-doctors-filter-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* padding: 0 20px; */
}

.all-doctors-filter-heading {
    display: flex;
    gap: 8px;
    height: 48px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.all-heading-main {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 100%;
    color: #E8E6D4;
}

.all-heading-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 40px;
    line-height: 100%;
    color: var(--color-orange);
}

.all-doctors-filter-controls {
    display: flex;
    gap: 10px;
}

.all-filter-wrapper {
    position: relative;
    width: 40%;
    z-index: 1;
}

.all-filter-wrapper.active {
    z-index: 1000;
}

.all-filter-button {
    position: relative;
    width: 100%;
    height: 50px;
    border: 1px solid #E8E6D4;
    border-radius: 6px;
    background-color: rgba(132, 168, 172, 0.1);
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.3s ease, border-radius 0.3s ease, border-bottom 0.3s ease;
}

.all-filter-button:hover, .all-filter-button:focus, .all-filter-button.active, .all-filter-wrapper.active .all-filter-button {
    background-color: #E8E6D433;
    border-color: #E8E6D4;
}

.all-filter-wrapper.active .all-filter-button {
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

.all-arrow-icon {
    width: 10px;
    height: 5px;
    margin-left: auto;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.all-filter-wrapper.active .all-arrow-icon {
    transform: rotate(180deg);
}

.all-filter-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #E8E6D4;
    pointer-events: none;
}

.all-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #18383C;
    border: 1px solid #E8E6D4;
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.all-filter-wrapper.active .all-filter-dropdown {
    max-height: 350px;
    /* Убедись, что это значение достаточно для всех вариантов */
    opacity: 1;
    transform: translateY(0);
    display: block;
    /* Скрытие или отображение выпадающего списка */
}

.all-filter-option {
    width: 430px;
    height: 49px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 400;
    color: #E8E6D499;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

.all-filter-option:hover, .all-filter-option.selected {
    background-color: #E8E6D433;
    color: #E8E6D4;
}

.all-filter-wrapper[data-filter="clinic_address"] .all-filter-dropdown {
    max-height: 300px;
    overflow-y: auto;
}

.all-filter-wrapper[data-filter="clinic_address"] .all-filter-dropdown::-webkit-scrollbar {
    width: 2px;
}

.all-filter-wrapper[data-filter="clinic_address"] .all-filter-dropdown::-webkit-scrollbar-thumb {
    background-color: #E8E6D433;
    border-radius: 2px;
}

.all-filter-wrapper[data-filter="clinic_address"] .all-filter-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.all-find-doctor-button {
    width: 18%;
    /* height: 50px; */
    /* line-height: 50px; */
    /* margin-left: 10px; */
    /* text-align: center; */
    /* padding: 0; */
}

/* ==== Редактирование секций ==== */
/* Секция doctors */
.page-id-127 .all-doctors-section {
    
  margin-top: 100px;
    padding: 100px 0 0 0;
}

@media screen and (max-width: 767px) {
    .all-doctor-filter-form{
        margin: 20px 0;
    }
    .all-doctors-filter-controls {
        flex-direction: column;
    }
    .all-find-doctor-button,
    .all-filter-wrapper{
        width: 50%;
    }
    .all-doctors-cards-section .doctor-card{
        width: calc( 50% - 5px );
    }
    .all-doctors-cards-section .doctor-photo{
        width: 100%;
        height: 50vw;
    }
}

@media screen and (max-width: 460px) {
    .all-doctors-cards-section .doctor-card,
    .all-find-doctor-button,
    .all-filter-wrapper{
        width: 100%;
    }
        .all-doctors-cards-section .doctor-photo{

        height: 70vw;
    }
}
