/* ================= GENERAL MOBILE FIX ================= */
* {
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
}

/* ================= SIGN / VIDEO ================= */
.Signsec {
  position: relative;
  min-height: 90vh;
  padding: 0 !important;
}

.video-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 100%;
  transform: translate(-50%, -50%);
}

.Scontent {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
}

/* ================= SIGN FORM ================= */
.SignCon {
  background-image: url('../../inc/assets/img/bbg.jpg');
}

.SignConin {
  background-color: rgba(1, 1, 1, 0.8);
  min-height: 80vh;
}

.SignConin h1,
.SignConin p {
  color: #fff;
}

.SignForm {
  width: 100%;
  margin: auto;
}

/* ================= PORTFOLIO ================= */
.portfolio {
  min-height: auto;
}

.portfolio .portfolio-content img {
  height: 220px;
  object-fit: cover;
}

/* ================= TESTIMONIAL ================= */


.testimonials .testimonial-item .testimonial-img {
  height: 80px;
  width: 80px;
  object-fit: contain;
}

/* ================= SLIDER ================= */
.coslide {
  flex-wrap: wrap !important;
  align-items: stretch;
}

.coslide > div {
  width: 100% !important;
}

.coslide .testimonial-item {
  height: auto !important;
}

/* ================= FILTERS ================= */
.contactfilter a {
  margin: 2px;
  background-color: #2C3340 !important;
}

/* ================= OFFERS ================= */
.offersf {
  margin: 20px auto;
}

.offersf button {
  background-color: #A6866A !important;
}

.offersf ul {
  max-height: 240px;
  overflow-y: auto;
  background-color: #A6866A !important;
}

.offersf ul li {
  box-shadow: 1px 1px 1px black;
  padding: 6px;
  cursor: pointer;
  color: white;
}

.offersf ul li:hover {
  background-color: #2C3340;
}

/* ================= LANGUAGE ================= */
.langul button {
  padding: 2px 6px;
  margin: 2px;
  font-size: 12px;
}

.langul .dropdown-menu li a:hover {
  background-color: #A6866A;
  color: #fff;
}

/* ================= MOBILE HEADER – FINAL CONSOLIDATED FIX ================= */
@media (max-width: 768px) {

  /* ===== BODY ===== */
  body {
    padding-top: 72px; /* ثابت */
  }

  /* ===== HEADER ===== */
  #header {
    background: #fff;
    padding: 4px 0 !important;
    height: auto;
  }

  /* ===== TOPBAR ===== */
  .topbar {
    padding: 4px 0;
    font-size: 12px;
  }

  .topbar .container {
    justify-content: center !important;
    gap: 6px;
  }

  .topbar .contact-info {
    display: none;
  }

  .topbar .social-links {
    justify-content: center;
    gap: 8px;
    font-size: 13px;
  }

  /* ===== BRANDING ===== */
  .branding {
    padding: 6px 0;
    margin: 0;
  }

  .branding .container {
    flex-wrap: nowrap;
  }

  /* ===== LOGO ===== */
  .logo {
    max-width: 72%;
    overflow: hidden;
  }

  .logo .sitename {
    font-size: 15px;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    visibility: visible; /* ❗ إلغاء الإخفاء */
    position: static;
  }

  /* ❌ إلغاء hack الاسم */
  .logo .sitename::after {
    content: none;
  }

  .logo span {
    display: none;
  }

  /* ===== MOBILE MENU BUTTON ===== */
  .mobile-nav-toggle {
    font-size: 28px;
    line-height: 1;
  }

  /* ===== NAV MENU ===== */
  #navmenu ul {
    padding-top: 12px;
  }

  /* ===== MAIN ===== */
  .main {
    margin-top: 0;
  }
}

/* ================= CONTRACTED CARDS ================= */

#contracted .testimonial-item {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#contracted .testimonial-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

/* LOGO */
#contracted .testimonial-img {
  max-height: 90px;
  object-fit: contain;
  margin: 0 auto 10px;
}

/* NAME */
#contracted h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1f2937;
}

/* DISCOUNT */
#contracted h4 {
  font-size: 14px;
  font-weight: 600;
  color: #A6866A;
  margin-bottom: 10px;
}

/* ADDRESS */
#contracted p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* ICONS */
#contracted i {
  color: #A6866A;
}

/* LINKS */
#contracted a {
  color: #1f2937;
  font-weight: 600;
  text-decoration: none;
}

#contracted a:hover {
  color: #A6866A;
}

/* ================= FILTER BUTTONS ================= */

.contactfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.contactfilter .btn {
  border-radius: 30px;
  font-size: 13px;
  padding: 6px 14px;
  background: #2C3340;
  border: none;
}

.contactfilter .btn:hover {
  background: #A6866A;
}

.contactfilter .badge {
  background: #fff;
  color: #2C3340;
  margin-left: 4px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  #contracted h3 {
    font-size: 16px;
  }

  #contracted h4 {
    font-size: 13px;
  }

  #contracted p {
    font-size: 13px;
  }

  #contracted .testimonial-item {
    padding: 18px;
  }
}
#contracted .testimonial-item {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 24px;
  height: 100%;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

