/* Header Styles Begin */

.navbar-nav .nav-link {
  min-width: 70px;
}

nav{
  font-size: 0.9rem;
}

.navbar-nav.dir-rtl .dropdown-item {
  text-align: right !important;
}

.brand-img {
  max-width: 300px !important;
  max-height: 50px !important;
}

/*@media screen and (max-width: 1214px) and (min-width: 1101px) {
  .brand-name {
    font-size: 24px;
  }
}

@media screen and (max-width: 1100px) and (min-width: 992px) {
  .brand-name {
    display: none;
  }
}*/

.header-top {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

.mobile-brand-img {
  max-width: 160px;
  max-height: 45px;
  object-fit: contain;
  margin-left: 0px;
}

.language-dropdown{
  font-size: 16px;
}

.language-dropdown.dropdown-toggle::after{
  color: white;
}

.navbar-nav {
  gap: 1.5rem;              /* add space between items */
}

.navbar-nav .nav-link {
  min-width: 0px!important;
  white-space: nowrap;      /* keeps “Actualités et Événements” on one line */
  text-decoration: none;
} 

.dropdown-menu.ar-lang {
  right:100%;
  left: auto!important;
}


@media (min-width: 992px) {

  .header-top::before,
  .header-top::after {
    background: dodgerblue;
  }

  .navbar-brand::after {
    background: var(--bs-dark);
  }

  nav .text-muted {
    color: var(--bs-dark) !important;
  }

  nav .text-primary {
    color: rgba(0, 0, 0, .55) !important;
  }
}
.img-mini{
	display:none;
}
@media screen and (max-width: 1350px) and (min-width: 992px) {
	.header-top::after {
		width: 2%;
	}  
	.brand-img {
		max-height: 35px !important;
	}
}
/* @media screen and (max-width: 1250px) and (min-width: 1171px) {
  .navbar-nav .nav-link {
      min-width: 50px;
  }
} */
@media screen and (max-width: 1170px) and (min-width: 1131px) {
  nav{
    font-size: 0.8rem;
  }
  .navbar-nav .nav-link {
      min-width: 50px;
  }
}
@media screen and (max-width: 1130px) and (min-width: 992px) {
.img-mini{
		display:block;
	}
	.img-full{
		display:none;
	}
}


@media screen and (max-width: 1100px) and (min-width: 1051px) {
  .brand-img {
    max-width: 270px !important;
    max-height: 45px !important;
  }

  .brand-img-container {
    padding-left: 0px !important;
  }

  .navbar-nav .nav-link {
      min-width: 50px;
  }
}

@media screen and (max-width: 1050px) and (min-width: 1011px) {
  .brand-img {
    max-width: 240px !important;
    max-height: 40px !important;
  }
  nav{
    font-size: 0.85rem;
  }
  .navbar-nav .nav-link {
      min-width: 60px;
  }

  .brand-img-container {
    padding-left: 10px !important;
  }

  .header-top .navbar-brand {
      padding: 40px 40px 40px 0;
  }
}

@media screen and (max-width: 1010px) and (min-width: 992px) {
  .brand-img {
    max-width: 210px !important;
    max-height: 35px !important;
  }

  .brand-img-container {
    padding-left: 0px !important;
  }
}

  .navbar .dropdown-submenu .dropdown-toggle::after {
    content: "\f105";
  }

@media (max-width: 991px) {
  .navbar {
    justify-content: space-between;
    padding: 0 1rem;
  }

  .dir-rtl .navbar {
    margin-right: 0px;
  }

  .navbar .dropdown-submenu .dropdown-toggle::after {
    content: "\f107";
  }
}

/* Parent sub-dropdown */
.dropdown-submenu {
  position: relative;
}

.navbar .dropdown-menu .nav-link.dropdown-toggle::after {
    border: none;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

/* Desktop: float submenu */
@media (min-width: 992px) {
  .navbar-nav .nav-link {
    min-width: fit-content!important;
  }
  .dropdown-menu .nav-link {
    color:black!important;
  }
  .dropdown-menu .nav-item.dropdown {
    margin-right: 0px;
    padding: 0.25rem 1rem;
  }
  .dropdown-menu .nav-item.dropdown:hover {
    background-color: #0099de!important;
  }
  .dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    display: none;
    position: absolute;
    min-width: 200px;
  }
  .dropdown-submenu .dropdown-menu.show {
    display: block;
  }
}

/* Mobile: nested inside More dropdown */
@media (max-width: 991px) {
  .navbar-nav .nav-link{
    min-width: 70px!important;
  }
  .dropdown-submenu .dropdown-menu {
    position: relative;
    left: 0;
    right: 0;
    display: none;
  }
  .dropdown-submenu .dropdown-menu.show {
    display: block;
  }
  .navbar-nav {
    gap: 0.5rem!important;
  }
  .navbar .navbar-nav .nav-item {
    padding: 6px!important;
  }
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 8rem;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    padding: 0.5rem 0;
}

.dropdown-menu.show {
    display: block;
}

/* Header Styles End */

/* Hero Slider Styles Begin */

.hero-bg-half-1 {
    background-image: none;
}

.hero-section {
    background-image: none;
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.video-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.video-content iframe {
    width: 100%;
    height: 500px;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.carousel-caption-ar {
    padding-right: 60px;
}

@media screen and (max-width: 991px) {

    .hero-bg-half-1,
    .hero-shape-1 {
        display: none;
    }

    .container,
    .container h1,
    .container h4,
    .container p {
        justify-content: center;
        text-align: center;
    }

    .carousel-caption-ar {
      padding-right: 0px!important;
    }
}

/* Hero Slider Styles End */

/* Search Modal Begin */
.modal-header.dir-rtl {
    justify-content: space-between;
}

.modal-header.dir-rtl h5 {
    order: 1;
}

.modal-header.dir-rtl .btn-close {
    order: 2;
    margin-right: auto;
    margin-left: 0.5rem;
}
/* Search Modal End */

/* About Section Begin */
.fade-left,
.fade-right {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-left.visible,
.fade-right.visible {
    opacity: 1;
    transform: translateY(0);
}

.mobile {
    display: none;
}

@media (max-width: 991px) {
    .mobile {
        display: inline-block;
    }
    .laptop {
        display: none;
    }
}

.about p {
    text-align: justify;
}
/* About Section End */

/* Banner Section Begin */
.banner {
    background-size: cover;
    background-position: center;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s ease;
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

@media screen and (max-width: 450px) {
    .down {
        transform: translateY(50px);
    }
}
/* Banner Section End */

/* Partners Section Begin */

.partners-section {
    background: #f9f9f9;
}

/* Scroller wrapper */
.logo-scroller {
    overflow: hidden;
    position: relative;
    width: 100%;
    white-space: nowrap;
}

/* Scrolling track */
.logo-track {
    display: flex;
    width: max-content;
    animation: agt-scroll 25s linear infinite;
}

/* Logo item */
.logo-item {
    flex: 0 0 auto;
    padding: 0 1rem;
}

.logo-item img {
    height: 160px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
}

/* Animation */
@keyframes agt-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
/* Partners Section End */

/* Footer Styles Begin */
.footer.dir-rtl input.form-control {
    direction: ltr;
}

.copyright.dir-rtl .year {
    order: 1;
}

.copyright.dir-rtl .rights {
    order: 2;
}
/* Footer Styles End */

/* Breadcrumb Section Begin */

.dir-rtl .breadcrumb-item+.breadcrumb-item::before {
    float: right;
    padding-right: 0.5rem;
    color: #6c757d;
    padding-left: 0.5rem;
    content: var(--bs-breadcrumb-divider, "/");
}

/* Breadcrumb Section End */

/* Contact Section Begin */
.dir-rtl .form-floating>label {
    right: 0;
    left: auto;
}

ul {
    list-style: none;
    padding: 0;
}

.sticky-form {
    position: sticky;
    top: 50px;
    /* distance from top */
    margin-bottom: 1000px;
}

.dir-rtl #left-side-contact {
    margin-bottom: 100px;
}

.form-check-input {
    margin-right: 0.5em;
}

.dir-rtl .form-check-input {
    float: right;
    margin-right: 0em;
    margin-left: 0.5em;
}

@media screen and (max-width: 991px) {
    .sticky-form {
        position: static;
        margin-bottom: 0;
    }

    .form-check{
      text-align: left;
    }

    .dir-rtl .form-check{
      text-align: right;
    }
}

@media screen and (max-width: 450px) {
    .row.dir-ltr .person-info {
        transform: translateX(-25%);
    }

    .row.dir-rtl .person-info {
        transform: translateX(25%);
    }
}
/* Contact Section End */


/* Popup Styles Begin */
/* Smooth modal appearance */
.animate-modal {
  animation: fadeSlideUp 0.4s ease-out;
}

@keyframes fadeSlideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Backdrop */
.modal-backdrop.fade.show {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* Gradient header */
.bg-gradient-primary {
  background: linear-gradient(135deg, #007bff, #5a67d8);
}

/* Center footer button */
#agtPopup .modal-body .btn-primary {
  transition: all 0.3s ease;
}

#agtPopup .modal-body .btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

#agtPopup .modal-body img{
  max-height: 425px; 
  object-fit: cover;
}

@media screen and (max-width: 1366px) {
  #agtPopup .modal-body img{
    max-height: 390px; 
    object-fit: cover;
  }
}

@media screen and (max-width: 768px) {
  #agtPopup .modal-body img{
    max-height: 350px; 
    object-fit: cover;
  }
}

/* RTL Fix */
/* #agtPopup .dir-rtl.btn-close {
  margin-left: 0 !important;
} */

.rtl #agtPopup .modal-header .btn-close {
  margin-left: 0 !important;
}

.rtl #agtPopup .btn-close {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.rtl #agtPopup .btn-close:hover {
  opacity: 1;
}
/* Popup Styles End */

