/* =========================================================
   DocBooking Doctor – Clean Editorial Style (No Backgrounds)
   ========================================================= */

/* ---------- Layout ---------- */

.wpddb-single-doctor-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.wpddb-single-doctor-wrapper .doctor-top-content-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
}

/* ---------- Image ---------- */

.wpddb-single-doctor-wrapper .doctor-thumb {
  width: 100%;
}

.wpddb-single-doctor-wrapper .doctor-thumb img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;

  /* subtle premium feel */
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ---------- Typography ---------- */

.wpddb-single-doctor-wrapper .doctor-info h2.entry-title {
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #0F172A;
}

.wpddb-single-doctor-wrapper .wpddb-doctor-speciality {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.25;
  font-weight: 500;
  color: #1E3A8A;
  margin-bottom: 20px;
}

.wpddb-single-doctor-wrapper .wpddb-doctor-designation {
  font-size: 18px;
  line-height: 1.7;
  color: #475569;
  max-width: 820px;
}

/* ---------- Meta spacing ---------- */

.wpddb-single-doctor-wrapper .doctor-info-wrapper {
  display: grid;
  gap: 18px;
}

.wpddb-single-doctor-wrapper
.doctor-top-content-wrapper
.doctor-info-wrapper > div:last-child {
  margin-top: 32px;
}

/* ---------- Schedule refinement ---------- */

.wpddb-single-doctor-wrapper .wpddb-clinic-schedule {
  margin-top: 32px;
}

.wpddb-single-doctor-wrapper .wpddb-clinic-name {
  font-size: 20px;
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .wpddb-single-doctor-wrapper {
    padding: 40px 16px;
  }

  .wpddb-single-doctor-wrapper .doctor-top-content-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .wpddb-single-doctor-wrapper .doctor-thumb img {
    height: 300px;
  }

  .wpddb-single-doctor-wrapper .wpddb-doctor-designation {
    margin: 0 auto;
  }
}

/* Languages → bordered chips look (without changing HTML) */
.wpddb-single-doctor-wrapper .wpddb-doctor-workplace{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;

  /* make the text look like chips even if it's a single string */
  padding: 8px 12px;
  border: 1px solid rgba(15,23,42,.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
}

/* Optional: visually separate comma items (works in most browsers) */
.wpddb-single-doctor-wrapper .wpddb-doctor-workplace{
  letter-spacing: .01em;
}


/* =========================================================
   Entry content: 2 columns (Left description / Right sidebar)
   ========================================================= */

@media (min-width: 992px){
  .wpddb-single-doctor-wrapper .entry-content{
    display: grid !important;
    grid-template-columns: 3fr 2fr; /* 60/40 */
    gap: 48px;
    align-items: start;
  }

  .wpddb-single-doctor-wrapper .entry-content > .doctor-description{
    grid-column: 1 / 2;
  }

  .wpddb-single-doctor-wrapper .entry-content > .doctor-sidebar{
    grid-column: 2 / 3;
    align-self: start;
  }

  /* Sidebar stack spacing */
  .wpddb-single-doctor-wrapper .doctor-sidebar{
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  /* Remove weird margins that push schedule down */
  .wpddb-single-doctor-wrapper .doctor-sidebar h3.wpddb-doctor-inner-title{
    margin: 0;
  }
  .wpddb-single-doctor-wrapper .doctor-sidebar .wpddb-clinic-schedule-wrapper{
    margin: 0;
  }
  .wpddb-single-doctor-wrapper .doctor-sidebar #wpddb-doctor-details-booking{
    margin: 0;
  }

  /* Paragraph rhythm */
  .wpddb-single-doctor-wrapper .doctor-description p{
    margin: 0 0 16px;
  }
}

/* Mobile: normal flow */
@media (max-width: 991px){
  .wpddb-single-doctor-wrapper .entry-content{
    display: block !important;
  }
}

/* =========================================================
   FIX: Schedule should use full width inside the right sidebar
   ========================================================= */

@media (min-width: 992px){

  /* Force schedule wrapper to be single column/full width */
  .wpddb-single-doctor-wrapper .doctor-sidebar .wpddb-clinic-schedule-wrapper{
    display: block !important;   /* kills the plugin grid */
    width: 100% !important;
  }

  /* Each schedule card should be full width */
  .wpddb-single-doctor-wrapper .doctor-sidebar .wpddb-clinic-schedule{
    width: 100% !important;
    margin: 0 !important;
  }

  /* Booking block also full width */
  .wpddb-single-doctor-wrapper .doctor-sidebar #wpddb-doctor-details-booking{
    width: 100% !important;
  }
}

