
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
::-webkit-scrollbar {
      height: 15px;
      width: 10px;
      background:white;
  }
  
  ::-webkit-scrollbar-thumb {
      background:#295a85;
      -webkit-box-shadow: 0px 1px 2px var(--dark);
  }
  
  ::-webkit-scrollbar-corner {
      background: var(--dark);
  }

body {
  background: #fff;
  color: #666666;
}


a {
  color: #000;
  transition: 0.5s;
}

a:hover,
a:active,
a:focus {
  color: #18d36e;
  outline: none;
  text-decoration: none;
}

p {
  padding: 0;
  margin: 0 0 30px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  
  font-weight: 400;
  margin: 0 0 20px 0;
  padding: 0;
}

/* Back to top button */

.back-to-top {
  position: fixed;
  display: none;
  background: #1b599d;
  color: #fff;
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 1;
  font-size: 16px;
  border-radius: 50%;
  right: 15px;
  bottom: 15px;
  transition: background 0.5s;
  z-index: 11;
}

.back-to-top i {
  padding-top: 12px;
  color: #fff;
}

/* Prelaoder */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #f2f2f2;
  border-top: 6px solid #1b599d;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
 
#header {
  padding: 30px 0;
  height: 92px;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  transition: all 0.5s;
  z-index: 997;
}

#header.header-scrolled {
  background: #295a85;
  padding: 20px 0;
  height: 72px;
  transition: all 0.5s;
}

#header #logo {
  float: left;
  margin-top: 5px;

}

#header #logo h1 {
  font-size: 34px;
  margin: 0;
  padding: 0;
  line-height: 1;
   font-weight: 700;
  letter-spacing: 3px;
  list-style: none;
}

#header #logo h1 a,
#header #logo h1 a:hover {
  color: #fff;
  padding-left: 10px;
  border-left: 4px solid #000;
  font-size: 18px;
}

#header #logo img {
  padding: 0;
  margin: 0;
}

/*--------------------------------------------------------------
# Intro Section
--------------------------------------------------------------*/

#intro {
  display: table;
  width: 100%;
  height: 100vh;
  background: #000;
}

#intro .carousel-item {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#intro .carousel-item::before {
  content: '';
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

#intro .carousel-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

#intro .carousel-background img {
  max-width: 100%;
}

#intro .carousel-content {
  text-align: center;
  width:90%;
}

#intro h2{
  color: #fff;
   margin-bottom: 30px;
  font-size: 45px;
  font-weight: 700;
}

#intro p {
  width: 80%;
  margin: 0 auto 30px auto;
  color: #fff;
}

#intro .carousel-fade {
  overflow: hidden;
}

#intro .carousel-fade .carousel-inner .carousel-item {
  transition-property: opacity;
}

#intro .carousel-fade .carousel-inner .carousel-item,
#intro .carousel-fade .carousel-inner .active.carousel-item-left,
#intro .carousel-fade .carousel-inner .active.carousel-item-right {
  opacity: 0;
}

#intro .carousel-fade .carousel-inner .active,
#intro .carousel-fade .carousel-inner .carousel-item-next.carousel-item-left,
#intro .carousel-fade .carousel-inner .carousel-item-prev.carousel-item-right {
  opacity: 1;
  transition: 0.5s;
}

#intro .carousel-fade .carousel-inner .carousel-item-next,
#intro .carousel-fade .carousel-inner .carousel-item-prev,
#intro .carousel-fade .carousel-inner .active.carousel-item-left,
#intro .carousel-fade .carousel-inner .active.carousel-item-right {
  left: 0;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

#intro .carousel-control-prev,
#intro .carousel-control-next {
  width: 10%;
}

#intro .carousel-control-next-icon,
#intro .carousel-control-prev-icon {
  background: none;
  font-size: 32px;
  line-height: 1;
}

#intro .carousel-indicators li {
  cursor: pointer;
}

#intro .btn-get-started {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 32px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  color: #fff;
  background: #1b599d;
}

#intro .btn-get-started:hover {
  background: #fff;
  color: #1b599d;
}

