/* Safari / Mac preview fixes + CGR brand colors */
:root {
  --accent-color: #2b45f8;
  --primary-color: #2b45f8;
  --secondary-color: #3a3a55;
  --gray3-color: #d8d8f0;
  --gray4-color: #f0f5fa;
  --gray5-color: #cfcfe8;
  --gray7-color: #d8d8f0;
  --danger-color: #12a8a3;
  --danger-darker-color: #0e8a86;
}

/* overflow:clip can break painting in some Safari versions */
html,
body {
  overflow-x: hidden !important;
}

/* Soften huge blurs that Safari often fails to paint */
.cs_ticker_2 .cs_ticker_bg,
.cs_about_style_2 .cs_about_shape_1 {
  -webkit-filter: blur(40px);
  filter: blur(40px);
}

/* Larger nav logo */
.cs_site_header.cs_style_3 .cs_site_brand {
  width: 170px;
  max-width: 42vw;
}

.cs_site_header.cs_style_3 .cs_site_brand img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 991px) {
  .cs_site_header.cs_style_3 .cs_site_brand {
    width: 170px;
  }
}

@media (max-width: 575px) {
  .cs_site_header.cs_style_3 .cs_site_brand {
    width: 150px;
  }
}

/* Hero: full composite image (desktop / mobile) + text */
.cs_hero_style_3 {
  min-height: 100vh;
  background-color: #000099;
  background-image: url("https://res.cloudinary.com/dexxgcc4m/image/upload/v1790265807/2DH_a6ezdx.webp");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  padding-top: 100px !important;
  padding-bottom: 60px !important;
  overflow: hidden;
  z-index: 2;
  margin-bottom: 0;
}

.cs_hero_style_3.cs_bg_filed {
  background-position: left center !important;
}

/* Keep doctors visible when the viewport gets narrower (still desktop layout) */
@media (max-width: 1400px) {
  .cs_hero_style_3,
  .cs_hero_style_3.cs_bg_filed {
    background-position: left center !important;
    background-size: cover !important;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .cs_hero_style_3,
  .cs_hero_style_3.cs_bg_filed {
    background-position: left 20% center !important;
  }

  .cs_hero_style_3 .cs_hero_text {
    max-width: 480px;
    flex-basis: 48%;
  }
}

.cs_hero_style_3 > .container {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 160px);
}

.cs_hero_style_3 .cs_hero_inner {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 11;
}

.cs_hero_style_3 .cs_hero_text {
  flex: 0 1 52%;
  max-width: 580px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 11;
}

.cs_hero_style_3 .cs_hero_actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  align-self: center;
}
.cs_hero_style_3 .cs_hero_btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  width: auto;
}

