/* عام */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: background-image 1s ease-in-out; /* لتأثير التغير السلس */
}

/* طبقة إضافية لتطبيق الحركة */
#bg-overlay {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transition: top 1s ease-in-out;
}

.Container {
  margin: 0 auto;
  width: fit-content;
}

/* Navbar */
.MyNav {
  background: transparent !important;
  box-shadow: none;
  border: none;  
}

.MyNav .nav-link,
.MyNav .navbar-brand {
  color: #fff !important;
}

.MyNav .nav-link:hover {
  color: #5a2902 !important;
}

/* Main */
main {
  flex: 1; /* يدفع الفوتر لتحت */
}

/* Footer */
footer {
  text-align: center;
  padding: 15px 0;
  background: #562904;
  color: white;
  margin-top: auto;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* عناصر عامة */
.flex {
  flex-direction: column;
  color: #ff9900;
}

.flex_row {
  margin-top: 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  color: #5a2902;
  height: 70px;
  flex-wrap: wrap;
}

.lang-btn,
.search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-btn svg,
.search-btn svg {
  width: 24px;
  height: 24px;
}
.lang-btn { color: #fd710d; }
.search-btn { color: #0d6efd; }
.lang-btn:hover,
.search-btn:hover { opacity: 0.8; }

/* الأزرار الرئيسية */
.button-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 100px;
}

.button-container .btn {
  padding: 15px 40px;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(45deg, #6a5acd, #ce8e04);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.button-container .btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255,255,255,0.1);
  transform: rotate(45deg);
  transition: all 0.5s;
}
.button-container .btn:hover::before {
  top: 0;
  left: 0;
}
.button-container .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
/* تخصيص حركة القائمة */
.custom-offcanvas {
  transform: translateX(100%); /* البداية: خارج الشاشة */
  transition: transform 0.5s ease-in-out; /* الحركة */
}

.custom-offcanvas.show {
  transform: translateX(0); /* لما تظهر: ترجع لمكانها */
}
.branches-card {
    background: linear-gradient(135deg, #6a5acd, #ce8e04); /* تدرج ألوان جذاب */
    color: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    max-width: 450px;
    margin: 20px auto;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    font-family: 'Arial', sans-serif;
}

.branches-card-title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffeb3b; /* لون العنوان */
}

.branches-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.branches-card-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.branch-icon {
    margin-right: 10px; /* مسافة بين الأيقونة والنص */
    font-size: 16px;
}

/* ========== Media Queries ========== */

/* الموبايل (أقل من 576px) */
@media (max-width: 575.98px) {
  .flex_row {
    flex-direction: column;
    text-align: center;
    height: auto;
    gap: 10px;
  }

  .button-container {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .button-container .btn {
    width: 90%;
    font-size: 16px;
  }
}

/* التابلت (576px إلى 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .button-container .btn {
    flex: 1 1 45%;
    min-width: 150px;
  }
}

/* الأجهزة المتوسطة (768px إلى 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .button-container .btn {
    flex: 1 1 30%;
    min-width: 160px;
  }
}

/* الشاشات الكبيرة (992px وأكبر) */
@media (min-width: 992px) {
  .button-container .btn {
    flex: unset;
    min-width: 180px;
  }
}