/*--------------------------------------------------------------
# bar-news
--------------------------------------------------------------*/
 

.bar-news-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background:#000;
  padding:5px;
  color:#fff;
}

/* RTL (Arabic) */
html[dir="rtl"] .bar-news-container {
  direction: rtl;
}
html[dir="rtl"] .bar-news-wrapper {
  animation: ticker-rtl 20s linear infinite;
}

/* LTR (French & English) */
html[dir="ltr"] .bar-news-container {
  direction: ltr;
}
html[dir="ltr"] .bar-news-wrapper {
  animation: ticker-ltr 20s linear infinite;
}

.bar-news-wrapper:hover {
  animation-play-state: paused;
}

.bar-news {
  display: inline-block;
  cursor: pointer;
}

.bar-news-text {
  font-weight: bold;
  color: #fff;
  padding: 0 10px;
  font-size: 20px;
}

.blink {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% { opacity: 0; }
}

/* حركة من اليمين لليسار (عربية) */
@keyframes ticker-rtl {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* حركة من اليسار لليمين (فرنسية / إنجليزية) */
@keyframes ticker-ltr {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/

/* Nav Menu Essentials */

.nav-menu,
.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu ul {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  z-index: 99;
}

.nav-menu li {
  position: relative;
  white-space: nowrap;
}

.nav-menu > li {
  float: right;
}

.nav-menu li:hover > ul,
.nav-menu li.sfHover > ul {
  display: block;
}

.nav-menu ul ul {
  top: 0;
  left: 100%;
}

.nav-menu ul li {
  min-width: 180px;
}

/* Nav Menu Arrows */

.sf-arrows .sf-with-ul {
  padding-right: 30px;
}

.sf-arrows .sf-with-ul:after {
  content: "\f107";
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  float: left; 
  padding-right: 9PX;
 }

.sf-arrows ul .sf-with-ul:after {
  content: "\f105";
}

/* Nav Meu Container */

#nav-menu-container {
  float: right;
  margin: 0;
}

/* Nav Meu Styling */

.nav-menu a {
  padding: 0 8px 10px 8px;
  text-decoration: none;
  display: inline-block;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  outline: none;
}

.nav-menu li:hover > a,
.nav-menu > .menu-active > a {
  color: #083257;
}

.nav-menu > li {
  margin-left: 20px;
}

.nav-menu ul {
  margin: 4px 0 0 0;
  padding: 1px;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  background: #fff;
  margin-left: -90px;
}

.nav-menu ul li {
  transition: 0.3s;
}

.nav-menu ul li a {
  padding: 10px;
  color: #333;
  transition: 0.3s;
  display: block;
  font-size: 15px;
  text-transform: none;
  text-align: right;
}

.nav-menu ul li:hover > a {
 color: #40b7ff;
  background: #f5f5f5;
}

.nav-menu ul ul {
  margin: 0;
}

/* Mobile Nav Toggle */

#mobile-nav-toggle {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 999;
  margin: 20px 20px 0 0;
  border: 0;
  background: none;
  font-size: 24px;
  display: none;
  transition: all 0.4s;
  outline: none;
  cursor: pointer;
}

#mobile-nav-toggle i {
  color: #fff;
}

/* Mobile Nav Styling */

#mobile-nav {
  position: fixed;
  top: 0;
  padding-top: 18px;
  bottom: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.8);
  left: -260px;
  width: 260px;
  overflow-y: auto;
  transition: 0.4s;
}

#mobile-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#mobile-nav ul li {
  position: relative;
}

#mobile-nav ul li a {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  overflow: hidden;
  padding: 10px 22px 10px 15px;
  position: relative;
  text-decoration: none;
  width: 100%;
  display: block;
  outline: none;
  font-weight: 700;
}

#mobile-nav ul li a:hover {
  color: #1b599d;
}

#mobile-nav ul li li {
  padding-left: 30px;
}

#mobile-nav ul li.menu-active a {
  color: #1b599d;
}

