/* =======================
   RTL + Custom Styling
   ======================= */

body {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

.navbar-nav {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.custom_menu ul {
  direction: rtl;
}

.custom_menu ul li {
  float: right;
}

.carousel-control-prev {
  right: auto;
  left: 0;
}

.carousel-control-next {
  left: auto;
  right: 0;
}

input,
textarea,
select {
  text-align: right;
}

.navbar-nav .nav-link {
  white-space: nowrap;
  padding-left: 18px;
  padding-right: 18px;
}

/* Spacing for contact and map sections */
.contact_section_2 {
  padding-right: 40px;
}
.map_main {
  padding-left: 40px;
}

/* Doctors section adjustments */
.doctores_section {
  border-radius: 20px !important;
  margin-bottom: 100px !important;
}
.doctores_box {
  border-radius: 10px !important;
}

/* Footer adjustments */
.footer_section {
  padding: 20px 0 !important;
}
.copyright_text {
  color: white !important;
  margin: 0 !important;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer_taital,
.ipsum_text {
  color: #fff !important;
}

/* Counter Card */
.counter_card {
  background: #0cb7d610;
  border: 1px solid #0cb7d6;
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.counter_label {
  color: #0b6f80;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.counter_value {
  color: #0cb7d6;
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
}
@media (max-width: 767.98px) {
  .counter_value {
    font-size: 36px;
  }
}

/* About Section Layout Fix */
.about_section.layout_padding {
  padding-top: 0 !important;
}
.about_section .about_taital {
  margin-top: 0 !important;
  line-height: 1.25;
}
.about_section .about_text {
  margin-top: 0 !important;
}
.about_section .about_img img {
  display: block;
  width: 100%;
  height: auto;
}
.about_section .col-md-6 {
  padding-top: 0 !important;
}
@media (min-width: 992px) {
  .about_section .row.g-0 {
    row-gap: 0;
  }
}

/* Highlights */
.hl {
  color: #0cb7d6;
  font-weight: 700;
}

/* Service badges like H&E, IHC */
.kbadge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(12, 183, 214, 0.12);
  color: #0cb7d6;
  font-weight: 700;
  line-height: 1;
  font-size: 0.95em;
}

/* Accent line beside About text */
.about_accent {
  border-right: 3px solid rgba(12, 183, 214, 0.35);
  padding-right: 12px;
}

/* About Image Styling */
.about-figure {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  outline: 1px solid rgba(12, 183, 214, 0.2);
  background: #0f1f23;
}
.about-figure__img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.about-figure::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto auto;
  width: 55%;
  height: 55%;
  background: linear-gradient(135deg, rgba(12, 183, 214, 0.28), rgba(12, 183, 214, 0));
  transform: rotate(-8deg);
  filter: blur(12px);
  pointer-events: none;
}
.about-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.12) 80%);
  pointer-events: none;
}
.about-figure__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(12, 183, 214, 0.92);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 18px rgba(12, 183, 214, 0.35);
}
.about-figure:hover .about-figure__img {
  transform: scale(1.02);
  filter: contrast(1.03) saturate(1.02);
}
@media (max-width: 767px) {
  .about-figure {
    border-radius: 12px;
  }
  .about-figure__badge {
    left: 12px;
    bottom: 12px;
    font-size: 13px;
  }
}

/* Appointment form labels aligned right */
.appointment_section .field_label {
  display: block;
  width: 100%;
  text-align: right;
  margin: 0 2px 8px 0;
}
.appointment_section .col-md-4,
.appointment_section .col-md-6 {
  text-align: initial;
}

