/* ============================================================
   STYLE ARABE (RTL) - CNED
   ============================================================ */

@import url("../style.css");

body {
  direction: rtl;
  text-align: right;
  font-family: "Segoe UI", "Tahoma", "Arial", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Segoe UI", "Tahoma", "Arial", sans-serif;
}

p, span, div, li, a, .text, .title, .counter-title {
  text-align: right;
}

/* ============================================================
   HEADER - LOGO À DROITE / LANGUAGE DANS BLEU
   ============================================================ */

/* Logo : physique droite */
.pull-right.logo-box {
  float: right !important;
  max-width: 180px;
  height:auto;

}

/* Navigation : physique gauche */
.main-header .nav-outer {
  float: left;
}

.main-menu {
  float: right;
}

.main-menu .navbar-collapse {
  float: right;
}

.main-menu .navigation > li {
  float: right;
  margin-right: 0;
  margin-left: 30px;
}

.main-menu .navigation > li:last-child {
  margin-left: 0;
}

/* --- Lang Switch dans la bande bleue (header-top) --- */
.lang-switch-top {
  float: right;
  margin-left: 20px;
  margin-right: 0;
  padding: 10px 0;
}

.lang-switch-top .language > a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  padding: 4px 14px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  background: transparent;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-switch-top .language > a:hover {
  background: #ffffff;
  color: #002952;
  border-color: #ffffff;
}

