/********** Template CSS **********/
/*** Spinner ***/





#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    background-color: #0D6B68;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 4px 0;
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

    .navbar .dropdown-toggle::after {
        border: none;
        content: "\f107";
        font-family: 'Cairo', sans-serif;
        font-weight: 900;
        vertical-align: middle;
        margin-left: 8px;
    }

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar-brand img {
    height: 50px;     /* ارتفاع ثابت للوجو */
    width: auto;      /* العرض يتغير تلقائي */
    object-fit: contain; /* يمنع تشوه الصورة */
  }

/*** Hero Header ***/
.hero-header {
    margin-top: -100px;
    padding-top: 87px;
    background: url(../img/hero-bg.jg) top center no-repeat;
    background-size: cover;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.header-carousel {
    position: relative;
    padding: 45px 90px 45px 0;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white);
}

.language-switcher {
    position: relative;
    display: inline-block;
    font-family: 'Cairo', sans-serif;
}

  .language-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 5px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    background: white;
    transition: 0.3s;
    user-select: none;
    width: 108px; /* ✅ عرض ثابت للزر */
  }

  .language-btn img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    flex-shrink: 0; /* عشان الصورة متصغرش */
  }


  .dropdown {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    min-width: 140px; /* ✅ نفس العرض بتاع الزر */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10;
  }

  .dropdown div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: 0.3s;
  }

  .dropdown div:hover {
    background: #f5f5f5;
  }

  .dropdown img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
  } 
  
  
  .filter-box {
    border: 1px solid #0D6B68;
    padding: 10px;
    text-align: center;
  }
  .filter-row {
    display: flex;
    justify-content: center;
    gap: 50px;
  }
  .filter-row label {
    font-weight: bold;
    color: #f1b341;
    margin-left: 10px;
  }
  select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    min-width: 180px;
  }

 /* الجدول العادي */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px auto;
}
thead {
  background: #e6f0ef;
  color: #03201f;
}
th, td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}
td img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
td a {
  color: #d63f2e;
  text-decoration: none;
}
td a:hover {
  text-decoration: underline;
}
.cv-icon {
  font-size: 22px;
  color: #d63f2e;
}

/* تحويل الجدول لبطاقات على الشاشات الصغيرة */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
      display: block;
    }
  
    thead {
      display: none;
    }
  
    tr {
      margin-bottom: 20px;
      border: 1px solid #ddd;
      border-radius: 12px;
      padding: 15px;
      background: #ffffff;
      box-shadow: 0 4px 8px rgba(0,0,0,0.05);
      transition: transform 0.2s;
    }
  
    tr:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    }
    
    td {
        text-align: left;
        padding-left: 0;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 8px 0;
        display: flex;
        align-items: center;
        flex-wrap: wrap; /* يسمح للعناوين بالقفز إذا طويلة */
      }
  
      td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #0D6B68;
        width: auto; /* بدل 120px */
        min-width: 80px; /* مساحة صغيرة لضبط التنسيق */
        margin-right: 10px;
        flex-shrink: 0;
      }
  
    td:last-child {
      border-bottom: 0;
    }
  
    td img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 15px;
    }
  
    /* للروابط داخل الكارت */
    td a {
      color: #3e0709;
      text-decoration: none;
    }
  
    td a:hover {
      text-decoration: underline;
    }
  
    .cv-icon {
      font-size: 22px;
      color: #3e0709;
    }
  }
  
/* login-file */
  h1 {
    color: #0D6B68;
    font-weight: bold;
    margin: 0;
}

p {
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
}

span {
    font-size: 12px;
}

a {
    color: #514A9D;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
}

button {
    border-radius: 20px;
    border: 1px solid #d63f2e;
    background-color: #d63f2e;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}

button:active {
    transform: scale(0.95);
}

button:focus {
    outline: none;
}

button.ghost {
    background-color: transparent;
    border-color: #ffffff;
}

form {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

input {
    background-color: #eee;
    border: none;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
}

.social-container {
    margin: 20px 0;
}

.social-container a {
    border: 1px solid #dddddd;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
    color: #000;
  
}
#container {
    background-color:#ffffff;
    border-radius: 1px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;

    margin-top: 30px;
}
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: #0D6B68;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to top, #0D6B68, #053635);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to top, #0D6B68, #053635); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #ffffff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-panel h1 {
  color: white;
}
.overlay-left {
    transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

#info {
  margin-top: 1rem;
  text-align: center; 
}

.bi-arrow-up {
    color: #ffff; 
  }

  
  /* footer */
  .footer {
    background-color: #073e3c;
    color: #fff;
    padding: 15px 0;
    margin-top: 60px;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .footer-image img {
    max-width: 150px;
    height: auto;
    background-color: #fff;
    border-radius: 10px;
  }
  
  .footer-center {
    text-align: center;
    flex: 1; 
 }
  
  .footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
  }
  
  .footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .footer-social .social-icon:hover {
    background-color: #fff;
    color: #0D6B68;
    transform: scale(1.1);
    text-decoration: none;
  }
  
  .footer-text p {
    font-size: 18px;
    color: #e0e0e0;
    margin: 0;
  }
  
  .footer-text a {
    color: #f1b341;
    font-weight: bold;
  }
  
  
  /*  Responsive */
  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
      text-align: center;
      gap: 20px;
    }
  
    .footer-image img {
      max-width: 120px;
    }
  
    .footer-center {
      order: 2;
    }
    .footer-social {
        gap:9px;
    }



  }
  