/*
Theme Name: قالب الشاعر للأعمال
Theme URI: https://www.facebook.com/mr.shreif.shama/
Author: الشاعر شريف شمه
Description: قالب ووردبريس احترافي لشركات التصميم والبرمجة مع تحكم كامل من لوحة الإدارة وواجهة عصرية.
Version: 1.0.0
Text Domain: elsha3r-company
*/

:root {
  --main-purple: #7f1fff;
  --main-fuchsia: #a100a7;
  --main-dark: #2d0036;
  --main-accent: #e10098;
  --main-bg: #f9f6fb;
  --main-text: #fff;
  --main-link: #e10098;
  --main-link-hover: #ff3bb5;
  --main-green: #25d366;
  --main-blue: #0077ff;
  --main-gradient: linear-gradient(135deg, var(--main-purple) 0%, var(--main-fuchsia) 100%);
  --header-gradient: linear-gradient(135deg, rgba(127, 31, 255, 0.9) 0%, rgba(161, 0, 167, 0.9) 100%);
  --radius: 18px;
  --transition: all 0.3s ease;
}

/* ========================
 HEADER MODERN DESIGN
 ======================== */

/* ========================
 HERO FRAME STYLES
 ======================== */
.hero-section {
    padding: 90px 0 40px 0;
    text-align: center;
    background: linear-gradient(120deg, #f3e8ff 0%, #e9d5ff 60%, #efe1ff 100%);
    position: relative;
    min-height: 360px;
    overflow: hidden;
}
.hero-section::before {
  display: none;
}

.hero-title, .hero-desc {
  transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
  will-change: transform, opacity;
}
.hero-title {
  font-size: 2.7em;
  font-weight: 900;
  background: var(--main-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 18px;
  letter-spacing: 0.7px;
  direction: rtl;
  text-align: center;
  text-shadow: 0 4px 24px rgba(127, 31, 255, 0.13), 0 1.5px 6px rgba(225,0,152,0.09);
}
.hero-desc {
  font-size: 1.2em;
  color: #2d0036;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 600;
  direction: rtl;
  text-align: center;
  line-height: 1.7;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 14px rgba(127, 31, 255, 0.10);
}

.animated-rotate {
  animation: hero-rotate-in 1.1s cubic-bezier(0.6,0.2,0.2,1.1);
  transform-origin: 50% 60%;
}
@keyframes hero-rotate-in {
  0% {
    opacity: 0;
    transform: rotateY(360deg) scale(0.6);
  }
  70% {
    opacity: 1;
    transform: rotateY(-20deg) scale(1.07);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
}
@media (max-width: 700px) {
  .hero-title {
    font-size: 1.35em;
  }
  .hero-desc {
    font-size: 1em;
  }
}


.hero-frame {
  display: inline-block;
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  border-radius: 32px;
  padding: 38px 44px 34px 44px;
  margin: 0 auto 36px auto;
  box-shadow: 0 6px 38px 0 rgba(127, 31, 255, 0.13), 0 1.5px 10px 0 rgba(225,0,152,0.09);
  border: 3.5px solid;
  border-image: linear-gradient(90deg, #7f1fff 0%, #e10098 100%) 1;
  position: relative;
  max-width: 700px;
  transition: box-shadow 0.3s, transform 0.3s;
  will-change: box-shadow, transform;
  z-index: 10;
}
.hero-title {
  font-size: 2.7em;
  font-weight: 900;
  background: var(--main-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 18px;
  letter-spacing: 0.7px;
  direction: rtl;
  text-align: center;
  transition: color 0.3s;
}
.hero-desc {
  font-size: 1.2em;
  color: #2d0036;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 600;
  direction: rtl;
  text-align: center;
  line-height: 1.7;
  letter-spacing: 0.2px;
}

.animated-rotate {
  animation: hero-rotate-in 1.1s cubic-bezier(0.6,0.2,0.2,1.1);
  transform-origin: 50% 60%;
}
@keyframes hero-rotate-in {
  0% {
    opacity: 0;
    transform: rotateY(360deg) scale(0.6);
  }
  70% {
    opacity: 1;
    transform: rotateY(-20deg) scale(1.07);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
}
@media (max-width: 700px) {
  .hero-frame {
    padding: 22px 8px 18px 8px;
    border-radius: 18px;
    max-width: 98vw;
  }
  .hero-title {
    font-size: 1.35em;
  }
  .hero-desc {
    font-size: 1em;
  }
}
/* ========================
 END HERO FRAME STYLES
 ======================== */

 .main-header {
  position: relative;
  background: var(--header-gradient);
  min-height: 420px;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(127, 31, 255, 0.08);
  animation: fadeInUp 1s;
  z-index: 1;
}

.header-bg-animated {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.82;
  filter: blur(0.5px) brightness(1.05);
}
.animated-header-img {
  position: absolute;
  z-index: 3;
  width: 50px;
  height: 50px;
  opacity: 0.75;
  pointer-events: none;
  animation: floatY 4s ease-in-out infinite alternate;
}
.animated-header-img-left {
  top: 40px;
  left: 4vw;
  animation-delay: 0s;
}
.animated-header-img-right {
  top: 60px;
  right: 5vw;
  animation-delay: 1.2s;
}
.animated-header-img-center {
  top: 180px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 2s;
}
@keyframes floatY {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-22px) scale(1.08); }
}
@media (max-width: 991px) {
  .animated-header-img {
    width: 50px;
    height: 50px;
    opacity: 0.7;
  }
  .animated-header-img-center {
    top: 120px;
  }
  .animated-header-img-left {
    top: 24px;
    left: 2vw;
  }
  .animated-header-img-right {
    top: 34px;
    right: 2vw;
  }
}
.header-animated-svg {
  width: 100vw;
  height: 100%;
  min-height: 320px;
  max-height: 420px;
  display: block;
}
.header-overlay {
pointer-events: none;
  position: absolute;
  inset: 0;
  background: rgba(26, 34, 51, 0.22);
  z-index: 3;
}
.header-container {
  position: relative;
  z-index: 4;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.header-main-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 20px 0;
  gap: 32px;
}
.logo-area {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-logo {
    max-height: 150px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 16px rgba(127,31,255,0.13));
    border-radius: 16px;
    /* background: #fff; */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 8px;
    box-shadow: 0 0 0 2px #898484 inset;
    box-sizing: border-box;
}

.site-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9) inset, 
              0 4px 20px rgba(0, 0, 0, 0.15);
}
.header-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}
.header-title {
  color: #fff;
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(127,31,255,0.12);
}
.header-desc {
  color: #f3e6fa;
  font-size: 1.08rem;
  margin-bottom: 14px;
  line-height: 1.7;
  max-width: 430px;
}
.header-cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #e10098 0%, #7f1fff 100%);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 11px 32px;
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(127,31,255,0.11);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  margin-top: 6px;
  animation: pulse 1.8s infinite;
}
.header-cta-btn:hover {
  background: linear-gradient(90deg, #7f1fff 0%, #e10098 100%);
  transform: translateY(-2px) scale(1.04);
}
.header-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-top: 10px;
  z-index: 5;
}
.header-social-animated {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto !important;
  margin-left: 0 !important;
  direction: rtl;
  float: left;
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #7f1fff;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(127,31,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.social-icon:hover {
  background: linear-gradient(135deg, #7f1fff 0%, #e10098 100%);
  color: #fff;
  transform: scale(1.09) rotate(-5deg);
  box-shadow: 0 4px 16px rgba(225,0,152,0.13);
}
.header-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  position: relative;
  z-index: 7;
}
.main-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  margin-left: 18px;
  font-size: 1.5rem;
  color: #fff;
  z-index: 20;
  position: relative;
}
.menu-toggle .menu-icon {
  width: 26px;
  height: 4px;
  background: #fff;
  display: block;
  border-radius: 2px;
  margin: 6px 0;
  box-shadow: 0 2px 8px rgba(127,31,255,0.13);
}
.menu-toggle .menu-text {
  font-size: 1rem;
  color: #fff;
  margin-right: 6px;
}
.header-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 18px;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(127,31,255,0.07);
  min-height: 54px;
  transition: max-height 0.3s ease;
  max-height: none;
  overflow: visible;
}
.header-menu li a {
  font-weight: 600;
  font-size: 1.04rem;
  padding: 10px 22px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  /* display: block; */
  color: rgba(255,255,255,0.85);
}
.header-menu li a:hover,
.header-menu li.current-menu-item a {
  background: linear-gradient(90deg, #e10098 0%, #7f1fff 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(127,31,255,0.13);
}
.header-menu .menu-item-has-children > a {
  padding-left: 18px;
  position: relative;
}
.header-menu .menu-item-has-children > a::after {
  content: '\25BC';
  font-size: 0.7em;
  color: #e10098;
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s;
}
.header-menu > li.menu-item-has-children.toggled > a::after {
  transform: rotate(180deg);
}
.header-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 170px;
  background: rgba(34,0,56,0.98);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(127,31,255,0.13);
  z-index: 30;
  padding: 8px 0;
}
.header-menu .menu-item-has-children:hover > .sub-menu,
.header-menu .menu-item-has-children:focus-within > .sub-menu,
.header-menu .menu-item-has-children.toggled > .sub-menu {
  display: block;
}
.header-menu .sub-menu li a {
  padding: 10px 18px;
  color: #fff;
  border-radius: 7px;
  font-size: 0.98rem;
}
.header-menu .sub-menu li a:hover {
  background: linear-gradient(90deg, #7f1fff 0%, #e10098 100%);
  color: #fff;
}

/* Responsive styles */
@media (max-width: 991px) {
  .header-main-area {
    flex-direction: column;
    gap: 22px;
    align-items: center;
    text-align: center;
  }
  .header-content {
    align-items: center;
    text-align: center;
    margin-top: 14px;
  }
  .header-topbar {
    justify-content: flex-start;
  }
  .menu-toggle {
    display: block;
  }
  .header-menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    background: rgba(30, 0, 50, 0.97);
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 32px rgba(127, 31, 255, 0.13);
    transition: max-height 0.3s ease;
  }
  .menu-toggle[aria-expanded="true"] + .header-menu,
  .header-menu.open {
    max-height: 420px;
    overflow: visible;
  }
  .header-menu li {
    text-align: center;
  }
  .header-menu li a {
    padding: 14px 0;
    font-size: 1.08rem;
  }
  .header-menu .sub-menu {
    position: static;
    min-width: 100%;
    box-shadow: none;
    background: rgba(34,0,56,0.98);
    border-radius: 0 0 12px 12px;
    padding: 0;
  }
}
@media (max-width: 600px) {
  .header-main-area {
    gap: 12px;
  }
  .site-logo {
    max-height: 150px;
  }
  .header-title {
    font-size: 1.2rem;
  }
  .header-desc {
    font-size: 0.95rem;
  }
  .header-cta-btn {
    font-size: 0.98rem;
    padding: 8px 18px;
  }
}
/* ========================
   END HEADER MODERN DESIGN
   ======================== */