.cs_hero_style_3 .cs_hero_overlay {
  background: linear-gradient(113deg, rgb(0 24 255 / 0%) 0%, rgb(0 24 255 / 13%) 45% 52%, rgba(0, 24, 255, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.cs_feature_section_2 {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

@media (max-width: 991px) {
  .cs_hero_style_3,
  .cs_hero_style_3.cs_bg_filed {
    background-image: url("https://res.cloudinary.com/dexxgcc4m/image/upload/v1790265825/2DV_fwy121.webp") !important;
    background-position: center top !important;
    background-size: cover !important;
    min-height: 100svh;
    max-height: none;
    align-items: flex-end !important;
    padding-top: 90px !important;
    padding-bottom: 28px !important;
  }

  .cs_hero_style_3 > .container {
    min-height: auto;
    align-items: flex-end;
  }

  .cs_hero_style_3 .cs_hero_inner {
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    min-height: calc(100svh - 120px);
  }

  .cs_hero_style_3 .cs_hero_text {
    max-width: 100%;
    flex: 0 0 auto;
  }

  .cs_hero_style_3 .cs_hero_title {
    font-size: clamp(2rem, 8vw, 2.75rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 14px !important;
  }

  .cs_hero_style_3 .cs_hero_desc {
    font-size: 15px !important;
    line-height: 1.55 !important;
    margin-bottom: 22px !important;
    max-width: 36em;
  }

  .cs_hero_style_3 .cs_hero_actions {
    width: 100%;
    align-self: stretch;
  }

  .cs_hero_style_3 .cs_hero_btns {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  }

  .cs_hero_style_3 .cs_hero_btns .cs_btn_style_1 {
    flex: 1 1 auto;
    min-width: min(100%, 150px);
    justify-content: center;
  }

  .cs_hero_style_3 .cs_hero_overlay {
    background: linear-gradient(
      179deg,
      rgba(0, 62, 255, 0) 0%,
      rgba(0, 37, 255, 0.12) 45%,
      rgba(0, 24, 255, 0.82) 100%
    ) !important;
  }
}

@media (max-width: 575px) {
  .cs_hero_style_3 .cs_hero_btns {
    flex-direction: column;
    align-items: stretch;
  }

  .cs_hero_style_3 .cs_hero_btns .cs_btn_style_1 {
    width: 100%;
  }
}

.cs_hero_style_3 .cs_hero_title,
.cs_hero_style_3 .cs_hero_desc,
.cs_hero_style_3 .cs_hero_badge_text {
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Never leave reveal words invisible */
.cs_section_title,
.cs_section_title .cs_reveal_word,
.cs_hero_title {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Backdrop filter needs -webkit- on Safari */
.cs_site_header.cs_style_2.cs_sticky_active,
.cs_sticky_active {
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}

/* Feature cards: creative CGR palette (3 distinct moods) */
.cs_feature_card_2.cs_color_1 {
  background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 55%), linear-gradient(155deg, #000099 0%, #1a3dff 25%, #12a8a3 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 153, 0.22);
}

.cs_feature_card_2.cs_color_2 {
  background:
  radial-gradient(ellipse 80% 60% at 0% 100%, rgba(125, 211, 252, 0.25) 0%, transparent 50%),
  linear-gradient(160deg, #0038a8 0%, #0b6e99 73%, #14b8a6 100%);
  box-shadow: 0 18px 40px rgba(11, 110, 153, 0.22);
}

.cs_feature_card_2.cs_color_3 {
  background: radial-gradient(ellipse 85% 65% at 50% 120%, rgba(165, 180, 252, 0.28) 0%, transparent 55%),    linear-gradient(165deg, #0345a5 0%, #0345a5 55%, #12a8a3 100%);
  box-shadow: 0 18px 40px rgba(11, 11, 58, 0.28);
}

.cs_feature_section_2 .cs_feature_card_2 {
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cs_feature_section_2 .cs_feature_card_2:hover {
  transform: translateY(-6px);
}

.cs_feature_section_2 .cs_feature_card_2.cs_color_1:hover {
  box-shadow: 0 24px 50px rgba(0, 0, 153, 0.32);
}

.cs_feature_section_2 .cs_feature_card_2.cs_color_2:hover {
  box-shadow: 0 24px 50px rgba(11, 110, 153, 0.32);
}

.cs_feature_section_2 .cs_feature_card_2.cs_color_3:hover {
  box-shadow: 0 24px 50px rgba(11, 11, 58, 0.36);
}

.cs_feature_section_2 .cs_feature_card_2 .cs_feature_icon {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.cs_feature_section_2 .cs_feature_card_2 .cs_feature_title,
.cs_feature_section_2 .cs_feature_card_2 .cs_feature_desc,
.cs_feature_section_2 .cs_feature_card_2 .cs_funfact_title,
.cs_feature_section_2 .cs_feature_card_2 .cs_funfact_number,
.cs_feature_section_2 .cs_feature_card_2 .cs_funfact_number small {
  color: #ffffff !important;
}

.cs_feature_section_2 .cs_feature_card_2 .cs_feature_cta {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cs_feature_section_2 .cs_feature_card_2.cs_color_1 .cs_feature_cta:hover {
  background: #ffffff !important;
  color: #000099 !important;
}

.cs_feature_section_2 .cs_feature_card_2.cs_color_2 .cs_feature_cta:hover {
  background: #ffffff !important;
  color: #0b6e99 !important;
}

.cs_feature_section_2 .cs_feature_card_2.cs_color_3 .cs_feature_cta:hover {
  background: #ffffff !important;
  color: #0b0b3a !important;
}

.cs_feature_section_2 .cs_feature_card_2 .cs_feature_img {
  border-radius: 12px;
  overflow: hidden;
}

.cs_feature_section_2 .cs_feature_card_2 .cs_feature_img img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* Scroll reveal animation for the 3 cards */
.cs_feature_section_2 .cs_scroll_animate {
  opacity: 0;
  transform: translateY(48px) scale(0.96);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.cs_feature_section_2 .cs_scroll_animate.is-inview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .cs_feature_section_2 .cs_scroll_animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Examens: details only on hover ===== */
.cs_service_section_2 .cs_service_card_2 .cs_service_icon {
  width: 50px;
  height: 50px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.cs_service_section_2 .cs_service_card_2 .cs_service_icon img {
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
  display: block;
}

.cs_service_section_2 .cs_service_card_2 .cs_short_desc,
.cs_service_section_2 .cs_service_card_2 .cs_btn_wrap {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease, max-height 0.45s ease;
}

.cs_service_section_2 .cs_service_card_2:hover,
.cs_service_section_2 .cs_service_card_2:focus-within,
.cs_service_section_2 .cs_service_card_2.is-open {
  height: 264px;
  grid-template-columns: repeat(2, 1fr);
}

.cs_service_section_2 .cs_service_card_2:hover .cs_service_left,
.cs_service_section_2 .cs_service_card_2:focus-within .cs_service_left,
.cs_service_section_2 .cs_service_card_2.is-open .cs_service_left {
  padding-right: 0;
}

.cs_service_section_2 .cs_service_card_2:hover .cs_service_text,
.cs_service_section_2 .cs_service_card_2:focus-within .cs_service_text,
.cs_service_section_2 .cs_service_card_2.is-open .cs_service_text {
  gap: 20px;
  flex-direction: column;
  align-items: flex-start;
}

.cs_service_section_2 .cs_service_card_2:hover .cs_short_desc,
.cs_service_section_2 .cs_service_card_2:focus-within .cs_short_desc,
.cs_service_section_2 .cs_service_card_2.is-open .cs_short_desc {
  opacity: 1;
  visibility: visible;
  max-height: 120px;
}

.cs_service_section_2 .cs_service_card_2:hover .cs_btn_wrap,
.cs_service_section_2 .cs_service_card_2:focus-within .cs_btn_wrap,
.cs_service_section_2 .cs_service_card_2.is-open .cs_btn_wrap {
  display: block;
  opacity: 1;
  visibility: visible;
  max-height: 80px;
  margin-top: auto;
  pointer-events: auto;
}

.cs_service_section_2 .cs_service_card_2:hover .cs_btn_wrap .cs_btn_style_2,
.cs_service_section_2 .cs_service_card_2:focus-within .cs_btn_wrap .cs_btn_style_2,
.cs_service_section_2 .cs_service_card_2.is-open .cs_btn_wrap .cs_btn_style_2 {
  transform: scale(1);
}

.cs_service_section_2 .cs_service_card_2:hover .cs_service_img,
.cs_service_section_2 .cs_service_card_2:focus-within .cs_service_img,
.cs_service_section_2 .cs_service_card_2.is-open .cs_service_img {
  opacity: 1;
  visibility: visible;
  transform: scale(1, 1);
}

@media (max-width: 1199px) {
  .cs_service_section_2 .cs_service_card_2:hover,
  .cs_service_section_2 .cs_service_card_2:focus-within,
  .cs_service_section_2 .cs_service_card_2.is-open {
    height: auto;
    min-height: 240px;
  }
}

/* Touch / mobile: tap opens one card â€” desktop/tablet only; mobile swipe shows all details via CSS */
@media (hover: none) and (min-width: 992px) {
  .cs_service_section_2 .cs_service_card_2.is-open {
    height: auto;
    min-height: 240px;
    grid-template-columns: 1fr;
  }
}

/* Preloader failsafe: hide after paint even if JS fails */
.cs_preloader.cs_force_hide,
body.cs_ready .cs_preloader {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Video preloader */
.cs_preloader.cs_preloader_video {
  background: #000099;
}

.cs_preloader.cs_preloader_video .cs_preloader_in {
  width: 100%;
  height: 100%;
  max-width: none;
  gap: 0;
  position: relative;
}

.cs_preloader_vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000099;
}

.cs_preloader_vid_mobile {
  display: none;
}

.cs_preloader_vid_desktop {
  display: block;
}

@media (max-width: 767px) {
  .cs_preloader_vid_desktop {
    display: none;
  }

  .cs_preloader_vid_mobile {
    display: block;
  }
}

/* Font Awesome 7 rating stars (requires local webfonts in assets/fonts) */
.cs_rating_percentage::before,
.cs_rating::before {
  content: "\f005\f005\f005\f005\f005" !important;
  font-family: "Font Awesome 7 Free" !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block !important;
  line-height: 1 !important;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
}

.cs_rating::before {
  font-weight: 400 !important; /* regular outline */
}

.cs_rating .cs_rating_percentage::before {
  font-weight: 900 !important; /* solid filled */
}

.cs_rating {
  font-family: "Font Awesome 7 Free";
}

/* ===== Notre Ã©quipe â€” profile cards (reference layout) ===== */
.cs_team_profile_section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.cs_team_profile_eyebrow {
  color: #8a8a9a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cs_team_profile_card {
  background: #ffffff;
  border: 1px solid #ececf2;
  border-radius: 20px;
  overflow: visible;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cs_team_profile_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 80, 0.1);
}

.cs_team_profile_media {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e8e8f7;
  border-radius: 20px 20px 0 0;
}

.cs_team_profile_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.cs_team_profile_body {
  position: relative;
  text-align: center;
  padding: 48px 24px 36px;
  background: #ffffff;
  border-radius: 0 0 20px 20px;
}

.cs_team_profile_icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1256f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 153, 0.25);
}

.cs_team_profile_icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.cs_team_profile_name {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
  font-family: var(--primary-font);
}

.cs_team_profile_name a {
  color: inherit;
  text-decoration: none;
}

.cs_team_profile_name a:hover {
  color: #000099;
}

.cs_team_profile_role {
  font-size: 15px;
  color: #6b6b7b;
  font-weight: 400;
}

@media (max-width: 991px) {
  .cs_team_profile_section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

/* ===== Demande de rendez-vous â€” split card ===== */
.cs_rdv_section {
  padding: 80px 0;
  background: #f0f5fa;
}

.cs_rdv_card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 80, 0.08);
  min-height: 560px;
}

.cs_rdv_media {
  min-height: 100%;
  background: #e8e8f7;
}

.cs_rdv_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cs_rdv_content {
  padding: 48px 44px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cs_rdv_badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: #3468bd !important;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  line-height: 1.4;
}

.cs_rdv_title {
  font-family: var(--primary-font);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: #0b0b3a;
  line-height: 1.2;
  margin: 0 0 36px;
  max-width: 18ch;
}

.cs_rdv_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin-bottom: 36px;
}

.cs_rdv_field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs_rdv_field_full {
  grid-column: 1 / -1;
}

.cs_rdv_field label {
  font-size: 13px;
  color: #8a7f78;
  font-weight: 500;
}

.cs_rdv_field input,
.cs_rdv_field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d9d5d1;
  border-radius: 0;
  background: transparent;
  padding: 8px 0 10px;
  font-size: 15px;
  color: #1a1a2e;
  outline: none;
  box-shadow: none;
  resize: none;
  font-family: inherit;
}

.cs_rdv_field input:focus,
.cs_rdv_field textarea:focus {
  border-bottom-color: #000099;
}

.cs_rdv_field input::placeholder,
.cs_rdv_field textarea::placeholder {
  color: #b0a9a4;
}

.cs_rdv_submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  background: #3468bd !important;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  align-self: flex-start;
}

.cs_rdv_submit:hover {
  background: #188a95;
  transform: translateY(-1px);
}

.cs_rdv_submit i {
  font-size: 13px;
}

@media (max-width: 991px) {
  .cs_rdv_section {
    padding: 50px 0;
  }

  .cs_rdv_card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .cs_rdv_media {
    min-height: 280px;
    max-height: 360px;
  }

  .cs_rdv_content {
    padding: 36px 24px 32px;
  }

  .cs_rdv_title {
    max-width: none;
    margin-bottom: 28px;
  }
}

@media (max-width: 575px) {
  .cs_rdv_grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ===== Map section ===== */
.cs_map_section {
  padding: 80px 0;
  background: #ffffff;
}

.cs_map_frame {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 80, 0.1);
  border: 1px solid #ececf2;
}

.cs_map_frame iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

@media (max-width: 991px) {
  .cs_map_section {
    padding: 50px 0;
  }

  .cs_map_frame iframe {
    height: 360px;
  }
}

/* ===== Mobile horizontal swipe (features / services / team) ===== */
@media (max-width: 991px) {
  .cs_feature_section_2 .cs_feature_grid_2.cs_swipe_track,
  .cs_service_section_2 .cs_service_grid_1.cs_swipe_track,
  .cs_team_profile_section .cs_swipe_track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    padding: 8px 16px 24px;
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
    max-width: none;
    grid-template-columns: none;
    justify-content: flex-start !important;
  }

  .cs_feature_section_2 .container-fluid .cs_feature_grid_2.cs_swipe_track {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .cs_feature_section_2 .cs_feature_grid_2.cs_swipe_track::-webkit-scrollbar,
  .cs_service_section_2 .cs_service_grid_1.cs_swipe_track::-webkit-scrollbar,
  .cs_team_profile_section .cs_swipe_track::-webkit-scrollbar {
    display: none;
  }

  .cs_feature_section_2 .cs_feature_grid_2.cs_swipe_track,
  .cs_service_section_2 .cs_service_grid_1.cs_swipe_track,
  .cs_team_profile_section .cs_swipe_track {
    scrollbar-width: none;
  }

  .cs_feature_section_2 .cs_swipe_slide {
    flex: 0 0 min(86vw, 340px);
    width: min(86vw, 340px);
    max-width: min(86vw, 340px);
    scroll-snap-align: center;
    grid-column: auto !important;
  }

  .cs_feature_section_2 .cs_scroll_animate {
    opacity: 1;
    transform: none;
  }

  /* Services: every swipe card always shows full details */
  .cs_service_section_2 .cs_swipe_slide {
    flex: 0 0 min(85vw, 340px) !important;
    width: min(85vw, 340px) !important;
    max-width: min(85vw, 340px) !important;
    scroll-snap-align: center;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    grid-template-columns: none !important;
    background: #f3f5f8;
    box-shadow: 0 8px 24px rgba(0, 0, 80, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .cs_service_section_2 .cs_swipe_slide.is-open {
    box-shadow: 0 16px 40px rgba(0, 0, 80, 0.14);
    transform: translateY(-2px);
  }

  .cs_service_section_2 .cs_swipe_slide .cs_service_img {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: block !important;
    width: 100% !important;
    height: 170px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    order: -1;
    flex: none;
  }

  .cs_service_section_2 .cs_swipe_slide .cs_service_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    display: block;
  }

  .cs_service_section_2 .cs_swipe_slide .cs_service_left {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 18px 20px !important;
    width: 100%;
  }

  .cs_service_section_2 .cs_swipe_slide .cs_service_icon {
    width: 44px;
    height: 44px;
    flex: none;
  }

  .cs_service_section_2 .cs_swipe_slide .cs_service_icon img {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
  }

  .cs_service_section_2 .cs_swipe_slide .cs_service_text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    height: auto;
    width: 100%;
  }

  .cs_service_section_2 .cs_swipe_slide .cs_service_title {
    font-size: 20px;
  }

  .cs_service_section_2 .cs_swipe_slide .cs_short_desc {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: none !important;
    max-width: 100%;
    pointer-events: auto !important;
    overflow: visible !important;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #4a4a5a;
  }

  .cs_service_section_2 .cs_swipe_slide .cs_btn_wrap {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: none !important;
    margin-top: 4px;
    pointer-events: auto !important;
  }

  .cs_service_section_2 .cs_swipe_slide .cs_btn_wrap .cs_btn_style_2 {
    transform: scale(1) !important;
  }

  /* Team: peek carousel, room for floating icon */
  .cs_team_profile_section .cs_swipe_track {
    padding-top: 36px;
    padding-bottom: 28px;
    gap: 18px;
  }

  .cs_team_profile_section .cs_swipe_track.row {
    --bs-gutter-x: 0;
    margin-left: -12px !important;
    margin-right: -12px !important;
  }

  .cs_team_profile_section .cs_swipe_slide {
    flex: 0 0 min(82vw, 300px) !important;
    width: min(82vw, 300px) !important;
    max-width: min(82vw, 300px) !important;
    scroll-snap-align: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
  }

  .cs_team_profile_section .cs_swipe_slide > * {
    width: 100%;
  }

  .cs_team_profile_section .cs_team_profile_card {
    overflow: visible;
    height: auto;
  }

  .cs_team_profile_section .cs_team_profile_media {
    aspect-ratio: 3 / 3.6;
  }
}

/* ============================================================
   CGR â€” inner page headers (solid banner + wave)
   ============================================================ */
.cs_page_header_style_1,
.cgr-page-hero {
  position: relative !important;
  min-height: 220px !important;
  height: auto !important;
  padding: 230px 0 119px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background-color: #2b45f8 !important;
  background-image: none !important;
  background-size: auto !important;
  text-align: center;
}

.cs_page_header_style_1.cs_bg_filed,
.cgr-page-hero.cs_bg_filed {
  background-image: none !important;
}

.cs_page_header_style_1::before,
.cgr-page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(46vw, 520px);
  background: url("../img/cgr-header-wave.svg") left center / cover no-repeat;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

.cs_page_header_style_1::after,
.cgr-page-hero::after {
  display: none !important;
  content: none !important;
}

.cs_page_header_style_1 > .container,
.cgr-page-hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.cs_page_header_style_1 .cs_page_header_in,
.cgr-page-hero .cs_page_header_in {
  position: relative;
  z-index: 2;
  padding: 0 !important;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cgr-page-hero .cgr-hero-kicker,
.cgr-page-hero .cgr-hero-lead {
  display: none !important;
}

.cs_page_header_style_1 .cs_page_header_title,
.cgr-page-hero .cs_page_header_title {
  color: #ffffff !important;
  max-width: 900px;
  margin: 0 auto !important;
  font-size: clamp(32px, 4.5vw, 52px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  order: 2;
}

.cs_page_header_style_1 nav[aria-label],
.cgr-page-hero nav[aria-label] {
  order: 1;
  margin-bottom: 10px;
}

.cs_page_header_style_1 .cs_breadcrumb,
.cgr-page-hero .cs_breadcrumb {
  justify-content: center;
  margin: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.cs_page_header_style_1 .cs_breadcrumb .breadcrumb-item,
.cs_page_header_style_1 .cs_breadcrumb .breadcrumb-item a,
.cs_page_header_style_1 .cs_breadcrumb .breadcrumb-item.active,
.cgr-page-hero .cs_breadcrumb .breadcrumb-item,
.cgr-page-hero .cs_breadcrumb .breadcrumb-item a,
.cgr-page-hero .cs_breadcrumb .breadcrumb-item.active {
  color: #ffffff !important;
  font-size: 14px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  opacity: 0.95;
}

.cs_page_header_style_1 .cs_breadcrumb .breadcrumb-item a:hover,
.cgr-page-hero .cs_breadcrumb .breadcrumb-item a:hover {
  color: #ffffff !important;
  opacity: 1;
  text-decoration: underline;
}

.cs_page_header_style_1 .cs_breadcrumb,
.cgr-page-hero .cs_breadcrumb {
  --bs-breadcrumb-divider: "";
}
.cs_page_header_style_1 .cs_breadcrumb .breadcrumb-item + .breadcrumb-item::before,
.cgr-page-hero .cs_breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #ffffff !important;
  content: "›" !important;
  font-style: normal;
  padding-right: 8px;
  opacity: 0.9;
}

@media (max-width: 991px) {
  .cs_page_header_style_1,
  .cgr-page-hero {
    min-height: 180px !important;
    padding: 100px 0 44px !important;
  }

  .cs_page_header_style_1::before,
  .cgr-page-hero::before {
    width: min(70vw, 360px);
    opacity: 0.7;
  }
}

@media (max-width: 575px) {
  .cs_page_header_style_1,
  .cgr-page-hero {
    min-height: 160px !important;
    padding: 90px 0 36px !important;
  }

  .cs_page_header_style_1 .cs_page_header_title,
  .cgr-page-hero .cs_page_header_title {
    font-size: 28px !important;
  }
}

.cgr-exam-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 36px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(11, 11, 58, 0.06);
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}

.cgr-exam-row.is-flip {
  grid-template-columns: 0.95fr 1.05fr;
}

.cgr-exam-row.is-flip .cgr-exam-media {
  order: -1;
}

.cgr-exam-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef0ff;
  color: #000099;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.cgr-exam-row h3 {
  margin-bottom: 6px;
}

.cgr-exam-row h3 a {
  color: inherit;
  text-decoration: none;
}

.cgr-exam-row h3 a:hover {
  color: #000099;
}

.cgr-exam-sub {
  color: #000099;
  font-weight: 600;
  margin-bottom: 14px;
}

.cgr-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
}

.cgr-chip-list li {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f0f5fa;
  color: #0b0b3a;
  font-size: 13px;
  line-height: 1.3;
}

.cgr-exam-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 280px;
}

.cgr-exam-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.cgr-exam-row:hover .cgr-exam-media img {
  transform: scale(1.05);
}

.cgr-exam-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #fff;
  color: #000099;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.cgr-note {
  text-align: center;
  max-width: 760px;
  margin: 8px auto 0;
  color: #3a3a55;
  font-size: 14px;
}

.cgr-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}

.cgr-process-card {
  background: #fff;
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 14px 36px rgba(11, 11, 58, 0.05);
  height: 100%;
}

.cgr-process-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.cgr-process-card:nth-child(1) .cgr-process-num { background: #3d5bff; }
.cgr-process-card:nth-child(2) .cgr-process-num { background: #3d5bff; }
.cgr-process-card:nth-child(3) .cgr-process-num { background: #3d5bff; }
.cgr-process-card:nth-child(4) .cgr-process-num { background: #3d5bff; }

.cgr-soft-section {
  background: #f4f6fb;
  border-radius: 32px;
  padding: 72px 0;
}

.cgr-detail-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 36px;
}

.cgr-detail-banner img {
  width: 100%;
  height: 750px;
  object-fit: cover;
  display: block;
}

.cgr-detail-banner .cgr-exam-badge {
  left: 20px;
  bottom: 20px;
}

.cgr-kicker {
  display: inline-block;
  color: #000099;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cgr-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 8px;
}

.cgr-step {
  background: #f4f6fb;
  border-radius: 18px;
  padding: 16px;
}

.cgr-step strong {
  display: block;
  color: #0b0b3a;
  margin-bottom: 6px;
}

.cgr-retain {
  background: linear-gradient(160deg, #000099 0%, #2a3dff 100%);
  color: #fff;
  border-radius: 22px;
  padding: 28px;
  text-align: center;
}

.cgr-retain h3,
.cgr-retain p {
  color: #fff;
  text-align: center;
}

.cgr-retain .d-flex {
  justify-content: center;
}

.cgr-retain .cs_btn_style_1 {
  justify-content: center;
}

.cgr-side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(11, 11, 58, 0.08);
  color: #0b0b3a;
  text-decoration: none;
}

.cgr-side-nav a:hover,
.cgr-side-nav a.is-active {
  color: #000099;
  font-weight: 600;
}

.cgr-info-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.cgr-info-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(11, 11, 58, 0.05);
  height: 100%;
}

.cgr-icon-bubble {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #011fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.cgr-icon-bubble img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.cgr-check li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  list-style: none;
}

.cgr-check {
  padding: 0;
  margin: 0;
}

.cgr-check li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000099;
  position: absolute;
  left: 0;
  top: 8px;
}

.cgr-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cgr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 36px;
}

.cgr-filter {
  border: 0;
  background: #eef0ff;
  color: #0b0b3a;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.cgr-filter.is-active,
.cgr-filter:hover {
  background: #000099;
  color: #fff;
}

.cgr-featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: #0b0b3a;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 48px;
  color: #fff;
}

.cgr-featured-copy {
  padding: 44px 40px;
}

.cgr-featured-copy p,
.cgr-featured-copy h2 {
  color: #fff;
}

.cgr-featured-media {
  min-height: 320px;
}

.cgr-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cgr-post-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(11, 11, 58, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cgr-post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.cgr-post-card .cgr-post-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cgr-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cgr-contact-card {
  background: #fff;
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 14px 36px rgba(11, 11, 58, 0.05);
  min-height: 190px;
}

.cgr-contact-card a {
  font-size: 18px;
  font-weight: 700;
  color: #000099;
}

.cgr-article-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #3a3a55;
  margin-bottom: 18px;
}

@media (max-width: 991px) {
  .cgr-exam-row,
  .cgr-exam-row.is-flip,
  .cgr-info-grid,
  .cgr-featured,
  .cgr-doc-grid,
  .cgr-process,
  .cgr-step-grid,
  .cgr-contact-grid {
    grid-template-columns: 1fr;
  }

  .cgr-exam-row.is-flip .cgr-exam-media {
    order: 0;
  }

  .cgr-detail-banner img,
  .cgr-exam-media,
  .cgr-exam-media img {
    min-height: 220px;
    height: 240px;
  }

  .cgr-page-hero {
    min-height: 180px;
  }

  .cgr-soft-section {
    padding: 48px 0;
    border-radius: 0;
  }

  .cgr-about-split,
  .cgr-equip-grid {
    grid-template-columns: 1fr;
  }
}

.cgr-about-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.cgr-about-photo {
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
}

.cgr-about-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.cgr-equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cgr-equip-card {
  background: #fff;
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 14px 36px rgba(11, 11, 58, 0.05);
  height: 100%;
}

.cgr-equip-card a {
  color: inherit;
  text-decoration: none;
}

.cgr-equip-card a:hover {
  color: #000099;
}

.cgr-quote-wide {
  background: #fff;
  border-radius: 28px;
  padding: 40px 44px;
  box-shadow: 0 16px 40px rgba(11, 11, 58, 0.05);
  position: relative;
  margin: 30px 0;
}

.cgr-quote-wide blockquote {
  font-size: 22px;
  line-height: 1.55;
  color: #0b0b3a;
  margin: 0 0 16px;
}

/* ============================================================
   CGR â€” consistent section spacing (all inner pages)
   ============================================================ */
main > section.cs_support_section,
main > section.cs_services_section_5,
main > section.cs_service_details_section,
main > section.cs_blog_section_1,
main > section.cs_feature_section_1,
main > section.cs_faq_section,
main > section.cs_map_section,
main > section.cs_contact_form_section,
main > section.cs_contact_map_section,
main > section.cgr-soft-section,
main > .cs_contact_map_section {
  padding-top: 90px !important;
  padding-bottom: 90px !important;
}

main > section.cgr-soft-section {
  margin: 0;
  border-radius: 0;
}

/* Plain content sections (equipment grids, etc.) */
main > section:not([class]),
main > section.cgr-section {
  padding-top: 90px;
  padding-bottom: 90px;
}

/* CTA blocks: outer breathing room + compact inner banner */
main > section.cgr-cta-section {
  padding-top: 40px !important;
  padding-bottom: 90px !important;
}

main > section.cgr-cta-section .cs_cta_style_1 {
  padding: 72px 32px !important;
  margin: 0;
}

main > section.cgr-cta-section + footer,
main > section.cgr-cta-section + .cs_footer_style_1 {
  margin-top: 0;
}

/* Avoid double-tight stacking after page hero */
main > .cs_page_header_style_1 + section,
main > .cgr-page-hero + section {
  padding-top: 90px !important;
}

@media (max-width: 991px) {
  main > section.cs_support_section,
  main > section.cs_services_section_5,
  main > section.cs_service_details_section,
  main > section.cs_blog_section_1,
  main > section.cs_feature_section_1,
  main > section.cs_faq_section,
  main > section.cs_map_section,
  main > section.cs_contact_form_section,
  main > section.cs_contact_map_section,
  main > section.cgr-soft-section,
  main > .cs_contact_map_section,
  main > section:not([class]),
  main > section.cgr-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  main > section.cgr-cta-section {
    padding-top: 24px !important;
    padding-bottom: 60px !important;
  }

  main > section.cgr-cta-section .cs_cta_style_1 {
    padding: 48px 20px !important;
  }

  main > .cs_page_header_style_1 + section,
  main > .cgr-page-hero + section {
    padding-top: 60px !important;
  }
}

/* Opening hours */
.cgr-hours-panel {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 14px 36px rgba(11, 11, 58, 0.05);
}

.cgr-hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cgr-hours-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(11, 11, 58, 0.08);
  color: #0b0b3a;
}

.cgr-hours-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cgr-hours-list li:first-child {
  padding-top: 0;
}

.cgr-hours-list span {
  font-weight: 500;
}

.cgr-hours-list strong {
  font-weight: 700;
  color: #000099;
}

.cgr-hours-list li.is-closed strong {
  color: #b42318;
}

/* Contact form card */
.cs_contact_form_section {
  display: flex !important;
  justify-content: center;
  text-align: center;
  padding: 50px 0 !important;
}

.cs_contact_form_section > .container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.cs_contact_form_section .row {
  width: 100%;
  justify-content: center;
}

.cs_contact_form_section .cs_contact_form_wrap,
.cgr-contact-form-card {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 18px 50px rgba(11, 11, 58, 0.1);
}

.cs_contact_form_section .cs_contact_form_heading {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cs_contact_form_section .cs_contact_form_heading .cgr-kicker {
  display: inline-block;
}

.cs_contact_form_section .cs_appointment_form_1 {
  text-align: left;
}

.cs_contact_form_section .cs_appointment_form_1 .col-12.text-center {
  text-align: center !important;
}

@media (max-width: 767px) {
  .cs_contact_form_section .cs_contact_form_wrap,
  .cgr-contact-form-card {
    padding: 32px 20px;
    border-radius: 22px;
  }
}


/* ============================================================
   CGR â€” Global responsive (tablet + mobile) for all site pages
   ============================================================ */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
  width: 100%;
}

/* Tablet */
@media (max-width: 991px) {
  body {
    overflow-x: hidden;
  }

  .container,
  .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cs_section_title,
  .cs_section_title.br,
  h2.cs_section_title {
    font-size: clamp(1.65rem, 4.2vw, 2.2rem) !important;
    line-height: 1.25 !important;
  }

  .cs_section_title br {
    display: none;
  }

  .cs_fs_40 {
    font-size: clamp(1.65rem, 4.2vw, 2.15rem) !important;
  }

  .cs_fs_32 {
    font-size: clamp(1.35rem, 3.4vw, 1.75rem) !important;
  }

  .cs_fs_60,
  .cs_page_header_title {
    font-size: clamp(1.85rem, 6vw, 2.5rem) !important;
    line-height: 1.2 !important;
  }

  /* Header */
  .cs_site_header.cs_style_3 .cs_site_brand img {
    max-height: 48px;
    width: auto;
  }

  .cs_site_header .cs_main_header_in {
    gap: 10px;
  }

  /* Footer */
  .cs_footer_style_1 .cs_footer_main,
  .cs_footer_style_1 .row {
    row-gap: 28px;
  }

  .cs_footer_style_1 .cs_footer_contact p,
  .cs_footer_style_1 .cs_footer_contact span,
  .cs_footer_style_1 .cs_footer_contact a {
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }

  .cs_footer_style_1 .cs_footer_bottom_content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cs_footer_style_1 .cs_footer_bottom_nav {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .cs_footer_style_1 .cs_newsletter_style_1 {
    gap: 12px;
  }

  /* Page hero / headers */
  .cs_page_header_style_1 .cs_page_header_in,
  .cgr-page-hero .cs_page_header_in {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .cs_breadcrumb {
    font-size: 13px;
  }

  /* Exam listing */
  .cgr-exam-row,
  .cgr-exam-row.is-flip {
    gap: 20px;
    padding: 0;
  }

  .cgr-exam-copy {
    padding: 8px 0 12px;
  }

  .cgr-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cgr-chip-list li {
    margin: 0;
  }

  .cgr-detail-banner {
    border-radius: 18px;
  }

  .cgr-detail-banner img,
  .cgr-exam-media img {
    width: 100%;
    height: 220px;
    min-height: 200px;
    object-fit: cover;
  }

  /* About / equipment */
  .cgr-about-photo,
  .cgr-about-photo img {
    min-height: 280px;
    border-radius: 20px;
  }

  .cgr-equip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .cgr-equip-card {
    padding: 20px 16px;
  }

  /* Blog */
  .cgr-featured {
    border-radius: 20px;
  }

  .cgr-featured-copy {
    padding: 28px 22px;
  }

  .cgr-featured-media {
    min-height: 220px;
  }

  .cgr-post-card img {
    height: 180px;
  }

  .cgr-filters {
    gap: 8px;
    margin-bottom: 24px;
  }

  .cgr-filter {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Contact */
  .cgr-contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .cgr-contact-card {
    min-height: 0;
    padding: 20px 16px;
  }

  .cgr-hours-panel {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .cgr-hours-list li {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  /* Maps */
  .cs_map_section iframe,
  .cs_contact_map_section iframe,
  iframe[title*="Ghrissi"],
  iframe[src*="maps"] {
    min-height: 280px;
    height: 320px !important;
    border-radius: 16px;
  }

  /* CTA */
  .cs_cta_style_1 {
    padding: 48px 22px !important;
    border-radius: 20px !important;
  }

  .cs_cta_style_1 .cs_cta_title,
  .cs_cta_style_1 h2 {
    font-size: clamp(1.45rem, 4vw, 1.9rem) !important;
  }

  /* Buttons / forms */
  .cs_btn_style_1,
  .cs_btn_style_2 {
    white-space: normal;
  }

  .cs_appointment_form_1 .row,
  .cs_rdv_grid {
    row-gap: 14px;
  }

  /* Testimonials */
  .cs_testimonial_style_2 {
    padding: 22px 18px;
  }

  /* Process / steps */
  .cgr-process,
  .cgr-step-grid {
    gap: 14px;
  }

  .cgr-process-card {
    padding: 20px 16px;
  }

  /* Article content */
  .cs_blog_details_content img,
  .cs_post_details img {
    border-radius: 14px;
  }

  .cs_blog_check_list li {
    padding-left: 28px;
  }
}

/* Mobile phones */
@media (max-width: 767px) {
  .container,
  .container-fluid {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cs_site_header.cs_style_3 .cs_site_brand img {
    max-height: 40px;
  }

  .cgr-equip-grid,
  .cgr-contact-grid,
  .cgr-doc-grid {
    grid-template-columns: 1fr;
  }

  .cgr-exam-media,
  .cgr-exam-media img,
  .cgr-detail-banner img {
    height: 200px;
    min-height: 180px;
    border-radius: 16px;
  }

  .cgr-about-photo,
  .cgr-about-photo img {
    min-height: 240px;
  }

  .cgr-featured-copy {
    padding: 24px 18px;
  }

  .cgr-post-card .cgr-post-body {
    padding: 16px;
  }

  .cgr-contact-card a {
    font-size: 16px;
  }

  .cs_cta_style_1 .cs_btn_style_1,
  .cgr-exam-copy .cs_btn_style_1,
  .cs_hero_btns .cs_btn_style_1 {
    width: 100%;
    justify-content: center;
  }

  .cs_footer_style_1 .cs_newsletter_style_1 .cs_btn_style_1 {
    width: 100%;
  }

  .cs_footer_style_1 .cs_newsletter_style_1 .cs_newsletter_inpu {
    width: 100%;
  }

  .cs_accordians_style_1 .cs_accordian .cs_accordian_head {
    font-size: 17px !important;
    line-height: 1.35;
  }

  .cs_rdv_title,
  .cs_rdv_content h2 {
    font-size: clamp(1.4rem, 6vw, 1.85rem) !important;
  }

  .cs_rdv_badge {
    font-size: 12px;
  }

  iframe[src*="maps"] {
    height: 260px !important;
    min-height: 240px;
  }

  /* Overflow safety for long address */
  .cs_footer_contact,
  .cgr-contact-card,
  .cgr-hours-panel {
    overflow-wrap: anywhere;
  }
}

/* Small phones */
@media (max-width: 575px) {
  .cs_section_subtitle {
    font-size: 12px !important;
  }

  .cs_page_header_style_1,
  .cgr-page-hero {
    min-height: 160px;
  }

  .cs_page_header_style_1 .cs_page_header_title,
  .cgr-page-hero .cs_page_header_title {
    font-size: clamp(1.6rem, 7.5vw, 2rem) !important;
  }

  .cgr-exam-index,
  .cgr-exam-badge {
    font-size: 12px;
  }

  .cgr-soft-section {
    padding: 36px 0;
  }

  .cs_cta_style_1 {
    padding: 36px 16px !important;
  }

  .cs_footer_style_1 .cs_footer_bottom_nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cs_footer_style_1 .cs_footer_bottom_nav li {
    padding-left: 0;
  }

  .cs_footer_style_1 .cs_footer_bottom_nav li::before {
    display: none;
  }
}

/* Extra CGR page polish — tablet / mobile */
@media (max-width: 991px) {
  .cgr-quote-wide {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .cgr-quote-wide blockquote {
    font-size: 18px;
  }

  .cgr-side-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
  }

  .cgr-side-nav a {
    margin: 0;
  }

  .cgr-retain {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .cs_team_profile_section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .cs_team_profile_card {
    margin-bottom: 16px;
  }

  .cs_map_frame iframe {
    height: 320px;
  }

  main > section.cgr-cta-section .cs_cta_style_1 .cs_btn_style_1 {
    width: auto;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .cgr-quote-wide {
    padding: 22px 16px;
  }

  .cgr-quote-wide blockquote {
    font-size: 16px;
    line-height: 1.5;
  }

  .cgr-article-meta {
    gap: 10px 14px;
    font-size: 13px;
  }

  .cgr-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .cgr-filter {
    flex: 0 0 auto;
  }

  .cs_service_details_block {
    margin-bottom: 28px !important;
  }

  .cs_map_frame iframe {
    height: 260px;
  }

  main > section.cgr-cta-section .cs_cta_style_1 .cs_btn_style_1,
  main > section.cgr-cta-section .cs_btn_style_1 {
    width: 100%;
    justify-content: center;
  }

  .cs_team_profile_card .cs_team_profile_img,
  .cs_team_profile_card img {
    object-fit: cover;
  }
}

@media (max-width: 575px) {
  .cgr-hours-panel {
    padding: 20px 14px;
  }

  .cgr-hours-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cgr-contact-form-card,
  .cs_contact_form_section .cs_contact_form_wrap {
    padding: 24px 14px;
  }
}
/* ===== Doctor biography modal ===== */
.cs_team_profile_media.cgr-bio-trigger {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.cgr-bio-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #000099;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cgr-bio-link:hover {
  color: #12a8a3;
}

.cs_team_profile_role {
  margin-bottom: 0;
}

body.cgr-bio-open {
  overflow: hidden;
}

.cgr-bio-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cgr-bio-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cgr-bio-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 40, 0.55);
  backdrop-filter: blur(2px);
}

.cgr-bio-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(85vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px 32px;
  box-shadow: 0 24px 60px rgba(8, 12, 40, 0.22);
  transform: translateY(12px);
  transition: transform 0.25s ease;
  text-align: center !important;
}

.cgr-bio-modal.is-open .cgr-bio-modal__dialog {
  transform: translateY(0);
}

.cgr-bio-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f0f2f8;
  color: #0b0b3a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cgr-bio-modal__close:hover {
  background: #e4e7f2;
}

.cgr-bio-modal__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #12a8a3;
  margin-bottom: 10px;
}

.cgr-bio-modal__title {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #0b0b3a;
  margin: 0 0 6px;
  padding-right: 36px;
}

.cgr-bio-modal__role {
  font-size: 15px;
  color: #6b6b7b;
  margin: 0 0 20px;
}

.cgr-bio-modal__text p {
  margin: 0 0 14px;
  color: #2b2b40;
  line-height: 1.65;
  font-size: 15.5px;
}

.cgr-bio-modal__text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 575px) {
  .cgr-bio-modal__dialog {
    padding: 28px 18px 22px;
    border-radius: 18px;
  }
}

/* WhatsApp visible links */
a.cgr-wa-link {
  text-underline-offset: 3px;
  font-weight: 600;
}
a.cgr-wa-link .cgr-wa-icon,
.cgr-wa-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
}
.cs_btn_style_1.cgr-wa-link .cgr-wa-icon,
.cs_btn_style_1 .cgr-wa-icon {
  width: 20px;
  height: 20px;
  filter: none;
}
.cs_contact_item a.cgr-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}
.cgr-review-meta {
  font-size: 14px;
  color: #5a5a70;
  margin: 0;
}


/* Header phone link with icon */
a.cgr-tel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
a.cgr-tel-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cgr-tel-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  filter: brightness(0) invert(1);
}
.cs_footer_contact .cgr-wa-link .cgr-wa-icon {
  display: none;
}

/* Header language switch (all pages) */
.cs_main_header_right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cgr-header-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 5px;
  background: #fff;
  color: #000099;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.cgr-header-lang:hover,
.cgr-header-lang:focus-visible {
  background: #000099;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.cgr-header-lang--fr {
  font-size: 13px;
  letter-spacing: 0.04em;
}
@media (max-width: 991px) {
  .cs_site_header .cs_main_header_right .cgr-header-lang {
    display: inline-flex;
    position: relative;
    right: 50px;
    z-index: 1002;
    padding: 7px 12px;
    font-size: 13px;
  }
  .cs_site_header.cs_style_3 .cs_main_header_right {
    gap: 10px;
    padding-right: 8px !important;
  }
}

/* Language switch — same width as the 2 CTAs above, centered */
.cs_hero_style_3 .cs_hero_actions .cgr-lang-switch {
  position: static;
  left: auto;
  bottom: auto;
  width: 100%;
  margin-top: 12px;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
}
.cgr-lang-switch {
  position: relative;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #000099;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 80, 0.22);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cgr-lang-switch:hover,
.cgr-lang-switch:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 80, 0.28);
  background: #fff;
  color: #000099;
  text-decoration: none;
}
.cgr-lang-switch__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000099;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.cgr-lang-switch--fr .cgr-lang-switch__flag {
  font-size: 11px;
  letter-spacing: 0.02em;
}
@media (max-width: 991px) {
  .cs_hero_style_3 .cs_hero_actions .cgr-lang-switch {
    margin-top: 10px;
  }
  .cgr-lang-switch {
    padding: 10px 14px;
    font-size: 13px;
    gap: 8px;
  }
  .cgr-lang-switch__flag {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

/* Arabic / RTL — Noto Kufi Arabic (charte graphique) */
html[dir="rtl"] {
  --primary-font: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --secondary-font: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
}
html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] li,
html[dir="rtl"] span,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] label,
html[dir="rtl"] .cs_btn_style_1,
html[dir="rtl"] .cs_btn_style_2,
html[dir="rtl"] .cs_nav_list,
html[dir="rtl"] .cs_section_title,
html[dir="rtl"] .cs_hero_title {
  font-family: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif !important;
}
html[dir="rtl"] .fa,
html[dir="rtl"] .fa-solid,
html[dir="rtl"] .fa-regular,
html[dir="rtl"] .fas,
html[dir="rtl"] .far,
html[dir="rtl"] [class^="fa-"],
html[dir="rtl"] [class*=" fa-"] {
  font-family: "Font Awesome 7 Free" !important;
}
html[dir="rtl"] .fa-brands,
html[dir="rtl"] .fab,
html[dir="rtl"] [class*="fa-brands"] {
  font-family: "Font Awesome 7 Brands" !important;
}
html[dir="rtl"] .cs_hero_style_3 .cs_hero_inner {
  justify-content: flex-start;
}
html[dir="rtl"] .cs_hero_style_3 .cs_hero_text {
  align-items: flex-start;
  text-align: right;
}
html[dir="rtl"] .cs_hero_style_3 .cs_hero_title {
  line-height: 1.55 !important;
}
html[dir="rtl"] .cs_hero_style_3 .cs_hero_title br {
  display: block !important;
}
html[dir="rtl"] .cs_nav_list,
html[dir="rtl"] .cs_footer_widget_nav,
html[dir="rtl"] .cs_footer_bottom_nav,
html[dir="rtl"] .cs_contact_list {
  direction: rtl;
}
html[dir="rtl"] .cs_btn_style_1,
html[dir="rtl"] .cs_btn_style_2 {
  flex-direction: row-reverse;
}
html[dir="rtl"] .cs_about_features_list li,
html[dir="rtl"] .cs_footer_contact li {
  direction: rtl;
  text-align: right;
}

/* Digits stay LTR (10, not 01) but the block sits on the right */
html[dir="rtl"] .odometer,
html[dir="rtl"] .cs_work_step,
html[dir="rtl"] .cgr-process-num,
html[dir="rtl"] .cgr-exam-index {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir="rtl"] .cs_funfact_number {
  display: flex;
  direction: rtl;
  justify-content: flex-start;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  text-align: right;
}
html[dir="rtl"] .cs_funfact_number .odometer {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
html[dir="rtl"] .cs_feature_card_2 .cs_funfact_style_1 {
  width: 100%;
  margin-right: 0;
  margin-left: auto;
  justify-content: flex-end;
}
html[dir="rtl"] .cs_funfact_style_1,
html[dir="rtl"] .cs_funfact_item,
html[dir="rtl"] .cs_funfact_title {
  text-align: right;
}
html[dir="rtl"] .cs_feature_card_2 .cs_feature_card_header {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

/* Feature / about / services alignment */
html[dir="rtl"] .cs_feature_card_2,
html[dir="rtl"] .cs_about_content,
html[dir="rtl"] .cs_about_text,
html[dir="rtl"] .cs_section_heading_left,
html[dir="rtl"] .cs_section_heading_right,
html[dir="rtl"] .cs_service_text,
html[dir="rtl"] .cs_accordian_head,
html[dir="rtl"] .cs_accordian_body,
html[dir="rtl"] .cs_work_info,
html[dir="rtl"] .cs_rdv_content,
html[dir="rtl"] .cs_testimonial,
html[dir="rtl"] .cs_newsletter_heading,
html[dir="rtl"] .cs_footer_widget,
html[dir="rtl"] .cgr-about-split,
html[dir="rtl"] .cgr-exam-copy,
html[dir="rtl"] .cgr-contact-card,
html[dir="rtl"] .cs_page_header_in {
  text-align: right;
}
html[dir="rtl"] .cs_section_heading_style_1.cs_center_column,
html[dir="rtl"] .cs_section_heading_style_1.text-center,
html[dir="rtl"] .text-center {
  text-align: center !important;
}
html[dir="rtl"] .cs_team_profile_body,
html[dir="rtl"] .cs_team_profile_name,
html[dir="rtl"] .cs_team_profile_role,
html[dir="rtl"] .cs_team_profile_body .cgr-bio-link {
  text-align: center !important;
}

/* Service cards: keep text/icon readable in RTL */
html[dir="rtl"] .cs_service_card_2 .cs_service_left {
  direction: rtl;
  text-align: right;
  padding: 24px 24px 24px 100px;
}
html[dir="rtl"] .cs_service_card_2 .cs_btn_style_2 img {
  transform: scaleX(-1);
}
/* Service cards: text sits in the right column in RTL, so the hover
   image must open on the LEFT, otherwise it covers title/description */
html[dir="rtl"] .cs_service_card_2 .cs_service_img {
  right: auto;
  left: 0;
  transform-origin: left center;
}
html[dir="rtl"] .cs_service_section_2 .cs_service_card_2:hover .cs_service_left,
html[dir="rtl"] .cs_service_section_2 .cs_service_card_2:focus-within .cs_service_left,
html[dir="rtl"] .cs_service_section_2 .cs_service_card_2.is-open .cs_service_left,
html[dir="rtl"] .cs_service_card_2.active .cs_service_left {
  padding-right: 24px;
  padding-left: 0;
}
html[dir="rtl"] .cs_service_card_2 .cs_service_text,
html[dir="rtl"] .cs_service_section_2 .cs_service_card_2:hover .cs_service_text,
html[dir="rtl"] .cs_service_section_2 .cs_service_card_2:focus-within .cs_service_text,
html[dir="rtl"] .cs_service_section_2 .cs_service_card_2.is-open .cs_service_text {
  align-items: flex-start;
  text-align: right;
}
@media (max-width: 1199px) {
  html[dir="rtl"] .cs_service_card_2 .cs_service_left {
    padding: 24px;
  }
}
@media (max-width: 575px) {
  html[dir="rtl"] .cs_service_card_2 .cs_service_left {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Process arrows flip in RTL */
html[dir="rtl"] .cs_work_card_shape img,
html[dir="rtl"] .cs_work_card_1 .cs_work_card_shape {
  transform: scaleX(-1);
}
html[dir="rtl"] .cs_work_card_1:last-child .cs_work_card_shape {
  display: none;
}

/* Accordion + lists */
html[dir="rtl"] .cs_accordian_head {
  flex-direction: row-reverse;
}
html[dir="rtl"] .cs_about_features_list li {
  display: flex;
  flex-direction: row;
  direction: rtl;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  text-align: right;
}
html[dir="rtl"] .cs_about_features_list li img {
  order: -1;
  flex: none;
}
html[dir="rtl"] .cs_about_text > .cs_btn_style_1 {
  flex-direction: row;
  direction: ltr;
}
/* Footer RTL: icons/bullets on the right, natural RTL order */
html[dir="rtl"] .cs_footer_style_1 .cs_footer_contact li {
  display: block;
  padding-left: 0;
  padding-right: 36px;
}
html[dir="rtl"] .cs_footer_style_1 .cs_footer_contact img {
  left: auto;
  right: 0;
}
html[dir="rtl"] .cs_footer_style_1 .cs_footer_contact li a[dir="ltr"] {
  display: inline-block;
}
html[dir="rtl"] .cs_footer_style_1 .cs_footer_widget_nav a {
  padding-left: 0;
  padding-right: 16px;
}
html[dir="rtl"] .cs_footer_style_1 .cs_footer_widget_nav a::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .cs_footer_style_1 .cs_footer_widget_nav .cgr-wa-link {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
}
html[dir="rtl"] .cs_footer_style_1 .cs_footer_bottom_content {
  flex-direction: row;
  direction: rtl;
}
html[dir="rtl"] .cs_footer_style_1 .cs_footer_bottom_nav li {
  padding-left: 0;
  padding-right: 21px;
}
html[dir="rtl"] .cs_footer_style_1 .cs_footer_bottom_nav li::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .cs_footer_style_1 .cs_footer_bottom_nav li:first-child {
  padding-right: 0;
}
html[dir="rtl"] .cs_footer_style_1 .cs_newsletter_style_1 .cs_btn_style_1 {
  right: auto;
  left: 2px;
}
html[dir="rtl"] .cs_footer_style_1 .cs_newsletter_style_1 .cs_newsletter_inpu {
  text-align: right;
  padding-right: 20px;
  padding-left: 170px;
}
html[dir="rtl"] .cs_footer_style_1 .cs_social_btns_style_1 {
  justify-content: flex-start;
}
html[dir="rtl"] .cs_footer_logo {
  text-align: right;
}
@media (max-width: 767px) {
  html[dir="rtl"] .cs_footer_style_1 .cs_footer_bottom_content {
    align-items: flex-end;
  }
  html[dir="rtl"] .cs_footer_style_1 .cs_footer_bottom_nav li {
    padding-right: 0;
  }
  html[dir="rtl"] .cs_footer_style_1 .cs_newsletter_style_1 .cs_newsletter_inpu {
    padding-left: 20px;
  }
}
html[dir="rtl"] .cs_newsletter_style_1 {
  direction: rtl;
}
html[dir="rtl"] .cs_newsletter_form {
  direction: rtl;
}
html[dir="rtl"] .breadcrumb {
  direction: rtl;
}
html[dir="rtl"] .cgr-exam-row,
html[dir="rtl"] .cgr-about-split {
  direction: rtl;
}
html[dir="rtl"] .cgr-exam-row.is-flip {
  direction: rtl;
}
html[dir="rtl"] .fa-arrow-right {
  transform: scaleX(-1);
}
html[dir="rtl"] .cs_main_header_in {
  direction: rtl;
}
html[dir="rtl"] .cs_site_header .cs_main_header_left,
html[dir="rtl"] .cs_site_header .cs_main_header_right {
  direction: rtl;
}

/* Arabic mobile nav — fix header bar + drawer chaos */
@media (max-width: 991px) {
  html[dir="rtl"] .cs_site_header .cs_main_header {
    direction: ltr; /* keep absolute left/right anchors predictable */
  }
  html[dir="rtl"] .cs_site_header .cs_main_header_in {
    direction: ltr;
    position: relative;
  }
  /* Logo on the right — don't let this column steal taps on the left hamburger */
  html[dir="rtl"] .cs_site_header .cs_main_header_left {
    width: auto !important;
    max-width: calc(100% - 120px);
    margin-left: auto;
    margin-right: 0;
    padding: 0 12px 0 0 !important;
    order: 2;
    pointer-events: none;
  }
  html[dir="rtl"] .cs_site_header.cs_style_3 .cs_site_brand {
    margin-left: auto;
    margin-right: 0;
    pointer-events: auto;
  }
  /* Lang on the left; leave physical space for hamburger (do not cover it) */
  html[dir="rtl"] .cs_site_header .cs_main_header_right {
    order: 1;
    margin-right: auto;
    margin-left: 44px; /* room for hamburger at left:12px */
    padding: 0 !important;
    position: relative;
    z-index: 1002;
    pointer-events: none; /* padding/box must not steal hamburger clicks */
  }
  html[dir="rtl"] .cs_site_header .cs_main_header_right .cgr-header-lang {
    right: auto !important;
    left: auto !important;
    position: relative;
    top: auto;
    transform: none;
    pointer-events: auto;
  }
  /* Hamburger must sit above everything and receive taps */
  html[dir="rtl"] .cs_site_header .cs_menu_toggle {
    right: auto !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 10050 !important;
    pointer-events: auto !important;
    display: inline-block !important;
  }
  html[dir="rtl"] .cs_site_header .cs_menu_toggle.active {
    transform: translateY(-50%);
  }
  html[dir="rtl"] .cs_site_header .cs_nav {
    position: static;
  }

  /* Fullscreen drawer: Arabic text alignment */
  html[dir="rtl"] .cs_site_header .cs_nav_list_wrapper {
    direction: rtl;
    text-align: right;
    transform-origin: bottom left;
    padding: 70px 20px 30px;
    z-index: 10040;
  }
  html[dir="rtl"] .cs_site_header .cs_nav_list_wrapper.active {
    transform-origin: top right;
    transform: scale(1, 1) !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  html[dir="rtl"] .cs_site_header .cs_nav_list,
  html[dir="rtl"] .cs_site_header .cs_nav_list > li,
  html[dir="rtl"] .cs_site_header .cs_nav_list a {
    text-align: right;
    direction: rtl;
  }
  html[dir="rtl"] .cs_site_header .cs_nav_list ul {
    padding-left: 0;
    padding-right: 16px;
  }
  html[dir="rtl"] .cs_site_header .cs_menu_dropdown_toggle {
    left: auto;
    right: 0;
    justify-content: flex-start;
    padding: 23px 18px;
  }
  html[dir="rtl"] .cs_site_header .menu-item-has-children > a {
    padding-left: 40px;
    padding-right: 15px;
  }
  html[dir="rtl"] .cs_site_header .cs_close_nav {
    left: 50%;
  }
  .cgr-about-split{
    display: flex !important;
    flex-direction: column !important;
  }
}
@media (max-width: 767px) {
  html[dir="rtl"] .cs_site_header .cs_menu_toggle {
    left: 12px !important;
    width: 22px;
  }
  html[dir="rtl"] .cs_site_header .cs_main_header_right {
    margin-left: 40px;
    padding: 0 !important;
  }
  html[dir="rtl"] .cs_site_header.cs_style_3 .cs_site_brand {
    width: 140px;
  }
}

/* Reveal words stay readable */
html[dir="rtl"] .cs_section_title .cs_reveal_word,
html[dir="rtl"] .cs_hero_title .cs_reveal_word {
  display: inline-block;
}
/* Phone / WhatsApp numbers always LTR, even inside Arabic text */
.cgr-phone,
a[href^="tel:"],
a[href^="https://wa.me"],
.cgr-wa-link,
.cgr-tel-link,
.cgr-wa-link span,
.cgr-tel-link span {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir="rtl"] .cgr-phone,
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href^="https://wa.me"],
html[dir="rtl"] .cgr-wa-link,
html[dir="rtl"] .cgr-tel-link,
html[dir="rtl"] .cgr-wa-link span,
html[dir="rtl"] .cgr-tel-link span {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
}
html[dir="rtl"] .cgr-exam-row .cs_btn_style_1 img {
  transform: scaleX(-1);
}

/* Inner pages: cards, lists, forms, accordions */
html[dir="rtl"] .cgr-process-card,
html[dir="rtl"] .cgr-info-card,
html[dir="rtl"] .cgr-equip-card,
html[dir="rtl"] .cgr-post-body,
html[dir="rtl"] .cgr-quote-wide,
html[dir="rtl"] .cgr-hours-panel,
html[dir="rtl"] .cgr-contact-form-card,
html[dir="rtl"] .cs_service_details_block,
html[dir="rtl"] .cs_service_details_section,
html[dir="rtl"] .cs_blog_details_content,
html[dir="rtl"] .cs_input_wrap,
html[dir="rtl"] .cs_input_wrap label,
html[dir="rtl"] .cs_form_field,
html[dir="rtl"] .cgr-chip-list,
html[dir="rtl"] .cgr-check,
html[dir="rtl"] .cgr-kicker,
html[dir="rtl"] .cs_accordians_style_2 {
  text-align: right;
  direction: rtl;
}
html[dir="rtl"] .cgr-quote-wide,
html[dir="rtl"] .cgr-note,
html[dir="rtl"] .cgr-hours-panel h3 {
  text-align: center;
}
html[dir="rtl"] .cs_form_field,
html[dir="rtl"] .choices__inner,
html[dir="rtl"] .choices__list {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .cs_form_field[type="tel"],
html[dir="rtl"] .cs_form_field[type="email"] {
  direction: ltr;
  text-align: right;
}

/* Check lists: bullet on the right */
html[dir="rtl"] .cgr-check li {
  padding-left: 0;
  padding-right: 22px;
}
html[dir="rtl"] .cgr-check li::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .cs_blog_check_list li {
  padding-left: 0;
  padding-right: 28px;
}

/* Opening hours: keep times LTR */
html[dir="rtl"] .cgr-hours-list li {
  direction: rtl;
}
html[dir="rtl"] .cgr-hours-list strong {
  direction: ltr;
  unicode-bidi: isolate;
}

/* FAQ accordion: toggler on the left, title padding swapped */
html[dir="rtl"] .cs_accordians_style_2 .cs_accordian .cs_accordian_head,
html[dir="rtl"] .cs_accordians_style_3 .cs_accordian .cs_accordian_head {
  padding: 26px 0 26px 50px;
  flex-direction: row;
}
html[dir="rtl"] .cs_accordians_style_2 .cs_accordian .cs_accordian_toggler,
html[dir="rtl"] .cs_accordians_style_3 .cs_accordian .cs_accordian_toggler,
html[dir="rtl"] .cs_accordians_style_1 .cs_accordian .cs_accordian_toggler {
  right: auto;
  left: 0;
}

/* Breadcrumb divider */
html[dir="rtl"] .cs_page_header_style_1 .cs_breadcrumb .breadcrumb-item + .breadcrumb-item::before,
html[dir="rtl"] .cgr-page-hero .cs_breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "‹" !important;
  padding-right: 0;
  padding-left: 8px;
  float: none;
}
html[dir="rtl"] .breadcrumb-item + .breadcrumb-item {
  padding-left: 0;
  padding-right: 0.5rem;
}

/* WhatsApp icon + button arrows */
html[dir="rtl"] a.cgr-wa-link .cgr-wa-icon,
html[dir="rtl"] .cgr-wa-icon {
  margin-right: 0;
  margin-left: 6px;
}
/* Header phone + WhatsApp: same row, same icon gap in Arabic */
html[dir="rtl"] .cs_site_header .cs_contact_list {
  align-items: center;
}
html[dir="rtl"] .cs_site_header .cs_contact_item {
  display: flex;
  align-items: center;
}
html[dir="rtl"] .cs_site_header a.cgr-wa-link,
html[dir="rtl"] .cs_site_header a.cgr-tel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
  text-align: left;
}
html[dir="rtl"] .cs_site_header a.cgr-wa-link .cgr-wa-icon,
html[dir="rtl"] .cs_site_header a.cgr-tel-link .cgr-tel-icon {
  margin: 0;
  flex: none;
}
html[dir="rtl"] .cs_btn_style_1 img[src*="arrow-right"],
html[dir="rtl"] .cs_btn_style_2 img[src*="arrow-right"] {
  transform: scaleX(-1);
}

/* Bio modal */
html[dir="rtl"] .cgr-bio-modal__dialog {
  text-align: right;
  direction: rtl;
}
html[dir="rtl"] .cgr-bio-modal__close {
  right: auto;
  left: 14px;
}
html[dir="rtl"] .cgr-bio-modal__title {
  padding-right: 0;
  padding-left: 36px;
}

/* Quote icon on about testimonial */
html[dir="rtl"] .cs_about_style_2 .cs_testimonial .cs_quote_icon {
  right: auto;
  left: 30px;
}
@media (max-width: 991px) {
  html[dir="rtl"] .cs_about_style_2 .cs_testimonial .cs_quote_icon {
    left: 15px;
  }
}

/* Exam badge on media */
html[dir="rtl"] .cgr-exam-badge {
  left: auto;
  right: 16px;
}
html[dir="rtl"] .cgr-detail-banner .cgr-exam-badge {
  right: 20px;
}

/* Contact / infos: phone numbers in text */
html[dir="rtl"] .cgr-info-card a[href^="tel:"],
html[dir="rtl"] .cgr-contact-card a[href^="tel:"] {
  display: inline-block;
}

/* Exam detail CTA stays centered in FR + AR (override RTL right-align) */
html[dir="rtl"] .cs_service_details_section .cgr-retain,
html[dir="rtl"] .cs_service_details_section .cgr-retain h3,
html[dir="rtl"] .cs_service_details_section .cgr-retain p {
  text-align: center !important;
}
html[dir="rtl"] .cs_service_details_section .cgr-retain .d-flex {
  justify-content: center !important;
  align-items: center;
}

/* Notre équipe — dedicated page */
.cgr-team-page {
  padding: 72px 0 40px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(43, 69, 248, 0.08), transparent 70%),
    #f6f8ff;
}
.cgr-team-intro {
  max-width: 720px;
  margin: 0 auto 48px;
}
.cgr-team-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #243056;
}
.cgr-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}
.cgr-team-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 80, 0.08);
  border: 1px solid rgba(0, 0, 153, 0.08);
}
.cgr-team-photo {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000099;
}
.cgr-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s ease;
}
.cgr-team-card:hover .cgr-team-photo img {
  transform: scale(1.04);
}
.cgr-team-body {
  padding: 28px 28px 32px;
  text-align: center;
}
.cgr-team-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin: -54px auto 12px;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 80, 0.12);
  position: relative;
}
.cgr-team-body h3 a {
  color: #000099;
  text-decoration: none;
}
.cgr-team-role {
  margin: 8px 0 12px;
  color: #2b45f8;
  font-weight: 700;
}
.cgr-team-text {
  color: #3a4260;
  line-height: 1.65;
  margin-bottom: 20px;
}
.cgr-team-quote {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 28px 32px;
  border-radius: 20px;
  background: #000099;
  color: #fff;
  text-align: center;
}
.cgr-team-quote p {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}
.cgr-team-quote cite {
  font-style: normal;
  opacity: 0.85;
  font-size: 15px;
}
html[dir="rtl"] .cgr-team-page,
html[dir="rtl"] .cgr-team-body,
html[dir="rtl"] .cgr-team-intro,
html[dir="rtl"] .cgr-team-quote {
  text-align: center;
}
@media (max-width: 767px) {
  .cgr-team-page {
    padding: 48px 0 24px;
  }
  .cgr-team-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
}

