/*
Theme Name: Law
Theme URI: https://example.com
Author: Mazen Bdewi
Description: Responsive Law Firm WordPress Theme
Version: 1.1.0
License: GPL v2 or later
Text Domain:
*/

/* =================================================
   HEADER OVER SLIDER (OVERLAY)
================================================= */
.site-header {
    width: 100%;
    z-index: 999;
}

/* الهيدر فوق السلايدر */
.site-header.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

/* الناف بار شفاف فوق السلايدر */
.header-overlay .header-bottom-area {
    background: transparent;
    padding: 20px 0;
    transition: all 0.35s ease;
    box-shadow: none;
}

/* ألوان النص فوق السلايدر */
.header-overlay .main-menu > li > a,
.header-overlay .site-title,
.header-overlay .site-tagline {
    color: #ffffff;
}

/* هوفر */
.header-overlay .main-menu > li > a:hover {
    color: #f1f1f1;
}

/* =================================================
   STICKY HEADER AFTER SCROLL
================================================= */
.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0b1e4c; /* اللون المطلوب */
    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
    animation: slideDown .35s ease;
}

/* إزالة الشفافية بعد السكرول */
.site-header.is-sticky .header-bottom-area {
    background: #0b1e4c;
    padding: 15px 0;
}

/* ألوان النص بعد السكرول */
.site-header.is-sticky .main-menu > li > a,
.site-header.is-sticky .site-title,
.site-header.is-sticky .site-tagline {
    color: #ffffff;
}

/* هوفر بعد السكرول */
.site-header.is-sticky .main-menu > li > a:hover {
    color: #cfd6ff;
}

/* انيميشن نزول الهيدر */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* =================================================
   HERO SLIDER
================================================= */
.slider-area {
    position: relative;
    z-index: 1;
}

/* اترك مساحة للهيدر */
.single-slider {
    position: relative;
    min-height: 70vh;
    padding-top: 120px;
    background-size: cover;
    background-position: center;
}

/* طبقة التعتيم */
.slider-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* محتوى السلايدر */
.slider-overlay .container {
    height: 100%;
}

.slider-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slider-content h1 {
    color: #ffffff;
    font-size: clamp(28px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    padding: 0 20px;
}

/* =================================================
   OWL DOTS
================================================= */
.hero-slider .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-slider .owl-dot span {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,.5);
    border-radius: 50%;
    transition: .3s;
}

.hero-slider .owl-dot.active span {
    background: #fff;
    transform: scale(1.3);
}

/* =================================================
   NEW HEADER STYLES
================================================= */

/* ========== LinkedIn button styles ========== */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: transform .15s ease, background-color .15s ease;
  background-color:#fff;
}

