/* Slider container styling */
.caregiver-slider-new {
    overflow: visible;
    width: 100%;
    margin: 0 auto;
    padding: 0 !important;
}

.caregiver-slider-new .slick-track {
    padding: 24px 0;
}

.caregiver-slider-new .slick-slide:first-child {
    margin-left: 24px;
}

.caregiver-slider-new .slick-slide {
    margin-right: 24px;
}

/* Hide default slick arrows; we render our own inline */
.caregiver-slider-new .slick-prev,
.caregiver-slider-new .slick-next {
    display: none !important;
}

/* Arrow icon container */
.caregiver-slider-new .slick-prev .arrow-icon,
.caregiver-slider-new .slick-next .arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Rotate right arrow icon in custom controls */
.caregiver-controls .next .arrow-icon {
    transform: rotate(180deg);
}

/* Slick dots styling (appended inside custom controls) */
#psychologist-carousel .slick-dots {
    position: static !important;
    display: block;
    width: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}

/* Custom controls row (prev | dots | next) */
#psychologist-carousel .caregiver-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 0;
}

/* Mobile gap adjustment */
@media (max-width: 768px) {
    #psychologist-carousel .caregiver-controls {
        gap: 16px;
    }
}
#psychologist-carousel .caregiver-controls .dots ul.slick-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    flex: 1;
    text-align: center;
}
/* Ensure dot size/color match previous design when rendered in controls */
#psychologist-carousel .caregiver-controls .dots ul.slick-dots li button:before {
    color: #FFB37E;
    font-size: 12px;
    opacity: 0.6;
    padding: 3px 0 0 2px;
}
#psychologist-carousel .caregiver-controls .dots ul.slick-dots li.slick-active button:before {
    color: #FA6400;
    opacity: 1;
    font-size: 16px;
}
#psychologist-carousel .caregiver-controls .dots ul.slick-dots li { 
    margin: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
}
#psychologist-carousel .caregiver-controls button.prev,
.caregiver-controls button.next {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    color: #FA6400 !important;
    background: transparent !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#psychologist-carousel .caregiver-controls .arrow-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

#psychologist-carousel .caregiver-slider-new .slick-dots li button:before {
    color: #FFB366;
    font-size: 12px;
    opacity: 0.6;
}

#psychologist-carousel .caregiver-slider-new .slick-dots li.slick-active button:before {
    color: #FF8C00;
    opacity: 1;
    font-size: 16px;
}

/* Card styling for psychologist slides - New Design */
#psychologist-carousel .caregiver-slider-new .caregiver-slide {
    display: flex;
    width: 100%;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.10);

    height: 100%;
}

