body {
    background-color: #1b1938;
    background-image: url('../images/lady-background.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 120vh;
    background-attachment: fixed;
    font-family: 'Montserrat', sans-serif;
}

.accent-text {
    color: #00ffff;
}

.white-text {
    color: #ffffff;
}

.purple-text {
    color: #003366;
}

.black-text {
    color: #000000;
}

/* ✅ FIXED: remove duplicate background-size + fix mobile fixed-background issue */
@media (max-width: 767.98px) {
    body {
        background-position: center top;
        background-size: cover;
        background-attachment: scroll;
    }
}

.resp-txt {
    font-size: 1.5rem;
    max-width: 100%;
    width: fit-content;
}

.divider {
    border: 0; 
    border-top: 2px solid #363636;
    margin: 20px 0;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.divider-accent {
    border: 0; 
    border-top: 3px solid #00ffff;
    margin: 8px 0;
    width: 100%;
}

.expert-card {
    background-color: #1b1938;
    color: white;
    display: flex;
    flex-direction: column;
    border: 3px solid #00ffff;
    margin-bottom: 15px;
}

.expert-card h5 {
    margin-bottom: 2px;
}

.expert-card p,
.expert-card h2,
.expert-card span,
.expert-card strong {
    margin-bottom: 0;
    line-height: 1.3;
}

.expert-card .row {
    margin-bottom: 0;
}

.expert-card .text-container {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.expert-card .d-flex.flex-wrap {
    margin-bottom: 2px !important;
}

.expert-card .location-badge {
    margin-bottom: 2px !important;
}

.card-section-profile,
.card-section-accred-services,
.card-section-expertise,
.card-section-location,
.card-section-languages {
    overflow: hidden;
}

/* Languages: prevent centered/overlap + clamp */
.card-section-languages {
  align-items: flex-start !important;
}

.card-section-languages .lang-value{
  padding-bottom: 3px; /* aligns with label baseline */
}

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

/* Optional: if your cards force a small fixed height, give languages a bit more room */
@media (min-width: 768px) {
  .card-section-languages { min-height: 70px; }
}

@media (max-width: 767.98px) {
    .card-section-profile,
    .card-section-accred-services,
    .card-section-expertise,
    .card-section-location,
    .card-section-languages {
        height: auto;
        overflow: visible;
    }
    .card-section-profile { min-height: 80px; }
    .profile-section img { width: 65px; height: 65px; }
    .location-badge { padding: 2px 10px; }
    .footer-buttons .btn { padding: 8px; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .card-section-profile { height: 75px; }
    .card-section-accred-services { height: 155px; }
    .card-section-expertise { height: 140px; }
    /* Allow up to ~2 lines of location badges (Telehealth + multiple states) */
    .card-section-location { height: 130px; }

    /* ✅ FIXED: remove languages fixed height that causes clipping */
    /* .card-section-languages { height: 42px; } */

    .expert-card { margin-bottom: 6px; }
    .profile-section { padding: 4px 8px !important; gap: 6px; }
    .profile-section img { width: 60px; height: 60px; }
    .location-badge { padding: 2px 8px; }
    .footer-buttons .btn { padding: 6px; }
    .footer-buttons { padding: 4px; gap: 4px; margin-left: 5px; margin-right: 5px; }
    .card-section-location .location-icon { width: 22px; height: 22px; }
    .card-section-languages .lang-icon { width: 22px; height: 22px; }
}

@media (min-width: 1200px) {
    .card-section-profile { height: 80px; }
    .card-section-accred-services { height: 155px; }
    .card-section-expertise { height: 135px; }
    /* Allow up to ~2 lines of location badges (Telehealth + multiple states) */
    .card-section-location { height: 130px; }

    /* ✅ FIXED: remove languages fixed height that causes clipping */
    /* .card-section-languages { height: 42px; } */

    .expert-card { margin-bottom: 4px; }
    .profile-section { padding: 5px 8px !important; gap: 6px; }
    .profile-section img { width: 70px; height: 70px; }
    .location-badge { padding: 1px 6px; }
    .footer-buttons .btn { padding: 5px; }
    .footer-buttons { padding: 4px; gap: 4px; margin-left: 5px; margin-right: 5px; }
    .card-section-location .location-icon { width: 22px; height: 22px; }
    .card-section-languages .lang-icon { width: 22px; height: 22px; }
    .expert-card .text-container { padding-left: 10px !important; padding-right: 10px !important; }
    .expert-card .card-section-location { padding-left: 10px !important; padding-right: 10px !important; }
    .expert-card .card-section-languages { padding-left: 10px !important; padding-right: 10px !important; }
}

/* ✅ FIXED: Read More overlap (inline -> block) */
.read-more {
    background: transparent !important;
    display: block;
    margin-top: 6px;
    margin-bottom: 6px;
}

.read-more a {
    background: transparent !important;
    display: inline-block;
}

.location-text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    cursor: default;
    min-width: 0;
}

.card-section-location .flex-grow-1 {
    min-width: 0;
    overflow: hidden;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    padding: 5px 8px;
}

.profile-section img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    border-radius: 4px;
}

.profile-info {
    min-width: 0;
    flex: 1;
}

.profile-info .profile-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.profile-info .profile-specialty {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.profile-info .profile-qualifications {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.text-container {
    flex-grow: 1;
}

.profile-section h5,
.profile-section p {
    margin: 0;
}

.profile-text {
    overflow: hidden;
    flex-grow: 1;
}

.profile-text h5 {
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-text p {
    margin: 0;
    line-height: 1;
    max-height: calc(75px - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-section {
    background-color: #1b1938;
    border: 5px solid #00ffff;
    color: white;
    padding: 20px;
    margin-bottom: 20px;
}

.search_by_inputs label{
    text-align: center;
}

.special-interest {
    background-color: #00bcd4;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.filter-btn {
    background-color: black;
    color: white;
    padding: 7px 15px;
    border-radius: 8px;
    border: none;
    width: 100%;
}

.bg-black {
    background-color: black;
    color: white;
    border: 1px solid white;
}

.filter-btn:hover {
    background-color: #333;
}

.filter-btn i {
    margin-right: 5px;
}

.location-badge {
    background-color: #00ffff;
    color: #003366;
    border-radius: 10px;
    padding: 3px 15px;
}

/*
  Location header can contain multiple badges (Telehealth + several states).
  Constrain the badge block so it doesn't collide with the location text
  inside the fixed-height card section.
*/
.card-section-location .badge-wrap {
    gap: 4px;
    max-height: 46px; /* ~2 rows of badges */
    overflow: hidden;
    margin-bottom: 2px;
}

/* Normalize badge sizing/spacing across breakpoints and override inline mb/me utilities */
.location-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1.1;
    margin: 0 0 6px 0 !important;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.footer-buttons {
    background-color: #1b1938;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    margin-right: 10px;
    line-height: 1;
}

.modal-btn {
    background-color: #00ffff;
    color: #003366;
    border: none;
    padding: 10px;;
}

.modal-btn:hover {
    background-color: #1b3b71;
    color: #00ffff;
}

.footer-buttons .btn {
    background-color: #00ffff;
    color: #003366;
    border: none;
    padding: 10px;
    width: 100%;
    text-align: center;
}

.footer-buttons a {
    color: white;
    text-decoration: none;
}

.footer-buttons .btn:hover {
    background-color: #1b3b71;
    color: #00ffff;
}

.footer-buttons .book-appointment-btn {
    background-color: #00ffff;
    color: #003366;
    font-size: 1.1rem;
    padding: 12px;
    letter-spacing: 1px;
}

.footer-buttons .book-appointment-btn:hover {
    background-color: #1b3b71;
    color: #00ffff;
}

.text-container {
    flex-grow: 1;
}

.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #FFFFFF;
    position: relative;
    padding-right: 20px;
    white-space: normal;
}

.custom-select:focus {
    outline: none;
}

.custom-select::after {
    content: '';
}

.custom-select option {
    white-space: normal;
    word-wrap: break-word;
}

.tooltip-inner {
    background-color: white !important;
    color: black !important;
    border: 1px solid #ccc;
}
.tooltip-arrow::before {
    border-top-color: white !important;
    border-bottom-color: white !important;
}

.form-control::placeholder {
    font-size: 0.8rem;
    color: #000;
}

.form-control {
    font-size: 0.8rem;
    color: #000;
}

.fs-1  { font-size: clamp(2rem, 1rem + 2vw, 3rem); }
.fs-2  { font-size: clamp(1.75rem, 0.9rem + 1.8vw, 2.5rem); }
.fs-3  { font-size: clamp(1.5rem, 0.8rem + 1.6vw, 2.25rem); }
.fs-4  { font-size: clamp(1.25rem, 0.7rem + 1.5vw, 2rem); }
.fs-5  { font-size: clamp(1.125rem, 0.65rem + 1.3vw, 1.75rem); }
.fs-6  { font-size: clamp(1rem, 0.6rem + 1.1vw, 1.5rem); }
.fs-7  { font-size: clamp(0.875rem, 0.5rem + 0.9vw, 1.25rem); }
.fs-8  { font-size: clamp(0.75rem, 0.45rem + 0.7vw, 1.1rem); }
.fs-9  { font-size: clamp(0.675rem, 0.4rem + 0.6vw, 0.875rem); }
.fs-10 { font-size: clamp(0.6rem, 0.35rem + 0.4vw, 0.75rem); }

.checkbox{
    padding-left: 20px !important;
}

.responsive-div {
    width: 100%;
    max-width: 100%;
    background-color: #FFFFFF;
    padding: 1rem;
}

@media (min-width: 1024px) {
    .responsive-div {
        width: 75vw;
    }
}

.btn-white{
    background-color: #ffffff;
}

.checkbox {
    display: flex !important;
    line-height: normal;
    align-items: center;
}

.checkbox input[type="checkbox"]{
    display: flex !important;
    margin: 0 !important;
    margin-right: 10px !important;
    align-items: center;
}

.multiselect.dropdown-toggle.btn.btn-white.text-start {
    background-color: white !important;
    border-color: transparent !important;
    color: inherit;
}

.multiselect.dropdown-toggle.btn.btn-white.text-start:hover {
    background-color: white;
    border-color: transparent;
}

.expertise-container.collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    line-height: 1.2;
    max-height: calc(5 * 1.2em);
}

.expertise-container {
    line-height: 1.2;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.expertise-container::-webkit-scrollbar { display: none; }

.location-container {
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.location-container::-webkit-scrollbar { display: none; }

.location-container.collapsed {
  max-height: 110px;
  overflow-y: hidden;
  transition: max-height 0.3s ease;
}

.sectors-container {
    line-height: 1.1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sectors-container::-webkit-scrollbar { display: none; }

.sectors-container.collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    line-height: 1.1;
    max-height: calc((4 * 1.1em) -1);
}

.expert-card {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.expert-card::-webkit-scrollbar { display: none; }

.card-section-accred-services,
.card-section-expertise,
.card-section-location {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.card-section-accred-services::-webkit-scrollbar,
.card-section-expertise::-webkit-scrollbar,
.card-section-location::-webkit-scrollbar { display: none; }

.input-group-btn {
    display: none;
}

.input-group {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex;
    align-items: center;
}

.multiselect-search{
    margin-left: 10px !important;
    margin-right: 10px !important;
}

.text-black{
    color: #000 !important;
}

.bg-white {
    background-color: #ffffff;
}

.bg-accent {
    background-color: #00ffff;
}

.banner {
    background: #1b1938;
    color: white;
    padding-top: 0;
    padding-bottom: 80px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.doctor-img{
    width: 100%;
}

.telehealth-badge {
    background-color: #00E0E6;
    color: black;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: 700;
}

.small-text {
    font-size: 15px;
    font-weight: 700;
}

.first-column {
    margin-top: -175px;
    z-index: 1000;
}

@media (max-width: 767.98px) {
    .first-column {
        margin-top: -50px;
    }
}

.second-column {
    margin-top: 50px;
    margin-bottom: 50px;
}

.doctor-container{
    background-color: #1b1938;
    border: 10px solid #00ffff;
    border-top: 0;
    box-shadow: none;
    color: white;
}

.fs10 {
    font-size: 10px;
}

.fs18 {
    font-size: 18px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.section-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    list-style-type: disc;
    margin-left: 20px;
}

.section-text ul {
    margin-left: 20px;
}

.section-text li {
    margin-bottom: 8px;
}

.fs-6 { font-size: 1rem; }   
.fs-7 { font-size: 0.875rem; } 
.fs-8 { font-size: 0.75rem; } 
.fs-9 { font-size: 0.625rem; } 
.fs-10 { font-size: 0.5rem; } 

.form-select {
    border-radius: 0;
}

.form-control{
    border-radius: 0;
}

.multiselect{
    border-radius: 0;
}

.header-img {
    width: 10vw;
    height: auto;
    min-width: 150px;
}

.font-int {
    font-family: 'Inter', sans-serif;
}

.font-mont {
  font-family: 'Montserrat', sans-serif;
}

.back-to-directory a.btn {
    background-color: #00ffff;
    color: #003366;
    padding: 10px 20px;
    max-width: 200px;
}

.back-to-directory a.btn:hover {
    background-color: #1b3b71;
    color: #00ffff;
}

.multiselect-selected-text{
    color: #003366 !important;
}

.location-content-wrap {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.location-content-wrap.collapsed {
  max-height: 100px;
}

input::placeholder {
  color: #003366 !important;
}

input::-webkit-input-placeholder {
  color: #003366 !important;
}
input::-moz-placeholder {
  color: #003366 !important;
}
input:-ms-input-placeholder {
  color: #003366 !important;
}
input:-moz-placeholder {
  color: #003366 !important;
}

select {
  color: #003366 !important;
}

input[type="radio"] {
  border-radius: 0 !important;
  width: 1em !important;
  height: 1em !important;
  accent-color: #003366 !important;
  vertical-align: middle !important;
}

input[type="text"] {
  color: #003366;
}

ul.solid-bullets {
    list-style-type: disc;
}

ul.solid-bullets li {
    list-style-type: disc;
}

.skeleton-card {
    padding: 8px;
}

.skeleton-block {
    background: linear-gradient(90deg, #2a2750 25%, #3a3570 50%, #2a2750 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 4px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== FIX: multiselect in filter panel (clickable + correct size) ===== */

.filter-section .multiselect.dropdown-toggle{
  position: relative;                 /* required for caret positioning */
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #cfd6df !important;
  border-radius: 0 !important;

  padding: 10px 42px 10px 12px !important;  /* room for caret */
  min-height: 42px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;

  cursor: pointer !important;
}

/* Keep selected text inside */
.filter-section .multiselect-selected-text{
  display: block !important;
  width: 100% !important;
  color: #003366 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Caret styling */
.filter-section .multiselect.dropdown-toggle::after{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none !important;   /* 🔥 prevents click blocking */
}

/* Ensure dropdown appears above cards */
.filter-section .multiselect-container.dropdown-menu{
  z-index: 2000 !important;
}

/* If some fields are plain <select>, keep them consistent */
.filter-section select{
  width: 100%;
  min-height: 42px;
  padding: 10px 42px 10px 12px;
  box-sizing: border-box;
}

/* =========================================================
   DIRECTORY CARD: SMALL SCREEN FIX + RESPONSIVE FONTS
   (paste at the VERY BOTTOM of main.css)
   ========================================================= */

/* 1) Fix overlap/truncation inside Accreditation/Services rows */
.card-section-accred-services .row > [class*="col-"]{
  min-width: 0; /* critical for flex/grid text sizing */
}

/* if label uses text-truncate, ensure it can shrink */
.card-section-accred-services .card-label{
  min-width: 0;
}

/* Stack label above value on small screens */

/* 2) Responsive / fluid typography using clamp()
      (MATCHES YOUR ACTUAL CLASS NAMES) */

/* Doctor name */
.profile-name{
  font-size: clamp(1.05rem, 1.2vw, 1.45rem);
  line-height: 1.15;
}

/* Specialty */
.profile-specialty{
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  line-height: 1.15;
}

/* Qualifications */
.profile-qualifications{
  font-size: clamp(0.85rem, 0.95vw, 1.02rem);
  line-height: 1.2;
}

/* Section labels (Accreditation, Services, etc.) */
.card-label{
  font-size: clamp(0.85rem, 0.95vw, 1rem);
  line-height: 1.2;
}

/* Section values (your lists are p.card-text.overflow-text) */
p.card-text,
p.card-text.overflow-text{
  font-size: clamp(0.82rem, 0.9vw, 0.98rem);
  line-height: 1.25;
}

/* Read More link */
.read-more a{
  font-size: clamp(0.9rem, 1vw, 1.05rem);
}


/* =========================================================
   DIRECTORY LAYOUT: move cards a bit left + reduce card gaps
   (this is what makes cards feel bigger)
   ========================================================= */

/* Reduce outer padding so content shifts left/right slightly */
.main-page{
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* Make the white panel a little wider on desktop */
@media (min-width: 1024px){
  .responsive-div{
    width: 82vw; /* was 75vw */
  }
}

/* Reduce space between doctor cards (Bootstrap gutters) */
#experts{
  --bs-gutter-x: .75rem;  /* was g-2 (~0.5rem) but we enforce consistent */
  --bs-gutter-y: .75rem;
}

/* Slightly tighter on very large screens */
@media (min-width: 1200px){
  #experts{
    --bs-gutter-x: .6rem;
    --bs-gutter-y: .7rem;
  }
}

/* 1200–1399px: 2-col layout — bump card text up 10% to fill extra space */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .expert-card .profile-name        { font-size: clamp(1.155rem, 1.32vw,  1.595rem) !important; }
    .expert-card .profile-specialty   { font-size: clamp(1.045rem, 1.155vw, 1.265rem) !important; }
    .expert-card .profile-qualifications { font-size: clamp(0.935rem, 1.045vw, 1.122rem) !important; }
    .expert-card .card-label          { font-size: clamp(0.935rem, 1.045vw, 1.1rem)   !important; }
    .expert-card p.card-text          { font-size: clamp(0.902rem, 0.99vw,  1.078rem) !important; }
    .expert-card .location-badge      { font-size: 1.1rem !important; }
}