#contracted .testimonial-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(0,0,0,0.14);
}
#contracted .testimonial-img {
  max-height: 90px;
  max-width: 160px;
  object-fit: contain;
  margin: 0 auto 16px;
}
#contracted .testimonial-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}
#contracted .testimonial-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: #A6866A;
  margin-bottom: 14px;
}
#contracted .testimonial-item p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 10px;
}

#contracted .testimonial-item .quote-icon-left,
#contracted .testimonial-item .quote-icon-right {
  color: #A6866A;
  opacity: 0.6;
}
#contracted .testimonial-item a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
}

#contracted .testimonial-item a:hover {
  color: #A6866A;
}

#contracted .testimonial-item i {
  color: #A6866A;
}
@media (max-width: 768px) {

  #contracted .testimonial-item {
    padding: 22px 18px;
  }

  #contracted .testimonial-item h3 {
    font-size: 16px;
  }

  #contracted .testimonial-item h4 {
    font-size: 13px;
  }

  #contracted .testimonial-item p,
  #contracted .testimonial-item a {
    font-size: 13px;
  }
}
/* === CARD BASE === */




/* === LOGO === */




/* === BODY === */
.card-body {
  flex-grow: 1;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  min-height: 44px; /* ثبات الاسم */
}

.card-discount {
  font-size: 14px;
  color: #0d6efd;
  font-weight: 600;
  margin-bottom: 10px;
}

/* عنوان محدود */
.card-address {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  max-height: 3.2em;
  overflow: hidden;
}

/* === CONTACT === */
.card-contact {
  border-top: 1px dashed #eee;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-contact a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.card-contact a i {
  margin-right: 6px;
  color: #0d6efd;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .card-title {
    font-size: 16px;
  }
}

/* =======================
   CONTRACTED CARDS
======================= */




/* LOGO AREA (محجوز دايمًا) */




/* PLACEHOLDER */
.logo-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 28px;
}

/* BODY */
.card-body {
  flex-grow: 1;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  min-height: 46px; /* تثبيت */
}

.card-discount {
  font-size: 14px;
  color: #0d6efd;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-address {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  max-height: 3.2em;
  overflow: hidden;
}

/* CONTACT */
.card-contact {
  border-top: 1px dashed #eaeaea;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-contact a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.card-contact i {
  margin-right: 6px;
  color: #0d6efd;
}

/* MOBILE */
@media (max-width: 768px) {
  .card-title {
    font-size: 16px;
  }
}
/* ======================
   LOGO AREA (FIXED)
====================== */

.card-logo {
  height: 110px;               /* حجز فعلي */
  width: 100%;
  display: flex;
  align-items: center;         /* توسيط رأسي */
  justify-content: center;     /* توسيط أفقي */
  margin-bottom: 14px;
  flex-shrink: 0;              /* يمنع الانكماش */
}

.card-logo img {
  max-height: 70px;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* Placeholder */
.logo-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #adb5bd;
}


.card-body {
  flex-grow: 1;
}
/* ================= FILTER TABS (CLEAN & PROFESSIONAL) ================= */

.contactfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 18px;
  border-radius: 999px;

  background: #1f6fff;           /* أزرق هادي */
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;

  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* الرقم */
.filter-tab .badge {
  background: rgba(255,255,255,0.9);
  color: #1f6fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
}

/* Hover */
.filter-tab:hover {
  background: #174fd8;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Active tab */
.filter-tab.active {
  background: #0d3fbf;
  box-shadow: 0 0 0 2px #fff, 0 8px 22px rgba(13,63,191,0.4);
}

/* Mobile */
@media (max-width: 768px) {
  .filter-tab {
    font-size: 12px;
    padding: 7px 14px;
  }
}
/* ================= THANK YOU / SIGN PAGE ================= */

.thanksec {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Logo Wrapper */
.thank-logo-wrapper {
  max-width: 420px;      /* حد أقصى محترم */
  width: 90%;
  margin: 40px auto 30px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
}



/* Text */
.thanksec p {
  max-width: 600px;
  margin: 0 auto 20px;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

/* Button */
.thanksec .btn {
  padding: 10px 26px;
  font-size: 15px;
  border-radius: 30px;
}

/* Mobile */
@media (max-width: 768px) {
  .thank-logo-wrapper {
    max-width: 300px;
    padding: 16px;
  }

  .thanksec p {
    font-size: 14px;
  }
}


/* ===== Welcome Logo Section ===== */
.welcome-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

/* الصورة نفسها */
.welcome-logo img {
  width: auto;
  max-width: 220px;   /* تحكم أساسي */
  height: auto;
}

/* موبايل */
@media (max-width: 768px) {
  .welcome-logo img {
    max-width: 140px;
  }
}

/* شاشات كبيرة */
@media (min-width: 1400px) {
  .welcome-logo img {
    max-width: 260px;
  }
}


/* ===== SIGN / WELCOME LOGO ===== */
.welcome-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.welcome-logo img {
  width: auto;
  height: auto;
  max-width: 180px;     /* الحجم الطبيعي */
}

/* موبايل */
@media (max-width: 768px) {
  .welcome-logo img {
    max-width: 120px;
  }
}
.welcome-logo-img {
  display: block;
  margin: 0 auto;
  max-width: 180px;
  height: auto;
}

@media (max-width: 768px) {
  .welcome-logo-img {
    max-width: 120px;
  }
}
