/*
 * SOS Medecins Tanger enhancements
 * Portable overrides for the existing Bootstrap/Colorlib template.
 */
:root {
  --sos-blue: #0b6fb3;
  --sos-blue-dark: #084b78;
  --sos-green: #24a55a;
  --sos-red: #e43d30;
  --sos-ink: #182333;
  --sos-muted: #607086;
  --sos-soft: #f4f8fb;
  --sos-border: #dfe9f2;
  --sos-shadow: 0 18px 45px rgba(24, 35, 51, 0.12);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  color: var(--sos-muted);
  background: #ffffff;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--sos-ink);
  font-weight: 700;
}

a {
  color: var(--sos-blue);
}

a:hover,
a:focus {
  color: var(--sos-green);
}

.container {
  max-width: 1180px;
}

.colorlib-loader {
  background-color: #ffffff;
}

.colorlib-nav {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(223, 233, 242, 0.8);
}

.colorlib-nav .top-menu {
  padding-top: 16px;
}

.colorlib-nav .top {
  padding: 0 0 16px;
}

.colorlib-nav .top img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.colorlib-nav .num,
.colorlib-nav .loc {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.colorlib-nav .num .icon,
.colorlib-nav .loc .icon {
  background: rgba(36, 165, 90, 0.1);
}

.colorlib-nav .num .icon i,
.colorlib-nav .loc .icon i {
  color: var(--sos-green);
}

.colorlib-nav .num p,
.colorlib-nav .loc p {
  margin-bottom: 4px;
  color: var(--sos-ink);
  font-weight: 600;
}

.colorlib-nav .num p a,
.colorlib-nav .loc p a {
  color: var(--sos-ink);
}

.colorlib-nav .menu-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--sos-blue-dark);
  padding: 12px 0;
  box-shadow: 0 12px 30px rgba(8, 75, 120, 0.18);
}

.colorlib-nav .menu-wrap .container {
  position: relative;
}

.colorlib-nav .menu-1 {
  padding-top: 4px;
}

.colorlib-nav ul li {
  position: relative;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.colorlib-nav ul li a {
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.94);
  padding: 11px 12px;
}

.colorlib-nav ul li.active > a,
.colorlib-nav ul li a:hover,
.colorlib-nav ul li a:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.colorlib-nav ul li.has-dropdown .dropdown {
  top: calc(100% + 8px);
  left: 50%;
  width: 220px;
  margin-left: -110px;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--sos-shadow);
  z-index: 1005;
}

.colorlib-nav ul li.has-dropdown:hover > .dropdown,
.colorlib-nav ul li.has-dropdown:focus-within > .dropdown,
.colorlib-nav ul li.has-dropdown.sos-dropdown-open > .dropdown,
.colorlib-nav ul li.has-dropdown .dropdown:hover {
  display: block;
  visibility: visible;
  opacity: 1;
}

.colorlib-nav ul li.has-dropdown .dropdown:before {
  left: 50%;
  border-bottom-color: #ffffff;
}

.colorlib-nav ul li.has-dropdown:after {
  position: absolute;
  top: 100%;
  right: -32px;
  left: -32px;
  height: 48px;
  content: "";
  z-index: 1003;
}

.colorlib-nav ul li.has-dropdown .dropdown li a {
  color: var(--sos-muted);
  padding: 7px 8px;
  border-radius: 6px;
}

.colorlib-nav ul li.has-dropdown .dropdown li a:hover {
  color: var(--sos-blue-dark);
  background: var(--sos-soft);
}

.colorlib-nav .btn-cta {
  padding-right: 178px;
  text-align: right;
}

.colorlib-nav .btn-cta a span,
.sos-call-button {
  background: var(--sos-red);
  border-color: var(--sos-red) !important;
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(228, 61, 48, 0.22);
}

.btn.btn-primary,
input.btn-primary {
  background: var(--sos-blue);
  border-color: var(--sos-blue) !important;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(11, 111, 179, 0.16);
}

.colorlib-nav .btn-cta a span {
  min-width: 180px;
  transform: none;
  white-space: nowrap;
}

.colorlib-nav .btn-cta a:hover span,
.sos-call-button:hover,
.sos-call-button:focus {
  background: #c92f24 !important;
  border-color: #c92f24 !important;
  box-shadow: 0 16px 30px rgba(228, 61, 48, 0.28) !important;
}