/* Custom File Input */
.custom-file {
  position: relative;
  display: block;
  cursor: pointer;
}
.custom-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  display: block;
}
.custom-file .file-ui {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  position: relative;
  z-index: 1;
  pointer-events: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.custom-file:hover .file-ui {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border-color: #d8d8d8;
}
.custom-file:active .file-ui {
  transform: translateY(1px);
}
.custom-file input[type="file"]:focus-visible + .file-ui,
.custom-file:focus-within .file-ui {
  outline: 2px solid #0cb7d6;
  outline-offset: 2px;
}
.custom-file .file-button {
  background: #0cb7d6;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  white-space: nowrap;
}
.custom-file .file-name {
  color: #555;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Experience text under banner */
.banner_experience {
  text-align: center;
  color: #0cb7d6;
  font-weight: 700;
  font-size: 20px;
  margin-top: 20px;
  letter-spacing: 0.3px;
}

/* Ensure service row direction */
.services-row {
  flex-direction: row !important;
}


/* Fix: add breathing space above doctors section */
.doctores_section {
  margin-top: 60px;
}

/* Fix: add right/left padding to map section */
.contact_section .map_main {
  padding: 0 30px;
}

/* Fix top header to stay visible when scrolling */
.header_top_section {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1050; /* stays above everything else */
}

/* Adjust the rest of the content to avoid overlap */
.header_section {
  margin-top: 50px; /* equal to header_top_section height */
}

/* Force header banner to appear taller */
.header_section {
  padding-top: 25px !important;
  padding-bottom: 25px !important;
}

/* Also enlarge nav links slightly for better balance */
.header_section .navbar-nav .nav-link {
  font-size: 17px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}


.doctor_card {
  background: #fff;
  border-radius: 18px;
  padding: 40px 0px 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.doctor_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 1.16);
}

.doctor_img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid #0cb7d6;
  background: #f7f9fa;
  box-shadow: 0 4px 20px rgba(12, 183, 214, 1.08);
}
.doctor_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor_name {
  font-size: 25px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);

  color: #0cb7d6;
  margin-bottom: 8px;
}
.doctor_title {
  font-size: 18px;
  color: #333;
  font-weight: 600;
  margin: 0;
}

.doctor_desc {
  color: #444;
  font-size: 15px;
  line-height: 1.8;
  margin-top: 11px;
  direction: rtl;
  text-align: center;
}

.service_card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}
.service_icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-mini-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-mini-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-mini-body {
  padding: 16px;
  text-align: center;
}

.service-mini-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.service-mini-card {
  border: 1px solid #eaeaea;
  border-radius: 16px;
}

.service-mini-thumb {
  position: relative;
  overflow: hidden;
}
.service-mini-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 183, 214, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-mini-card:hover .service-mini-thumb::after {
  opacity: 1;
}


/* ===== Contact cards (shared) ===== */
.contact-cards-wrap {
  padding: 0 30px;
  margin: 0 0 80px 0;
  clear: both;
}

.contact-cards-bg {
  background: linear-gradient(135deg, #2c6b9f 0%, #3a8ec4 100%);
  border-radius: 25px;
  padding: 60px 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.section-head h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  text-shadow: 0 3px 6px rgba(0,0,0,0.15);
  letter-spacing: 1px;
  margin: 0;
}

.section-underline {
  width: 80px;
  height: 4px;
  background: #fff;
  margin: 20px auto 0;
  border-radius: 2px;
  opacity: 0.8;
}

.info-card {
  background: #fff;
  border-radius: 15px;
  padding: 35px 25px;
  margin: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,2.12);
  height: 100%;
}

.info-card h4 {
  color: #2c6b9f;
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 700;
}

.info-card p {
  color: #666;
  font-size: 17px;
  margin: 0;
  line-height: 1.7;
}

.info-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #2c6b9f 0%, #3a8ec4 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.info-icon i { font-size: 36px; color: #fff; }

/* Small tweak for narrow screens */
@media (max-width: 576px){
  .section-head h1 { font-size: 32px; }
  .contact-cards-bg { padding: 40px 18px; }
}

/* ===== Header Top Section Fixes ===== */
.header_top_main a {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* adds consistent spacing between icon and text */
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}

.header_top_main i {
  font-size: 16px;
  color: #fff;
  margin-left: 6px; /* ensures icon isn't stuck to the right edge */
}

.header_top_main .call_text,
.header_top_main .call_text_1,
.header_top_main .call_text_2 {
  margin-inline-start: 20px; /* adds spacing between each info group */
}

@media (max-width: 768px) {
  .header_top_main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

button.read_bt.submit-btn {
  background-color: #0cb7d6;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 40px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

button.read_bt.submit-btn:hover {
  background-color: #089bb8;
  transform: translateY(-2px);
}
.file-name {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.submit_btn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-block;
}
<style>
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;  /* Changed from left to right */
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  color: #FFF;
  text-decoration: none;
}

.whatsapp-float i {
  margin-top: 0;
  line-height: 1;
}
</style>