/*
Theme Name:   Astra Child
Template:     astra
*/

/* write custom css after this line */

@font-face {
    font-family: 'Droid Arabic Kufi';
    src: url('fonts/DroidArabicKufi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Droid Arabic Kufi';
    src: url('fonts/DroidArabicKufi-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body, button, input, textarea {
	font-family: "Droid Arabic Kufi", sans-serif !important;
}

/* scrollbar */
::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	box-shadow: inset 0 0 5px grey;
	border-radius: 10px;
}

::-webkit-scrollbar-thumb {
	background: #28B0EC;
	border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
	background: #28B0EC;
}

a:focus,input:focus,textarea:focus,button:focus{outline:none}

.wpcf7 input.wpcf7-form-control:not([type=submit]), .wpcf7 textarea.wpcf7-form-control {
    padding: 24px !important;
    border: 1px solid #D7DCE1;
    font-size: 13px;
    border-radius: 5px;
    background-color: #FFFFFF;
}

select.wpcf7-form-control.wpcf7-select.form-select {
	border: none;
	font-size: 13px;
	border-radius: 0;
	height: 48px !important;
}

.wpcf7 form p {
	margin-bottom: 13px;
}

.wpcf7 form input[type="submit"] {
    background-color: #28B0EC !important;
	border: none !important;
	color: #FFFFFF;
    padding: 14px 60px;
	border-radius: 5px;
	font-size: 14px !important;
}

.wpcf7 form input[type="submit"]:hover {
	color: #FFFFFF;
	background-color: #2E3496 !important;
}

span.wpcf7-spinner {
	display: none;
}

.wpcf7 input[type="url"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"] {
	direction: ltr;
}

.wpcf7 ::placeholder {
}

.wpcf7 textarea {
	height: 160px;
}

.rtl .wpcf7 input[type="url"], .rtl .wpcf7 input[type="email"], .rtl .wpcf7 input[type="tel"] {
	direction: rtl;
}

article .entry-meta {
	display: none;
}

h1.page-title.ast-archive-title {
	text-align: center;
}

.ast-site-title-wrap {
	display: none;
}

.rtl .hfe-search-button-wrapper .hfe-search-icon-toggle .hfe-search-form__input {
	right: auto;
	left: 0;
	box-shadow: none !important;
}

.rtl .hfe-search-button-wrapper.hfe-input-focus .hfe-search-icon-toggle .hfe-search-form__input {
	right: auto;
	left: 0;
}

.ast-related-post-featured-section.post-has-thumb img {
	height: 80px;
	width: auto;
}

span.ast-blog-single-element {
	display: none !important;
}

.ast-plain-container.ast-no-sidebar #primary {
	margin-top: 40px !important;
	margin-bottom: 40px !important;
}

/* الزر المنزلق */
.elementor-button {
  position: relative;
  display: inline-block;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.3s ease-in-out;
}

.elementor-button:hover {

}

.elementor-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: left 0.3s ease-in-out;
}

.elementor-button:hover::before {
  left: 0;
}

.hfe-pointer__underline .menu-item.parent a.hfe-menu-item:after, .hfe-pointer__overline .menu-item.parent a.hfe-menu-item:before, .hfe-pointer__overline .menu-item.parent a.hfe-menu-item:after {
    height: 2px !important;
    width: 20% !important;
    right: 15% !important;
}

header.entry-header .entry-title {
    display: none;
}

@media (max-width: 40em) {

}


/* سلايدر الخدمات بالرئيسية */
/* الجذر: يمكنك تغيير اللون والارتفاع الافتراضيين عبر المتغيرات */
.tls-services-slider{
  --tls-accent: #22A8DB;          /* يمكن تجاوزه من الـstyle inline في الـPHP */
  --tls-image-height: 380px;       /* سَيُستبدل بالقيمة القادمة من الـPHP */
}

/* تخطيط: صورة يسار + محتوى يمين */
.tls-services-slider .tls-slide-content{
  display:flex; align-items:center; gap:54px;
}
.tls-services-slider .tls-slide-image{flex:1 1 48%;}
.tls-services-slider .tls-slide-text{
  flex:1 1 52%;
  /*text-align:right;*/
  max-width:640px;
  margin-inline-start:auto;
  min-height:380px;                 /* fallback */
  min-height:var(--tls-image-height);
  background-color:#FFF;
  padding:5%;
  border-radius:15px;
}

/* الصورة بارتفاع موحّد */
.tls-services-slider .tls-slide-image img{
  width:100%;
  height:380px;                     /* fallback */
  height:var(--tls-image-height);
  object-fit:cover;
  border-radius:14px;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
  display:block;
}

/* "الخدمات" + الخط */
.tls-services-slider .tls-label{
  display:inline-block;
  color:var(--tls-accent);
  font-weight:400;
  font-size:22px;
  margin:0 0 8px;
}
.tls-services-slider .tls-underline{
  width:35px; height:1px; background:var(--tls-accent);
  border-radius:3px; margin: auto 24px 0 0;
}

.rtl .tls-services-slider .tls-underline {
    margin:0 0 24px auto;
}

/* العنوان كرابط + الوصف 20 كلمة */
.tls-services-slider .tls-title{
  margin:0 0 18px;
  font-weight:400;
  font-size:40px;
  line-height:1.25;
  color:#2b2f33;
}
.tls-services-slider .tls-title-link{
  color:inherit; text-decoration:none; font-weight:400; font-size:40px;
}
.tls-services-slider .tls-title-link:hover{ opacity:.9; }