/* =========================================================
   Modernize Doctor page:
   - Right column (Schedule + Booking) as modern cards
   - Left column description typography upgrade
   ========================================================= */

.wpddb-single-doctor-wrapper{
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;

  --card-bg: #ffffff;
  --card-border: rgba(15, 23, 42, .10);

  --card-shadow: 0 12px 30px rgba(2, 6, 23, .08);
  --radius: 18px;
}

/* ---------------------------
   Description typography
   --------------------------- */

.wpddb-single-doctor-wrapper .doctor-description p{
  font-size: 17px;                 /* modern readable size */
  line-height: 1.85;
  color: var(--text);
  letter-spacing: .01em;
  margin: 0 0 16px;
}

.wpddb-single-doctor-wrapper .doctor-description p:first-of-type{
  font-size: 18px;
  color: var(--ink);
}

.wpddb-single-doctor-wrapper .doctor-description p + p{
  margin-top: 10px;
}

/* Optional: nicer links in description */
.wpddb-single-doctor-wrapper .doctor-description a{
  color: #1d4ed8;
  text-decoration: none;
}
.wpddb-single-doctor-wrapper .doctor-description a:hover{
  text-decoration: underline;
}

/* ---------------------------
   Right column: card styling
   --------------------------- */

@media (min-width: 992px){

  /* Make the whole sidebar feel grouped */
  .wpddb-single-doctor-wrapper .doctor-sidebar{
    gap: 20px;
  }

  /* Section title (Doctor Schedule) – cleaner */
  .wpddb-single-doctor-wrapper .doctor-sidebar h3.wpddb-doctor-inner-title{
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
  }

  /* Schedule wrapper becomes a card */
  .wpddb-single-doctor-wrapper .doctor-sidebar .wpddb-clinic-schedule-wrapper{
    background: linear-gradient(180deg, rgba(59,130,246,.08), rgba(59,130,246,.03));
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 18px;
  }

  /* Each clinic block inside */
  .wpddb-single-doctor-wrapper .doctor-sidebar .wpddb-clinic-schedule{
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }

  /* Clinic title link */
  .wpddb-single-doctor-wrapper .doctor-sidebar .wpddb-clinic-name a{
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
  }
  .wpddb-single-doctor-wrapper .doctor-sidebar .wpddb-clinic-name a:hover{
    text-decoration: underline;
  }

  /* Time rows */
  .wpddb-single-doctor-wrapper .doctor-sidebar .wpddb-time-wrapper{
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(15,23,42,.08);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
  }

  /* Availability style */
  .wpddb-single-doctor-wrapper .doctor-sidebar .status.has-bookable{
    color: #16a34a;
    font-weight: 700;
  }

  /* Call for booking footer as a pill row */
  .wpddb-single-doctor-wrapper .doctor-sidebar .clinic-footer{
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(15,23,42,.08);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: var(--muted);
  }

  .wpddb-single-doctor-wrapper .doctor-sidebar .wpddb-booking-number a{
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,.05);
    border: 1px solid rgba(15,23,42,.10);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
  }
  .wpddb-single-doctor-wrapper .doctor-sidebar .wpddb-booking-number a:hover{
    background: rgba(59,130,246,.10);
    border-color: rgba(59,130,246,.25);
  }

  /* Booking widget: wrap it in a card look too */
  .wpddb-single-doctor-wrapper .doctor-sidebar #wpddb-doctor-details-booking > div{
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--card-shadow) !important;
    padding: 18px !important;
  }

  /* Booking title */
  .wpddb-single-doctor-wrapper .doctor-sidebar #wpddb-doctor-details-booking h3{
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--ink) !important;
    margin-bottom: 12px !important;
  }

  /* Inputs: modern radius + focus */
  .wpddb-single-doctor-wrapper .doctor-sidebar #wpddb-doctor-details-booking input,
  .wpddb-single-doctor-wrapper .doctor-sidebar #wpddb-doctor-details-booking select,
  .wpddb-single-doctor-wrapper .doctor-sidebar #wpddb-doctor-details-booking textarea{
    border-radius: 12px !important;
    border-color: rgba(15,23,42,.14) !important;
  }

  /* Buttons: slightly more premium */
  .wpddb-single-doctor-wrapper .doctor-sidebar #wpddb-doctor-details-booking button,
  .wpddb-single-doctor-wrapper .doctor-sidebar #wpddb-doctor-details-booking .button{
    border-radius: 12px !important;
    font-weight: 800 !important;
  }
}