.lang-switch-top .language .dropdown-menu {
  top: 100%;
  left: auto;
  right: 0;
  width: 150px;
  border: none;
  padding: 0;
  margin-top: 8px;
  border-radius: 4px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-switch-top .language .dropdown-menu > li {
  border-bottom: 1px solid #f0f0f0;
}

.lang-switch-top .language .dropdown-menu > li:last-child {
  border-bottom: none;
}

.lang-switch-top .language .dropdown-menu > li > a {
  padding: 10px 15px;
  color: #333333;
  display: block;
  text-align: right;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-switch-top .language .dropdown-menu > li > a:hover {
  background-color: #002952;
  color: #ffffff;
}

/* --- Header Top RTL --- */
.header-top .inner-container {
  margin-left: 0;
  margin-right: 230px;
  padding-left: 0;
  padding-right: 80px;
}

.header-top .inner-container:before {
  left: auto;
  right: 100%;
}

.main-header .top-left {
  float: right;
}

.main-header .top-left .contact-list li {
  float: right;
  margin-right: 0;
  margin-left: 25px;
}

.main-header .top-left .contact-list li i {
  float: right;
  margin-right: 0;
  margin-left: 20px;
}

.main-header .top-left:before {
  left: auto;
  right: -50px;
  border-left: 0;
  border-right: 50px solid transparent;
  border-top: 60px solid #002952;
}

.main-header .top-right {
  float: left;
}

/* --- Sticky Header --- */
.sticky-header .logo {
  float: right;
}

.sticky-header .right-col {
  float: left !important;
}

.lang-switch-sticky {
  float: right;
  margin-left: 15px;
  margin-right: 0;
  margin-top: 12px;
}

.lang-switch-sticky .language .dropdown-menu {
  top: 100%;
  left: auto;
  right: 0;
  width: 140px;
  border: none;
  padding: 0;
  margin-top: 5px;
  border-radius: 3px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

.lang-switch-sticky .language > a {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  padding: 4px 12px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  background: transparent;
  transition: all 0.3s ease;
}

.lang-switch-sticky .language > a:hover {
  background: #ffffff;
  color: #002952;
  border-color: #ffffff;
}

.lang-switch-sticky .language .dropdown-menu {
  top: 100%;
  left: 0;
  right: auto;
  width: 140px;
  border: none;
  padding: 0;
  margin-top: 5px;
  border-radius: 3px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

.lang-switch-sticky .language .dropdown-menu > li {
  border-bottom: 1px solid #f0f0f0;
}

.lang-switch-sticky .language .dropdown-menu > li:last-child {
  border-bottom: none;
}

.lang-switch-sticky .language .dropdown-menu > li > a {
  padding: 8px 12px;
  color: #333333;
  display: block;
  text-align: right;
  font-size: 13px;
  transition: all 0.3s ease;
}

.lang-switch-sticky .language .dropdown-menu > li > a:hover {
  background-color: #002952;
  color: #ffffff;
}

/* --- Search Box RTL --- */
.header-style-five .header-upper .search-box-outer {
  float: right;
}

.header-style-five .header-upper .search-box-btn {
  text-align: left;
}

.header-style-five .header-upper .search-box-outer .dropdown-menu {
  right: auto;
  left: 0px;
}

.header-style-five .header-upper .search-panel input[type="text"],
.header-style-five .header-upper .search-panel input[type="search"],
.header-style-five .header-upper .search-panel select {
  padding: 7px 15px 7px 40px;
}

.header-style-five .header-upper .search-panel .search-btn {
  right: auto;
  left: 0px;
}

/* ============================================================
   SECTIONS RTL
   ============================================================ */

.sec-title-three {
  padding-left: 0;
  padding-right: 20px;
  border-left: none;
  border-right: 3px solid #02b6ec;
}

.sec-title h2:after {
  left: auto;
  right: 0px;
}

.sec-title.centered h2:after {
  left: auto;
  right: 50%;
  margin-right: -30px;
}

.about-section-four .image-column .image-1 img {
  border-right: none !important;
  border-left: 10px solid #02b6ec !important;
}

.list-style-four li {
  padding-left: 0;
  padding-right: 25px;
}

.list-style-four li:before {
  left: auto;
  right: 0px;
}

.list-style-two li {
  padding-left: 0;
  padding-right: 25px;
}

.list-style-two li .icon {
  left: auto;
  right: 0px;
}

.list-style-one li {
  padding-left: 0;
  padding-right: 25px;
}

.list-style-one li:before {
  left: auto;
  right: 0px;
}

.feature-tabs .tab-btns .tab-btn {
  text-align: right;
}

.feature-tabs .tab-btns .tab-btn span {
  text-align: right !important;
}

.counter-column .inner,
.counter-column .count-outer,
.counter-column .counter-title {
  text-align: center;
}

.news-block-two .lower-content {
  text-align: right;
}

.post-meta li {
  float: right;
  margin-right: 0;
  margin-left: 20px;
}

.post-meta li span {
  margin-right: 0;
  margin-left: 8px;
}

.footer-column .logo-widget .text {
  text-align: right;
}

.list-link li {
  text-align: right;
}

.copyright-column {
  text-align: right;
}

.social-column {
  text-align: left;
}

.social-column ul li {
  float: right;
  margin-left: 10px;
}

.follow {
  margin-left: 10px;
}

.btn-style-one {
  padding: 10px 30px 10px 72px;
}

.btn-style-one .icon {
  right: auto;
  left: -2px;
  border-radius: 50px 0px 0px 50px;
  padding-right: 0;
  padding-left: 4px;
}

.btn-style-fourteen:before {
  left: auto;
  right: 0px;
}

.btn-style-twelve .fa {
  margin-left: 0;
  margin-right: 2px;
}

.btn-style-thirteen .fa {
  margin-left: 0;
  margin-right: 2px;
}

.scroll-to-top {
  right: auto;
  left: 30px;
}

.main-slider .content {
  text-align: right;
}

.owl-carousel {
  direction: ltr;
}

.owl-carousel .owl-item {
  direction: rtl;
}

.gallery-widget .widget-content iframe {
  direction: ltr;
}

.defilement-container {
  text-align: right;
}

.team-block .overlay-box .content {
  text-align: right;
}

.main-header .header-upper .outer-box {
  float: left;
  margin-left: 0;
  margin-right: 40px;
}

.auto-container {
  direction: rtl;
}

@media (max-width: 991px) {
  .main-header .top-left {
    float: none;
  }

  .header-top .inner-container {
    margin-right: 0;
    padding-right: 15px;
  }

  .lang-switch-top {
    float: none;
    display: inline-block;
    margin: 0 10px 0 0;
    padding: 10px 0;
  }

  .lang-switch-top .language > a {
    font-size: 12px;
    padding: 3px 10px;
  }

  .main-menu .navigation > li {
    float: none;
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .header-top .inner-container {
    margin-right: 0;
    padding-right: 15px;
  }
}