#mobile-nav ul .menu-has-children i {
  position: absolute;
  right: 0;
  z-index: 99;
  padding: 5px;
  cursor: pointer;
  color: #fff;
 }

#mobile-nav ul .menu-has-children i.fa-chevron-up {
  color: #1b599d;
}

#mobile-nav ul .menu-has-children li a {
  text-transform: none;
 }

#mobile-nav ul .menu-item-active {
  color: #1b599d;
}

#mobile-body-overly {
  width: 100%;
  height: 100%;
  z-index: 997;
  top: 0;
  left: 0;
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  display: none;
}

/* Mobile Nav body classes */

body.mobile-nav-active {
  overflow: hidden;
}

body.mobile-nav-active #mobile-nav {
  left: 0;
}

body.mobile-nav-active #mobile-nav-toggle {
  color: #fff;
}
   #nav-menu-container ul.annex-dropdown {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      padding: 0;
      list-style: none;
  }
  #nav-menu-container ul.annex-dropdown hr {
      grid-column: span 2;
      width: 100%;
      border: none;
      height: 1px;
      background-color: #e0e0e0;
  }
  /* dropdown menu */
  
/* LTR (default) - ensure current behavior remains */
[dir="ltr"] .nav-menu > li { float: right; } /* you keep float:right for LTR if desired */
[dir="ltr"] .nav-menu ul { left: 0; right: auto; }
[dir="ltr"] .nav-menu ul ul { left: 100%; right: auto; }
[dir="ltr"] .nav-menu ul li a { text-align: left; direction: ltr; }

 
[dir="rtl"] .nav-menu ul {
  left: auto !important;
  right: 0 !important;      /* submenu box attaches to the right edge of parent */
}
[dir="rtl"] .nav-menu ul ul {
  left: auto !important;
  right: 100% !important;   /* nested submenus open to the left of parent */
}
[dir="rtl"] .nav-menu ul li a {
  text-align: right;
  direction: rtl;
  padding-right: 12px;      /* spacing inside items */
  padding-left: 6px;
}

/* Keep annex-dropdown grid but ensure items align in RTL */
[dir="rtl"] #nav-menu-container ul.annex-dropdown {
  direction: rtl;
}
[dir="rtl"] #nav-menu-container ul.annex-dropdown li a {
  text-align: right;
}

/* Flip the small arrow glyph from left to right for RTL */
/* .sf-arrows .sf-with-ul:after uses FontAwesome glyphs in your CSS */
.sf-arrows .sf-with-ul:after {
float: right;           /* move arrow to right of the text */
  padding-right: 0;
  padding-left: 9px;}

/* Put the "arrow" on the right for RTL */
[dir="rtl"] .sf-arrows .sf-with-ul:after {
  float: left;           /* move arrow to right of the text */
  padding-right: 9px;
  padding-left: 0;
}

/* If you use a different arrow for submenus, adjust content for RTL if needed */
[dir="ltr"] .sf-arrows .sf-with-ul:after  { content: "\f107"; } /* caret-down (default) */
[dir="ltr"] .sf-arrows ul .sf-with-ul:after { content: "\f105"; } /* caret-right inside submenus */

[dir="rtl"] .sf-arrows .sf-with-ul:after  { content: "\f107"; } /* caret-down stays same */
[dir="rtl"] .sf-arrows ul .sf-with-ul:after { content: "\f104"; } /* caret-left for nested items in RTL */

 

/* Optional: ensure anchors with icons preserve spacing in RTL */
[dir="rtl"] #nav-menu-container ul li a i {
  margin-left: 6px;
  margin-right: 0;
}
 /*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/

/* Sections Header
--------------------------------*/

.section-header h3 {
  font-size: 32px;
  color: #111;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.section-header h3::before {
  content: '';
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-header h3::after {
  content: '';
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #295a85;
  bottom: 0;
  left: calc(50% - 20px);
}

.section-header p {
  text-align: center;
  padding-bottom: 30px;
  color: #333;
}

/* Section with background
--------------------------------*/

.section-bg {
  background: #f7f7f7;
}

/* Featured Services Section
--------------------------------*/

#featured-services {
  background:#4b5259;
  text-align: right;
  direction: rtl;
}

