/* ==========================================
   إعدادات أساسية وتعامد العناصر
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

body {
  background-color: #f4f7f6;
  overflow-x: hidden;
}

.independent-brands-hub {
  padding: 40px 15px;
  background: #f1f5f9;
  font-family: "Cairo", sans-serif;
  color: #1e293b;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.independent-brands-hub .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.hub-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 35px auto;
  padding: 0 10px;
}

.hub-badge {
  display: inline-block;
  background: #0284c7;
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hub-heading {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.hub-subtitle {
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
  font-weight: 600;
}

/* صندوق الماركة المفرد المستقل */
.single-brand-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px 20px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  width: 100%;
  box-sizing: border-box;
}

.brand-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.brand-tag {
  background: #0f172a;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.brand-title-bar h2 {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

.brand-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 600;
}

/* صندوق أبرز المنتجات */
.brand-highlight-box {
  background: #f8fafc;
  border-right: 4px solid #0284c7;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.brand-highlight-box h4 {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.brand-highlight-box ul {
  margin: 0;
  padding-right: 18px;
}

.brand-highlight-box li {
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 6px;
  line-height: 1.6;
  font-weight: 600;
}

/* ==========================================
   الجداول المتجاوبة مع شريط اسكرول (Scroll)
   ========================================== */
/* ==========================================
   الجداول المتجاوبة مع شريط اسكرول (Scroll)
   ========================================== */
.brand-trouble-wrap,
.brand-table-wrapper {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto; /* تم التعديل هنا لتسمح بالسكرول للخارج */
}

/* حاوية الجدول اللي بتخليه يعمل سكرول أفقي على الموبايل */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* تنسيق الجداول نفسها */
.brand-trouble-table,
.isolated-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  text-align: right;
  background-color: #fff;
}

.brand-trouble-table th,
.brand-trouble-table td,
.isolated-table th,
.isolated-table td {
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  font-size: 13.5px;
  white-space: nowrap;
}

.brand-trouble-table th,
.isolated-table th {
  background-color: #1e293b;
  color: #ffffff;
  font-weight: 800;
}

/* الرابط الداخلي */
.brand-internal-link {
  text-align: left;
  margin-top: 15px;
}

.brand-internal-link a {
  display: inline-block;
  color: #0284c7;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  background: #e0f2fe;
  padding: 8px 14px;
  border-radius: 8px;
  transition: 0.3s;
}

/* زر النهاية والـ CTA الرئيسي */
.page-bottom-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  text-align: center;
  padding: 30px 15px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  margin-top: 30px;
  width: 100%;
  box-sizing: border-box;
}

.page-bottom-cta h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}

.page-bottom-cta p {
  font-size: 13.5px;
  color: #cbd5e1;
  margin-bottom: 20px;
  font-weight: 600;
}

.cta-buttons-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.main-action-call,
.main-action-whatsapp {
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.3s;
  width: 100%;
  max-width: 260px;
  box-sizing: border-box;
}

.main-action-call {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.main-action-whatsapp {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

/* ==========================================
   السيكشنات العامة وشبكات العرض (Grids)
   ========================================== */
.brand-isolated-section,
.brand-full-section,
.lg-section-box,
.toshiba-section-box,
.section-card {
  padding: 20px 15px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  width: 100%;
  box-sizing: border-box;
}

.grid-2-cols,
.grid-3-cols,
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
}

.card-item,
.privacy-item,
.privacy-disclaimer-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

.badge-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-item {
  background: #f1f3f5;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: #495057;
}

/* هوامش مساعدة سريعة */
.mt-15 {
  margin-top: 15px;
}
.mt-20 {
  margin-top: 20px;
}
.mt-30 {
  margin-top: 30px;
}

/* ==========================================
   الفوتر (Footer)
   ========================================== */
.main-footer {
  background: linear-gradient(135deg, #090d16 0%, #0f172a 100%);
  color: #ffffff;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 4px solid #0284c7;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px 30px 15px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.footer-logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #0f172a;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.footer-title-group h3 {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 700;
  margin: 0 0 2px 0;
}

.footer-title-group span {
  font-size: 0.8rem;
  color: #38bdf8;
  font-weight: 600;
}

.footer-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.footer-disclaimer-note small {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.footer-col h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 5px;
  position: relative;
  padding-bottom: 6px;
  border-bottom: 2px solid #0284c7;
  width: fit-content;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.footer-links-list li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-contacts-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 5px;
}

.footer-contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  box-sizing: border-box;
}

.hotline-btn {
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(2, 132, 199, 0.4);
}

.phone-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.whatsapp-btn {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
}

.footer-contact-btn .f-icon {
  font-size: 1.1rem;
  color: #38bdf8;
}
.whatsapp-btn .f-icon {
  color: #25d366;
}

.footer-contact-btn .f-text small {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
}

.footer-contact-btn .f-text strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
}

.footer-bottom-bar {
  background-color: #05080e;
  padding: 15px 10px;
  text-align: center;
}

.footer-bottom-content p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

/* ==========================================
   Media Queries للشاشات المختلفة
   ========================================== */
@media (min-width: 768px) {
  .grid-2-cols,
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-container {
    grid-template-columns: 1.2fr 1.3fr 1fr;
    padding: 0 20px 40px 20px;
  }
}

@media (max-width: 768px) {
  .independent-brands-hub {
    padding: 15px 8px;
  }

  .single-brand-box,
  .section-card {
    padding: 15px 12px !important;
  }

  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hub-heading {
    font-size: 22px;
  }
}
.regions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px 10px;
}
/* تصميم الصورة الاحترافي */
.custom-img {
  width: 100vw; /* تم التعديل للتجاوب السريع */
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px; /* حواف دائرية أنيقة */
  border: 2px solid #b58e3e; /* إطار بنفس لون الهوية (الذهبي الفاخر) */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* ظل خفيف لإبراز الصورة وتعميق التصميم */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* باقي التنسيقات زي ما هي تماماً */
.image-container {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  padding: 10px;
  box-sizing: border-box;
}

.custom-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(181, 142, 62, 0.3);
}
