.contact-page-wrapper {
  padding-top: 140px;
  padding-bottom: 70px;
  background-color: var(--light-bg, #f8f9fa);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.social-section {
  text-align: center;
  margin-bottom: 80px;
  margin-top: 120px;
}

.social-section h2 {
  font-size: 2.5rem;
  color: var(--dark-bg, #111);
  margin-bottom: 12px;
}

.social-section h2 span {
  color: var(--primary-green, #2e9f52);
}

.social-section p {
  font-size: 1.15rem;
  color: var(--text-muted, #6b7280);
  margin-bottom: 50px;
}

.social-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
  position: relative;
  z-index: 10;
}

.social-cards-container .social-card {
  margin-top: -8px;
}

/* ===== زر اللغة القديم داخل الصفحة: جميع الخيارات في سطر واحد ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.lang-switcher button {
  background: transparent;
  border: none;
  color: #000000;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.lang-switcher button.active {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.lang-switcher button:not(.active):hover {
  background: rgba(0, 0, 0, 0.08);
  color: #000000;
  opacity: 1;
}

.lang-switcher button:not(.active):focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.9);
  outline-offset: 2px;
}

/* إخفاء النسخة المخصصة للهاتف على سطح المكتب بشكل افتراضي */
.lang-switcher-mobile {
  display: none;
}

.cards-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 90;
}

.cards-overlay.active {
  opacity: 1;
  visibility: visible;
}

.social-card {
  width: 110px;
  height: 110px;
  border-radius: 55px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  padding: 10px 25px;
  overflow: hidden;
  position: relative;
  z-index: 100;
  border: 2px solid transparent;
  gap: 0px;
  text-decoration: none;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.4s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease,
    gap 0.4s ease;
}

.social-card:hover:not(.active) {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: transform 0.3s ease;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-info {
  opacity: 0;
  width: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.25s ease, width 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}

.card-info h4 {
  font-size: 16px;
  margin: 0 0 4px 0;
  color: #222;
}

.card-info p {
  font-size: 13px;
  color: #666;
  margin: 0 0 8px 0;
  direction: ltr;
}

.card-link {
  display: inline-block;
  padding: 6px 14px;
  background-color: currentColor;
  color: #ffffff !important;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  width: fit-content;
  transition: opacity 0.2s ease;
}

.card-link:hover {
  opacity: 0.85;
}

.social-card.whatsapp { color: #25D366; border-color: #25D366; }
.social-card.youtube { color: #FF0000; border-color: #FF0000; }
.social-card.tiktok { color: #000000; border-color: #000000; }
.social-card.google-maps { color: #4285F4; border-color: #4285F4; }
.social-card.facebook { color: #1877F2; border-color: #1877F2; }

.social-card.active {
  width: 350px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  gap: 15px;
  z-index: 1000;
  background-color: #ffffff;
}

.social-card.active .card-info {
  opacity: 1;
  width: 100%;
}

/* ===== بطاقة GBS: المقر الرئيسي للمجموعة ===== */

.gbs-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.gbs-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  border: 2px solid #4285F4;
  border-radius: 20px;
  padding: 20px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gbs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14);
}

.gbs-card .gbs-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gbs-card .gbs-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gbs-card .gbs-info {
  flex: 1;
  text-align: right;
}

.gbs-card .gbs-info h4 {
  font-size: 18px;
  color: #222;
  margin: 0 0 4px 0;
}

.gbs-card .gbs-info p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.gbs-visit-btn {
  display: inline-block;
  padding: 10px 22px;
  background-color: #4285F4;
  color: #ffffff !important;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gbs-visit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ===== صندوق موحّد لأرقام الهاتف والبريد الإلكتروني ===== */

.contact-info-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  border: 2px solid var(--primary-green, #2e9f52);
  border-radius: 20px;
  padding: 28px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-info-col {
  flex: 1;
  text-align: right;
}

.contact-info-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-bg, #111);
  margin: 0 0 14px 0;
}

.contact-info-heading i {
  color: var(--primary-green, #2e9f52);
  font-size: 15px;
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #444;
  font-size: 14px;
  direction: ltr;
  justify-content: flex-end;
  transition: color 0.2s ease;
}

.contact-info-list li a i {
  color: var(--primary-green, #2e9f52);
  font-size: 14px;
  min-width: 16px;
  text-align: center;
}

.contact-info-list li a:hover {
  color: var(--primary-green, #2e9f52);
}

.contact-info-divider {
  width: 100%;
  height: 1px;
  background: #e5e7eb;
  align-self: stretch;
}

/* ===== بطاقة تطبيق الحديدي: مستطيلة ثابتة أسفل الصفحة ===== */

.app-download-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 40px;
}

.app-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  border: 2px solid #0d47a1;
  border-radius: 20px;
  padding: 20px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14);
}

.app-download-card .app-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-download-card .app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-download-card .app-info {
  flex: 1;
  text-align: right;
}

.app-download-card .app-info h4 {
  font-size: 18px;
  color: #222;
  margin: 0 0 4px 0;
}

.app-download-card .app-info p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.app-download-btn {
  display: inline-block;
  padding: 10px 22px;
  background-color: #0d47a1;
  color: #ffffff !important;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-download-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.clients-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 40px;
}

.clients-container {
  width: 65%;
  max-width: 900px;
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  text-align: center;
}

.clients-title {
  font-size: 1.3rem;
  color: var(--dark-bg, #111);
  margin-bottom: 25px;
  font-weight: 700;
}

.clients-slider {
  overflow: hidden;
  width: 100%;
}

.clients-track {
  display: flex;
  width: 300%;
  animation: slide12Clients 15s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

.client-group {
  width: 33.333%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
}

.client-group img {
  max-height: 75px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

@keyframes slide12Clients {
  0%, 28% { transform: translateX(0%); }
  33%, 61% { transform: translateX(33.333%); }
  66%, 94% { transform: translateX(66.666%); }
  100% { transform: translateX(0%); }
}

/* =========================================================
   إصلاح أداة اللغة على الهاتف: أداة واحدة فقط، عند اليسار
   بجانب زر الثلاث خطوط مباشرة (وليست منتصف الشريط)
   ========================================================= */

@media (max-width: 992px) {
  /* إخفاء أداة اللغة القديمة الموجودة داخل القائمة المنسدلة نهائيًا على الهاتف */
  .header-actions .lang-switcher {
    display: none !important;
  }

  /* التأكد من ظهور النسخة المخصصة للهاتف */
  .lang-switcher-mobile {
    display: flex !important;
    margin-inline-start: auto;
    margin-inline-end: 8px;
    padding: 3px;
  }

  .lang-switcher-mobile button {
    padding: 6px 9px;
    font-size: 0.72rem;
  }
}

/* =========================================================
   الاستجابة على الهواتف
   ========================================================= */

@media (max-width: 768px) {
  .contact-page-wrapper {
    padding-top: 110px;
    padding-bottom: 40px;
  }

  .social-section {
    margin-top: 0;
    margin-bottom: 50px;
  }

  .social-section h2 {
    font-size: 1.9rem;
  }

  .social-section p {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .social-cards-container {
    gap: 16px;
    margin-top: 25px;
  }

  .contact-info-section,
  .gbs-section,
  .app-download-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .clients-container {
    width: 92%;
    padding: 20px 15px;
  }

  .client-group img {
    max-height: 50px;
    max-width: 70px;
  }

  .social-card {
    width: 90px;
    height: 90px;
    border-radius: 45px;
    padding: 5px;
  }

  .card-icon {
    font-size: 24px;
  }

  .social-card.active {
    width: 290px;
    padding: 10px 15px;
  }

  .card-info h4 {
    font-size: 14px;
  }

  .card-info p {
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .gbs-card,
  .app-download-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .gbs-card .gbs-info,
  .app-download-card .app-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-page-wrapper {
    padding-top: 95px;
  }

  .social-section {
    margin-bottom: 40px;
  }

  .social-section h2 {
    font-size: 1.6rem;
  }

  .social-cards-container {
    gap: 14px;
  }

  .social-card {
    width: 78px;
    height: 78px;
    border-radius: 39px;
  }

  .card-icon {
    font-size: 22px;
    width: 50px;
    height: 50px;
    min-width: 50px;
  }

  .gbs-card,
  .app-download-card {
    padding: 16px;
    gap: 14px;
    border-radius: 16px;
  }

  .gbs-icon,
  .app-download-card .app-icon {
    margin: 0 auto;
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .gbs-card .gbs-info h4,
  .app-download-card .app-info h4 {
    font-size: 15px;
  }

  .gbs-card .gbs-info p,
  .app-download-card .app-info p {
    font-size: 12.5px;
    line-height: 1.5;
  }

  .gbs-visit-btn,
  .app-download-btn {
    padding: 8px 16px;
    font-size: 12.5px;
  }

  .contact-info-card {
    padding: 18px;
    border-radius: 16px;
  }

  .contact-info-heading {
    font-size: 14.5px;
  }

  .contact-info-list li a,
  .contact-info-list li a i {
    font-size: 13px;
  }

  .lang-switcher-mobile button {
    padding: 5px 7px;
    font-size: 0.68rem;
  }

  .footer-content {
    padding-bottom: 16px;
    gap: 10px;
  }

  .footer-logo img {
    max-height: 90px;
  }

  .footer-copyright p {
    font-size: 0.82rem;
    text-align: center;
    padding: 0 10px;
  }
}

@media (max-width: 360px) {
  .social-cards-container {
    gap: 12px;
  }

  .social-card {
    width: 68px;
    height: 68px;
    border-radius: 34px;
  }

  .card-icon {
    font-size: 19px;
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .contact-info-card,
  .gbs-card,
  .app-download-card {
    padding: 14px;
  }

  .lang-switcher-mobile {
    gap: 2px;
  }

  .lang-switcher-mobile button {
    padding: 4px 6px;
    font-size: 0.62rem;
  }
}
/* تحسين صفحة التواصل على الهاتف */
@media (max-width: 768px) {
  .contact-page-wrapper { padding-top: 95px; padding-bottom: 40px; }
  .social-section { margin-top: 35px; margin-bottom: 45px; }
  .social-section h2 { font-size: clamp(1.7rem, 8vw, 2.2rem); line-height: 1.3; }
  .social-section p { font-size: .92rem; line-height: 1.7; margin-bottom: 28px; }
  .social-cards-container { gap: 14px; margin-top: 24px; }
  .social-card { width: 78px; height: 78px; padding: 8px 18px; border-radius: 39px; }
  .social-card.active { width: min(100%, 350px); height: 92px; border-radius: 18px; }
  .card-icon { width: 48px; height: 48px; min-width: 48px; font-size: 24px; }
  .card-info h4 { font-size: 14px; }
  .card-info p { font-size: 11px; }

  .gbs-section, .contact-info-section, .app-download-section { padding-inline: 0; }
  .gbs-card, .app-download-card, .contact-info-card { width: 100%; max-width: none; padding: 18px 16px; border-radius: 16px; gap: 13px; }
  .gbs-card, .app-download-card { flex-direction: column; text-align: center; }
  .gbs-card .gbs-info, .app-download-card .app-info { text-align: center; width: 100%; }
  .gbs-card .gbs-info h4, .app-download-card .app-info h4 { font-size: 16px; }
  .gbs-card .gbs-info p, .app-download-card .app-info p { font-size: 12.5px; line-height: 1.75; }
  .gbs-visit-btn, .app-download-btn { width: 100%; text-align: center; padding: 10px 14px; }
  .contact-info-card { gap: 18px; }
  .contact-info-col { width: 100%; text-align: center; }
  .contact-info-heading { justify-content: center; }
  .contact-info-list li a { justify-content: center; font-size: 13px; }
  .clients-container { width: 100%; padding: 22px 14px; }
  .client-group { gap: 12px; }
  .client-group img { max-height: 55px; max-width: 90px; }
}

/* ===== Mobile social icon centering fix ===== */
@media (max-width: 768px) {
  .social-cards-container .social-card {
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .social-cards-container .social-card .card-icon {
    margin: 0;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .social-cards-container .social-card.active {
    justify-content: flex-start;
    padding: 8px 14px;
  }
}