.btn.btn-primary:hover,
input.btn-primary:hover {
  background: var(--sos-blue-dark) !important;
  border-color: var(--sos-blue-dark) !important;
  box-shadow: 0 14px 26px rgba(8, 75, 120, 0.22) !important;
}

.sos-language-switcher {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 162px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1003;
}

.sos-language-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sos-language-switcher select {
  width: 100%;
  height: 38px;
  padding: 0 32px 0 12px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  color: var(--sos-blue-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 38px;
  cursor: pointer;
  outline: none;
}

.sos-language-switcher select:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.26);
}

#colorlib-hero {
  height: 690px;
  background-color: var(--sos-soft);
}

#colorlib-hero.hero {
  height: 520px !important;
}

#colorlib-hero .flexslider .slides li {
  min-height: 690px;
  background-position: center center;
}

#colorlib-hero.hero .flexslider .slides li {
  min-height: 520px;
}

#colorlib-hero .flexslider .slides li:after {
  background: linear-gradient(90deg, rgba(8, 75, 120, 0.78), rgba(8, 75, 120, 0.36));
}

#colorlib-hero .flexslider .slider-text {
  min-height: 610px;
  opacity: 1 !important;
}

#colorlib-hero.hero .flexslider .slider-text {
  min-height: 500px;
}

#colorlib-hero .flexslider .slider-text > .slider-text-inner {
  height: 610px;
}

#colorlib-hero.hero .flexslider .slider-text > .slider-text-inner {
  height: 500px;
}

#colorlib-hero .flexslider .slider-text > .slider-text-inner h1 {
  max-width: 780px;
  color: #ffffff !important;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.26);
}

#colorlib-hero .flexslider .slider-text > .slider-text-inner h1 strong {
  color: #ffffff !important;
}

#colorlib-hero .flexslider .slider-text > .slider-text-inner h2,
#colorlib-hero .flexslider .slider-text > .slider-text-inner h3 {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

#colorlib-hero .flexslider .slider-text > .slider-text-inner h3 {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(228, 61, 48, 0.94);
}

.intro {
  margin-top: -92px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--sos-shadow);
}

.intro-grid {
  min-height: 230px;
  padding: 2em;
}

.intro-grid.color-1,
.intro-grid.color-2,
.intro-grid.color-3 {
  background: var(--sos-blue);
}

.intro-grid.color-2 {
  background: var(--sos-green);
}

.intro-grid.color-3 {
  background: var(--sos-blue-dark);
}

.intro-grid h3 {
  letter-spacing: 0;
}

.intro-grid p {
  color: rgba(255, 255, 255, 0.88);
}

#colorlib-about,
#colorlib-services,
#colorlib-blog,
#colorlib-contact,
#colorlib-doctor,
.colorlib-bg-section {
  background: #ffffff;
}

#colorlib-about {
  background: linear-gradient(180deg, #ffffff 0%, var(--sos-soft) 100%);
}

.about-img,
.doctor,
.blog-entry,
.services,
.appointment-wrap,
.panel-body,
.contact-info-wrap {
  border-radius: 8px;
}

.about-img {
  box-shadow: var(--sos-shadow);
}

.colorlib-heading h2,
#colorlib-about h2 {
  position: relative;
  margin-bottom: 18px;
  color: var(--sos-ink);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
}

.colorlib-heading h2:after,
#colorlib-about > .container h2:after {
  display: block;
  width: 72px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: var(--sos-green);
  content: "";
}

#colorlib-about > .container h2:after {
  margin-left: 0;
}

.panel-heading a {
  border-radius: 8px;
  background: var(--sos-green) !important;
  color: #ffffff !important;
  letter-spacing: 0;
}

.panel-heading a:after {
  color: currentColor;
}

.panel-heading a.collapsed {
  color: var(--sos-ink) !important;
  background: #ffffff !important;
  border-color: var(--sos-border) !important;
}

.panel-body {
  border-color: var(--sos-border) !important;
  background: #ffffff;
}

#colorlib-appointment {
  background: var(--sos-blue-dark);
  color: #ffffff;
}

#colorlib-appointment h2 {
  color: #ffffff;
  font-weight: 800;
}