#featured-services .box {
  padding: 30px 20px;
}

#featured-services .box-bg {
  background-image: linear-gradient(0deg, #4b5259 0%, #242323 50%, #4b5259 100%);
}

#featured-services i {
  color: #fff;
  font-size: 48px;
  display: inline-block;
  line-height: 1;
}

#featured-services h4 {
  font-weight: 400;
  margin: 15px 0;
  font-size: 18px;
}

#featured-services h4 a {
  color: #fff;
}

#featured-services h4 a:hover {
  color: #004242;
}

#featured-services p {
  font-size: 14px;
  line-height: 24px;
  color: #fff;
  margin-bottom: 0;
}

/* event Section
--------------------------------*/
 .title_header {
            margin-bottom: 1rem;
            text-align: right;
            color: black;
        }

        .title_header h2 {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .title_header p {
            color: rgba(1, 1, 1, 0.6);
        }

   * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
  }

/* Section header */
.section-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom: 1rem;
}

/* Layout */
.division_2 {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    background: #67a2d5;
    padding: 1.5rem;
    border-radius: 14px;
    
}

/* Latest activity (main card) */
#event ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#event ul li {
    background: #fff;
     overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    
    border-radius: 14px;
}

#event ul li:hover {
    
    box-shadow: 0 5px 16px rgba(0,0,0,0.15);
}

/* Hero image */
#event li figure {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#event li figure img {
    width: 100%;
    height: 100%;
    
    display: block;
    transition: transform 0.5s ease;
}

#event li:hover figure img {
    transform: scale(1.05);
}

/* Text content */
#event li h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1b599d;
    margin: 1rem;
    text-align: right;
}

#event li p {
    font-size: 1rem;
    color: #333;
    margin: 0 1rem 1rem 1rem;
    line-height: 1.6;
    text-align: right;
}

.event-date {
    font-size: 0.9rem;
    color: #1b599d;
    margin: 0 1rem 1rem 1rem;
    text-align: left;
    font-weight: bold;
}

.btn {
    display: inline-block;
    background-color:#1b599d;
    color: #fff;
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    margin: 0.5rem  ;
    transition: background 0.3s;
}

.btn:hover {
    background-color: white;
    color: #1b599d;
    border: 1px solid #1b599d;
}

/* Notifications (side list) */
#notification {
    height: 90%;
    overflow-y: auto;
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: #1b599d transparent;
}

 

#notification a {
    display: flex;
    align-items: center;
    background: #fff;
     
    margin-bottom: 1rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    padding: 0.5rem;
    color: #1b599d;
    border-radius: 14px;
}

#notification a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(0,0,0,0.1);
}

#notification figure {
     width: 150px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-left: 10px;
    margin-bottom: 5px;
}
    
#notification figure img {
    width: 100%;
    height: 100%;
    
}

#notification article {
    flex: 1;
    text-align: right;
}

#notification article h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #000;
}

#notification article p {
    font-size: 0.9rem;
    color: rgba(0,0,0,0.6);
    margin-bottom: 0.3rem;
}

#notification aside {
    display: flex;
    justify-content: flex-start;
    font-size: 0.8rem;
    color: #1b599d;
}

.fa-calendar {
    color:#1b599d;
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 920px) {
    .division_2 {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    #event li figure {
        height: 220px;
    }

    #notification {
        max-height: 300px;
    }
}

 

/* About Us Section
--------------------------------*/

#about {
  background: url("../img/about-bg.jpg") center top no-repeat fixed;
  background-size: cover;
  padding: 60px 0 40px 0;
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  z-index: 9;
}

#about .container {
  position: relative;
  z-index: 10;
}

#about .about-col {
  background: #fff;
  border-radius: 0 0 4px 4px;
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

#about .about-col .img {
  position: relative;

}

#about .about-col .img img {
  border-radius: 4px 4px 0 0;
  height: 200px;
  width: 100%;

}

