/* Dr. Aso Baban overrides on top of the Fertilys template */

/* Keep the six menu items on one line */
.main-menu .navigation { display: flex; flex-wrap: nowrap; white-space: nowrap; }
.main-menu .navigation > li { float: none; }

/* Social links are hidden until the clinic's real accounts are added */
.social-icon-list.one, .mobile-menu .social-links { display: none !important; }

/* Booking form */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 14px 0 0; min-height: 1.5em; font-size: 15px; color: #fff; }
.form-status.is-success { color: #b8f0d8; }
.form-status.is-error { color: #ffd2cc; }
.booking-form button[disabled] { opacity: .6; cursor: wait; }

/* Booking form on the light contact page */
.booking-light .form-clt input,
.booking-light .form-clt textarea {
  width: 100%;
  border: 1px solid #dfe6e5;
  border-radius: 10px;
  background: #f6f8f8;
  padding: 16px 20px;
  margin-bottom: 16px;
  color: #1e1e1e;
}
.booking-light .form-clt textarea { min-height: 150px; }
.booking-light .form-status { color: #1e1e1e; }
.booking-light .form-status.is-success { color: #1f7a5a; }
.booking-light .form-status.is-error { color: #b3261e; }

/* Service details list */
.service-detail-item {
  height: 100%;
  padding: 32px;
  border-radius: 20px;
  background: #f4f7f6;
  scroll-margin-top: 120px;
}
.service-detail-item .icon { font-size: 44px; line-height: 1; color: var(--theme-color1, #477b72); margin-bottom: 16px; }
.service-detail-item .title { margin-bottom: 12px; }
.service-detail-item p { margin: 0; }
.service-note { margin: 32px auto 0; max-width: 760px; text-align: center; font-style: italic; }

/* Doctor profile focus list */
.doctor-focus { display: block !important; margin-top: 16px; }
.doctor-focus li { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; }

/* Center remaining blocks when empty ones are hidden */
.cta-section .row, .banner-section .feature-box .row { justify-content: center; }

/* Floating WhatsApp button (bottom-left; back-to-top sits bottom-right) */
.whatsapp-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
@media (max-width: 575px) { .whatsapp-float { left: 14px; bottom: 14px; width: 52px; height: 52px; } }

/* Language switcher (header + mobile menu) */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, .14); margin-inline-end: 14px; }
.lang-switch a { font-size: 13px; line-height: 1; padding: 7px 10px; border-radius: 99px; color: inherit; text-decoration: none; white-space: nowrap; font-family: "Noto Kufi Arabic", system-ui, sans-serif; }
.lang-switch a:not([lang]) , .lang-switch a[lang="en"] { font-family: inherit; }
.lang-switch a.active { background: #fff; color: #1e2b29; }
.main-header .right-box { display: flex; align-items: center; }
.main-header .header-lower .lang-switch { color: #fff; }
.sticky-header .lang-switch, .mobile-menu .lang-switch { background: rgba(0, 0, 0, .06); }
.mobile-menu .upper-box .lang-switch { margin: 0 auto; color: #fff; background: rgba(255, 255, 255, .14); }
.lang-switch .short { display: none; }
.sticky-header .inner-container { display: flex; align-items: center; }
.sticky-header .sticky-switch { margin-inline-start: auto; margin-inline-end: 16px; color: #1e2b29; background: rgba(0, 0, 0, .06); }
.sticky-header .sticky-switch a.active { background: #477b72; color: #fff; }
@media (max-width: 575px) {
  .lang-switch .full { display: none; }
  .lang-switch .short { display: inline; }
  .lang-switch a { padding: 7px 9px; }
  .main-header .header-lower .lang-switch { margin-inline-end: 10px; }
  .mobile-menu .lang-switch .full { display: inline; }
  .mobile-menu .lang-switch .short { display: none; }
  .sticky-header .header-phone_box { display: none; }
}

/* Banner info boxes: keep "Name – Address" on one flowing line and let long text wrap */
.banner-section .feature-box .inner span span { display: inline !important; }
.banner-section .feature-box .inner span { white-space: normal; overflow-wrap: anywhere; }

/* Phones: make room for logo + language buttons + menu button in the top bar */
@media (max-width: 575px) {
  .main-header .header-lower .inner-container { padding-left: 14px; padding-right: 14px; }
  .main-header .header-lower .logo img, .sticky-header .logo img { max-width: 128px; height: auto; }
  .main-header .header-lower .mobile-nav-toggler { margin-left: 8px !important; }
  html[dir="rtl"] .main-header .header-lower .mobile-nav-toggler { margin-left: 0 !important; margin-right: 8px !important; }
}

/* WhatsApp buttons in the booking sections */
.wa-buttons { margin: 0 0 28px; }
.wa-title { font-weight: 600; margin-bottom: 10px; }
.contact-section .wa-title { color: #fff; }
.wa-btn { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff !important; padding: 10px 18px; border-radius: 99px; margin: 0 0 10px; margin-inline-end: 10px; font-weight: 600; text-decoration: none; direction: ltr; transition: transform .15s ease, background .15s ease; }
.wa-btn:hover { background: #1ebe5b; transform: translateY(-1px); }
.wa-btn svg { width: 20px; height: 20px; flex: none; }

/* Floating WhatsApp: button + menu with both numbers */
.whatsapp-float-wrap { position: fixed; left: 20px; bottom: 20px; z-index: 999; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.whatsapp-float-wrap .whatsapp-float { position: static; border: 0; cursor: pointer; }
.whatsapp-menu { background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); padding: 10px; min-width: 210px; }
.whatsapp-menu[hidden] { display: none; }
.wa-menu-title { font-size: 13px; font-weight: 600; color: #5f716e; padding: 4px 10px 8px; }
.whatsapp-menu a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: #1e2b29; text-decoration: none; font-weight: 600; direction: ltr; }
.whatsapp-menu a:hover { background: #eefaf2; }
.whatsapp-menu a svg { width: 22px; height: 22px; color: #25d366; flex: none; }
@media (max-width: 575px) { .whatsapp-float-wrap { left: 14px; bottom: 14px; } }

/* Language welcome screen (shown until the visitor picks a language) */
.lang-gate {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #eef4f3 55%, #dfeae8 100%);
}
html.lang-chosen .lang-gate { display: none; }
html:not(.lang-chosen) body { overflow: hidden; }
.lang-gate__card { width: 100%; max-width: 420px; text-align: center; }
.lang-gate__logo { width: 280px; max-width: 80%; height: auto; margin: 0 auto 44px; display: block; }
.lang-gate__prompt { display: flex; flex-direction: column; gap: 4px; margin: 0 0 24px; color: #5f716e; font-size: 15px; line-height: 1.6; font-family: "Noto Kufi Arabic", system-ui, sans-serif; }
.lang-gate__buttons { display: flex; flex-direction: column; gap: 12px; }
.lang-gate__btn {
  display: block; padding: 16px 20px; border-radius: 14px;
  background: #477b72; color: #fff !important; text-decoration: none;
  font-size: 19px; font-weight: 600; letter-spacing: 0;
  font-family: "Noto Kufi Arabic", system-ui, sans-serif;
  box-shadow: 0 6px 18px rgba(47, 90, 83, .18);
  transition: transform .15s ease, background .15s ease;
}
.lang-gate__btn[lang="en"] { font-family: inherit; }
.lang-gate__btn:hover { background: #2f5a53; transform: translateY(-1px); }

/* Language links in the footer */
.footer-lang { margin: 0 0 6px; font-size: 14px; }
.footer-lang a { color: inherit; opacity: .75; text-decoration: none; font-family: "Noto Kufi Arabic", system-ui, sans-serif; }
.footer-lang a[lang="en"] { font-family: inherit; }
.footer-lang a.active, .footer-lang a:hover { opacity: 1; text-decoration: underline; }

/* Doctor page: "Areas of Focus" as a card in the site palette (dark green, stands out from the light page) */
.team-details__bottom-right {
  background: linear-gradient(150deg, #0d6663 0%, #005252 60%, #004545 100%);
  color: #fff;
  border-radius: 22px;
  padding: 34px 32px 22px;
  box-shadow: 0 22px 48px rgba(0, 60, 60, .28), 0 4px 10px rgba(0, 60, 60, .14);
}
.team-details__bottom-right .team-details__bottom-left-title {
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(255, 255, 255, .18);
}
.team-details__bottom-right .doctor-focus { margin-top: 0; }
.team-details__bottom-right .doctor-focus li {
  align-items: flex-start;
  padding: 11px 0;
  margin: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .16);
  line-height: 1.55;
  color: rgba(255, 255, 255, .92);
}
.team-details__bottom-right .doctor-focus li span { color: inherit; }
.team-details__bottom-right .doctor-focus li:last-child { border-bottom: 0; }
.team-details__bottom-right .doctor-focus li i { color: #9fd6c9; margin-top: 4px; flex: none; }
@media (max-width: 991px) { .team-details__bottom-right { margin-top: 30px; } }
@media (max-width: 575px) { .team-details__bottom-right { padding: 26px 20px 16px; border-radius: 18px; } }

/* Pop-up on scroll (enabled by booking.js; content stays visible without JS) */
html.reveal-ready .reveal-pop {
  opacity: 0;
  transform: scale(.82);
  transform-origin: center center;
  transition: opacity 1.2s ease-in-out, transform 1.5s cubic-bezier(.25, .1, .25, 1);
  will-change: opacity, transform;
}
html.reveal-ready .reveal-pop.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .reveal-pop { opacity: 1; transform: none; transition: none; }
}

/* Menu: separate pill per item (replaces the template's single rounded box) */
.header-style-one .header-lower .inner-container .main-box .left-box .nav-outer {
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0;
}
.main-menu .navigation { gap: 8px; }
.main-menu .navigation > li { margin: 0 !important; }
.header-style-one .header-lower .inner-container .main-box .left-box .main-menu .navigation > li { padding: 22px 0; }
.main-menu .navigation > li > a {
  display: inline-block;
  padding: 9px 18px !important;
  border-radius: 999px;
  line-height: 1.2;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.main-menu .navigation > li > a::before, .main-menu .navigation > li > a::after { display: none !important; }
/* over the banner / page heading (white text) */
.main-header .header-lower .main-menu .navigation > li > a {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.main-header .header-lower .main-menu .navigation > li:hover > a { background: rgba(255, 255, 255, .26); }
.main-header .header-lower .main-menu .navigation > li.current > a {
  background: #fff;
  border-color: #fff;
  color: var(--theme-color1, #005252) !important;
}
/* sticky white bar shown after scrolling */
.sticky-header .main-menu .navigation > li { padding-top: 14px; padding-bottom: 14px; }
.sticky-header .main-menu .navigation > li > a {
  background: rgba(0, 82, 82, .06);
  border: 1px solid rgba(0, 82, 82, .12);
  color: #1e2b29 !important;
}
.sticky-header .main-menu .navigation > li:hover > a { background: rgba(0, 82, 82, .12); }
.sticky-header .main-menu .navigation > li.current > a {
  background: var(--theme-color1, #005252);
  border-color: var(--theme-color1, #005252);
  color: #fff !important;
}
@media (max-width: 1399.98px) { .main-menu .navigation > li > a { padding: 8px 13px !important; } .main-menu .navigation { gap: 6px; } }

/* FAQ & Doctor pages: the booking section is followed directly by the footer; give it room */
.contact-section + .main-footer { margin-top: 110px; }
@media (max-width: 991px) { .contact-section + .main-footer { margin-top: 70px; } }
@media (max-width: 575px) { .contact-section + .main-footer { margin-top: 50px; } }

/* "Send on WhatsApp" button shown after a booking is saved */
.form-status .wa-send { margin-top: 10px; }

/* ================= Phone & tablet fixes ================= */
@media (max-width: 991.98px) {
  /* Letter-by-letter heading animation starts letters off-screen and cuts them off on small screens: show headings as-is */
  .char-animation, .char-animation * {
    opacity: 1 !important; visibility: visible !important; transform: none !important; translate: none !important;
  }
  /* Doctor page blocks use desktop side margins */
  .team-details__top-left, .team-details__bottom-left { margin-right: 0; }
  .team-details__bottom-right { margin-left: 0; }
  html[dir="rtl"] .team-details__top-left, html[dir="rtl"] .team-details__bottom-left { margin-left: 0; }
}

@media (max-width: 767.98px) {
  /* Less empty space between sections */
  .section-padding:not(.pt-0) { padding-top: 60px; }
  .section-padding:not(.pb-0) { padding-bottom: 60px; }
  .pt-120, .pt-110 { padding-top: 70px !important; }
  .pb-120, .pb-100 { padding-bottom: 60px !important; }
  .pt-100 { padding-top: 60px !important; }

  /* "Treatments we offer": solid panel under the photo instead of text over a light image */
  .why-choose-us-section .image-column .inner-column .info {
    position: relative; bottom: auto; left: auto; width: auto;
    margin-top: -24px; padding: 34px 22px 20px;
    background: linear-gradient(150deg, #0d6663 0%, #005252 100%);
    border-radius: 0 0 20px 20px;
  }
  .why-choose-us-section .image-column .inner-column .image img { min-height: 0; max-height: 360px; }
  .why-choose-us-section .image-column .inner-column .image::before { display: none; }
  .why-choose-us-section .image-column .inner-column .image { height: auto !important; min-height: 0 !important; }
  .why-choose-us-section .image-column .inner-column .image img { width: 100%; height: 300px; object-fit: cover; }

  /* Home hero: show the photo clearly on top, text below on teal */
  .banner-section .outer-box { padding-top: 92px; background: linear-gradient(170deg, #0d6663 0%, #005252 100%); }
  .banner-section .outer-box::before { display: none; }
  .banner-section .bg.bg-image { position: relative; inset: auto; width: auto; height: 300px; margin: 0 12px; border-radius: 18px; overflow: hidden; }
  .banner-section .bg.bg-image img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 35%; }
  .banner-section .banner-content { padding-top: 30px !important; padding-bottom: 10px !important; }
  .banner-section .banner-content .inner-content { padding-bottom: 36px !important; }
  .banner-section .banner-content .banner-title { font-size: 34px; line-height: 1.3; }

  /* Doctor page: comfortable intro size */
  .team-details__top-text-1 { font-size: 20px; line-height: 1.6; margin-bottom: 20px; }
  .team-details__top-img img { width: 100%; }

  /* Section headings a bit smaller so long titles fit nicely */
  .sec-title .title.h2, .sec-title .h2.title { font-size: 30px; line-height: 1.25; }
}

/* White scrolling bar on phones: put the menu button at the far edge, after the language buttons */
@media (max-width: 1199.98px) {
  .sticky-header .inner-container .logo { order: 1; }
  .sticky-header .inner-container .sticky-switch { order: 2; margin-inline-start: auto; margin-inline-end: 12px; }
  .sticky-header .inner-container .nav-outer { order: 3; margin-inline-start: 0; }
  .sticky-header .inner-container .header-phone_box { order: 4; }
}

/* ================= Clinic assistant chat bubble (above the WhatsApp button) ================= */
.chatbot { position: fixed; left: 20px; bottom: 92px; z-index: 1000; font-size: 15px; }
.chatbot-btn { position: relative; width: 58px; height: 58px; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(150deg, #0d6663 0%, #005252 100%); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: transform .2s ease; }
.chatbot-btn:hover { transform: scale(1.08); }
.chatbot-badge { position: absolute; top: -6px; left: 40px; white-space: nowrap; background: #fff; color: #005252; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.chatbot-panel { position: absolute; left: 0; bottom: 72px; width: 350px; max-width: calc(100vw - 28px); max-height: min(560px, calc(100vh - 190px));
  display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.chatbot-panel[hidden] { display: none; }
.chatbot-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; color: #fff;
  background: linear-gradient(150deg, #0d6663 0%, #005252 100%); }
.chatbot-title { font-weight: 700; font-size: 16px; }
.chatbot-sub { font-size: 12.5px; opacity: .85; margin-top: 2px; }
.chatbot-x { background: transparent; border: 0; color: #fff; cursor: pointer; padding: 4px; line-height: 0; }
.chatbot-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f3f8f7; min-height: 160px; }
.chatbot-msg { max-width: 85%; padding: 10px 13px; border-radius: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.chatbot-bot { align-self: flex-start; background: #fff; color: #1e2b29; border-end-start-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.chatbot-user { align-self: flex-end; background: #0d6663; color: #fff; border-end-end-radius: 4px; }
.chatbot-typing { color: #5f716e; font-style: italic; }
.chatbot-ok { background: #e6f6ec; color: #17673a; }
.chatbot-err { background: #fdeceb; color: #9b2c25; }
.chatbot-wa { align-self: flex-start; border: 0; cursor: pointer; background: #25d366; color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 30px; }
.chatbot-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e3eceb; background: #fff; }
.chatbot-form input { flex: 1; min-width: 0; border: 1px solid #cfdcda; border-radius: 24px; padding: 10px 14px; font-size: 15px; outline: none; }
.chatbot-form input:focus { border-color: #0d6663; }
.chatbot-form button { border: 0; border-radius: 24px; padding: 0 16px; background: #0d6663; color: #fff; font-weight: 700; cursor: pointer; }
.chatbot-form button:disabled { opacity: .5; cursor: default; }
.chatbot-note { font-size: 11px; color: #7a8a87; text-align: center; padding: 0 10px 8px; background: #fff; }
html[dir="rtl"] .chatbot { left: auto; right: 20px; }
html[dir="rtl"] .chatbot-panel { left: auto; right: 0; }
html[dir="rtl"] .chatbot-badge { left: auto; right: 40px; }
@media (max-width: 575px) {
  .chatbot { left: 14px; bottom: 78px; }
  html[dir="rtl"] .chatbot { right: 14px; }
  .chatbot-btn { width: 52px; height: 52px; }
  .chatbot-panel { bottom: 64px; width: calc(100vw - 28px); }
}