.services {
  min-height: 255px;
  border-color: var(--sos-border) !important;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(24, 35, 51, 0.06);
}

.services:hover {
  transform: translateY(-4px);
  box-shadow: var(--sos-shadow);
}

.services .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(11, 111, 179, 0.1);
}

.services .icon i {
  color: var(--sos-blue);
}

.services h3,
.features h3,
.doctor h3,
.blog-entry h3 {
  letter-spacing: 0;
}

.choose .features-wrap {
  background: var(--sos-blue-dark);
}

.choose .features-wrap .colorlib-heading h2,
.choose .features-wrap h3,
.choose .features-wrap p {
  color: #ffffff;
}

.choose .features .icon {
  background: rgba(255, 255, 255, 0.1);
}

.choose .features .icon i {
  color: #ffffff;
}

.doctor,
.blog-entry {
  border: 1px solid var(--sos-border);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(24, 35, 51, 0.06);
}

.doctor .desc,
.blog-entry .desc {
  padding: 24px;
}

.staff-img,
.blog-img {
  min-height: 240px;
}

#colorlib-counter {
  background-position: center center;
}

#colorlib-counter .overlay {
  background: rgba(8, 75, 120, 0.78);
}

.colorlib-counters .icon i,
.colorlib-counters .colorlib-counter,
.colorlib-counters .colorlib-counter-label {
  color: #ffffff;
}

.appointment-wrap,
.contact-info-wrap {
  padding: 28px;
  border: 1px solid var(--sos-border);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(24, 35, 51, 0.06);
}

.form-control {
  min-height: 46px;
  border-color: var(--sos-border);
  border-radius: 6px;
  box-shadow: none;
}

.form-control:focus {
  border-color: var(--sos-blue);
  box-shadow: 0 0 0 3px rgba(11, 111, 179, 0.12);
}

.sos-legal-page {
  padding: 56px 0;
  background: var(--sos-soft);
}

.sos-legal-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--sos-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(24, 35, 51, 0.06);
}

.sos-legal-card h1 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.2;
}

.sos-legal-card h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 24px;
}

.sos-legal-card h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 19px;
}

.sos-legal-card p,
.sos-legal-card li {
  color: var(--sos-muted);
  overflow-wrap: anywhere;
}

.sos-legal-card ul {
  padding-left: 22px;
  margin-bottom: 22px;
}

.sos-detail-page {
  background: #ffffff;
}

.sos-detail-section {
  padding: 64px 0;
}

.sos-detail-section:nth-child(even) {
  background: var(--sos-soft);
}

.sos-detail-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(36, 165, 90, 0.12);
  color: var(--sos-green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.sos-detail-lead {
  max-width: 820px;
  margin: 0 auto 34px;
  color: var(--sos-muted);
  font-size: 18px;
  line-height: 1.75;
}

.sos-detail-card,
.sos-city-card,
.sos-step-card {
  height: 100%;
  padding: 28px;
  border: 1px solid var(--sos-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(24, 35, 51, 0.06);
}

.sos-detail-card h3,
.sos-city-card h3,
.sos-step-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
}

.sos-detail-card p,
.sos-city-card p,
.sos-step-card p {
  margin-bottom: 0;
}

.sos-detail-list,
.sos-area-list {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.sos-detail-list li,
.sos-area-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--sos-muted);
}

.sos-detail-list li:before,
.sos-area-list li:before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--sos-green);
  font-family: Arial, sans-serif;
  content: "✓";
}

.sos-step-card {
  position: relative;
}

.sos-step-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--sos-blue-dark);
  color: #ffffff;
  font-weight: 800;
}

.sos-detail-cta {
  padding: 42px 0;
  background: var(--sos-blue-dark);
  color: #ffffff;
}

.sos-detail-cta h2,
.sos-detail-cta p {
  color: #ffffff;
}

.sos-detail-cta h2 {
  margin-top: 0;
  font-size: 32px;
}

.sos-city-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
}

.sos-city-card .sos-city-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  color: var(--sos-blue-dark);
  font-weight: 800;
}

.sos-city-card .sos-city-link:hover {
  color: var(--sos-green);
}

.sos-polished-section {
  background: #ffffff;
}