#about .about-col .icon {
  width: 64px;
  height: 64px;
  padding-top: 8px;
  text-align: center;
  position: absolute;
  background-color: #295a85;
  border-radius: 50%;
  text-align: center;
  border: 4px solid #fff;
  left: calc( 50% - 32px);
  bottom: -30px;
  transition: 0.3s;
}

#about .about-col i {
  font-size: 36px;
  line-height: 1;
  color: #fff;
  transition: 0.3s;
}

#about .about-col:hover .icon {
  background-color: #fff;
}

#about .about-col:hover i {
  color: #295a85;
}

#about .about-col h2 {
  color: #000;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  padding: 0;
  margin: 40px 0 12px 0;
}

#about .about-col h2 a {
  color: #000;
}

#about .about-col h2 a:hover {
  color: #295a85;
}

#about .about-col p {
  font-size: 14px;
  line-height: 24px;
  color: #333;
  margin-bottom: 0;
  padding: 0 20px 20px 20px;
}

/* Services Section
--------------------------------*/

#services {
  background: #fff;
  background-size: cover;
  padding: 60px 0 40px 0;
  direction: rtl;
}

#services .box {
  margin-bottom: 30px;

}

#services .icon {
  float: right;
}

#services .icon i {
  color: #1b599d;
  font-size: 36px;
  line-height: 1;
  transition: 0.5s;
}

#services .title {
  margin-right: 60px;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
  text-align: right;
}

#services .title a {
  color: #111;
}

#services .box:hover .title a {
  color: #004242;
}

#services .description {
  font-size: 14px;
  margin-right: 60px;
  line-height: 24px;
  margin-bottom: 0;
  text-align: right;
}
/* Arabic: keep RTL */
html[lang="ar"] #services {
  direction: rtl;
}

html[lang="ar"] #services .icon {
  float: right;
}

html[lang="ar"] #services .title,
html[lang="ar"] #services .description {
  text-align: right;
  margin-right: 60px;
  margin-left: 0;
}

/* French / English: flip to LTR */
html[lang="fr"] #services,
html[lang="en"] #services {
  direction: ltr;
}

html[lang="fr"] #services .icon,
html[lang="en"] #services .icon {
  float: left;
}

html[lang="fr"] #services .title,
html[lang="fr"] #services .description,
html[lang="en"] #services .title,
html[lang="en"] #services .description {
  text-align: left;
  margin-left: 60px;
  margin-right: 0;
}



 /* Clients Section
--------------------------------*/

#clients {
  padding: 40px 0;
}

 .tab_container {
          width: 85%;
          margin: 0 auto;
          padding-top: 10px;
          position: relative;
          margin-bottom:100px;
        
           
        }
        
        input, section.tab-content {
          clear: both;
          padding-top: 10px;
          display: none;
        }
        
        .tab_container label {
          font-weight: bold;
          font-size: 15px;
          display: block;
          float: left;
          width: 10%;
          padding: 1.5em;
          color: #000;
          cursor: pointer;
          text-decoration: none;
          text-align: center;
          background: #67a2d5;
          
        
         }
        
        #tab1:checked ~ #content1,
        #tab2:checked ~ #content2,
        #tab3:checked ~ #content3,
        #tab4:checked ~ #content4,
        #tab5:checked ~ #content5,
        #tab6:checked ~ #content6,
        #tab7:checked ~ #content7,
        #tab8:checked ~ #content8,
        #tab9:checked ~ #content9,
        #tab10:checked ~ #content10 {
          display: block;
          padding: 20px;
          border: 4px solid #67a2d5;
          color: #fff;
            font-size: 20px;
          background-color: #f6f9fe;
        }
         
        .tab_container .tab-content p,
        .tab_container .tab-content h3 {
          -webkit-animation: fadeInScale 0.7s ease-in-out;
          -moz-animation: fadeInScale 0.7s ease-in-out;
          animation: fadeInScale 0.7s ease-in-out;
            
        
        }
        .tab_container .tab-content p{
            font-size: 20px;
            text-align: center;
            color: black;
            margin-top: 7px;
            
        
        
        }
        .tab_container .tab-content h3  {
          text-align: center;
          color: black;
          font-weight: bold;
           
          font-size: 35px;
         }
        
        .tab_container [id^="tab"]:checked + label {
          background: #fff;
          box-shadow: inset 1px 2px 0px 2px #E4F0F0;
          color: black;
        
        }
        
        /*Media query*/
        @media only screen and (max-width: 930px) {
          label span {
            font-size: 14px;
            
          }
           .tab_container label {
   
    width: 50%;
    
}
          
        }
        
        @media  (max-width: 768px) {
           
        
           label span {
            font-size: 14px;
           
            text-align: center;
          }
          label{
            width: 20%;
          }
        
           
        }
        
        /*Content Animation*/
        @keyframes fadeInScale {
          0% {
            transform: scale(0.9);
            opacity: 0;
          }
          
          100% {
            transform: scale(1);
            opacity: 1;
          }
        }  