/* ==========================================
   MULTILEVEL SUBMENU FIX
========================================== */

/* Anchor the wrapper */
.dropdown-submenu {
    position: relative !important;
}

/* Position the 3rd-level menu to fly out */
.dropdown-submenu > .dropdown-menu {
    top: 0 !important;
    left: 100% !important; 
    margin-top: -6px !important;
    display: none !important; 
    position: absolute !important;
    min-width: 220px;
}

/* Desktop: Show on Hover */
@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu {
        display: block !important;
    }

    [dir="rtl"] .navbar .dropdown-submenu .dropdown-toggle::after {
        content: "\f104";
    }
}

/* Mobile Layout: Stack vertically inside the "More" menu */
@media (max-width: 991px) {
    .dropdown-submenu > .dropdown-menu {
        position: static !important;
        left: 0 !important;
        margin-left: 1rem !important;
        box-shadow: none !important;
        border: none !important;
        background-color: transparent !important;
    }
    .dropdown-submenu > .dropdown-menu.show {
        display: block !important;
    }
}

/* RTL Arabic Direction (Fly Left) */
[dir="rtl"] .dropdown-submenu > .dropdown-menu {
    left: auto !important;
    right: 100% !important;
}




/* ==========================================
   Infinite Partners Logo Scroller
========================================== */

.partners-section {
    background: #f9f9f9;
    overflow: hidden; /* Prevents the page from having a horizontal scrollbar */
}

/* Hide everything outside the viewing area */
.logo-scroller {
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* The track that holds all the logos */
.logo-track {
    display: flex;
    flex-wrap: nowrap; /* CRITICAL: Force them onto one single line */
    width: max-content; 
    animation: scroll-logos 35s linear infinite;
}

/* Individual Logo Container */
.logo-item {
    padding: 0 25px; 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* CRITICAL: Stops the browser from squishing the logos */
}

/* The Keyframe Animation */
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}





.navbar .nav-item.privacy-policy {
  display: none;
}

