.top_nav_row {
		position: relative;
    z-index: 9999;
}

.doctors_grid .ba-feature-image {
		background-position: center top;
    margin-top: -0px;
    padding-bottom: 25px;
}

.button_gradient .ba-btn-transition {
    position: relative;
    overflow: hidden; /* Важно, чтобы блик не вылетал за границы */
    color: #4a3411 !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 50%, #b38728 100%) !important;
    border: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.button_gradient .ba-btn-transition::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%; /* Прячем блик слева */
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: none;
    z-index: 2;
}

/* Анимация при наведении */
.button_gradient .ba-btn-transition:hover::before {
    left: 150%;
    transition: all 0.6s ease;
}

.button_gradient .ba-btn-transition:hover {
    transform: translateY(-0px);
    box-shadow: 0 6px 15px rgba(181, 146, 75, 0.5);
    background: linear-gradient(135deg, #c9a04d 0%, #fcf6ba 50%, #c9a04d 100%) !important;
}

/* Чтобы текст и иконка были поверх блика */
.button_gradient .ba-btn-transition span,
.button_gradient .ba-btn-transition i {
    position: relative;
    z-index: 3;
}

.doctors_grid .ba-feature-button a {
    position: relative;
    display: inline-flex !important; /* Изменено на flex для лучшего центрирования текста */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px 30px !important; 
    border-radius: 50px !important; /* Форма "таблетки" */
    text-decoration: none;
    text-align: center;
    color: #ffffff !important;
    background: linear-gradient(90deg, #a67c37 0%, #edc162 100%) !important;
    border: none !important;
    transition: all 0.3s ease !important;
    z-index: 1;
    min-width: 120px;
}

.doctors_grid .ba-feature-button a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}

.doctors_grid .ba-feature-button a:hover::before {
    left: 150%;
    transition: all 0.6s ease;
}

.doctors_grid .ba-feature-button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(166, 124, 55, 0.4) !important;
    filter: brightness(1.05);
}

.doctors_grid .ba-feature-button a span {
    position: relative;
    z-index: 3;
}

.doctors_grid .ba-feature-caption {
    display: flex !important;
    flex-direction: column !important;
    height: 100%; 
    min-height: 140px; /* Немного уменьшил, чтобы не было лишних дыр */
    padding: 0px 25px 20px 25px; /* Добавил отступ снизу */
}

.doctors_grid .ba-feature-description-wrapper {
    flex-grow: 1 !important;
    display: flex !important;
    align-items: center; 
    justify-content: center;
    margin-bottom: 15px; 
}

.doctors_grid .ba-feature-button {
    margin-top: auto !important;
    text-align: center;
}

.button_gradient2 .ba-btn-transition {
    position: relative; /* Добавлено для корректной работы блика */
    overflow: hidden;    /* Чтобы блик не вылетал за границы "таблетки" */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 5px 5px 5px 15px !important; 
    text-align: center;
    background: linear-gradient(90deg, #a67c37 0%, #edc162 100%) !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.3s ease !important;
    min-width: 120px;
    z-index: 1; /* Чтобы кнопка была базовым слоем */
}

.button_gradient2 .ba-btn-transition::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg); /* Наклон луча */
    z-index: 2; /* Слой выше золотого фона, но ниже текста */
    pointer-events: none;
}

.button_gradient2 .ba-btn-transition:hover::before {
    left: 150%; /* Пролет луча слева направо */
    transition: all 0.6s ease;
}

.button_gradient2 .ba-btn-transition:hover {
    box-shadow: 0 4px 15px rgba(166, 124, 55, 0.4) !important;
    filter: brightness(1.05); /* Легкий эффект "оживления" цвета */
}

.button_gradient2 .ba-btn-transition span,
.button_gradient2 .ba-btn-transition i {
    position: relative;
    z-index: 3; /* Чтобы луч пролетал ПОД текстом и ПОД белым кругом */
}

.button_gradient2 .ba-btn-transition span {
    margin-right: 15px;
}

.button_gradient2 .ba-btn-transition i {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    background-color: #ffffff !important;
    color: #a67c37 !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    transition: transform 0.3s ease !important;
}

/* Кнопка без иконки (аналог button_gradient2 по стилю) */
.button_gradient3 .ba-btn-transition {
    position: relative;
    overflow: hidden;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 25px !important; 
    text-align: center;
    background: linear-gradient(90deg, #a67c37 0%, #edc162 100%) !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.3s ease !important;
    min-width: 160px; /* Оптимальная ширина для кнопок в карточках */
    z-index: 1;
}

/* Эффект блика */
.button_gradient3 .ba-btn-transition::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}

/* Анимация блика */
.button_gradient3 .ba-btn-transition:hover::before {
    left: 150%;
    transition: all 0.6s ease;
}

/* Эффект при наведении */
.button_gradient3 .ba-btn-transition:hover {
    box-shadow: 0 4px 15px rgba(166, 124, 55, 0.4) !important;
    filter: brightness(1.05);
}

/* Текст поверх блика */
.button_gradient3 .ba-btn-transition span {
    position: relative;
    z-index: 3;
}

.button_gradient3 .ba-btn-transition {
    min-width: 0 !important; 
    width: 100% !important; 
    padding: 12px 10px !important; 
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #a67c37 0%, #edc162 100%) !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    box-sizing: border-box !important; /* Важно, чтобы padding не расширял кнопку */
}

.carousel_clinic .ba-slideset {
border-radius: 15px;
}

@media (max-width: 767px) {
  .doctors_grid .ba-feature-image {
		background-position: center top;
    margin-top: -0px;
    padding-bottom: 0px;
    max-height:200px;
  }
.doctors_grid .ba-feature-button a {
    padding: 8px 10px !important;
  min-width:100px;
  }
.doctors_grid .ba-feature-caption {
    padding: 0px 10px 10px 10px;
}