/* Skeleton loader styles */
#psychologist-carousel .caregiver-slider-new .caregiver-slide.skeleton {
    background: #FFF;
}
#psychologist-carousel .caregiver-slider-new .skeleton-box {
    position: relative;
    overflow: hidden;
    background: #eee;
    border-radius: 12px;
}
#psychologist-carousel .caregiver-slider-new .skeleton-circle {
    border-radius: 50% !important;
}
#psychologist-carousel .caregiver-slider-new .skeleton-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    height: 100%;
    width: 150%;
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.6) 50%,
            rgba(255,255,255,0) 100%
        );
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .caregiver-image {
    max-height: 240px;
    height: auto !important;
    width: auto !important;
    aspect-ratio: 1/1;
    border-radius: 60% 55% 50% 50% / 50% 45% 55% 50% !important;
    margin: 0 auto;
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .caregiver-content {
    display: flex;
    flex-direction: column;
    padding: 0 14.5px;
    align-self: stretch; /* occupy full card width even when content is small */
    width: 100%;
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .caregiver-name {
    color: #1F514A;
    font-family: Poppins, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 120%;
    margin: 0;
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .psychologist-title {
    color: #1F514A;
    font-feature-settings: 'liga' off, 'clig' off;
    margin-top: 4px;

    /* Body/M 400 */
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 23px; /* 143.75% */
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .next-available-time {
    margin-top: 24px;
    color: #252E2C;
    font-feature-settings: 'liga' off, 'clig' off;

    /* Body/M 350 */
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 137.5% */
    white-space: pre-line;
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .language-section {
    margin-top: 16px;
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .expertise-section strong,
.caregiver-slider-new .caregiver-slide .language-section strong {
    display: block;
    width: 100%;
    color: #252E2C;
    font-feature-settings: 'liga' off, 'clig' off;
    /* Body/M 350 */
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 137.5% */
    
    margin-bottom: 8px;
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .expertise-tags,
.caregiver-slider-new .caregiver-slide .language-tags {
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

/* Tag styling */
#psychologist-carousel .caregiver-slider-new .caregiver-slide .expertise-tag,
.caregiver-slider-new .caregiver-slide .language-tag {
    display: flex;
    height: 36px;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;

    border-radius: 1000px;
    background: #FFF6E8;
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .caregiver-link {
    margin-top: 24px;
    height: 40px;
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .caregiver-link a {
    /* Button */
    display: flex;
    height: 40px;
    padding: 8px, 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 38px;
    background-color: #1F514A;

    /* Text */
    /* Buttons/M 400 */
    color: #FFF;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 23px; /* 143.75% */
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .caregiver-link a:hover {
    color: #fff;
    opacity: 0.87;
    transition: opacity 0.3s ease;
}

/* Profile toggle button styling */
#psychologist-carousel .caregiver-slider-new .caregiver-slide .profile-toggle-btn {
    background: none;

    margin-top: 16px;
    color: #252E2C;
    font-feature-settings: 'liga' off, 'clig' off;
    border: none;
    cursor: pointer;

    /* Body/M 350 */
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 137.5% */
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .profile-toggle-btn:hover {
    opacity: 0.8;
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .caret-icon {
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    top: 2px; /* nudge arrow 2px lower */
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .caret-icon svg {
    width: 17px;
    height: 17px;
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .caret-icon.rotated {
    transform: rotate(180deg);
}

/* Profile details accordion */
#psychologist-carousel .caregiver-slider-new .caregiver-slide .profile-details {
    display: none;
    margin-top: 12px;
    width: 100%;
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .profile-details.open {
    display: block;
}

#psychologist-carousel .caregiver-slider-new .caregiver-slide .description-section {
    align-self: stretch;
    color: var(--Neutral-800, #252E2C);
    font-feature-settings: 'liga' off, 'clig' off;
    
    /* Body/M 350 */
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 137.5% */
    
    margin-bottom: 16px;
}

/* Arrow positioning media queries removed since arrows are inline */

/* Prevent peeking of the 5th slide and create even gutters */
#psychologist-carousel .caregiver-slider-new .slick-list {
    overflow: hidden;
    margin: 0; /* avoid extending track beyond container */
    height: auto !important; /* prevent height from cutting off cards */
}
#psychologist-carousel .caregiver-slider-new .slick-slide:first-child {
    margin-left: 0; /* override earlier margin */
}
#psychologist-carousel .caregiver-slider-new .slick-slide {
    margin-right: 0; /* override earlier margin */
    padding: 0 12px; /* Add padding directly to slide for gap control */
    box-sizing: border-box;
}

/* Slider */

#psychologist-carousel .slick-loading .slick-list
{
    background: #fff url('https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/ajax-loader.gif') center center no-repeat;
}

/* Icons */

@font-face
{
    font-family: 'slick-psychologist-carousel';
    font-weight: normal;
    font-style: normal;
    src: url('https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/fonts/slick.eot');
    src: url('https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/fonts/slick.eot?#iefix') format('embedded-opentype'), url('https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/fonts/slick.woff') format('woff'), url('https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/fonts/slick.ttf') format('truetype'), url('https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/fonts/slick.svg#slick') format('svg');
}

/* Arrows */

#psychologist-carousel .slick-prev,
#psychologist-carousel .slick-next
{
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
}

#psychologist-carousel .slick-prev:hover,
#psychologist-carousel .slick-prev:focus,
#psychologist-carousel .slick-next:hover,
#psychologist-carousel .slick-next:focus
{
    color: transparent;
    outline: none;
    background: transparent;
}

#psychologist-carousel .slick-prev:hover:before,
#psychologist-carousel .slick-prev:focus:before,
#psychologist-carousel .slick-next:hover:before,
#psychologist-carousel .slick-next:focus:before
{
    opacity: 1;
}

#psychologist-carousel .slick-prev.slick-disabled:before,
#psychologist-carousel .slick-next.slick-disabled:before
{
    opacity: .25;
}

#psychologist-carousel .slick-prev:before,
#psychologist-carousel .slick-next:before
{
    font-family: 'slick-psychologist-carousel';
    font-size: 20px;
    line-height: 1;
    opacity: .75;
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#psychologist-carousel .slick-prev
{
    left: -25px;
}

#psychologist-carousel [dir='rtl'] .slick-prev
{
    right: -25px;
    left: auto;
}

#psychologist-carousel .slick-prev:before
{
    content: '←';
}

#psychologist-carousel [dir='rtl'] .slick-prev:before
{
    content: '→';
}

#psychologist-carousel .slick-next
{
    right: -25px;
}

#psychologist-carousel [dir='rtl'] .slick-next
{
    right: auto;
    left: -25px;
}

#psychologist-carousel .slick-next:before
{
    content: '→';
}

#psychologist-carousel [dir='rtl'] .slick-next:before
{
    content: '←';
}

/* Dots */

#psychologist-carousel .slick-dotted.slick-slider
{
    margin-bottom: 30px;
}

#psychologist-carousel .slick-dots
{
    position: absolute;
    bottom: -25px;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}

#psychologist-carousel .slick-dots li
{
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 5px;
    padding: 0;
    cursor: pointer;
}

#psychologist-carousel .slick-dots li button
{
    font-size: 0;
    line-height: 0;
    display: block;
    width: 20px;
    height: 20px;
    padding: 5px;
    cursor: pointer;
    color: transparent;
    border: 0;
    outline: none;
    background: transparent;
}

#psychologist-carousel .slick-dots li button:hover,
#psychologist-carousel .slick-dots li button:focus
{
    outline: none;
}

#psychologist-carousel .slick-dots li button:hover:before,
#psychologist-carousel .slick-dots li button:focus:before
{
    opacity: 1;
}

#psychologist-carousel .slick-dots li button:before
{
    font-family: 'slick-psychologist-carousel';
    font-size: 6px;
    line-height: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    content: '•';
    text-align: center;
    opacity: .25;
    color: black;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#psychologist-carousel .slick-dots li.slick-active button:before
{
    opacity: .75;
    color: black;
}

