/* إعدادات عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  line-height: 1.6;
  background-color: #f0f0f0;
  color: #333333;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* حاوية مركزية */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* شريط علوي */
.top-bar {
  background-color: #007ACC;
  color: #fff;
  padding: 0.5rem;
  font-size: 14px;
  position: relative;
}

.bar-content {
  position: relative;
  display: flex;
  justify-content: center; /* تجعل العنصر الأوسط في المنتصف */
  align-items: center;
}

.left-text {
  color: #ffd700;
  font-weight: bold;
  position: absolute;
  left: 10px;
  white-space: nowrap;
  border-bottom: 2px solid ;
}
.center-text {
  text-align: center;
}

.top-bar .highlight {
  font-weight: bold;
  color: #ffd700;
}

/* شريط التنقل */
.main-nav {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.logo img {
  height: 50px;
}

.logo-group h5 {
  font-size: 1rem;
  color: #007ACC;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  max-width: 100px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: #333333;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-links li a:hover {
  color: #007ACC;
}

.dropdown {
  position: relative;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
  z-index: 1000;
}

.dropdown-menu li {
  white-space: nowrap;
}

.dropdown-menu li a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #333;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #007ACC;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 122, 204, 0.4);
  border-radius: 5px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-arrow::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #333; /* لون المثلث (يمكن تعديله) */
  transition: transform 0.3s ease; /* لإضافة حركة عند التحويم */
}

/* حركة المثلث عند التحويم */
.dropdown:hover .dropdown-arrow::after {
  transform: rotate(180deg);
}
/* أزرار */
.btn-yellow {
  background-color: #007ACC;
  color: #fff;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-yellow:hover {
  background-color: #006bbf;
}

/* السلايدر الرئيسي */
.hero {
  position: relative;
  height: 60vh;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.main-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.main-slide.active {
  opacity: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 10;
  width: 100%;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.buttons a {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #007ACC;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s;
  text-shadow: none;
}

.buttons a:hover {
  background-color: #006bbf;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* قسم الأسباب */
.etig-reasons {
  background-color: #007ACC;
  color: white;
  padding: 4rem 2rem;
}

.etig-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.etig-text {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.etig-text h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 10px;
}

.etig-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: #ffd700;
}

.reason {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.reason .icon {
  font-size: 2rem;
  color: #ffd700;
  flex-shrink: 0;
  margin-top: 5px;
}

.reason h3 {
  margin: 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #ffd700;
}

.reason p {
  font-size: 0.95rem;
  margin-top: 0.3rem;
  line-height: 1.5;
}

.etig-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.pourquoi-slider {
  position: relative;
  width: 100%;
  height: 700px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.pourquoi-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.pourquoi-slide.active {
  opacity: 1;
}

/* قسم التكوينات */
.formations {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f0f0f0;
}

.formations h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #007ACC;
}

.formations .subtext {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #fff;
  padding: 2rem;
  width: 280px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #007ACC;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #007ACC;
}

/* قسم الترشح */
.candidature {
  background: #f0f0f0;
  padding: 3rem 2rem;
  text-align: center;
}

.candidature h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #007ACC;
}

.candidature p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.candidature form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

.candidature input,
.candidature select {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.candidature label {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.candidature button {
  background-color: #007ACC;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 1rem;
  margin-top: 10px;
}

.candidature button:hover {
  background-color: #006bbf;
}

/* الفوتر */
footer {
  background-color: #222;
  color: #fff;
  padding: 3rem 2rem 1rem;
}

.footer-cols {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

footer h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #007ACC;
}

footer ul {
  list-style: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* الحركة */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

button:active,
.btn-yellow:active,
.btn-white:active {
  animation: shake 0.3s;
}