/* === Layout Control === */
.had-tabs-desktop {
    display: none;
}
.had-tabs-mobile {
    display: block;
}

@media screen and (min-width: 769px) {
    .had-tabs-desktop {
        display: flex !important;
    }
    .had-tabs-mobile {
        display: none !important;
    }
}

/* === Desktop Tabs === */
.had-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.had-tabs-sidebar {
    min-width: 250px;
    border-right: 1px solid #ccc;
}

.had-tab-buttons {
    list-style: none !important;
    margin: 12px;
    padding: 0;
}

.had-tab-buttons li {
    list-style: none !important;
}

.had-tab-button {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: bold;
    color: #004094;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.had-tab-button.active {
    background-color: #f7f9fc;
    color: #46b6ea;
    padding-left: 16px;
}



.had-tab-button.active::after {
    color: #46b6ea;
}

/* === Tab Panel === */
.had-tabs-content {
    flex: 1;
    padding: 20px 20px 20px 50px;
}

.had-tab-panel {
    display: none;
}

.had-tab-panel.active {
    display: block;
}

.had-tab-body {
    line-height: 1.6;
    color: #325996;
}

/* === Mobile Accordion === */
.had-accordion-button {
    width: 100%;
    background: #ffffff;
    color: #004094;
    text-align: left;
    padding: 14px 20px;
    border: none;
    border-bottom: 1px solid #b4d6d8;
    margin: 10px 10px 10px 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.had-accordion-panel {
    display: none;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.had-accordion-panel.active {
    display: block;
}

.had-accordion-button i {
    transition: transform 0.3s ease;
}

.had-accordion-button.active i {
    transform: rotate(180deg);
}


.had-tab-button .angle-icon {
    margin-left: 50px;
    color: #004094;
    font-size: 0.85em;
    transition: transform 0.3s ease, color 0.3s ease;
}

.had-tab-button.active .angle-icon {
    color: #46b6ea;
}

.toggle-icon-had {
    margin-left: 50px;
}






/* DOCTORS FILTER */

.doctors-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: rgba(255,255,255,0.8);
    padding: 20px;
    border-radius: 10px;
}

.doctors-loader.active {
    opacity: 1 !important;
    pointer-events: auto;
}

.doctors-grid.loading {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 60px auto;
}

.doctor-card {
    display: flex;
    gap: 0;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.doctor-image {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 210px;
}

.doctor-image img {
    width: 210px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.read-more {
    font-size: 13px;
    color: #1a3d7c;
    font-weight: 500;
    text-decoration: none;
}

.doctor-info {
    flex: 1;
    padding-top: 5px;
}

.doctor-info h3 {
    margin: 0 0 3px;
    font-size: 18px;
    color: #1a3d7c;
    font-weight: 600;
    padding-bottom: 2px;
}

.doctor-info p {
    margin: 0;
    font-size: 14px;
    color: #888;
}

.doctors-filter {
    background: #ffffff;
    padding: 0px;
    border-radius: 10px;
    max-width: 280px;
    font-weight: 400;
}

.doctors-filter ul {
    list-style: none!important;
    padding: 0;
    margin: 0;
}

.doctors-filter li {
    margin-bottom: 8px;
}

.doctors-filter .filter-link {
    display: block;
    padding: 12px 15px;
    color: #1a3d7c;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: background-color 0.2s, color 0.2s;
    background-color: rgba(123, 153, 206, -0.97) !important;
	color: #325996 !important;
}

.doctors-filter .filter-link:hover {
    background-color: #eef2fc;
    color: #0f2c64;
}

.doctors-filter .filter-link.active {
    font-weight: 400;
    cursor: default;
    color: #7b99ce !important;
    background-color: rgba(50, 89, 150, 0.06) !important;
}

#load-more-doctors {
    font-family: inherit;
    font-size: 15px;
    background-color: #325996 !important;
    color: white;
    border-radius: 4px;
    border: 0;
    padding: 6px 14px;
    text-align: center;
    margin: 30px auto 0 auto;
    display: block;
}

/* ✅ MOBILE STYLES */
@media (max-width: 767px) {
    .doctors-filter {
        background: none !important;
        max-width: 100%;
        padding: 0;
    }

    .doctors-filter .filter-link {
        background-color: #ffffff !important;
        border-radius: 0;
        width: 100%;
        display: block;
        text-align: left;
        border-bottom: 0px solid #eee;
        color: #335a97 !important;
		border-radius: 6px;
    }

   .doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 60px auto;
}
    .doctor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }

    .doctor-image {
        width: 100%;
        max-width: 100%;
    }

    .doctor-image img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .doctor-info {
        order: 1;
        margin-top: 10px;
    }

    .doctor-info h3 {
        order: 1;
        font-size: 16px;
        margin-bottom: 4px;
    }

    .doctor-info p {
        order: 2;
        font-size: 14px;
        margin-bottom: 8px;
        color: #777;
    }

    .read-more {
        order: 3;
        margin-top: 10px;
        padding: 3px 10px 3px 10px;
        background-color: #325996;
        color: #fff !important;
        border-radius: 5px;
        display: inline-block;
        font-size: 14px;
    }
	
	
	.doctors-filter .filter-link.active {
   font-weight: 400;
        cursor: default;
        color: #fff !important;
        background-color: #335a97 !important;
        border-radius: 6px;
}
	
	
	.doctor-image {
    text-align: center;
    display: flex
;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}
	.doctor-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        text-align: center;
    }

    .doctor-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-grow: 1;
    }

    .doctor-info .read-more {
        margin-top: auto;
        margin-bottom: 0;
        padding-top: 3px;
    }

    .doctor-image {
        align-items: center;
        justify-content: center;
    }
	
}