.sos-content-panel {
  padding: 32px;
  border: 1px solid var(--sos-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(24, 35, 51, 0.08);
}

.sos-content-panel h2,
.sos-content-panel h3 {
  margin-top: 0;
}

.sos-content-panel p:last-child {
  margin-bottom: 0;
}

.sos-split-panel {
  padding: 34px;
  border-radius: 8px;
  background: var(--sos-blue-dark);
  color: #ffffff;
}

.sos-split-panel h3,
.sos-split-panel p,
.sos-split-panel li {
  color: #ffffff;
}

.sos-split-panel h3 {
  margin-top: 0;
}

.sos-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.sos-stat {
  padding: 18px;
  border-radius: 8px;
  background: var(--sos-soft);
}

.sos-stat strong {
  display: block;
  color: var(--sos-blue-dark);
  font-size: 25px;
  line-height: 1.1;
}

.sos-stat span {
  color: var(--sos-muted);
  font-size: 13px;
  font-weight: 700;
}

.sos-proof-card {
  min-height: 210px;
  padding: 28px;
  border-left: 4px solid var(--sos-green);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(24, 35, 51, 0.07);
}

.sos-proof-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.sos-process-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.sos-process-step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--sos-border);
  border-radius: 8px;
  background: #ffffff;
}

.sos-process-step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--sos-green);
  color: #ffffff;
  font-weight: 800;
}

.sos-process-step h3 {
  margin-top: 0;
  font-size: 18px;
}

.sos-service-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.sos-service-link-card {
  display: block;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--sos-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--sos-ink);
}

.sos-service-link-card:hover,
.sos-service-link-card:focus {
  border-color: rgba(36, 165, 90, 0.45);
  color: var(--sos-ink);
  box-shadow: 0 14px 30px rgba(24, 35, 51, 0.08);
}

.sos-service-link-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--sos-blue-dark);
  font-size: 18px;
}

.sos-service-link-card span {
  color: var(--sos-muted);
}

.sos-local-panel {
  padding: 30px;
  border-radius: 8px;
  background: var(--sos-soft);
}

.sos-local-panel h3 {
  margin-top: 0;
}

.sos-page-intro {
  padding: 64px 0;
  background: #ffffff;
}

.sos-page-intro .sos-detail-lead {
  margin-bottom: 0;
}

#colorlib-footer {
  background: var(--sos-ink);
}

#colorlib-footer .row {
  margin-right: 0;
  margin-left: 0;
}

#colorlib-footer .overlay {
  background: transparent;
}

#colorlib-footer h3,
#colorlib-footer p,
#colorlib-footer a,
#colorlib-footer small,
#colorlib-footer .colorlib-footer-links li a {
  color: rgba(255, 255, 255, 0.82);
}

#colorlib-footer h3 {
  color: #ffffff;
  font-weight: 800;
}

#colorlib-footer a:hover {
  color: #ffffff;
}

.float {
  background: var(--sos-red) !important;
  box-shadow: 0 10px 25px rgba(228, 61, 48, 0.3) !important;
}

.float2 {
  color: #ffffff !important;
  font-weight: 800;
}

#test-popup {
  width: min(420px, calc(100% - 30px)) !important;
  right: 15px !important;
  bottom: 18px !important;
  z-index: 2000 !important;
  padding: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  background: rgba(24, 35, 51, 0.96) !important;
  box-shadow: var(--sos-shadow) !important;
}

#test-popup p {
  color: #ffffff !important;
}

#test-popup button {
  min-height: 38px;
  border-radius: 6px !important;
  font-weight: 800;
}

.sos-lang-ar {
  font-family: Tahoma, Arial, sans-serif;
}

[dir="rtl"] .colorlib-nav .num .icon,
[dir="rtl"] .colorlib-nav .loc .icon {
  right: 0;
  left: auto;
}

[dir="rtl"] .colorlib-nav .num p,
[dir="rtl"] .colorlib-nav .loc p {
  padding-right: 80px;
  padding-left: 0;
}

[dir="rtl"] .colorlib-nav ul li.has-dropdown .dropdown {
  left: auto;
  right: 50%;
  margin-right: -110px;
  margin-left: 0;
  text-align: right;
}

[dir="rtl"] .sos-language-switcher {
  right: auto;
  left: 15px;
}

