/*
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;
  text-fill-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;
  text-fill-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: 74px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 16px rgba(127,31,255,0.13));
  border-radius: 16px;
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.site-logo:hover {
  transform: scale(1.05);
}
.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: ltr;
}
.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: 54px;
  }
  .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 h2 {
  text-align: center;
  font-size: 2.3em;
  font-weight: 900;
  background: var(--main-gradient);
  -webkit-background-clip: text;
  -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: #fff;
  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: 2px solid #f3e8ff;
  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) scale(1.035);
  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) scale(1.03);
  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: scale(1.1) 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: scale(1.06) 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;
  color: var(--main-dark);
  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;
}
.work-actions {
  margin-top: auto;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.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;
}
.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;
}
@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 4px;
  }
  .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);
  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: var(--main-color);
  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: 60px !important;
    height: 60px !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: scale(1.07) 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: baseline;
    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;
    }
}