.tls-services-slider .tls-excerpt{
  font-size:16px; line-height:1.9; color:#7b8591; margin:0 0 26px;
}

/* المصغّرات */
.tls-services-slider .tls-thumbs{ margin-top:32px; overflow:hidden; }
.tls-services-slider .tls-thumbs .swiper-slide{
  opacity:.55; cursor:pointer; transition:opacity .2s;
}
.tls-services-slider .tls-thumbs .swiper-slide-thumb-active{ opacity:1; }
.tls-services-slider .tls-thumbs img{
  width:100%; height:150px; object-fit:cover;
  border-radius:10px; box-shadow:0 4px 10px rgba(0,0,0,.05);
}

/* استجابة */
@media (max-width:992px){
  .tls-services-slider .tls-title{ font-size:30px; }
  .tls-services-slider .tls-title-link{ font-size:30px; }
  .tls-services-slider .tls-excerpt{ font-size:14px; }
}
@media (max-width:767px){
  .tls-services-slider .tls-slide-content{ flex-direction:column; gap:22px; }
  .tls-services-slider .tls-slide-image img{
    height:220px;                   /* شاشة صغيرة */
  }
  .tls-services-slider .tls-slide-text{
    min-height:220px;
  }
  .tls-services-slider .tls-title{ font-size:22px; }
  .tls-services-slider .tls-title-link{ font-size:22px; }
  .tls-services-slider .tls-excerpt{ font-size:12px; }
  .tls-services-slider .tls-thumbs img{ height:100px; }
}


/* ===== TLS Partners Slider ===== */
.tls-partners-wrap{
  --tls-accent:#22A8DB;
}

/* السلايدر نفسه */
.tls-partners-wrap .tls-partners-swiper{
  position: relative;
  overflow: hidden; /* يمنع ظهور جزء من السلايد التالي */
  padding: 0;       /* لا padding داخلي */
}

/* حاوية الشرائح */
.tls-partners-wrap .swiper-wrapper{
  margin: 0 !important;
  will-change: transform;
}

/* كل شريحة */
.tls-partners-wrap .swiper-slide{
  width: 100% !important;
  display: flex;
  justify-content: center;
}

/* محتوى الشريحة */
.tls-partners-wrap .tls-partner-slide{
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* العنوان */
.tls-partners-wrap .tls-partner-title{
  margin: 0;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.3;
}

/* المقتطف */
.tls-partners-wrap .tls-partner-excerpt{
  margin: 0 0 6px;
  color: #6b6b6b;
  font-size: clamp(14px, 1.5vw, 18px);
}

/* الصورة */
.tls-partners-wrap .tls-partner-image{
  width: 100%;
  display: flex;
  justify-content: center;
}
.tls-partners-wrap .tls-partner-image img{
  max-width: min(100%, 820px);
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ===== الأسهم (حل مشكلة البيضاوي) ===== */
.tls-partners-wrap .swiper-button-prev,
.tls-partners-wrap .swiper-button-next{
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 2px solid var(--tls-accent, #22A8DB);
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  line-height: 0;
  font-size: 0;
  outline: none;
  box-shadow: none;

  width: 44px;
  height: 44px;
  aspect-ratio: 1/1;      /* يضمن أن تكون دائرية */
  border-radius: 50%;

  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: .2s ease;
  z-index: 10;
  pointer-events: auto;
}

/* مواقع الأسهم */
.tls-partners-wrap .swiper-button-prev{ inset-inline-start: 12px; }
.tls-partners-wrap .swiper-button-next{ inset-inline-end: 12px; }

/* شكل السهم الصغير داخل الدائرة */
.tls-partners-wrap .swiper-button-prev::after,
.tls-partners-wrap .swiper-button-next::after{
  content: '';
  display: block;
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* اتجاه السهم RTL */
html[dir="rtl"] .tls-partners-wrap .swiper-button-prev::after{
  border-left: 6px solid var(--tls-accent, #22A8DB);
}
html[dir="rtl"] .tls-partners-wrap .swiper-button-next::after{
  border-right: 6px solid var(--tls-accent, #22A8DB);
}
/* اتجاه السهم LTR */
html:not([dir="rtl"]) .tls-partners-wrap .swiper-button-prev::after{
  border-right: 6px solid var(--tls-accent, #22A8DB);
}
html:not([dir="rtl"]) .tls-partners-wrap .swiper-button-next::after{
  border-left: 6px solid var(--tls-accent, #22A8DB);
}

/* Hover */
.tls-partners-wrap .swiper-button-prev:hover,
.tls-partners-wrap .swiper-button-next:hover{
  background: var(--tls-accent, #22A8DB);
}
.tls-partners-wrap .swiper-button-prev:hover::after,
.tls-partners-wrap .swiper-button-next:hover::after{
  border-left-color: #fff;
  border-right-color: #fff;
}

/* ===== تجاوب ===== */
@media (max-width: 991px){
  .tls-partners-wrap .tls-partner-image img{ max-height: 320px; }
}
@media (max-width: 575px){
  .tls-partners-wrap .swiper-button-prev,
  .tls-partners-wrap .swiper-button-next{
    width: 38px;
    height: 38px;
  }
  .tls-partners-wrap .tls-partner-image img{ max-height: 260px; }
}
/* ===== /TLS Partners Slider ===== */