[dir="rtl"] .colorlib-nav .btn-cta {
  padding-right: 0;
  padding-left: 178px;
  text-align: left;
}

[dir="rtl"] .colorlib-nav .btn-cta a span {
  transform: none;
}

@media screen and (max-width: 992px) {
  .colorlib-nav .btn-cta {
    padding-right: 0;
  }

  [dir="rtl"] .colorlib-nav .btn-cta {
    padding-left: 0;
  }

  .sos-language-switcher {
    position: static;
    transform: none;
    justify-content: center;
    width: min(100%, 340px);
    margin: 12px auto 0;
  }
}

@media screen and (max-width: 768px) {
  .colorlib-nav .top {
    padding-bottom: 20px;
  }

  .colorlib-nav .top img {
    display: block;
    margin: 0 auto 16px;
  }

  .colorlib-nav .num,
  .colorlib-nav .loc {
    margin-bottom: 12px;
  }

  #colorlib-hero,
  #colorlib-hero .flexslider .slides li {
    height: 560px;
    min-height: 560px;
  }

  #colorlib-hero.hero,
  #colorlib-hero.hero .flexslider .slides li {
    height: 430px !important;
    min-height: 430px;
  }

  #colorlib-hero .flexslider .slider-text,
  #colorlib-hero .flexslider .slider-text > .slider-text-inner {
    min-height: 500px;
    height: 500px;
  }

  #colorlib-hero.hero .flexslider .slider-text,
  #colorlib-hero.hero .flexslider .slider-text > .slider-text-inner {
    min-height: 410px;
    height: 410px;
  }

  #colorlib-hero .flexslider .slider-text > .slider-text-inner h1 {
    font-size: 36px;
  }

  .intro {
    margin-top: -45px;
  }

  .intro-grid {
    width: 50%;
    min-height: 230px;
  }

  .colorlib-heading h2,
  #colorlib-about h2 {
    font-size: 28px;
  }
}

@media screen and (max-width: 520px) {
  .intro-grid {
    width: 100%;
    min-height: auto;
  }

  .sos-language-switcher {
    flex-wrap: wrap;
    max-width: 260px;
  }

  .sos-language-switcher button {
    min-width: 38px;
  }

  .appointment-wrap,
  .contact-info-wrap {
    padding: 20px;
  }
}

