/*
Theme Name: aleuzlalamithl
Theme URI: https://example.com/
Author: S.E
Author URI: https://example.com/
Description: قالب ووردبريس مخصص لخدمات العزل والتنظيف.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aleuzlalamithl
*/

/* الخط الأساسي */
body {
  margin: 0;
  padding: 0;
  font-family: 'Cairo', sans-serif;
  background-color: #fff;
  direction: rtl;
}

/* الهيدر */
.main-header {
  background-color: #c62828;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
}

/* الشعار */
.logo {
  text-align: center;
  flex: 1;
}
.logo img {
  height: 50px;
  max-width: 100%;
}

/* زر الاتصال */
.contact-button {
  flex: 0 0 auto;
}

.contact-button {
  background-color: #ffc107;
  color: #000;
  border-radius: 5px;
  padding: 6px 10px;
  font-weight: bold;
  font-size: 12px;
  margin-right: 8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 32px; /* ⬅️ لتقليل ارتفاع الزر */
}

.contact-button a {
  color: inherit;
  text-decoration: none;
}


/* زر الهمبرجر */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  display: block;
}

/* القائمة */
.main-nav {
  background-color: #b71c1c;
}
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.nav-menu li {
  position: relative;
}
.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  display: block;
  transition: 0.3s;
}
.nav-menu li:hover > a {
  color: #ffd700;
}
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #b71c1c;
  border-radius: 5px;
  min-width: 180px;
  z-index: 9999;
}
.nav-menu li:hover .sub-menu {
  display: block;
}

/* للموبايل */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger {
    display: flex;
    order: 1;
    flex: 1;
  }

  .logo {
    order: 2;
    flex: 1;
    text-align: center;
  }

  .contact-button {
    order: 3;
    flex: 1;
    text-align: left;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #b71c1c;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .nav-menu .sub-menu {
    position: static;
    background: #a62828;
    margin-top: 5px;
  }

  .menu-item-has-children.open > .sub-menu {
    display: block !important;
  }
}
.close-btn {
  display: none;
  background: transparent;
  color: #fff;
  font-size: 24px;
  border: none;
  padding: 10px;
  margin: 0 10px;
  align-self: flex-end;
  cursor: pointer;
}

@media (max-width: 768px) {
  .close-btn {
    display: block;
  }
}


@media (min-width: 769px) {
  .main-nav {
    display: block !important;
  }

  .hamburger {
    display: none;
  }
}
/* باقي الأقسام العامة */
section {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.hero-content {
  text-align: center;
}

.why-list {
  list-style: none;
  padding: 0;
}

.why-list li {
  margin-bottom: 10px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 6px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-content: center;
}

.service-box {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-5px);
  background: #fff;
}

.service-box i {
  font-size: 40px;
  color: #c62828;
  margin-bottom: 15px;
  display: inline-block;
}

.testimonial-slider blockquote {
  background: #fff3f3;
  border-right: 5px solid #c62828;
  margin: 10px 0;
  padding: 20px;
  border-radius: 8px;
}

.works-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

.work-item {
  background: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 10px;
}

.work-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.work-item img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 2px solid #eee;
}

.work-item h3 {
  color: #c62828;
  font-size: 18px;
  margin: 10px 0 0;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  background: #eee;
  border: none;
  width: 100%;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

.faq-answer {
  display: none;
  padding: 10px;
  background: #fafafa;
  margin-top: 5px;
  border-radius: 5px;
}

.posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.post-box {
  background: #fdfdfd;
  padding: 15px;
  flex: 1;
  min-width: 250px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.site-footer {
  background: #c62828;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.floating-whatsapp,
.floating-call {
  position: fixed;
  bottom: 20px;
  width: 50px;
  height: 50px;
  z-index: 9999;
}

.floating-whatsapp {
  right: 20px;
}

.floating-call {
  left: 20px;
}

.floating-whatsapp img,
.floating-call img {
  width: 100%;
  height: auto;
}
.category-posts {
  padding: 40px 0;
  background: #f9f9f9;
}

.category-title {
  text-align: center;
  color: #c62828;
  margin-bottom: 30px;
  font-size: 28px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.post-box {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  padding: 10px;
}

.post-box:hover {
  transform: translateY(-5px);
}

.post-box a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.post-thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-title {
  font-size: 18px;
  color: #c62828;
  margin: 10px 0;
}

.post-excerpt {
  color: #444;
  font-size: 14px;
  line-height: 1.6;
}
.single-post {
  padding: 40px 20px;
  background: #fff;
  line-height: 1.8;
}

.single-post .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.single-title {
  font-size: 28px;
  color: #c62828;
  margin-bottom: 10px;
  text-align: center;
}

.post-meta {
  text-align: center;
  color: #888;
  margin-bottom: 20px;
  font-size: 14px;
}

.single-thumb img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.single-content {
  font-size: 16px;
  color: #333;
}

.single-content p {
  margin-bottom: 15px;
  text-align: justify;
  line-height: 1.7;
}

/* 🎯 تنسيق الموبايل */
@media (max-width: 768px) {
  /* تنسيق المقال الفردي */
  .single-post {
    padding: 15px 10px;
  }

  .single-post .container {
    padding: 0 10px;
  }

  .single-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 15px;
  }

  .post-meta {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .single-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
  }

  .single-content {
    font-size: 15px;
    line-height: 1.7;
    padding: 0 5px;
  }

  .single-content p {
    margin-bottom: 12px;
    text-align: justify;
  }

  .single-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 6px;
  }

  .single-content h2,
  .single-content h3 {
    font-size: 18px;
    margin: 20px 0 10px;
  }

  .single-content ul,
  .single-content ol {
    padding-right: 20px;

  body {
    overflow-x: hidden;
  }

  .category-posts,
  .posts-grid,
  .post-box {
    padding: 0 10px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .posts-grid {
    grid-template-columns: 1fr !important;
  }

  .post-box {
    width: 100%;
  }

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


  /* تنسيق شبكة المقالات (للتصنيفات) */
  .posts-grid {
    grid-template-columns: 1fr !important;
    padding: 0 10px;
  }

  .post-box {
    padding: 10px;
  }

  .post-title {
    font-size: 16px;
    margin: 8px 0;
  }

  .post-excerpt {
    font-size: 13px;
    line-height: 1.5;
  }
}
