@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  direction: rtl;
  font-family: "El Messiri", sans-serif;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  background-color: #f8fafc;
}

html[dir="ltr"],
html[dir="ltr"] body,
body.lang-en {
  direction: ltr;
}

/* ============================================
   AUTO DIRECTION & PUNCTUATION SUPPORT
   ============================================ */
[dir="auto"] {
  text-align: start;
}

/* ============================================
   HEADER STICKY CONTROL (LINKED TO DASHBOARD)
   ============================================ */
.ebhdr20-hdr.ebhdr20-sticky {
  position: sticky !important;
  top: 0 !important;
  z-index: var(--ebhdr20-hdr-z-index, 99999) !important;
}

.ebhdr20-hdr:not(.ebhdr20-sticky) {
  position: relative !important;
  top: auto !important;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.ebpg20-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ebpg20-banner img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ============================================
   TOP BAR BASE STYLES
   ============================================ */
.ebtb20-top-bar {
  background-color: #f8fafc;
  border-bottom: 1px solid rgba(0, 180, 216, 0.1);
  padding: 0.6rem 2rem;
  font-size: 0.8rem;
  width: 100%;
}

.ebtb20-top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ebtb20-social-icons {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.ebtb20-social-icon {
  color: #64748b;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.ebtb20-social-icon:hover {
  color: #00b4d8;
}

.ebtb20-contact-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.ebtb20-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-weight: 600;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.ebtb20-contact-link i {
  color: #00b4d8;
}

.ebtb20-contact-link:hover {
  color: #00b4d8;
}

@media (max-width: 768px) {
  .ebtb20-top-bar-container {
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }

  .ebtb20-social-icons {
    justify-content: center;
  }

  .ebtb20-contact-info {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
  }
}

@media (max-width: 350px) {
  .ebtb20-contact-link span {
    display: none;
  }
}

/* ============================================
   HEADER MORE DROPDOWN (المزيد) STYLES
   ============================================ */
.ebhdr20-nav-dropdown.active .ebhdr20-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}

@media (max-width: 1024px) {
  .ebhdr20-more-dropdown > .ebhdr20-dropdown-toggle {
    display: none !important;
  }
  .ebhdr20-more-dropdown > .ebhdr20-dropdown {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .ebhdr20-more-dropdown .ebhdr20-dropdown-item {
    width: 100%;
    list-style: none;
  }
  .ebhdr20-more-dropdown .ebhdr20-dropdown-item a {
    display: block;
    padding: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--ebhdr20-nav-link-color, #64748b) !important;
    transition: color 0.3s ease;
  }
  .ebhdr20-more-dropdown .ebhdr20-dropdown-item a:hover {
    background-color: transparent !important;
    color: var(--ebhdr20-nav-link-hover-color, #00b4d8) !important;
  }
}

/* ============================================
   GLOBAL SAAS DROPDOWN STYLING (PUBLIC SITE & DASHBOARD)
   ============================================ */
select,
select.form-control,
select.dashboard-select,
select.social-platform-select,
select.area-served-country,
select.icon-picker-select,
.form-group select,
.card select,
.repeater-card select,
.social-settings-card select,
.settings-section-body select,
.accordion select,
.component-form select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: left 14px center !important;
  background-size: 16px 16px !important;
  padding: 10px 16px 10px 42px !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

[dir="ltr"] select,
html[dir="ltr"] select,
body[dir="ltr"] select {
  background-position: right 14px center !important;
  padding-left: 16px !important;
  padding-right: 42px !important;
}

select:hover {
  border-color: #94a3b8 !important;
  background-color: #f8fafc !important;
}

select:focus {
  outline: none !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
  background-color: #ffffff !important;
}

select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-weight: 500 !important;
  padding: 10px !important;
  direction: rtl !important;
  text-align: right !important;
}

select option:disabled {
  color: #94a3b8 !important;
  font-style: italic !important;
}

/* ============================================
   BLOG CARD GLOBAL FIXES (RTL + LTR)
   - Prevents footer overflow with long category names
   - Applies to all ebblg1 themes (1-5)
   ============================================ */
.ebblg1__card-meta {
  min-width: 0 !important;
}

.ebblg1__card-date {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.ebblg1__card-cat {
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  min-width: 0 !important;
}

.ebblg1__card-footer {
  min-width: 0 !important;
}

.ebblg1__card-body {
  min-width: 0 !important;
}

.ebblg1__card-read {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}


