/*
Theme Name: WECENT Arabic Exact Clone
Theme URI: https://ar.gdwecent.com/
Author: WECENT
Description: Arabic WECENT theme reconstructed directly from the public English main-site Elementor structure and styles, with a dynamic single-post template.
Version: 3.5.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: wecent-arabic-clone
*/

/* Keep the source-site hero visible while the bundled video is loading or blocked. */
.elementor-11388 .elementor-element.elementor-element-6d959d6 {
	position: relative;
	overflow: hidden;
	background-color: #8f8f8f;
	background-image: url("assets/media/homepage-hero-poster.webp");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.elementor-11388 .elementor-element.elementor-element-6d959d6 > .elementor-background-video-container {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.elementor-11388 .elementor-element.elementor-element-6d959d6 .elementor-background-video-hosted {
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	object-fit: cover;
}

.elementor-11388 .elementor-element.elementor-element-6d959d6 > .e-con-inner,
.elementor-11388 .elementor-element.elementor-element-6d959d6 > .e-con-full {
	position: relative;
	z-index: 1;
}

/* Explicit product backgrounds: reliable even when an optimizer rewrites inline styles. */
.elementor-11388 .elementor-cta__bg {
	opacity: 1 !important;
	visibility: visible !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

.elementor-11388 .elementor-element.elementor-element-f89b779 .elementor-cta__bg {
	background-image: url("assets/media/Minimalist-Ultra-Portable.webp?ver=3.5.0") !important;
}

.elementor-11388 .elementor-element.elementor-element-ac75a9c .elementor-cta__bg {
	background-image: url("assets/media/01.-Little-Ice-Cube.webp?ver=3.5.0") !important;
}

.elementor-11388 .elementor-element.elementor-element-f5d9273 .elementor-cta__bg {
	background-image: url("assets/media/02.-charging-penguin.webp?ver=3.5.0") !important;
}

.elementor-11388 .elementor-element.elementor-element-6998139 .elementor-cta__bg {
	background-image: url("assets/media/03.-Foldable-3-in-1-Wireless-Charge.webp?ver=3.5.0") !important;
}

html { direction: rtl; }
body { direction: rtl; text-align: right; }

/* Keep the source site's exact design tokens; only adapt document direction. */
.elementor-11388,
.site-header,
.site-footer { direction: rtl; }

.main-navigation .menu { direction: rtl; }

.wecent-article-hero {
  min-height: 285px;
  display: grid;
  align-items: center;
  position: relative;
  color: #fff;
  background-color: #153c31;
  background-position: center;
  background-size: cover;
}
.wecent-article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 45, 36, .58);
}
.wecent-article-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1300px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 54px;
}
.wecent-article-hero h1 {
  max-width: 1100px;
  margin: 0 0 22px;
  color: #fff;
  font-family: "Poppins", "Roboto", Tahoma, sans-serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.18;
  font-weight: 700;
}
.wecent-article-meta { display: flex; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.wecent-article-wrap {
  width: min(1300px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 50px 80px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.wecent-share-title { color: #284f3a; margin: 8px 0 28px; }
.wecent-share-buttons { position: sticky; top: 110px; display: grid; gap: 10px; }
.wecent-share-buttons a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.wecent-share-buttons [data-share="facebook"] { background: #3b5998; }
.wecent-share-buttons [data-share="x"] { background: #1da1f2; }
.wecent-share-buttons [data-share="pinterest"] { background: #bd081c; }
.wecent-share-buttons [data-share="linkedin"] { background: #0077b5; }
.wecent-article-content { min-width: 0; font-size: 18px; line-height: 1.82; }
.wecent-article-content h2,
.wecent-article-content h3 { color: #284f3a; }
.wecent-article-content img { max-width: 100%; height: auto; }
.wecent-article-sidebar { border-inline-start: 4px solid #ff4b4b; padding-inline-start: 18px; }
.wecent-search { display: flex; gap: 8px; margin-bottom: 28px; }
.wecent-search input { width: 100%; min-width: 0; height: 56px; padding: 0 16px; border: 1px solid #d2d2d2; }
.wecent-search button { height: 56px; padding: 0 22px; border: 0; color: #fff; background: #214c36; font-weight: 700; }
.wecent-sidebar-title { color: #284f3a; font-size: 22px; }
.wecent-recent { margin: 0; padding: 0; list-style: none; }
.wecent-recent li { margin-bottom: 28px; }
.wecent-recent a { color: #284f3a; text-decoration: none; font-size: 17px; line-height: 1.35; }
.wecent-recent p { margin: 7px 0 0; color: #777; font-size: 14px; line-height: 1.5; }

@media (max-width: 980px) {
  .wecent-article-wrap { grid-template-columns: 48px minmax(0, 1fr); }
  .wecent-article-sidebar { grid-column: 2; border-inline-start: 0; padding-inline-start: 0; margin-top: 28px; }
}
@media (max-width: 680px) {
  .wecent-article-wrap { display: block; width: min(100% - 30px, 1300px); }
  .wecent-share-buttons { position: static; display: flex; margin-bottom: 25px; }
  .wecent-article-sidebar { margin-top: 42px; }
}
