
/* السلايدر - تعيين مساحة وتحديد العرض */
.swiper {
    position: relative;
    width: 100%;  /* عرض السلايدر 100% */
    overflow: hidden;  /* إخفاء العناصر الزائدة التي تتجاوز السلايدر */
}

/* السلايدر الذي يحتوي على المقالات */
.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;  /* إضافة تأثير التنقل بين المقالات */
}

/* العناصر داخل السلايدر - فقط 4 مقالات ستظهر */
.swiper-slide {
    display: inline-block;
    width: 25%;  /* كل مقال سيأخذ 25% من السلايدر، مما يعني أن 4 مقالات ستظهر */
    flex-shrink: 0;  /* تأكد أن المقالات لا تنكمش */
}

/* الأسهم - توضع خارج المحتوى */
#cpt-clients-1wu6LR .cpt-swiper-prev,
#cpt-clients-1wu6LR .cpt-swiper-next {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    position: absolute;
    top: 50%;  /* وضع الأسهم في المنتصف عموديًا */
    z-index: 10;
    cursor: pointer;
    transform: translateY(-50%);  /* تحسين المحاذاة عموديًا */
}

/* السهم الأيسر - وضعه خارج السلايدر */
#cpt-clients-1wu6LR .cpt-swiper-prev {
    left: -50px;  /* وضع السهم الأيسر خارج السلايدر */
}

/* السهم الأيمن - وضعه خارج السلايدر */
#cpt-clients-1wu6LR .cpt-swiper-next {
    right: -50px;  /* وضع السهم الأيمن خارج السلايدر */
}

/* ===== Custom Posttypes Styles (updated) ===== */

/* general grid */
.cpt-grid {
  display: grid;
  gap: 20px;
}

/* Works grid: desktop 4, tablet 2, mobile 2 */
.cpt-grid.works {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
  .cpt-grid.works { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cpt-grid.works { grid-template-columns: repeat(2, 1fr); }
}

/* Events grid (auto-fit) */
.cpt-grid.events {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* item card */
.cpt-item {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  padding: 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(13, 38, 59, 0.04);
}

/* No thumbnail placeholder */
.cpt-no-thumb {
  width: 100%;
  height: 140px;
  background: linear-gradient(90deg,#f2f2f2,#e9e9e9);
  border-radius: 6px;
}

/* ===== Clients slider styles ===== */
.myClientsSlider { padding: 10px 20px; }
.myClientsSlider .swiper-wrapper { align-items: center; }

/* client card background + shadow */
.client-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  padding: 14px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(11, 28, 50, 0.06);
}

/* client media */
.client-media { display:flex; align-items:center; justify-content:center; width:100%; height:80px; }
.client-logo { max-width: 120px; max-height: 80px; object-fit: contain; display:block; margin:0 auto; }

/* client name */
.client-name { font-size: 14px; color: #222; font-weight: 600; }

/* swiper arrows - smaller, subtle circle */
.myClientsSlider .swiper-button-next,
.myClientsSlider .swiper-button-prev {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: #111;
  top: 50%;
  transform: translateY(-50%);
}

/* make arrow icon smaller */
.myClientsSlider .swiper-button-next::after,
.myClientsSlider .swiper-button-prev::after {
  font-size: 14px;
}

/* ===== Works item styles ===== */
.work-thumb { width:100%; height:auto; border-radius:6px; display:block; }
.work-title { margin: 10px 0 6px; font-size:16px; }
.work-excerpt { font-size:14px; color:#555; margin-bottom:10px; min-height:42px; }
.work-actions { margin-top:8px; }

/* ===== Buttons ===== */
.cpt-btn {
  display:inline-block;
  padding:8px 14px;
  background:#0073aa;
  color:#fff;
  text-decoration:none;
  border-radius:6px;
  font-weight:600;
}
.cpt-btn:hover { background:#005177; }

.cpt-btn-outline {
  border:1px solid #0073aa;
  color:#0073aa;
  background:transparent;
  padding:7px 13px;
}
.cpt-btn-outline:hover {
  background:#0073aa;
  color:#fff;
}

/* ===== Events button ===== */
.cpt-gallery-btn {
  display:inline-block;
  margin:0 auto;
  padding:8px 14px;
  background:#0073aa;
  color:#fff;
  border-radius:6px;
  cursor:pointer;
  border:none;
  font-weight:600;
}
.cpt-gallery-btn:hover { background:#005177; }

/* minor responsive adjustments */
@media(max-width:600px){
  .client-card { min-height: 90px; padding:10px; }
  .client-logo { max-width: 100px; max-height: 60px; }
}

/* ==== EVENTS GRID BUTTONS STYLE ==== */
.cpt-item.event-item .event-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px; /* المسافة بين الزرين */
  flex-wrap: wrap;
  margin-top: 12px;
}

/* الأزرار */
.cpt-item.event-item .event-actions .cpt-btn,
.cpt-item.event-item .event-actions .cpt-gallery-btn {
  flex: 1 1 48%; /* نصف العرض تقريبا */
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  border-radius: 8px;
}

/* تأثير hover */
.cpt-item.event-item .event-actions .cpt-btn:hover,
.cpt-item.event-item .event-actions .cpt-gallery-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* في الجوالات تنزل الأزرار تحت بعض */
@media (max-width: 600px) {
  .cpt-item.event-item .event-actions .cpt-btn,
  .cpt-item.event-item .event-actions .cpt-gallery-btn {
    flex: 1 1 100%;
  }
}

/* ضبط محاذاة التاريخ والموقع */
.cpt-item.event-item .event-date,
.cpt-item.event-item .event-location {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

/* نحذف الأيقونات المضافة تلقائياً */
.cpt-item.event-item .event-date::before,
.cpt-item.event-item .event-location::before {
  content: none;
}