/* Facts Section
--------------------------------*/

#facts {
  background: url("../img/statestique.jpg") center top no-repeat fixed;
  background-size: cover;
  padding: 60px 0 0 0;
  position: relative;
}

#facts::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.88);
  z-index: 9;
}

#facts .container {
  position: relative;
  z-index: 10;
}

#facts .counters span {
  font-weight: bold;
  font-size: 48px;
  display: block;
  color: #295a85;
}

#facts .counters p {
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 14px;
  color: #111;
}

#facts .facts-img {
  text-align: center;
  padding-top: 30px;
}

/* Portfolio Section
--------------------------------*/

#portfolio {
  padding: 60px 0;
}

#portfolio #portfolio-flters {
  padding: 0;
  margin: 5px 0 35px 0;
  list-style: none;
  text-align: center;
}

#portfolio #portfolio-flters li {
  cursor: pointer;
  margin: 15px 15px 15px 0;
  display: inline-block;
  padding: 10px 20px;
  font-size: 12px;
  line-height: 20px;
  color: #666666;
  border-radius: 4px;
  text-transform: uppercase;
  background: #fff;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

#portfolio #portfolio-flters li:hover,
#portfolio #portfolio-flters li.filter-active {
  background: #1b599d;
  color: #fff;
}

#portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}

#portfolio .portfolio-wrap {
     border-radius: 14px;
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

#portfolio .portfolio-wrap:hover {
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.16);
}

#portfolio .portfolio-item {
  position: relative;
  height: 360px;
  overflow: hidden;
}

#portfolio .portfolio-item figure {
  background: #000;
  overflow: hidden;
  height:200px;
  position: relative;
  border-radius: 14px;
  margin: 0;
}

#portfolio .portfolio-item figure:hover img {
  opacity: 0.4;
  transition: 0.3s;
}

#portfolio .portfolio-item figure .link-preview,
#portfolio .portfolio-item figure .link-details {
  position: absolute;
  display: inline-block;
  opacity: 0;
  line-height: 1;
  text-align: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s linear;
}

#portfolio .portfolio-item figure .link-preview i,
#portfolio .portfolio-item figure .link-details i {
  padding-top: 6px;
  font-size: 22px;
  color: #333;
}

#portfolio .portfolio-item figure .link-preview:hover,
#portfolio .portfolio-item figure .link-details:hover {
  background: #004242;
}

#portfolio .portfolio-item figure .link-preview:hover i,
#portfolio .portfolio-item figure .link-details:hover i {
  color: #fff;
}

#portfolio .portfolio-item figure .link-preview {
  left: calc(50% - 38px);
  top: calc(50% - 18px);
}

#portfolio .portfolio-item figure .link-details {
  right: calc(50% - 38px);
  top: calc(50% - 18px);
}

#portfolio .portfolio-item figure:hover .link-preview {
  opacity: 1;
  left: calc(50% - 44px);
}

#portfolio .portfolio-item figure:hover .link-details {
  opacity: 1;
  right: calc(50% - 44px);
}

#portfolio .portfolio-item .portfolio-info {
  background: #fff;
  text-align: center;
  padding: 20px;
  height: 20px;
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 14px;
}

#portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  line-height: 1px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 0;
}

#portfolio .portfolio-item .portfolio-info h4 a {
  color: #333;
 }

#portfolio .portfolio-item .portfolio-info h4 a:hover {
  color: #004242;
}


/* Testimonials Section
--------------------------------*/

#testimonials {
  padding: 40px 0;
}

#testimonials .section-header {
  margin-bottom: 40px;
  text-align: right;
}

#testimonials .testimonial-item {
  text-align: center;
  direction: rtl;
}

#testimonials .testimonial-item .testimonial-img {
  width: 160px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin: 0 auto;
}

#testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #111;
}

#testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0 0 15px 0;
}

#testimonials .testimonial-item .quote-sign-left {
  margin-top: -15px;
  padding-right: 10px;
  display: inline-block;
  width: 37px;
}

#testimonials .testimonial-item .quote-sign-right {
  margin-bottom: -15px;
  padding-left: 10px;
  display: inline-block;
  max-width: 100%;
  width: 37px;
}

#testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 15px auto;
}

#testimonials .owl-nav,
#testimonials .owl-dots {
  margin-top: 5px;
  text-align: center;
}

#testimonials .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
}

#testimonials .owl-dot.active {
  background-color: #004242;
}

/* livre Section
--------------------------------*/

 .wrap {
    perspective: 1000px;
    width: 150px; /* Adjusted for better fit */
    margin: 1.5rem auto;
    display: inline-block;
    direction: rtl;
}
.cover {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    animation: ann 8s infinite;
}
.cover div {
    width: 100%;
    height: 100%;
    position: absolute;
}
.cover-face {
    background-size: cover;
    border-radius: 3px 0px 0px 3px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}
.cover-spine {
    background-size: cover;
    width: 18% !important;
    transform: rotateY(-90deg) translateZ(0);
    transform-origin: 100% 0;
    border-radius: 3px 0 0 3px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}
@keyframes ann {
    0% { transform: rotateY(-45deg); }
    50% { transform: rotateY(-60deg); }
    100% { transform: rotateY(-45deg); }
}

 
 

/* Contact Section
--------------------------------*/

#contact {
  padding: 60px 0;
}

#contact .contact-info {
  margin-bottom: 20px;
  text-align: center;
}

#contact .contact-info i {
  font-size: 48px;
  display: inline-block;
  margin-bottom: 10px;
  color: #1b599d;
}

#contact .contact-info address,
#contact .contact-info p {
  margin-bottom: 0;
  color: #000;
}
#contact.btn-contact{
  background: #1b599d;  
}
#contact .contact-info h3 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
  text-transform: uppercase;
  color: #999;
}

#contact .contact-info a {
  color: #000;
}

#contact .contact-info a:hover {
  color: #1b599d;
}

#contact .contact-address,
#contact .contact-phone,
#contact .contact-email {
  margin-bottom: 20px;
}

#contact .form #sendmessage {
  color:#1b599d;
  border: 1px solid #1b599d;
  display: none;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

#contact .form #errormessage {
  color: red;
  display: none;
  border: 1px solid red;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

#contact .form #sendmessage.show,
#contact .form #errormessage.show,
#contact .form .show {
  display: block;
}

#contact .form .validation {
  color: red;
  display: none;
  margin: 0 0 20px;
  font-weight: 400;
  font-size: 13px;
  text-align: right;
}

#contact .form input,
#contact .form textarea {
  padding: 10px 14px;
  border-radius: 0;
  box-shadow: none;
  font-size: 15px;
  text-align: right;
}

#contact .form button[type="submit"] {
  background: #1b599d;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  cursor: pointer;
}

#contact .form button[type="submit"]:hover {
  background: #13a456;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

#footer {
  background: #4b5259;
  padding: 0 0 15px 0;
  color: #eee;
  font-size: 14px;
  direction: rtl;
}

#footer .footer-top {
  background: #295a85;
  padding: 60px 0 30px 0;
}

#footer .footer-top .footer-info {
  margin-bottom: 30px;
  
}