.social-link:hover {
  transform: translateY(-1px);
  background-color:#fff;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

/* ========== Language switcher styles ========== */
.language-switcher {
  display: inline-block;
}

.language-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

.language-btn:hover {
  transform: translateY(-1px);
}

/* Layout structure */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo {
  flex: 0 0 auto;
}

.header-nav-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-right-elements {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Desktop navigation styles - CENTERED AND FIXED */
.desktop-navigation {
  display: flex;
  justify-content: center;
  width: 100%;
}

.desktop-navigation .main-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: auto;
}

.desktop-navigation .main-menu li {
  margin: 0 15px;
  position: relative;
}

.desktop-navigation .main-menu a {
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.desktop-navigation .main-menu a:hover {
  color: #007bff;
}

/* القوائم الفرعية في الديسكتوب - بدون نقاط وبدون هوفر */
.desktop-navigation .main-menu .sub-menu,
.desktop-navigation .main-menu .children {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
}

.desktop-navigation .main-menu .sub-menu li,
.desktop-navigation .main-menu .children li {
  list-style: none !important;
  margin: 0 !important;
  width: 100%;
}

.desktop-navigation .main-menu .sub-menu li::before,
.desktop-navigation .main-menu .children li::before {
  content: none !important;
}

.desktop-navigation .main-menu .sub-menu a,
.desktop-navigation .main-menu .children a {
  padding: 12px 20px !important;
  display: block;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #333 !important;
  text-align: left;
  transition: none !important;
}

[dir="rtl"] .desktop-navigation .main-menu .sub-menu a,
[dir="rtl"] .desktop-navigation .main-menu .children a {
  text-align: right;
}

/* إزالة الهوفر من القوائم الفرعية */
.desktop-navigation .main-menu .sub-menu a:hover,
.desktop-navigation .main-menu .children a:hover {
  background-color: #f8f9fa !important;
  color: #333 !important;
  transform: none !important;
}

/* إظهار القوائم الفرعية عند الهوفر */
.desktop-navigation .main-menu li:hover > .sub-menu,
.desktop-navigation .main-menu li:hover > .children {
  display: block;
}

/* القوائم الفرعية من المستوى الثاني */
.desktop-navigation .main-menu .sub-menu .sub-menu,
.desktop-navigation .main-menu .children .children {
  top: 0;
  left: 100%;
}

[dir="rtl"] .desktop-navigation .main-menu .sub-menu .sub-menu,
[dir="rtl"] .desktop-navigation .main-menu .children .children {
  left: auto;
  right: 100%;
}

/* إزالة النقاط من القوائم الفرعية في الموبايل */
.mobile-menu .sub-menu,
.mobile-menu .children {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mobile-menu .sub-menu li,
.mobile-menu .children li {
  list-style: none !important;
  background: none !important;
}

.mobile-menu .sub-menu li::before,
.mobile-menu .children li::before {
  content: none !important;
}

/* إزالة النقاط من القائمة الرئيسية في الموبايل */
.mobile-menu {
  list-style: none !important;
}

.mobile-menu li {
  list-style: none !important;
  background: none !important;
}

.mobile-menu li::before {
  content: none !important;
}

/* إزالة الهوفر من القوائم الفرعية في الموبايل */
.mobile-menu .sub-menu a:hover,
.mobile-menu .children a:hover {
  background-color: transparent !important;
  color: inherit !important;
}

/* Responsive visibility */
@media (min-width: 768px) {
  .social-mobile,
  .language-mobile,
  .mobile-header-actions {
    display: none !important;
  }

  .social-desktop,
  .language-desktop {
    display: inline-flex !important;
  }
}

@media (max-width: 767.98px) {
  .social-desktop,
  .language-desktop,
  .desktop-navigation {
    display: none !important;
  }

  .mobile-header-actions {
    display: flex !important;
    align-items: center;
    gap: 15px;
  }
  
  .header-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .header-logo {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .header-right-elements {
    display: none !important;
  }
}

/* ========== Simple Hamburger + Mobile Menu styles ========== */
.hamburger-menu {
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.hamburger-menu span {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
  color:#fff;
}

.mobile-menu-container {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  max-width: 90%;
  height: 100vh;
  background: #fff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transition: right .25s ease;
  z-index: 9999;
  padding: 18px 18px 24px;
  overflow: auto;
}

.mobile-menu-container.is-open {
  right: 0;
}

.mobile-menu-close {
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  margin-left: auto;
  display: block;
}

.mobile-menu {
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
}

.mobile-menu li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  list-style: none !important;
  background: none !important;
}

.mobile-menu a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 16px;
}

/* Overlay behind mobile menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9998;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* تحسين الشعار في الموبايل */
.mobile-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.mobile-logo img {
  height: 85px !important;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .mobile-logo img {
    height: 75px !important;
    max-height: 75px;
  }
  
  /* إخفاء اسم المحامي والسلوغان في الموبايل */
  .site-title-tagline {
    display: none !important;
  }
  
  /* تحسين تخطيط الموبايل */
  .mobile-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  .mobile-logo-col {
    flex: 0 0 auto;
  }
  
  .mobile-actions-col {
    flex: 0 0 auto;
  }
  
  /* زيادة التباعد بين LinkedIn واللغة */
  .mobile-header-actions .language-mobile {
    margin-left: 8px;
  }
  
  .mobile-header-actions .social-mobile {
    margin-left: 8px;
  }
}

/* RTL support for Arabic */
[dir="rtl"] .mobile-menu-container {
  right: auto;
  left: -320px;
}

[dir="rtl"] .mobile-menu-container.is-open {
  right: auto;
  left: 0;
}

[dir="rtl"] .mobile-menu-close {
  margin-left: 0;
  margin-right: auto;
}

/* إضافة ستايل للقوائم الفرعية في الموبايل */
.mobile-menu .sub-menu {
  display: none;
  list-style: none;
  padding-left: 15px;
  margin: 0;
}

.mobile-menu .sub-menu li {
  border-bottom: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  list-style: none !important;
}

.mobile-menu .sub-menu a {
  padding-left: 20px;
  font-size: 14px;
  font-weight: 600;
  /* إزالة الهوفر من القوائم الفرعية في الموبايل */
  transition: none !important;
}

.mobile-menu .sub-menu a:hover {
  background-color: transparent !important;
  color: inherit !important;
}

.mobile-menu .menu-item-has-children > a {
  position: relative;
  padding-right: 25px;
}

.mobile-menu .menu-item-has-children > a:after {
  content: '▼';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  transition: transform 0.3s ease;
}

.mobile-menu .menu-item-has-children.submenu-open > a:after {
  transform: translateY(-50%) rotate(180deg);
}

/* RTL support for Arabic in mobile menu */
[dir="rtl"] .mobile-menu .menu-item-has-children > a {
  padding-right: 10px;
  padding-left: 25px;
}

[dir="rtl"] .mobile-menu .menu-item-has-children > a:after {
  right: auto;
  left: 10px;
}

[dir="rtl"] .mobile-menu .sub-menu {
  padding-left: 0;
  padding-right: 15px;
}

[dir="rtl"] .mobile-menu .sub-menu a {
  padding-left: 10px;
  padding-right: 20px;
}

/* رسالة في حالة عدم وجود قائمة */
.no-menu-message {
  padding: 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

/* إضافة أيقونة للقوائم الفرعية في الموبايل */
.mobile-menu .dropdown-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
}

[dir="rtl"] .mobile-menu .dropdown-arrow {
  right: auto;
  left: 10px;
}

/* تحسين مظهر الروابط */
.mobile-menu a {
  position: relative;
  padding-right: 25px !important;
}

[dir="rtl"] .mobile-menu a {
  padding-right: 10px !important;
  padding-left: 25px !important;
}

/* =================================================
   SERVICES
================================================= */
.service-grid {
    row-gap: 30px;
}

.single-service-box {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: transform .3s ease;
}

.single-service-box:hover {
    transform: translateY(-6px);
}

/* ===============================
   ABOUT SITE SECTION (PREMIUM)
================================ */

.about-site {
    background: #fff;
    padding: 120px 0;
}

/* الشبكة */
.about-site .about-clean-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

/* الصورة */
.about-site .about-clean-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* المحتوى */
.about-site .about-clean-content {
    max-width: 520px;
}

/* الشارة الصغيرة */
.about-badge {
    display: inline-block;
    background: rgba(11,30,76,0.08);
    color: #0b1e4c;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* العنوان */
.about-site .about-clean-title {
    font-size: 38px;
    font-weight: 700;
    color: #0b1e4c;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* الفاصل */
.about-divider {
    width: 70px;
    height: 3px;
    background: #0b1e4c;
    margin-bottom: 22px;
}

/* النص */
.about-site .about-clean-text {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 991px) {
    .about-site .about-clean-row {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .about-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .about-site .about-clean-title {
        font-size: 28px;
    }
}

/* =================================================
   SERVICES GRID – RTL & LTR SUPPORT
================================================= */

.service-area {
    background: #f4f6f9;
}
/* الشبكة */
.service-grid {
    row-gap: 30px;
}

/* كرت الخدمة */
.single-service-box {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: transform .3s ease;
}

.single-service-box:hover {
    transform: translateY(-6px);
}

/* رابط الصورة */
.service-img-wrapper {
    position: relative;
    display: block;
    text-decoration: none;
}

/* الصورة */
.service-img-wrapper img {
    width: 400px;
	height:200px;
    display: block;
}

/* Overlay داكن أسفل الصورة */
.service-img-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.25),
        rgba(0,0,0,0)
    );
    z-index: 1;
    transition: .3s ease;
}

.single-service-box:hover .service-img-wrapper::after {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.35),
        rgba(0,0,0,0)
    );
}

/* عنوان الخدمة */
.service-title {
    position: absolute;
    bottom: 18px;
    z-index: 2;

    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;

    max-width: 85%;
}

/* =================================================
   LTR (English)
================================================= */
[dir="ltr"] .service-title {
    left: 18px;
    text-align: left;
}

/* =================================================
   RTL (Arabic)
================================================= */
[dir="rtl"] .service-title {
    right: 18px;
    text-align: right;
    direction: rtl;
}

/* =================================================
   RESPONSIVE
================================================= */
@media (max-width: 991px) {
    .service-title {
        font-size: 16px;
        bottom: 14px;
    }
	.service-img-wrapper img {
    width: 400px;
	height:200px;
    display: block;
}
}

/* Blog */
.latest-blog-area{
    background: #f4f6f9;
}
/* ===== About Section Layout ===== */
.about-clean-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* ===== Image Wrapper ===== */
.about-clean-image {
    flex: 0 0 58%;
    max-width: 58%;
}

/* ===== Image ===== */
.about-clean-image img.about-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* ===== Content ===== */
.about-clean-content {
    flex: 0 0 42%;
    max-width: 42%;
}

@media (min-width: 600px) {
  .service-img-wrapper img {
    width: 400px;
	height:200px;
    display: block;
}
}

@media (min-width: 768px) {
	.service-img-wrapper img {
    width: 400px;
	height:200px;
    display: block;
}
 
}

/* ================= LARGE SCREENS ================= */
@media (min-width: 1400px) {

    .about-clean-image {
        flex: 0 0 60%;
        max-width: 80%;
    }

    .about-clean-content {
        flex: 0 0 40%;
        max-width: 40%;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 991px) {

    .about-clean-row {
        flex-direction: column;
        gap: 30px;
    }

    .about-clean-image,
    .about-clean-content {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .about-clean-image img.about-img {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }
}

/* ================= MOBILE BRAND FIX ================= */

.mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.mobile-brand img {
    width: 32px;
    height: 32px;
    margin: 0 0 4px 0 !important;
}

.mobile-site-text {
    line-height: 1.2;
    max-width: 100%;
}

/* ================= MOBILE BRAND TEXT ================= */

.mobile-site-name {
    display: block;              /* سطر مستقل */
    color: #ffffff;              /* أبيض */
    font-size: 1.2em;
    font-weight: 700;            /* خط أثخن */
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-site-desc {
    display: block;              /* سطر مستقل */
    color: #ffffff;              /* أبيض */
    font-size: 1em;
    font-weight: 500;            /* أقل سماكة من العنوان */
    opacity: 0.85;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* تنسيق فريق العمل للاستجابة */
.single-team {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.single-team:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.team-image-wrapper {
    flex-shrink: 0;
}

.team-img {
    border: 3px solid #f8f9fa;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.team-content {
    padding-left: 20px;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.team-position {
    font-size: 1rem;
    font-weight: 500;
}

.team-social-link {
    margin-top: 15px;
}

.social-icon {
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* تنسيق الموبايل */
@media (max-width: 767.98px) {
    .single-team {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }
    
    .team-content {
        padding-left: 0;
        padding-top: 20px;
    }
    
    .team-image-wrapper {
        margin-bottom: 20px;
    }
    
    .team-img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .team-placeholder {
        width: 120px !important;
        height: 120px !important;
    }
    
    .team-name {
        font-size: 1.3rem;
    }
    
    .team-position {
        font-size: 0.9rem;
    }
    
    .social-icon {
        width: 35px !important;
        height: 35px !important;
    }
}

/* تنسيق الأجهزة اللوحية */
@media (min-width: 768px) and (max-width: 991.98px) {
    .single-team {
        flex-direction: column;
        text-align: center;
    }
    
    .team-content {
        padding-left: 0;
        padding-top: 20px;
    }
    
    .team-image-wrapper {
        margin-bottom: 20px;
        margin-right: 0;
    }
}