/* Responsive polish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

.btn,
.btn.btn-primary,
input.btn-primary,
.colorlib-nav .btn-cta a span {
  white-space: normal;
}

.services p,
.doctor p,
.blog-entry p,
.panel-body p {
  overflow-wrap: anywhere;
}

#colorlib-offcanvas {
  position: fixed;
  width: min(88vw, 330px);
  background: var(--sos-ink);
  padding: 86px 26px 36px;
  box-shadow: -24px 0 60px rgba(8, 18, 30, 0.3);
  right: -330px;
  transform: none;
  transition: right 0.3s ease;
}

.offcanvas #colorlib-offcanvas {
  right: 0;
  transform: none;
}

#colorlib-offcanvas a {
  color: rgba(255, 255, 255, 0.78);
}

#colorlib-offcanvas a:hover,
#colorlib-offcanvas a:focus {
  color: #ffffff;
}

#colorlib-offcanvas ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#colorlib-offcanvas ul li a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

#colorlib-offcanvas ul li > ul {
  padding-left: 12px;
  margin-bottom: 8px;
}

#colorlib-offcanvas ul li > ul li {
  border-bottom: 0;
}

#colorlib-offcanvas ul li > ul li a {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 600;
}

#colorlib-offcanvas ul li.offcanvas-has-dropdown > a:after {
  color: rgba(255, 255, 255, 0.45);
}

.colorlib-nav-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--sos-border) !important;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(24, 35, 51, 0.16);
}

.colorlib-nav-toggle i {
  position: absolute;
  top: 22px;
  left: 10px;
}

.colorlib-nav-toggle.colorlib-nav-white > i,
.colorlib-nav-toggle.colorlib-nav-white > i::before,
.colorlib-nav-toggle.colorlib-nav-white > i::after {
  background: var(--sos-blue-dark);
}

.colorlib-nav-toggle.colorlib-nav-white.active > i {
  background: transparent;
}

.colorlib-nav-toggle.colorlib-nav-white.active > i::before,
.colorlib-nav-toggle.colorlib-nav-white.active > i::after {
  background: var(--sos-blue-dark);
}

@media screen and (min-width: 769px) {
  .services,
  .doctor,
  .blog-entry {
    height: calc(100% - 40px);
  }
}

@media screen and (max-width: 992px) {
  .colorlib-nav .menu-wrap {
    position: relative;
  }

  .colorlib-nav .menu-wrap .row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-right: 0;
    margin-left: 0;
  }

  .colorlib-nav .menu-wrap [class*="col-"] {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .colorlib-nav .btn-cta {
    display: block;
    text-align: center !important;
  }

  .colorlib-nav .btn-cta a span {
    transform: none;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    line-height: 1.25;
  }

  [dir="rtl"] .colorlib-nav .btn-cta a span {
    transform: none;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding-bottom: 78px;
    font-size: 15px;
    line-height: 1.65;
  }

  .colorlib-nav .top-menu {
    padding-top: 12px;
  }

  .colorlib-nav .top {
    padding: 14px 58px 10px 14px;
  }

  .colorlib-nav .top img {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
  }

  .colorlib-nav .num,
  .colorlib-nav .loc {
    min-height: 48px;
    max-width: 340px;
    margin-right: auto;
    margin-left: auto;
  }

  .colorlib-nav .num .icon,
  .colorlib-nav .loc .icon {
    width: 44px;
    height: 44px;
  }

  .colorlib-nav .num .icon i,
  .colorlib-nav .loc .icon i {
    height: 44px;
    font-size: 19px;
  }

  .colorlib-nav .num p,
  .colorlib-nav .loc p {
    padding-left: 58px;
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.35;
  }

  .colorlib-nav .menu-wrap {
    padding: 10px 15px 12px;
  }

  .colorlib-nav .btn-cta a {
    display: block;
  }

  .colorlib-nav .btn-cta a span {
    width: 100%;
    max-width: 340px;
    white-space: normal;
  }

  .sos-language-switcher {
    display: grid;
    width: 100%;
    max-width: 340px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    margin-top: 9px;
  }

  .sos-language-switcher button {
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  #colorlib-hero,
  #colorlib-hero .flexslider .slides li {
    height: 460px;
    min-height: 460px;
  }

  #colorlib-hero.hero,
  #colorlib-hero.hero .flexslider .slides li {
    height: 360px !important;
    min-height: 360px;
  }

  #colorlib-hero .flexslider .slider-text,
  #colorlib-hero .flexslider .slider-text > .slider-text-inner {
    min-height: 420px;
    height: 420px;
  }

  #colorlib-hero.hero .flexslider .slider-text,
  #colorlib-hero.hero .flexslider .slider-text > .slider-text-inner {
    min-height: 340px;
    height: 340px;
  }

  #colorlib-hero .flexslider .slider-text {
    padding-right: 20px;
    padding-left: 20px;
  }

  #colorlib-hero .flexslider .slider-text > .slider-text-inner h1 {
    font-size: 32px;
    line-height: 1.14;
  }

  #colorlib-hero .flexslider .slider-text > .slider-text-inner h2 {
    font-size: 20px;
    line-height: 1.35;
  }

  #colorlib-hero .flexslider .slider-text > .slider-text-inner h3 {
    font-size: 13px;
    line-height: 1.3;
  }

  #colorlib-services,
  #colorlib-project,
  #colorlib-counter,
  #colorlib-register,
  .colorlib-pricing,
  #colorlib-testimonial,
  #colorlib-blog,
  #colorlib-about,
  #colorlib-doctor,
  #colorlib-contact {
    padding: 2.7em 0;
  }

  .colorlib-heading {
    margin-bottom: 2.2em;
  }

  .colorlib-heading h2,
  #colorlib-about h2 {
    font-size: 25px;
    line-height: 1.25;
  }

  .intro {
    float: none;
    width: calc(100% - 24px);
    margin: -30px auto 0;
    border-radius: 8px;
  }

  .intro-grid {
    width: 100%;
    min-height: auto;
    padding: 22px;
    border-right: 0;
  }

  .intro-grid h3 {
    margin-bottom: 9px;
    font-size: 15px;
  }

  .intro-grid p {
    margin-bottom: 0;
  }

  .services {
    min-height: auto;
    margin-bottom: 18px;
    padding: 22px;
  }

  .services .icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
  }

  .services h3 {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.35;
  }

  .choose .half.img-bg {
    min-height: 245px;
  }

  .features-wrap {
    padding: 32px 20px;
  }

  .features {
    margin-bottom: 26px;
  }

  .features h3 {
    font-size: 15px;
  }

  .staff-img,
  .blog-img {
    min-height: 190px;
    height: 190px;
  }

  .doctor,
  .blog-entry {
    margin-bottom: 20px;
  }

  .doctor .desc,
  .blog-entry .desc {
    padding: 20px;
  }

  .appointment-wrap,
  .contact-info-wrap {
    padding: 20px;
    margin-bottom: 24px;
  }

  .sos-legal-page {
    padding: 28px 0;
  }

  .sos-legal-card {
    padding: 22px;
  }

  .sos-legal-card h1 {
    font-size: 27px;
  }

  .sos-legal-card h2 {
    font-size: 21px;
  }

  .sos-detail-section {
    padding: 38px 0;
  }

  .sos-detail-lead {
    font-size: 16px;
  }

  .sos-detail-card,
  .sos-city-card,
  .sos-step-card,
  .sos-proof-card,
  .sos-content-panel,
  .sos-split-panel,
  .sos-local-panel {
    margin-bottom: 18px;
    padding: 22px;
  }

  .sos-stat-grid,
  .sos-process-row,
  .sos-service-links {
    grid-template-columns: 1fr;
  }

  .sos-detail-cta {
    padding: 30px 0;
    text-align: center;
  }

  .sos-detail-cta .text-right {
    text-align: center;
  }

  .sos-detail-cta h2 {
    font-size: 26px;
  }

  .form-control {
    min-height: 44px;
    font-size: 16px;
  }

  #colorlib-footer {
    padding: 3em 0 82px;
  }

  #colorlib-footer .row-pb-md {
    padding-bottom: 1em !important;
  }

  #colorlib-footer .colorlib-widget {
    margin-bottom: 28px;
  }

  .float {
    bottom: 16px !important;
    left: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }

  .float2 {
    left: 58px !important;
    bottom: 22px !important;
    width: auto !important;
    min-width: 132px;
    height: 36px !important;
    padding: 6px 12px 0 !important;
    font-size: 14px;
  }

  .my-float {
    margin-top: 13px;
  }

  .gototop {
    right: 16px;
    bottom: 84px;
  }

  .gototop a {
    width: 44px;
    height: 44px;
  }

  .gototop a i {
    height: 44px;
    font-size: 20px;
  }

  #test-popup {
    bottom: 78px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    padding: 14px !important;
  }

  #test-popup p {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  #test-popup p:nth-child(2) {
    margin-bottom: 12px;
  }

  #test-popup form {
    display: flex;
    gap: 8px;
  }

  #test-popup button {
    flex: 1 1 0;
    min-height: 36px;
    padding: 7px 8px !important;
  }
}

@media screen and (max-width: 520px) {
  #colorlib-hero,
  #colorlib-hero .flexslider .slides li {
    height: 430px;
    min-height: 430px;
  }

  #colorlib-hero .flexslider .slider-text,
  #colorlib-hero .flexslider .slider-text > .slider-text-inner {
    min-height: 390px;
    height: 390px;
  }

  #colorlib-hero .flexslider .slider-text > .slider-text-inner h1 {
    font-size: 29px;
  }

  .panel-heading a {
    padding: 14px 46px 14px 16px;
    font-size: 14px;
    line-height: 1.35;
  }
}

@media screen and (max-width: 380px) {
  .sos-language-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .colorlib-nav .top {
    padding-left: 10px;
  }

  #colorlib-hero .flexslider .slider-text > .slider-text-inner h1 {
    font-size: 26px;
  }
}

@media screen and (max-width: 768px) {
  [dir="rtl"] .colorlib-nav .top {
    padding-right: 14px;
    padding-left: 58px;
  }

  [dir="rtl"] .colorlib-nav .num p,
  [dir="rtl"] .colorlib-nav .loc p {
    padding-right: 58px;
    padding-left: 0;
  }

  [dir="rtl"] .colorlib-nav-toggle {
    right: auto;
    left: 14px;
  }
}

/* Final header CTA and language dropdown normalization */
.colorlib-nav .btn-cta.sos-call-cta {
  padding-right: 260px;
}