/* ---------------------------
   Mobile polish
   --------------------------- */
@media (max-width: 991px){
  .wpddb-single-doctor-wrapper .doctor-description p{
    font-size: 16px;
    line-height: 1.8;
  }
}

/* =========================================================
   MOBILE FIX: Reduce doctor image height
   ========================================================= */

@media (max-width: 768px){

  .wpddb-single-doctor-wrapper .doctor-thumb img{
    height: 220px;          /* 👈 adjust if needed (200–240 ideal) */
    object-fit: cover;
    border-radius: 18px;
  }

  /* Optional: reduce shadow on mobile (cleaner look) */
  .wpddb-single-doctor-wrapper .doctor-thumb img{
    box-shadow: 0 10px 20px rgba(0,0,0,0.10);
  }
}

/* =========================================================
   MOBILE FIX – Reduce doctor image CARD + image height
   ========================================================= */

@media (max-width: 768px){

  /* Image container */
  .wpddb-single-doctor-wrapper .doctor-thumb{
    max-height: 260px;      /* controls the white card height */
    padding: 16px;         /* reduce padding */
    border-radius: 20px;
  }

  /* Actual image */
  .wpddb-single-doctor-wrapper .doctor-thumb img{
    height: 200px;         /* 👈 KEY VALUE (try 180–210 if needed) */
    max-height: 250px;
    width: 100%;
    object-fit: contain;  /* prevents cutting head */
    border-radius: 14px;

    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
  }
}


/* =========================================================
   MOBILE – Schedule card same look as desktop
   ========================================================= */
@media (max-width: 768px){

  /* Wrap card */
  .wpddb-single-doctor-wrapper .wpddb-clinic-schedule-wrapper{
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 24px rgba(15,23,42,.08);
  }

  /* Remove the “3 block” feel */
  .wpddb-single-doctor-wrapper .wpddb-clinic-schedule,
  .wpddb-single-doctor-wrapper .wpddb-clinic-header,
  .wpddb-single-doctor-wrapper .wpddb-clinic-schedule .content-wrap,
  .wpddb-single-doctor-wrapper .wpddb-clinic-schedule .clinic-footer{
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }

  /* Clinic title */
  .wpddb-single-doctor-wrapper .wpddb-clinic-name{
    margin: 0 0 12px !important;
    text-align: left;
  }
  .wpddb-single-doctor-wrapper .wpddb-clinic-name a{
    display: block;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.25;
    color: #0F172A !important;
    text-decoration: none !important;
  }

  /* Day row */
  .wpddb-single-doctor-wrapper .wpddb-time-wrapper{
    background: #F8FAFC;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    padding: 12px 12px;
    margin: 0 0 12px !important;
    line-height: 1.6;
    color: #334155;
    font-size: 14px;
  }

  /* Times + availability */
  .wpddb-single-doctor-wrapper .wpddb-time-wrapper strong{
    color: #0F172A;
    font-weight: 700;
  }
  .wpddb-single-doctor-wrapper .wpddb-time-wrapper .time{
    font-weight: 700;
    color: #0F172A;
  }
  .wpddb-single-doctor-wrapper .wpddb-time-wrapper .status{
    font-weight: 700;
  }
  .wpddb-single-doctor-wrapper .wpddb-time-wrapper .status.has-bookable{
    color: #16A34A !important;
  }

  /* Footer booking line */
  .wpddb-single-doctor-wrapper .clinic-footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px !important;
    border-top: 1px solid rgba(15,23,42,.08);
    margin-top: 10px !important;
    font-size: 14px;
  }
  .wpddb-single-doctor-wrapper .wpddb-booking-title{
    color: #475569;
    font-weight: 600;
  }
  .wpddb-single-doctor-wrapper .wpddb-booking-number a{
    color: #1D4ED8 !important;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
  }
}
p {
    margin-bottom: 0.75em !important;
}