/* ========================
   WORKS SECTION STYLES
   ======================== */
.works-section {
  padding: 70px 0 40px 0;
  background: #881c9a29;
  direction: rtl;
}
.works-section, .services-section{position:relative;z-index:1}
.ribbons-wrap{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.ribbons-wrap .ribbon{position:absolute;left:0;top:0;width:100%;height:100%;opacity:.9;transform:translateZ(0);transform-origin:50% 50%;will-change:transform}
.ribbons-wrap .layer-1{opacity:.25;filter:blur(0.2px)}
.ribbons-wrap .layer-2{opacity:.3}
.ribbons-wrap .layer-3{opacity:.22}
.works-section > *, .services-section > *{position:relative;z-index:2}
@media (max-width:768px){.ribbons-wrap .ribbon{opacity:.22}}
/* JS will control movement; no CSS keyframes to avoid conflicts */
.services-section {
  padding: 20px 0 40px 0;
  background: #a100a726;
  direction: rtl;
}
/* Animated ornaments for sections */
.section-ornaments{position:absolute;inset:0;pointer-events:none;z-index:0}
.works-section,.services-section{position:relative;overflow:hidden}
.section-ornaments .orb{position:absolute;display:block;width:60px;height:60px;border-radius:50%;filter:blur(0.2px);opacity:.25;background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(127,31,255,.8) 45%, rgba(225,0,152,.85) 100%);animation: floatXY 8s ease-in-out infinite}
.section-ornaments .orb-l-1{left:-20px;top:40px;animation-delay:.2s}
.section-ornaments .orb-l-2{left:10px;top:210px;width:36px;height:36px;animation-duration:10s}
.section-ornaments .orb-l-3{left:-10px;bottom:120px;width:48px;height:48px;animation-duration:9s}
.section-ornaments .orb-r-1{right:-18px;top:90px;width:54px;height:54px;animation-delay:.8s}
.section-ornaments .orb-r-2{right:6px;bottom:160px;width:34px;height:34px;animation-duration:7.5s}
.section-ornaments .code-spark{position:absolute;width:14px;height:14px;border-radius:3px;background:linear-gradient(135deg,#fff,#7f1fff);opacity:.55;box-shadow:0 0 18px rgba(127,31,255,.35);animation: sparkle 2.8s ease-in-out infinite}
.section-ornaments .code-l{left:44px;bottom:80px}
.section-ornaments .code-r{right:44px;top:120px;animation-delay:1.1s}
.section-ornaments .bracket{position:absolute;color:#ffffffaa;font-weight:800;font-family:'Cascadia Code','Consolas',monospace;opacity:.18;text-shadow:0 3px 18px rgba(0,0,0,.22);animation: drift 12s ease-in-out infinite}
.section-ornaments .bracket-l{left:22px;top:30%}
.section-ornaments .bracket-r{right:22px;bottom:26%}
@keyframes floatXY{0%{transform:translate(0,0) scale(1)}50%{transform:translate(10px,-14px) scale(1.05)}100%{transform:translate(0,0) scale(1)}}
@keyframes sparkle{0%,100%{transform:scale(.8) rotate(0);opacity:.35}50%{transform:scale(1.4) rotate(20deg);opacity:.8}}
@keyframes drift{0%{transform:translateY(0) rotate(0)}50%{transform:translateY(-10px) rotate(2deg)}100%{transform:translateY(0) rotate(0)}}
@media (max-width:768px){.section-ornaments .orb{opacity:.18}.section-ornaments .bracket{display:none}}
.works-section h2 {
  text-align: center;
  font-size: 2.3em;
  font-weight: 900;
  background: var(--main-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 38px;
  letter-spacing: 0.2px;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.work-card {
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, #9c27b0 0%, #e91e63 100%) border-box;
  border-radius: 22px;
  box-shadow: 0 4px 32px rgba(127,31,255,0.09), 0 1.5px 6px rgba(225,0,152,0.07);
  overflow: hidden;
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.33s cubic-bezier(0.4,0.6,0.2,1), transform 0.33s cubic-bezier(0.4,0.6,0.2,1);
  position: relative;
  min-height: 350px;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  will-change: box-shadow, transform, opacity;
}
.work-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.7s cubic-bezier(0.4,0.6,0.2,1), transform 0.7s cubic-bezier(0.4,0.6,0.2,1);
}
.work-card:hover, .work-card.touch-hover {
  box-shadow: 0 8px 36px 0 rgba(127, 31, 255, 0.17), 0 2px 16px 0 rgba(225,0,152,0.13);
  border-color: #a78bfa;
  transform: translateY(-7px);
  z-index: 2;
  animation: borderGlow 1.2s;
}
.work-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  min-height: 170px;
}
.work-featured-image {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 30px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(120deg, #f3e8ff 0%, #e9d5ff 60%, #efe1ff 100%);
  box-shadow: 0 8px 38px 0 rgba(127,31,255,0.13), 0 2px 14px 0 rgba(37,211,102,0.10);
  min-height: 220px;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  transition: all 0.5s cubic-bezier(0.4, 0.6, 0.2, 1);
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.work-featured-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(127, 31, 255, 0.8) 0%, rgba(161, 0, 167, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
  border-radius: 20px;
}

.work-featured-image img {
  transition: transform 0.7s cubic-bezier(0.4, 0.6, 0.2, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.work-featured-image:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 45px rgba(127, 31, 255, 0.2), 0 5px 25px rgba(37, 211, 102, 0.15);
}

.work-featured-image:hover::before {
  opacity: 0.8;
}

.work-featured-image:hover img {
  transform: rotate(1deg);
}

.work-featured-image .overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  color: #fff;
  text-align: center;
  width: 80%;
  z-index: 3;
  transition: all 0.5s cubic-bezier(0.4, 0.6, 0.2, 1);
  padding: 20px;
}

.work-featured-image:hover .overlay-content {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.work-featured-image .view-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  color: #7f1fff;
  text-decoration: none;
  border-radius: 30px;
  margin-top: 15px;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.work-featured-image .view-btn:hover {
  background: #7f1fff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.work-card:hover .work-featured-image, .work-card.touch-hover .work-featured-image {
  transform: rotate(-1deg);
}
.work-content {
  padding: 20px 18px 18px 18px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}
.work-title {
  font-size: 1.23em;
  font-weight: 800;
  background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 7px;
  margin-top: 0;
  text-align: right;
}
.work-description {
  color: #4b4266;
  font-size: 1.02em;
  margin-bottom: 10px;
  min-height: 40px;
  text-align: right;
}

/* Services cards styling */
.service-card{
  background: linear-gradient(#fff,#fff) padding-box,
              linear-gradient(135deg, #6d28d9 0%, #7f1fff 100%) border-box;
  border: 3px solid transparent;
  border-radius: 22px;
  box-shadow: 0 4px 28px rgba(127,31,255,0.08), 0 1px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease;
}
.service-card:hover{ box-shadow: 0 8px 32px rgba(127,31,255,0.18), 0 3px 14px rgba(0,0,0,0.08); transform: translateY(-6px); }
.service-title{
  font-weight: 900;
  background: linear-gradient(135deg, #4c1d95 0%, #7f1fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.work-actions {
  margin-top: auto;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  justify-content: center;
}
.work-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9px;
  font-size: 1em;
  font-weight: 700;
  background: linear-gradient(90deg, #e10098 0%, #7f1fff 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(127,31,255,0.09);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

/* Footer developer link color */
.main-footer .footer-bottom .copyright a,
.main-footer .footer-bottom .copyright a:link,
.main-footer .footer-bottom .copyright a:visited{
  color:#ff3bb5 !important;
  text-decoration:none;
  transition: color .2s ease-in-out;
}
.main-footer .footer-bottom .copyright a:hover,
.main-footer .footer-bottom .copyright a:focus{
  color:#ffffff !important;
}

/* Credits bar injected via functions.php (wp_footer) */
.site-credits .credits-link,
.site-credits .credits-link:link,
.site-credits .credits-link:visited{
  color:#ff3bb5 !important;
  text-decoration:none;
}
.site-credits .credits-link:hover,
.site-credits .credits-link:focus{
  color:#ffffff !important;
}
.work-btn.preview {
  background: linear-gradient(90deg, #a100a7 0%, #7f1fff 100%);
}
.work-btn.buy {
  background: linear-gradient(90deg, #25d366 0%, #7f1fff 100%);
}
.work-btn:hover {
  background: linear-gradient(90deg, #7f1fff 0%, #e10098 100%);
  transform: scale(1.06) translateY(-2px);
  color: #ffffff !important;
}
.work-btn:hover i,
.work-btn:hover svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.work-details-link{
    text-align: center;
    justify-content: center;
}
@media (max-width: 991px) {
  .works-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .work-card {
    min-height: 300px;
  }
}
@media (max-width: 600px) {
  .works-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 10px;
  }
  .work-card {
    min-height: 220px;
  }
  .work-content {
    padding: 14px 7px 12px 7px;
  }
  .works-section h2 {
    font-size: 1.3em;
    margin-bottom: 22px;
  }
}

/* ========================
   END WORKS SECTION STYLES
   ======================== */

   
/* ØªØ£Ø«ÙŠØ±Ø§Øª Ø­Ø±ÙƒÙŠØ© */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes borderGlow {
  0% { box-shadow: 0 0 0 0 rgba(127, 31, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(127, 31, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 31, 255, 0); }
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', Arial, sans-serif;
  background: #e7cbe5;
  color: var(--main-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  /* color: rgba(255,255,255,0.85); */
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--main-link-hover);
}

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

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    margin-bottom: 30px;
}
.page-header {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}
/* Contact Page Styles */
.contact-page {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-header .page-title {
  font-size: 2.5rem;
  color: var(--main-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.contact-header .page-description {
  color: #666;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
}

.contact-form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.contact-info {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.contact-info-item {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  color: var(--main-accent);
  font-size: 18px;
}

.contact-details h3 {
  color: var(--main-color);
  margin: 0 0 5px;
  font-size: 1.2rem;
}

.contact-details p,
.contact-details a {
  color: #666;
  margin: 5px 0;
  display: block;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--main-accent);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #555;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--main-accent);
  color: #fff;
  transform: translateY(-3px);
}

.contact-map {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

/* Form Styles */
.wpcf7-form-control {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.wpcf7-form-control:focus {
  border-color: var(--main-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--main-accent-rgb), 0.1);
}

textarea.wpcf7-form-control {
  min-height: 150px;
  resize: vertical;
}

.wpcf7-submit {
    background: var(--main-accent);
    font-family: 'Cairo';
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 16px;
}
.wpcf7-submit:hover {
  background: #098f3b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer Layout */
.main-footer {
    background: var(--main-dark);
    color: #fff;
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

/* Footer Logo */
.footer-about {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: -30px 0 20px 30px; /* رفع القسم لأعلى وإضافة هامش أيسر */
    padding-left: 50px; /* إضافة مساحة داخلية من اليمين */
    position: relative;
}

/* إضافة خط فاصل بعد قسم اللوجو */
.footer-about:after {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 70%;
    background: rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo-img {
    width: 90px; /* تصغير عرض اللوجو */
    height: 90px; /* تصغير ارتفاع اللوجو */
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-info {
    margin-top: 10px;
    line-height: 1.8;
    max-width: 300px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    /* margin-bottom: 40px; */
}

/* Footer Widgets */
.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
}

.footer-widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--main-accent);
    border-radius: 3px;
}

/* About Widget */


.footer-logo-img {
    max-width: 150px;
    height: auto;
}

.footer-info {
    margin-bottom: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-social .social-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social .social-icon:hover {
    background: var(--main-accent);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(161, 0, 167, 0.3);
}

.footer-social .social-icon i {
    font-size: 16px;
}

/* Links Widget */
.footer-links .footer-widget-title {
    color: #fff;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 10px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
    position: relative;
    padding-right: 20px;
}

.footer-links-list a:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--main-accent);
}

.footer-links-list a:hover {
    color: var(--main-accent);
    padding-right: 25px;
}

.footer-links-list a:hover:before {
    opacity: 1;
    right: -5px;
}

/* Contact Widget */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.contact-item i {
    margin-left: 12px;
    color: var(--main-accent);
    margin-top: 5px;
    font-size: 18px;
    min-width: 20px;
    text-align: center;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--main-accent);
    text-decoration: underline;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-5px);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-about {
        margin: -20px auto 30px;
        text-align: center;
        padding-right: 0;
    }
    
    .footer-about:after {
        display: none; /* إخفاء الخط الفاصل في الشاشات الصغيرة */
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-widget-title:after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .contact-item {
        justify-content: center;
    }
}
/* WhatsApp Floating Button Styles */
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.whatsapp-fab-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: all 0.3s ease;
  z-index: 10000;
}

.whatsapp-fab-button:hover {
  background: #128C7E;
  transform: scale(1.1);
}

.whatsapp-staff-box {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  max-width: 95%;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 9998;
  display: none;
  flex-direction: column;
  max-height: 80vh;
}

.whatsapp-staff-box.active {
  display: flex;
}

.whatsapp-box-header {
  background: #075E54;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whatsapp-close-button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.whatsapp-welcome-message {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  line-height: 1.5;
}

.whatsapp-staff-list {
  overflow-y: auto;
  max-height: 60vh;
  padding: 10px 0;
}

.whatsapp-staff-item {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.whatsapp-staff-item:hover {
  background: #f9f9f9;
}

.whatsapp-staff-item img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-left: 15px;
  object-fit: cover;
}

.staff-info {
  flex: 1;
}

.staff-name {
    font-weight: bold;
    margin-bottom: 3px;
    color: #000;
    font-size: 12px;
}
.staff-role {
  font-size: 12px;
  color: #666;
  margin-bottom: 3px;
}

.staff-hours {
  display: none; /* Hide staff hours */
}

.staff-hours i {
  margin-left: 5px;
  font-size: 10px;
}

.staff-status {
  margin-right: 15px;
  text-align: center;
}

.status-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 auto 3px;
}

.status-dot.online {
  color: #4CAF50;
}

.status-dot.offline {
  color: #9E9E9E;
}

.status-text {
  font-size: 10px;
  color: #666;
  white-space: nowrap;
}

.whatsapp-connect-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.whatsapp-connect-button i {
  margin-left: 5px;
}

.whatsapp-connect-button:hover {
  background: #128C7E;
  color: white;
  transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 768px) {
  .whatsapp-fab {
      bottom: 20px;
      right: 20px;
  }
  
  .whatsapp-fab-button {
      width: 50px;
      height: 50px;
      font-size: 25px;
  }
  
  .whatsapp-staff-box {
      bottom: 80px;
      right: 10px;
      left: 10px;
      width: auto;
  }
}

/* Animation for the floating button */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.whatsapp-fab-button {
  animation: float 3s ease-in-out infinite;
}

/* Hide scrollbar for staff list but keep functionality */
.whatsapp-staff-list::-webkit-scrollbar {
  width: 5px;
}

.whatsapp-staff-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.whatsapp-staff-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.whatsapp-staff-list::-webkit-scrollbar-thumb:hover {
  background: #1555;
}

/* ================================
   Service Cards (Ø®Ø¯Ù…Ø§ØªÙ†Ø§ Ø§Ù„Ø±Ø¦ÙŠØ³ÙŠØ©)
   ================================ */

/* ================================
   عناوين الأقسام
   ================================ */
.section-title-container {
    width: 100%;
    text-align: center;
    margin: 30px 0 60px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.section-title {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0 40px;
    font-size: 2.2em;
    font-weight: 700;
    color: #2c3e50;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    max-width: 90%;
}

/* تأثيرات خاصة بكل عنوان */
.section-title.primary {
    color: #fff;
    background: linear-gradient(45deg, #7b1fa2 0%, #e91e63 100%);
    padding: 15px 40px;
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(106, 17, 203, 0.3);
    transform: perspective(500px) rotateX(5deg);
    transition: all 0.4s ease;
    margin: 0 auto;
    display: inline-block;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.section-title.primary:hover {
    transform: perspective(500px) rotateX(0deg) scale(1.05);
    box-shadow: 0 15px 40px rgba(106, 17, 203, 0.4);
}

.section-title.secondary {
    color: #2c3e50;
    position: relative;
    padding: 15px 40px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.section-title.secondary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #7b1fa2 0%, #e91e63 100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.section-title.secondary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.3);
}

.section-title.secondary:hover:before {
    opacity: 1;
}

.section-title.tertiary {
    color: #2c3e50;
    position: relative;
    padding: 15px 40px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.section-title.tertiary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2e7d32 0%, #689f38 100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.section-title.tertiary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

.section-title.tertiary:hover:before {
    opacity: 1;
}

.section-title.quaternary {
    color: #2c3e50;
    position: relative;
    padding: 15px 40px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.section-title.quaternary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f57c00 0%, #ffa000 100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.section-title.quaternary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 124, 0, 0.3);
}

.section-title.quaternary:hover:before {
    opacity: 1;
}

.section-title.quinary {
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 40px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.section-title.quinary:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* تأثيرات للهواتف */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8em;
        padding: 0 20px;
    }
    
    .section-title.primary,
    .section-title.quinary {
        padding: 12px 25px;
        font-size: 1.5em;
    }
}

/* ================================
   Team Section (ÙØ±ÙŠÙ‚ Ø§Ù„Ø¹Ù…Ù„)
   ================================ */

.team-social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}
.team-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f7f7fa;
    color: #555;
    font-size: 1.27em;
    box-shadow: 0 2px 8px 0 rgba(80,80,120,0.07);
    transition: background 0.25s, color 0.22s, box-shadow 0.22s, transform 0.22s;
    border: none;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}
.team-social-icon.whatsapp {
    background: linear-gradient(135deg, #25d366 80%, #e8f7f0 100%);
    color: #fff;
}
.team-social-icon.facebook {
    background: linear-gradient(135deg, #1877f2 80%, #e7f1fa 100%);
    color: #fff;
}
.team-social-icon:hover {
    transform: scale(1.13) rotate(-7deg);
    box-shadow: 0 6px 18px 0 rgba(37,211,102,0.13), 0 2px 8px 0 rgba(24,119,242,0.09);
    color: #fff;
    filter: brightness(1.09);
}
.team-social-icon i {
    font-size: 1.3em;
    line-height: 1;
}


/* ================================
   Clients Section (Ø¹Ù…Ù„Ø§Ø¤Ù†Ø§ - Brands)
   ================================ */
.clients-section {
    padding: 60px 0 40px 0;
    background: #d8c9ebe8;
}

.clients-section h2 {
    text-align: center;
    font-size: 2em;
    font-weight: 800;
    color: var(--main-dark);
    margin-bottom: 32px;
    letter-spacing: 0.3px;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 36px;
    max-width: 950px;
    margin: 0 auto;
    align-items: center;
    padding: 0 10px;
}

.client-card {
    background: linear-gradient(135deg, #f7fafc 60%, #f1f7fc 100%);
    border-radius: 16px;
    box-shadow: 0 2px 10px 0 rgba(60,60,120,0.07), 0 1px 3px 0 rgba(80,80,120,0.05);
    padding: 18px 18px 12px 18px;
    min-width: 120px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.33s cubic-bezier(0.4,0.6,0.2,1), transform 0.33s cubic-bezier(0.4,0.6,0.2,1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.client-card:hover {
    box-shadow: 0 8px 24px 0 rgba(127,31,255,0.11), 0 4px 16px 0 rgba(37,211,102,0.09);
    transform: scale(1.055) rotate(-2deg);
    z-index: 2;
}
.client-logo {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px #1a223311;
    overflow: hidden;
    transition: box-shadow 0.33s, background 0.33s;
}
.client-logo img, .client-logo .wp-post-image {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain;
    transition: transform 0.7s cubic-bezier(0.4,0.6,0.2,1);
    filter: grayscale(0.2) brightness(0.97);
}
.client-card:hover .client-logo img,
.client-card:hover .client-logo .wp-post-image {
    transform: rotate(360deg) scale(1.11);
    filter: grayscale(0) brightness(1.05);
}
.client-title,
.client-desc {
    display: none !important;
}
@media (max-width: 650px) {
    .clients-grid {
        gap: 18px 10px;
    }
    .client-card {
        min-width: 90px;
        padding: 12px 7px 10px 7px;
    }
    .client-logo {
        width: 44px;
        height: 44px;
    }
    .client-logo img, .client-logo .wp-post-image {
        width: 38px !important;
        height: 38px !important;
    }
}

.team-section {
    padding: 60px 0 40px 0;
    background: linear-gradient(120deg, #f1f7fc 60%, #e3f0fa 100%);
}

.team-section h2 {
    text-align: center;
    font-size: 2em;
    font-weight: 800;
    color: var(--main-blue);
    margin-bottom: 32px;
    letter-spacing: 0.3px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
}

.team-card {
    background: linear-gradient(135deg, var(--team-bg1, #fff), var(--team-bg2, #f7faff));
    border-radius: 20px;
    box-shadow: 0 2px 10px 0 rgba(0,119,255,0.10), 0 1px 3px 0 rgba(161,0,167,0.07);
    padding: 38px 18px 28px 18px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.33s cubic-bezier(0.4,0.6,0.2,1), transform 0.33s cubic-bezier(0.4,0.6,0.2,1);
    cursor: pointer;
    overflow: hidden;
}
.team-card:nth-child(4n+1) { --team-bg1: #e7f1fa; --team-bg2: #f8faff; }
.team-card:nth-child(4n+2) { --team-bg1: #fef6e8; --team-bg2: #e8f7f0; }
.team-card:nth-child(4n+3) { --team-bg1: #f9e8ff; --team-bg2: #e8f0fe; }
.team-card:nth-child(4n+4) { --team-bg1: #e6fff7; --team-bg2: #fffbe6; }

.team-card:hover {
    box-shadow: 0 6px 24px 0 rgba(0,119,255,0.14), 0 4px 16px 0 rgba(225,0,152,0.10);
    transform: translateY(-7px) scale(1.035);
    z-index: 2;
}

.team-avatar {
    width: 86px;
    height: 86px;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 10px 0 rgba(0,119,255,0.11);
    overflow: hidden;
    transition: box-shadow 0.33s, background 0.33s;
    border: 3px solid #e3f0fa;
}
.team-card:hover .team-avatar {
    box-shadow: 0 8px 24px 0 rgba(0,119,255,0.14);
    background: rgba(255,255,255,0.97);
    border-color: #a100a7;
}
.team-avatar img, .team-avatar .wp-post-image {
    width: 76px !important;
    height: 76px !important;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.7s cubic-bezier(0.4,0.6,0.2,1);
}
.team-card:hover .team-avatar img,
.team-card:hover .team-avatar .wp-post-image {
    transform: rotate(-8deg) scale(1.09);
}
.team-title {
    font-size: 1.18em;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--main-blue);
    letter-spacing: 0.2px;
    text-shadow: 0 2px 12px rgba(0,119,255,0.07);
}
.team-desc {
    color: #555;
    font-size: 1.01em;
    min-height: 38px;
    line-height: 1.7;
    margin-bottom: 0;
}

.services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.service-card {
    background: linear-gradient(135deg, var(--service-bg1, #f7f7fa), var(--service-bg2, #f1f3fa));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    padding: 25px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.service-card:nth-child(4n+1) { --service-bg1: #e8f0fe; --service-bg2: #e0e7ff; }
.service-card:nth-child(4n+2) { --service-bg1: #fff4e6; --service-bg2: #ffe6fa; }
.service-card:nth-child(4n+3) { --service-bg1: #e6fff7; --service-bg2: #e6f7ff; }
.service-card:nth-child(4n+4) { --service-bg1: #fffbe6; --service-bg2: #ffe6e6; }

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--main-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--main-color);
    color: #fff;
}

.service-icon img, 
.service-icon .wp-post-image {
    width: 50%;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}



.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--main-dark);
    line-height: 1.4;
}



.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d92072;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
}



.read-more i {
    margin-right: 5px;
    transition: all 0.3s ease;
}


/* Single Service Styles */
.service-single {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin: 30px 0;
}

.service-single .entry-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.service-single .entry-title {
    font-size: 2.2rem;
    color: var(--main-dark);
    margin-bottom: 15px;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
}

.service-featured-image {
    width: 200px;
    height: 200px;
    margin: 0 0 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.service-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.service-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #444;
}

.service-categories {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.service-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous {
    text-align: right;
    padding-right: 15px;
}

.nav-next {
    text-align: left;
    padding-left: 15px;
}

.nav-previous a,
.nav-next a {
    display: inline-flex;
    align-items: center;
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: var(--main-dark);
}

.nav-previous a i {
    margin-right: 8px;
}

.nav-next a i {
    margin-left: 8px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .service-single {
        padding: 25px 20px;
    }
    
    .service-single .entry-title {
        font-size: 1.8rem;
    }
    
    .service-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-previous,
    .nav-next {
        text-align: center;
        padding: 0;
    }
}

/* No Services Message */
.no-services {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.no-services p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Ensure body doesn't scroll when chat is open */
body.whatsapp-chat-open {
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 480px) {
  .whatsapp-fab {
      bottom: 20px;
      left: 20px;
  }
  
  .whatsapp-staff-box {
      left: 20px;
      right: 20px;
      width: auto;
      bottom: 90px;
  }
}

.site-title {
  margin: 0;
  font-size: 32px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(127,31,255,0.12);
  padding: 7px 0;
}
#masreyah-whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  direction: rtl;
}

#open-whatsapp-box {
  background: #25d366;
  color: #fff;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 3px 16px rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  cursor: pointer;
  transition: box-shadow 0.18s;
  animation: whatsapp-fab-pop 0.4s;
}

#open-whatsapp-box:hover {
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-staff-box {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 340px;
  max-width: 95vw;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.3);
  padding: 18px 0 8px;
  overflow: hidden;
  animation: whatsapp-box-fadein 0.3s;
}

.whatsapp-box-header {
  padding: 0 18px 8px;
  border-bottom: 1px solid #f1f1f1;
  font-weight: 800;
  font-size: 1.1em;
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-close-button {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #888;
  padding: 5px;
}

.whatsapp-welcome-message {
  padding: 13px 18px 0;
  color: #333;
  font-size: 1.06em;
}

.whatsapp-staff-list {
  max-height: 290px;
  overflow-y: auto;
}

.whatsapp-staff-list::-webkit-scrollbar {
  width: 7px;
  background: #f6f6f6;
}

.whatsapp-staff-list::-webkit-scrollbar-thumb {
  background: #e3e3e3;
  border-radius: 6px;
}

@keyframes whatsapp-fab-pop {
  0% { transform: scale(0.7); }
  100% { transform: scale(1); }
}

@keyframes whatsapp-box-fadein {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  #masreyah-whatsapp-fab {
      right: 10px;
      bottom: 10px;
  }
  
  .whatsapp-staff-box {
      width: 97vw;
}

/* ==== ØªØ£Ø«ÙŠØ± Ø§Ù„Ø­Ø±ÙƒØ© Ø¹Ù„Ù‰ ØµÙˆØ±Ø© Ø§Ù„Ø¹Ù…Ù„ Ø¹Ù†Ø¯ Ù…Ø±ÙˆØ± Ø§Ù„Ù…Ø§ÙˆØ³ ==== */
.work-featured-image img,
.work-featured-image .wp-post-image {
  transition: transform 0.5s cubic-bezier(0.4,0.6,0.2,1), box-shadow 0.5s cubic-bezier(0.4,0.6,0.2,1);
  will-change: transform, box-shadow;
}
.work-featured-image:hover img,
.work-featured-image:hover .wp-post-image {
  transform: rotate(-2deg);
  box-shadow: 0 16px 52px 0 rgba(127,31,255,0.22), 0 6px 22px 0 rgba(37,211,102,0.13);
  z-index: 2;
}

}

/* ========================
   SERVICES SECTION STYLES
   ======================== */

.service-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}




/* تأثير اهتزاز ثم دوران للصورة المميزة */
.service-featured-image {
    display: inline-block;
    overflow: hidden;
    border-radius: 12px;
    margin: 20px 0;
    transition: transform 0.3s ease;
}

.service-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.service-featured-image:hover {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.service-featured-image:hover img {
    animation: spin 1.2s ease-in-out 0.5s forwards;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1.05); }
}

@-webkit-keyframes shake {
    10%, 90% { -webkit-transform: translate3d(-1px, 0, 0); }
    20%, 80% { -webkit-transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { -webkit-transform: translate3d(-3px, 0, 0); }
    40%, 60% { -webkit-transform: translate3d(3px, 0, 0); }
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg) scale(1); }
    100% { -webkit-transform: rotate(360deg) scale(1.05); }
}


.service-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95em;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d92072;
    font-weight: 600;
    font-size: 0.95em;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.read-more i {
    margin-right: 6px;
    transition: transform 0.3s ease;
}


.view-all-btn {
    display: inline-block;
    background: var(--main-color);
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--main-color);
    font-size: 0.95em;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.view-all-btn:hover {
    background: transparent;
    color: var(--main-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.entry-content {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    flex-direction: column;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .services-grid {
        max-width: 900px;
    }
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

@media (max-width: 767px) {
    .services-section {
        padding: 50px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        padding: 0 20px;
    }
}

.works-pagination,
.services-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 16px 0 0;
  direction: rtl;
}
.works-pagination .page-numbers,
.services-pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  background: #f3e8ff;
  color: #5009af;
  font-weight: 600;
  transition: all .2s ease;
}
.works-pagination .page-numbers:hover,
.services-pagination .page-numbers:hover { background: #7f1fff; color: #fff; }
.works-pagination .page-numbers.current,
.services-pagination .page-numbers.current { background: #5009af; color: #fff; }
.works-pagination .page-numbers.disabled,
.services-pagination .page-numbers.disabled { opacity: .5; pointer-events: none; }
.works-pagination.loading,
.services-pagination.loading { opacity: .6; pointer-events: none; }

/* ========================
   HERO SLIDER (Swiper)
   ======================== */
.hero-slider-section {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
}
.hero-slider {
  width: 100%;
  height: 64vh;
  min-height: 420px;
}
.hero-slider .swiper-wrapper { align-items: stretch; }
.hero-slider .swiper-slide {
  position: relative;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(127,31,255, calc(var(--hero-overlay, 0.55) - 0.10)) 0%, rgba(127,31,255, var(--hero-overlay, 0.55)) 30%, rgba(127,31,255, calc(var(--hero-overlay, 0.55) + 0.08)) 100%),
    radial-gradient(1200px 400px at 80% 0%, rgba(127,31,255,0.28) 0%, rgba(37,211,102,0.12) 40%, rgba(127,31,255, var(--hero-overlay, 0.5)) 100%);
}
.hero-slide-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.hero-slide-panel {
  display: inline-block;
  background: rgba(0,0,0, var(--hero-panel, 0.28));
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.hero-slide-title {
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 10px;
  text-shadow: 0 10px 36px rgba(0,0,0,0.35);
}
.hero-slide-desc {
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.8;
  color: #f1f1f1;
  margin: 0 0 16px;
  max-width: 800px;
}
.hero-slide-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: all .25s ease;
  border: 2px solid transparent;
}
.btn.primary { background: var(--hero-accent, #7f1fff); color: #fff; border-color: var(--hero-accent, #7f1fff); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(127,31,255,.35); }
.btn.ghost { background: #6322b9; color: #fff; border-color: rgba(255,255,255,.7); }
.btn.ghost:hover { background: #6322b9; transform: translateY(-2px); }
.btn.success { background: #25d366; color: #0a3d23; border-color: #25d366; }
.btn.success:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(37,211,102,.25); }

/* Swiper nav */
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(4px);
}
.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover { background: rgba(0,0,0,.38); }
.hero-slider .swiper-button-prev:after,
.hero-slider .swiper-button-next:after { font-size: 18px; font-weight: 900; }

/* Pagination */
.hero-slider .swiper-pagination,
.hero-slider .swiper-pagination.swiper-pagination-bullets {
  position: absolute;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  bottom: 12px;
  width: auto !important; /* fit to bullets, prevent 100% */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0, var(--hero-panel, 0.28));
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  margin: 0;
}
.hero-slider .swiper-pagination-bullet { background: rgba(255,255,255,.6); opacity: 1; }
.hero-slider .swiper-pagination-bullet-active { background: var(--hero-accent, #7f1fff); }

/* Slide in animations */
.swiper-slide .hero-slide-title,
.swiper-slide .hero-slide-desc,
.swiper-slide .hero-slide-actions { opacity: 0; transform: translateY(14px); transition: all .6s cubic-bezier(.2,.8,.2,1); }
.swiper-slide.slide-animate .hero-slide-title { opacity: 1; transform: translateY(0); transition-delay: .05s; }
.swiper-slide.slide-animate .hero-slide-desc { opacity: 1; transform: translateY(0); transition-delay: .15s; }
.swiper-slide.slide-animate .hero-slide-actions { opacity: 1; transform: translateY(0); transition-delay: .25s; }

@media (max-width: 767px) {
  .hero-slider { height: 54vh; min-height: 360px; }
  .hero-slide-actions { justify-content: center; }
}

/* ========================
   SINGLE WORK CONTENT ENFORCED STYLES
   ======================== */
.single-work-main .work-content {
  color: #4b0082 !important; /* أرجواني غامق */
  text-align: center !important;
  font-size: 16px !important;
  background-color: #ffcadc !important; /* خلفية وردية فاتحة */
  padding: 20px !important;
  border-radius: 12px !important;
  margin: 20px 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}
.single-work-main .work-content p,
.single-work-main .work-content div,
.single-work-main .work-content span,
.single-work-main .work-content li,
.single-work-main .work-content strong,
.single-work-main .work-content em {
  color: #4b0082 !important; /* أرجواني غامق */
  text-align: center !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}
.single-work-main .work-content h1,
.single-work-main .work-content h2,
.single-work-main .work-content h3,
.single-work-main .work-content h4,
.single-work-main .work-content h5,
.single-work-main .work-content h6 {
  color: #4b0082 !important; /* أرجواني غامق */
  text-align: center !important;
  font-size: 16px !important;
  margin: 8px 0 !important;
  line-height: 1.4 !important;
}
.single-work-main .work-content img { display:block; margin: 12px auto; }

/* Turn any link inside content into a purple button */
.single-work-main .work-content a,
.single-work-main .work-content a:visited {
  display: inline-block !important;
  padding: 10px 20px !important;
  border-radius: 12px !important;
  background: #7f1fff !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 18px rgba(127,31,255,.25) !important;
  border: 0 !important;
  margin: 12px auto !important;
  float: none !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  max-width: 100% !important;
  width: auto !important;
}
.single-work-main .work-content a:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px rgba(127,31,255,.35) !important;
}

/* Center the link container */
.single-work-main .work-content p,
.single-work-main .work-content div {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

/* ========================
   COMMENTS (Single Work)
   ======================== */
.work-comments {
  margin-top: 34px;
  /* خلفية متناغمة مع الثيم (أرجواني/وردي خفيف) */
  background:
    linear-gradient(180deg, rgba(127,31,255,0.06), rgba(225,0,152,0.04)),
    radial-gradient(120% 140% at 100% -10%, rgba(225,0,152,0.08), transparent 40%),
    #ffffff;
  border: 1px solid rgba(127,31,255,.18);
  border-radius: 18px;
  padding: 24px 18px 20px;
  box-shadow: 0 18px 48px rgba(127,31,255,0.16), 0 6px 18px rgba(0,0,0,0.05);
  backdrop-filter: blur(6px);
}
.work-comments, .work-comments * {
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
}
.comments-box-heading {
  display:flex; align-items:center; justify-content:center; gap:10px;
  margin: 12px 0 10px; padding: 10px 14px;
  background: #e10098 !important; /* نفس لون زر التعديل */
  color: #fff !important;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(225,0,152,.25);
  border: 1px solid rgba(255,255,255,.15);
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
  text-align: center;
  width: 100%;
}
.comments-box-heading .icon { color:#fff !important; font-size: 18px; line-height: 1; }
.comments-box-heading .heading-text { font-weight: 800; font-size: 16px; color:#fff !important; }
/* إزالة أي أنماط داخلية قد تتعارض مع الهيدر الخارجي */
/* .work-comments .comments-box-heading { } */
/* .work-comments .comments-box-heading .heading-text { } */
.work-comments h2.comments-title,
.work-comments h3#reply-title {
  font-size: 1.4rem;
  margin: 0 0 16px;
  font-weight: 800;
  background: var(--main-gradient, linear-gradient(90deg,#7f1fff,#e10098));
  background-clip: text;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.work-comments ol.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.work-comments .comment,
.work-comments .pingback {
  background: rgba(243,232,255,0.45);
  border: 1px solid #f3e8ff;
  border-radius: 14px;
  padding: 14px 14px 14px 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 16px rgba(127,31,255,0.08);
}
.work-comments .children { list-style: none; margin: 12px 18px 0 0; padding: 0; }
.comment-body { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; }
.comment-author .avatar { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e9d5ff; }
.comment-meta { font-size: .86rem; color: #6b7280; display: flex; gap: 8px; align-items: center; }
.comment-meta a { color: #7f1fff; text-decoration: none; }
.comment-content { color: #312244; line-height: 1.8; }
.work-comments a:hover { color: #5b0bd9; }
.comment-author-name { color: #3b1e66; }
.comment-content { color: #2a1b3f; }
.comment-date a { color:#5b0877; }
.comment-content p { margin: 8px 0; }
.comment-actions { display:flex; gap: 10px; align-items:center; flex-wrap: wrap; margin-top: 10px; }
.comment-actions .sep { display:none; }
.comment-reply-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 0; background: var(--hero-accent, #7f1fff); color: #fff; font-weight: 800; text-decoration: none; transition: all .25s ease; box-shadow: 0 6px 18px rgba(127,31,255,.22); }
.comment-reply-link:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(127,31,255,.35); color:#fff; background: var(--hero-accent, #7f1fff); }
.comment-delete-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 0; background: var(--hero-accent, #bb0505); color: #fff; font-weight: 800; text-decoration: none; transition: all .25s ease; box-shadow: 0 6px 18px rgba(127,31,255,.22); }
.comment-delete-link:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(127,31,255,.35); color:#fff; background: var(--hero-accent, #bb0505); }
.comment-actions a.comment-edit-link { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:12px; border:0; background:#e10098; color:#fff; text-decoration:none; font-weight:800; transition: all .25s ease; box-shadow: 0 6px 18px rgba(225,0,152,.22); }
.comment-actions a.comment-edit-link:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(225,0,152,.35); color:#fff; background:#e10098; }

/* Comment form */
.comment-form { display: grid; gap: 12px; }
.comment-form p { margin: 0; }
.comment-form .comment-notes { color: #6b7280; font-size: .92rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; border: 1px solid #e9d5ff; border-radius: 12px; padding: 12px 14px; outline: none; background: #fff;
  box-shadow: 0 2px 10px rgba(127,31,255,0.06);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: #7f1fff; box-shadow: 0 0 0 3px rgba(127,31,255,.12); }
.form-submit { margin-top: 6px; }
.form-submit input#submit { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; border: 0; background: var(--main-gradient, linear-gradient(90deg,#7f1fff,#e10098)); color: #fff; font-weight: 800; cursor: pointer; transition: all .25s ease; box-shadow: 0 14px 30px rgba(127,31,255,.28); }
.form-submit input#submit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(127,31,255,.33); }
.logged-in-as a { color: #7f1fff; text-decoration: none; }