[dir="rtl"] .colorlib-nav .btn-cta.sos-call-cta {
  padding-right: 0;
  padding-left: 260px;
}

.colorlib-nav .btn-cta.sos-call-cta a span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 184px;
  max-width: none;
  white-space: nowrap;
  transform: translateX(-104px);
}

.colorlib-nav .btn-cta.sos-call-cta a {
  white-space: nowrap;
}

[dir="rtl"] .colorlib-nav .btn-cta.sos-call-cta a span {
  transform: translateX(104px);
}

.sos-call-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  color: #ffffff !important;
}

.sos-language-switcher {
  display: block;
  width: 186px;
  max-width: 186px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.sos-language-toggle {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #050505;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.sos-language-switcher .sos-language-toggle {
  min-width: 0;
  padding: 8px 12px;
}

.sos-language-toggle:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.sos-language-flag {
  width: 26px;
  min-width: 26px;
  font-size: 18px;
  line-height: 1;
}

.sos-language-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sos-language-caret {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1;
}

.sos-language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: none;
  width: 260px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #050505;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  z-index: 1010;
}

[dir="rtl"] .sos-language-menu {
  right: auto;
  left: 0;
}

.sos-language-switcher.is-open .sos-language-menu {
  display: block;
}

.sos-language-option {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.sos-language-switcher .sos-language-option {
  min-width: 0;
  padding: 9px 12px;
}

[dir="rtl"] .sos-language-option {
  text-align: right;
}

.sos-language-option:hover,
.sos-language-option:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  outline: 0;
}