#footer .footer-top .footer-info h3 {
  font-size: 34px;
  margin: 0 0 20px 0;
  padding: 2px 0 2px 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 3px;
  border-right: 4px solid #000;
  text-align: right;
  
}

#footer .footer-top .footer-info p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  color: #eee;
  text-align: right;
  
}

#footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #333;
  color: #eee;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
  float: right;
}

#footer .footer-top .social-links a:hover {
  background:#1b599d;
  color: #fff;
}

#footer .footer-top h4 {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
  text-align: right;
}

#footer .footer-top h4::before,
#footer .footer-top h4::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  height: 2px;
}

#footer .footer-top h4::before {
  right: 0;
  background: #555;
}

#footer .footer-top h4::after {
  background: #000;
  width: 60px;
}

#footer .footer-top .footer-links {
  margin-bottom: 30px;
}

#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-top .footer-links ul i {
  padding-right: 8px;
  color: #ddd;
}

#footer .footer-top .footer-links ul li {
  border-bottom: 1px solid #333;
  padding: 10px 0;
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-top .footer-links ul a {
  color: #eee;
}

#footer .footer-top .footer-links ul a:hover {
  color: #004242;
}

#footer .footer-top .footer-contact {
  margin-bottom: 30px;
}

#footer .footer-top .footer-contact p {
  line-height: 26px;
  text-align: right;
  text-align: justify;
}

 
 

#footer .copyright {
  text-align: center;
  padding-top: 30px;
}

#footer .credits {
  text-align: center;
  font-size: 13px;
  color: #ddd;

}
 /* ✅ Base footer style (LTR by default) */
#footer {
  background: #000;
  padding: 0 0 30px 0;
  color: #eee;
  font-size: 14px;
  direction: ltr;
  text-align: left;
}

#footer.footer-top {
  background: #111;
  padding: 60px 0 30px 0;
}

#footer.footer-top .footer-info h3 {
  font-size: 34px;
  margin: 0 0 20px 0;
  padding: 2px 10px 2px 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 3px;
  border-left: 4px solid #000;
  text-align: left;
}

#footer.footer-top .footer-info p,
#footer.footer-top h4,
#footer.footer-top .footer-contact p {
  text-align: left;
}
#footer .footer-top .footer-info p,
#footer .footer-top .footer-info h3,
#footer .footer-top h4{
    text-align: left;
  }
 
#footer.footer-top .social-links a {
  float: left;
  margin-left: 4px;
}

/* ✅ RTL override (Arabic) */
[dir="rtl"] #footer {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] #footer .footer-top .footer-info h3 {
  border-left: none;
  border-right: 4px solid #000;
  padding: 2px 0 2px 10px;
  text-align: right;
}

[dir="rtl"] #footer .footer-top .footer-info p,
[dir="rtl"] #footer .footer-top h4,
[dir="rtl"] #footer .footer-top .footer-contact p {
  text-align: right;
}

[dir="rtl"] #footer .footer-top .social-links a {
  float: right;
  margin-right: 4px;
  margin-left: 0;
}

/*--------------------------------------------------------------
# Responsive Media Queries
--------------------------------------------------------------*/

@media (min-width: 768px) {
  #contact .contact-address,
  #contact .contact-phone,
  #contact .contact-email {
    padding: 20px 0;
  }

  #contact .contact-phone {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
  }
}

@media (min-width: 992px) {
  #testimonials .testimonial-item p {
    width: 80%;
  }
}

@media (min-width: 1024px) {
  #header #logo {
    padding-left: 60px;
  }

  #intro p {
    width: 60%;
  }

  #intro .carousel-control-prev,
  #intro .carousel-control-next {
    width: 5%;
  }

  #nav-menu-container {
    padding-right: 10px;
  }
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 15px;
  }
  
  #header #logo h1 {
    font-size: 28px;
  }

  #header #logo img {
    max-height: 40px;
  }

  #intro h2 {
    font-size: 28px;
  }

  #nav-menu-container {
    display: none;
  }

  #mobile-nav-toggle {
    display: inline;
  }

}