/* 404 page */
.cgr-error-section {
  padding: 72px 0 96px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 0, 153, 0.06), transparent 70%),
    #fff;
}
.cgr-error-box {
  max-width: 640px;
  margin: 0 auto;
}
.cgr-error-code {
  margin: 0 0 12px;
  font-size: clamp(72px, 14vw, 120px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #000099;
  opacity: 0.18;
}
html[dir="rtl"] .cgr-error-section {
  font-family: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
}

/* Compact desktop: smaller nav words so the menu fits a small monitor */
@media (min-width: 1280px) and (max-width: 1535px) {
  .cs_site_header.cs_style_3 .cs_main_header_left {
    gap: 18px;
  }
  .cs_site_header .cs_nav_list {
    gap: 12px;
  }
  .cs_site_header .cs_nav_list > li > a {
    font-size: 14px;
    white-space: nowrap;
    padding: 0 8px;
  }
  .cs_site_header .menu-item-has-children > a {
    padding-right: 14px;
  }
  .cs_site_header .menu-item-has-children > a::after {
    font-size: 10px;
  }
}
@media (min-width: 1280px) and (max-width: 1365px) {
  .cs_site_header.cs_style_3 .cs_main_header_left {
    gap: 12px;
  }
  .cs_site_header .cs_nav_list {
    gap: 8px;
  }
  .cs_site_header .cs_nav_list > li > a {
    font-size: 12px;
  }
}

/* Faster paint: skip rendering offscreen sections until near viewport */
.cs_about_style_2,
.cs_service_section_1,
.cs_whychoose_section_2,
.cs_working_process_style_1,
.cs_team_section,
.cs_faq_section,
.cs_blog_section,
.cs_map_section,
.cs_cta_style_1,
.cgr-soft-section,
.cs_services_section_5 .cgr-exam-row:nth-child(n+3) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