.sos-language-option.is-active {
  background: #454545;
  color: #ffffff;
}

.sos-language-check {
  width: 16px;
  min-width: 16px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
}

.sos-language-option.is-active .sos-language-check {
  opacity: 1;
}

.sos-language-prompt {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 11vh 18px 24px;
  background: rgba(24, 35, 51, 0.5);
  z-index: 4000;
}

.sos-language-prompt-dialog {
  position: relative;
  width: min(100%, 560px);
  padding: 32px;
  border: 1px solid var(--sos-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.sos-language-prompt-dialog h2 {
  margin: 0 38px 10px 0;
  color: var(--sos-ink);
  font-size: 28px;
  line-height: 1.25;
}

.sos-language-prompt-dialog p {
  margin-bottom: 22px;
  color: var(--sos-muted);
  font-size: 18px;
  line-height: 1.55;
}

.sos-language-prompt-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--sos-soft);
  color: var(--sos-ink);
  font-size: 24px;
  line-height: 34px;
}

.sos-language-prompt-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.sos-language-prompt select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--sos-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--sos-ink);
  font-size: 18px;
  font-weight: 700;
}

.sos-language-prompt-change {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: var(--sos-blue);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.sos-language-prompt-change:hover,
.sos-language-prompt-change:focus {
  background: var(--sos-blue-dark);
}

.sos-language-prompt-keep {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sos-blue);
  font-weight: 700;
  text-decoration: underline;
}

@media screen and (max-width: 992px) {
  .colorlib-nav .btn-cta.sos-call-cta,
  [dir="rtl"] .colorlib-nav .btn-cta.sos-call-cta {
    padding-right: 0;
    padding-left: 0;
  }

  .colorlib-nav .btn-cta.sos-call-cta a span,
  [dir="rtl"] .colorlib-nav .btn-cta.sos-call-cta a span {
    transform: none;
  }

  .sos-language-switcher {
    position: static;
    width: min(100%, 340px);
    max-width: 340px;
    transform: none;
    margin: 10px auto 0;
  }

  .sos-language-menu,
  [dir="rtl"] .sos-language-menu {
    right: 0;
    left: auto;
    width: 100%;
  }

  .sos-language-prompt-dialog {
    padding: 26px 20px;
  }

  .sos-language-prompt-controls {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 380px) {
  .sos-language-switcher {
    display: block;
    grid-template-columns: none;
  }
}
