/*
Theme Name: Madkour
Theme URI: https://example.com
Author: Madkour
Author URI: https://example.com
Description: قالب ووردبريس مخصص من الصفر
Version: 1.0
Text Domain: madkour
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: #fff;
  color: #222;
}

/* ===== Header ===== */
.site-header {
  width: 100%;
  padding: 18px 0;
  border-bottom: 1px solid #f1f1f1;
}

.container {
  width: 90%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  width: 45px;
}

.logo span {
  font-size: 20px;
  font-weight: 800;
  color: #0a6b4f;
}

/* Nav */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-nav a {
  text-decoration: none;
  color: #0a6b4f;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: 0.3s;
}

.main-nav .current-menu-item a,
.main-nav a:hover {
  background: #0a6b4f;
  color: #fff;
}

/* Icons */
.header-icons {
  display: flex;
  gap: 10px;
}

.header-icons .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef6f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a6b4f;
  cursor: pointer;
  transition: 0.3s;
}

.header-icons .icon:hover {
  background: #0a6b4f;
  color: #fff;
}

.header-icons .search {
  background: #0a6b4f;
  color: #fff;
}


/* ===== Header Enhancements ===== */

.site-header {
  height: 80px;
  display: flex;
  align-items: center;
}

.container {
  max-width: 1200px;
}

/* Logo تحسين */
.logo img {
  width: 48px;
}

.logo span {
  font-size: 22px;
  letter-spacing: 0.3px;
}

/* Nav تحسين */
.main-nav ul {
  align-items: center;
}

.main-nav a {
  font-size: 15px;
  padding: 8px 18px;
}

.main-nav .current-menu-item a {
  box-shadow: 0 6px 18px rgba(10,107,79,0.25);
}

/* Icons تحسين */
.header-icons {
  align-items: center;
}

.header-icons .icon {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.header-icons .search {
  box-shadow: 0 6px 18px rgba(10,107,79,0.35);
}


/* ===== Dropdown Menu ===== */

/* خلي العنصر الرئيسي نسبي */
.main-nav li {
  position: relative;
}

/* القايمة الفرعية */
.main-nav ul ul {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  min-width: 220px;
  padding: 10px 0;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s ease;
  z-index: 999;
}

/* عناصر القايمة الفرعية */
.main-nav ul ul li {
  width: 100%;
}

/* روابط القايمة الفرعية */
.main-nav ul ul a {
  padding: 10px 18px;
  font-size: 14px;
  color: #0a6b4f;
  border-radius: 0;
  display: block;
}

/* hover */
.main-nav li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover على عناصر الفرعي */
.main-nav ul ul a:hover {
  background: #eef6f3;
  color: #0a6b4f;
}

/* منع تلوين العنصر الرئيسي */
.main-nav ul ul .current-menu-item a {
  background: transparent;
  color: #0a6b4f;
}

.custom-logo {
  width: auto;
}

/* ===== Fix Logo Alignment ===== */

.logo a {
  display: flex;
  align-items: center;
  height: 100%;
}

.custom-logo {
  display: block;
  max-height: 100%;
  height: auto;
}

/* تأكيد محاذاة الهيدر */
.site-header {
  align-items: center;
}

/* ===== Site Name & Logo ===== */

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-name {
  font-size: 20px;
  font-weight: 800;
}

.site-desc {
  font-size: 12px;
  color: #777;
}


/* =========================
   Hero Section
========================= */

.hero {
  background: linear-gradient(135deg, #0a6b4f, #0e8b66);
  padding: 80px 0;
  overflow: hidden;
}

.hero-container {
  max-width: 1320px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  color: #fff;
  max-width: 600px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary {
  background: #fff;
  color: #0a6b4f;
}

.btn-primary:hover {
  background: #f1f1f1;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #0a6b4f;
}

/* Image */
.hero-image img {
  max-width: 520px;
  width: 100%;
  display: block;
}

/* =========================
   Hero Animations
========================= */

/* الحالة الابتدائية */
.hero-content,
.hero-image {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

/* لما الهيرو يظهر */
.hero.show .hero-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.hero.show .hero-image {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* أنيميشن للأزرار */
.hero-buttons .btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* =========================
   Hero Responsive (Mobile)
========================= */

@media (max-width: 991px) {

  .hero {
    padding: 60px 0;
    text-align: center;
  }

  .hero-container {
    flex-direction: column;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-image img {
    max-width: 380px;
    margin: 30px auto 0;
  }
}

@media (max-width: 480px) {

  .hero {
    padding: 50px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   Scroll Reveal Animation
========================= */

/* الحالة الابتدائية */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* لما يظهر */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* تأخيرات مختلفة */
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* =========================
   Mobile Menu
========================= */

/* زر الهامبرجر */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 26px;
  height: 3px;
  background: #0a6b4f;
  border-radius: 2px;
  transition: 0.3s;
}

/* موبايل */
@media (max-width: 991px) {

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    padding: 80px 20px;
    transition: 0.4s ease;
    z-index: 999;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .main-nav a {
    padding: 12px 15px;
    border-radius: 10px;
  }

  .main-nav.active {
    right: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* إخفاء أيقونات الهيدر على الموبايل (اختياري) */
  .header-icons {
    display: none;
  }
}

/* أنيميشن زر الهامبرجر */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   Features Section
========================= */

.features-section {
  padding: 90px 0;
  background: #f7f9f8;
}

.features-container {
  max-width: 1320px;
  margin: auto;
  padding: 0 20px;
}

/* عنوان السكشن */
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #0a6b4f;
  margin-bottom: 10px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: #0a6b4f;
  margin-bottom: 15px;
}

.section-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

/* الشبكة */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* الكارت */
.feature-box {
  background: #fff;
  padding: 40px 30px;
  border-radius: 22px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.1);
}

/* الأيقونة */
.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a6b4f, #0e8b66);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
}

/* النص */
.feature-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.feature-box p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 991px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }
}
/* Counters */
.counters {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 70px;
}

.counter-box {
  text-align: center;
}

.counter {
  font-size: 42px;
  font-weight: 800;
  color: #0a6b4f;
}

.counter-box p {
  margin-top: 5px;
  font-size: 15px;
  color: #555;
}

@media (max-width: 767px) {
  .counters {
    flex-direction: column;
    gap: 30px;
  }
}

/* =========================
   Latest Posts Section
========================= */

.latest-posts-section {
  padding: 90px 0;
  background: #fff;
}

.latest-posts-container {
  max-width: 1320px;
  margin: auto;
  padding: 0 20px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* كرت المقال */
.post-card {
  background: #f9fbfa;
  border-radius: 22px;
  overflow: hidden;
  transition: 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

/* الصورة */
.post-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* المحتوى */
.post-content {
  padding: 25px;
}

.post-date {
  font-size: 13px;
  color: #0a6b4f;
  font-weight: 600;
}

.post-title {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0;
}

.post-title a {
  color: #222;
  text-decoration: none;
}

.post-excerpt {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: #0a6b4f;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 991px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Post Cards (Luxury Style)
========================= */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* الكرت */
.post-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 55px rgba(0,0,0,0.12);
}

/* الصورة */
.post-thumb {
  position: relative;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.08);
}

/* المحتوى */
.post-content {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* التاريخ */
.post-date {
  font-size: 13px;
  font-weight: 600;
  color: #0a6b4f;
  margin-bottom: 8px;
}

/* العنوان */
.post-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
}

.post-title a {
  color: #222;
  text-decoration: none;
}

.post-title a:hover {
  color: #0a6b4f;
}

/* الوصف */
.post-excerpt {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* اقرأ المزيد */
.read-more {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: #0a6b4f;
  text-decoration: none;
  position: relative;
}

.read-more::after {
  content: "→";
  margin-right: 6px;
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(-5px);
}

/* =========================
   Responsive (Tablet)
========================= */
@media (max-width: 991px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-thumb img {
    height: 210px;
  }
}

/* =========================
   Responsive (Mobile)
========================= */
@media (max-width: 575px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    border-radius: 18px;
  }

  .post-thumb img {
    height: 200px;
  }

  .post-title {
    font-size: 18px;
  }

  .post-excerpt {
    font-size: 14px;
  }
}

.post-card {
  border-radius: 22px;
  background: #fff;
  border-bottom: 5px solid #0a6b4f;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.post-card {
  border-radius: 22px;
  border: 1.5px solid rgba(10, 107, 79, 0.15);
  background: #fff;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.05),
    inset 0 0 0 1px rgba(255,255,255,0.6);
}

/* =========================
   Read More Button (Luxury)
========================= */

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  color: #0a6b4f;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: rgba(10, 107, 79, 0.08);
  transition: all 0.4s ease;
}

/* السهم */
.read-more::after {
  content: "→";
  font-size: 16px;
  transition: transform 0.35s ease;
}

/* خلفية متحركة */
.read-more::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a6b4f, #0e8b66);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
  z-index: -1;
  border-radius: 30px;
}

/* Hover */
.post-card:hover .read-more {
  color: #fff;
}

.post-card:hover .read-more::before {
  transform: scaleX(1);
}

.post-card:hover .read-more::after {
  transform: translateX(-6px);
}

/* Focus (Accessibility) */
.read-more:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10,107,79,0.25);
}

.read-more {
  border: 2px solid #0a6b4f;
  background: transparent;
}
/* =========================
   Post Title & Excerpt Colors
========================= */

/* عنوان المقال */
.post-title a {
  color: #0a6b4f; /* اللون الرسمي */
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #087a5a; /* درجة أغمق عند hover */
}

/* المقتطف (الوصف تحت العنوان) */
.post-excerpt {
  color: #000000; /* أسود صريح */
}

/* إخفاء تاريخ المقال */
.post-date {
  display: none !important;
}

/* =========================
   Section Head Card (Luxury)
========================= */

.section-head {
  position: relative;
  max-width: 820px;
  margin: 0 auto 60px;
  padding: 28px 34px;
  background: #ffffff;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
  border: 1.5px solid rgba(10,107,79,0.15);
}

/* خط زخرفي علوي */
.section-head::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: 90px;
  height: 5px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(135deg, #0a6b4f, #0e8b66);
}

/* العنوان */
.section-head .section-title {
  margin-top: 10px;
}

/* الوصف */
.section-head .section-desc {
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 575px) {
  .section-head {
    padding: 22px 20px;
    border-radius: 18px;
  }
}

/* =========================
   Services Section (Luxury)
========================= */

.services-section {
  padding: 100px 0;
  background: #eef7f4;
}

.services-container {
  max-width: 1300px;
  margin: auto;
  padding: 0 20px;
}

/* العنوان */
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 70px;
  gap: 40px;
}

.services-subtitle {
  max-width: 520px;
  color: #333;
  line-height: 1.9;
  font-size: 16px;
}

.services-title {
  color: #0a6b4f;
  font-size: 36px;
  font-weight: 800;
}

/* الكروت */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.service-card {
  position: relative;
  background: linear-gradient(160deg, #3aa56f, #0a6b4f);
  border-radius: 40px;
  padding: 80px 30px 40px;
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  overflow: hidden;
}

/* الانحناءة العلوية */
.service-card::before {
  content: "";
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 110px;
  background: #eef7f4;
  border-radius: 0 0 80px 80px;
}

/* الأيقونة */
.service-icon {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background: #eef7f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  font-size: 28px;
  color: #0a6b4f;
}

/* النص */
.service-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.9;
  opacity: 0.95;
}

/* ظل سفلي */
.service-card::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 16px;
  background: rgba(0,0,0,0.25);
  filter: blur(14px);
  border-radius: 50%;
  z-index: -1;
}

/* Hover */
.service-card:hover {
  transform: translateY(-8px);
  transition: 0.4s ease;
}

/* =========================
   Responsive
========================= */

@media (max-width: 991px) {
  .services-head {
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-title {
    font-size: 28px;
  }
}

.service-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
}

.service-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =========================
   Service Icon Fix
========================= */

.service-icon {
  width: 72px;
  height: 72px;
  background: #eef7f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* مهم */
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
}

/* الأيقونة نفسها */
.service-icon i {
  font-size: 32px;      /* حجم ثابت */
  line-height: 1;
  color: #0a6b4f;
}

/* =========================
   Icon Shine Effect
========================= */

.service-icon::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -120%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255,255,255,0.7) 50%,
    transparent 60%
  );
  transform: rotate(25deg);
  opacity: 0;
}

/* Hover */
.service-card:hover .service-icon::after {
  animation: iconShine 0.9s ease forwards;
}

@keyframes iconShine {
  0% {
    opacity: 0;
    transform: translateX(-100%) rotate(25deg);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(100%) rotate(25deg);
  }
}
/* =========================
   FIX ICON CUT PROBLEM
========================= */

/* الكارت نفسه */
.service-card {
  position: relative;
  overflow: visible; /* مهم جدًا */
}

/* الفتحة البيضاء */
.service-card::before {
  z-index: 1;
}

/* الأيقونة */
.service-icon {
  position: absolute;
  top: -42px;              /* نطلعها لفوق */
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 76px;
  background: #eef7f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;              /* فوق كل حاجة */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* الأيقونة نفسها */
.service-icon i {
  font-size: 34px;
  line-height: 1;
  color: #0a6b4f;
}
/* =========================
   ICON SHINE EFFECT
========================= */

.service-icon::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -120%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255,255,255,0.8) 50%,
    transparent 60%
  );
  transform: rotate(25deg);
  opacity: 0;
}

.service-card:hover .service-icon::after {
  animation: iconShine 0.9s ease forwards;
}

@keyframes iconShine {
  0% {
    opacity: 0;
    transform: translateX(-120%) rotate(25deg);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(120%) rotate(25deg);
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
}

.areas-section {
  padding: 80px 0;
  background: #f7f9f8;
}

.areas-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.areas-head {
  text-align: center;
  margin-bottom: 50px;
}

.areas-title {
  font-size: 36px;
  color: #0a6b4f;
}

.areas-desc {
  color: #555;
  margin-top: 10px;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.area-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: 0.4s;
  border: 2px solid #e6f0ec;
}

.area-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.6), transparent);
  transform: translateX(-100%);
  transition: 0.6s;
}

.area-card:hover::before {
  transform: translateX(100%);
}

.area-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.area-icon {
  display: inline-flex;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #eef7f4;
  color: #0a6b4f;
  font-size: 26px;
  margin-bottom: 15px;
}

.area-card h3 {
  font-size: 18px;
}

.areas-title {
  text-align: center;
  margin-bottom: 15px;
}

.areas-title-bg {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 40px;
  font-size: 36px;
  font-weight: 800;
  background: var(--areas-title-bg, #eef7f4);
  color: var(--areas-title-color, #0a6b4f);
  position: relative;
}

/* لمسة فخامة خفيفة */
.areas-title-bg::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 40px;
  border: 1px dashed rgba(255,255,255,.6);
  pointer-events: none;
}

.testimonials-section {
  padding: 90px 0;
  background: #ffffff;
}

.testimonials-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.testimonials-head {
  text-align: center;
  margin-bottom: 50px;
}

.testimonials-title {
  font-size: 36px;
  color: #0a6b4f;
  margin-bottom: 10px;
}

.testimonials-desc {
  color: #555;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.testimonial-card {
  background: #f7f9f8;
  border-radius: 20px;
  padding: 35px 25px;
  position: relative;
  transition: .4s;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: -20px;
  right: 25px;
  font-size: 80px;
  color: #0a6b4f;
  opacity: .12;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

.testimonial-stars {
  color: #ffc107;
  margin-bottom: 15px;
}

.testimonial-text {
  color: #333;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-name {
  font-weight: 700;
  color: #0a6b4f;
}

.testimonials-title {
  text-align: center;
  margin-bottom: 15px;
}

.testimonials-title-bg {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 36px;
  font-weight: 800;
  background: var(--testimonials-title-bg, #eef7f4);
  color: var(--testimonials-title-color, #0a6b4f);
  position: relative;
}

/* لمسة فخامة خفيفة */
.testimonials-title-bg::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50px;
  border: 1px dashed rgba(255,255,255,0.6);
  pointer-events: none;
}

.faq-section {
  padding: 90px 0;
  background: #f7f9f8;
}

.faq-container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
}

.faq-head {
  text-align: center;
  margin-bottom: 45px;
}

.faq-title-bg {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 36px;
  font-weight: 800;
  background: #eef7f4;
  color: #0a6b4f;
  position: relative;
}

.faq-desc {
  margin-top: 12px;
  color: #555;
}

/* ===== FAQ Item ===== */
.faq-item {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 2px solid #e6f0ec;
  transition: .3s;
}

.faq-item.active {
  box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: #0a6b4f;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question i {
  transition: .3s;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  padding: 0 25px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 25px;
}

.faq-answer p {
  color: #333;
  line-height: 1.7;
}
.faq-section {
  direction: rtl;
  text-align: right;
}

.faq-question {
  text-align: right;
}

.faq-question i {
  margin-right: auto;
  margin-left: 0;
}

.faq-answer p {
  text-align: right;
}

/* =========================
   FAQ Section - Tajawal Bold Answer
========================= */

.faq-section,
.faq-section * {
  font-family: 'Tajawal', sans-serif;
}

/* السؤال */
.faq-question {
  font-weight: 700; /* تقيل لكن مش زيادة */
  font-size: 18px;
}

/* الإجابة */
.faq-answer {
  font-weight: 800; /* تقيل */
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.faq-item.active .faq-answer {
  font-weight: 800;
  animation: fadeFaq 0.4s ease-in-out;
}

@keyframes fadeFaq {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-section {
  padding: 80px 20px;
  font-family: 'Tajawal', sans-serif;
}

.faq-section .section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: 800;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  font-weight: 700;
  cursor: pointer;
}

.faq-answer {
  font-weight: 800;
  line-height: 1.9;
}

/* =========================
   Footer Style
========================= */

.site-footer {
  background: #0a6b4f;
  padding: 70px 0 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Shape Divider */
.site-footer::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: 160px;
  background: #0a6b4f;
  border-radius: 0 0 50% 50%;
}

/* Container */
.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 2;
}

/* Footer Head */
.footer-head {
  text-align: center;
  margin-bottom: 50px;
}

.footer-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 15px;
  opacity: 0.85;
}

/* Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Block */
.footer-block {
  background: rgba(255,255,255,0.08);
  padding: 25px;
  border-radius: 16px;
  transition: 0.3s ease;
}

.footer-block:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.12);
}

.footer-block h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-block-content {
  font-size: 14px;
  line-height: 1.9;
  color: #e9f5f1;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 18px 0;
  font-size: 14px;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-title {
    font-size: 22px;
  }

  .footer-grid {
    gap: 20px;
  }
}

/* Footer Action Buttons */
.footer-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 40px 0 20px;
  flex-wrap: wrap;
}

.footer-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: 0.35s ease;
}

.footer-action i {
  font-size: 20px;
}

/* WhatsApp */
.footer-action.whatsapp {
  background: #25D366;
}

.footer-action.whatsapp:hover {
  box-shadow: 0 0 25px rgba(37,211,102,0.6);
  transform: translateY(-4px);
}

/* Phone */
.footer-action.phone {
  background: #0a6b4f;
}

.footer-action.phone:hover {
  box-shadow: 0 0 25px rgba(10,107,79,0.6);
  transform: translateY(-4px);
}

/* Mobile */
@media (max-width: 480px) {
  .footer-action {
    width: 100%;
    justify-content: center;
  }
}


/* Footer Buttons */
.footer-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.footer-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--footer-btn-text);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.footer-action::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: 0.3s;
}

.footer-action:hover::after {
  opacity: 1;
}

.footer-action:hover {
  transform: translateY(-4px);
}

/* WhatsApp */
.footer-action.whatsapp {
  background: var(--footer-whatsapp-bg);
  box-shadow: 0 8px 25px rgba(37,211,102,0.45);
}

/* Phone */
.footer-action.phone {
  background: var(--footer-phone-bg);
  box-shadow: 0 8px 25px rgba(10,107,79,0.45);
}

/* Icons */
.footer-action i {
  font-size: 20px;
}

/* Mobile */
@media (max-width: 480px) {
  .footer-action {
    width: 100%;
    justify-content: center;
  }
}
.header-icons a {
    text-decoration: none;
}

.top-search-bar {
  display: none;
  background: #fff;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.top-search-bar.active {
  display: block;
}

/* إزالة الخط تحت الأيقونات */
.header-icons a {
  text-decoration: none;
  color: inherit;
}

.site-header {
  position: relative;
}

/* بار البحث */
.top-search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  padding: 20px 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.35s ease;
  z-index: 999;
}

.top-search-bar.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.top-search-bar .search-form {
  max-width: 700px;
  margin: auto;
}

.top-search-bar input[type="search"] {
  width: 100%;
  padding: 14px 20px;
  border-radius: 30px;
  border: 1px solid #ddd;
  font-size: 16px;
  outline: none;
}

.top-search-bar input[type="search"]:focus {
  border-color: #0b7d5c;
  box-shadow: 0 0 0 3px rgba(11,125,92,0.15);
}

/* إزالة الخط من الأيقونات */
.header-icons a {
  text-decoration: none;
  color: inherit;
}

.top-search-bar input[type="search"] {
  font-family: 'Tajawal', sans-serif;
}
.top-search-bar input::placeholder {
  font-family: 'Tajawal', sans-serif;
}

/* ===== CTA علوي ===== */
.blog-hero-cta {
  background: linear-gradient(135deg, #0b7d5c, #13a37a);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.blog-hero-cta h1 {
  font-size: 38px;
  margin-bottom: 15px;
}

.blog-hero-cta p {
  font-size: 18px;
  max-width: 700px;
  margin: auto;
}

.hero-cta-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 36px;
  background: #fff;
  color: #0b7d5c;
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.hero-cta-btn:hover {
  transform: translateY(-3px);
}

/* ===== Grid ===== */
.blog-cards {
  padding: 70px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* ===== الكارت ===== */
.blog-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transform: translateY(40px);
  opacity: 0;
  transition: 0.6s ease;
}

.blog-card.show {
  transform: translateY(0);
  opacity: 1;
}

.blog-thumb {
  position: relative;
  display: block;
}

.blog-thumb img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.blog-thumb .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
}

.blog-info {
  padding: 25px;
}

.blog-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.blog-info p {
  font-size: 14px;
  color: #666;
}

.card-btn {
  display: inline-block;
  margin-top: 15px;
  color: #0b7d5c;
  font-weight: 700;
  text-decoration: none;
}


.blog-card .card-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, #0b7d5c, #13a37a);
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(11,125,92,0.35);
  transition: all 0.35s ease;
}

.blog-card .card-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11,125,92,0.45);
}

.blog-card .card-btn::after {
  content: "➜";
  margin-right: 8px;
  transition: transform 0.35s ease;
}

.blog-card .card-btn:hover::after {
  transform: translateX(-6px);
}

/* ===== زر اقرأ المقال (نهائي بدون خط في النص) ===== */
.blog-card .card-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 30px;
  border-radius: 50px;
  background: linear-gradient(135deg, #0b7d5c, #13a37a);
  color: #ffffff;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(11,125,92,0.35);
  transition: color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  z-index: 1;
}

/* الطبقة البيضاء */
.blog-card .card-btn::before,
.blog-card .card-btn::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  background: #ffffff;
  z-index: -1;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}

/* الطبقة اليمين */
.blog-card .card-btn::before {
  left: 0;
  width: 50%;
  transform: scaleX(0);
  transform-origin: right;
}

/* الطبقة الشمال */
.blog-card .card-btn::after {
  right: 0;
  width: 50%;
  transform: scaleX(0);
  transform-origin: left;
}

/* Hover */
.blog-card .card-btn:hover {
  color: #0b7d5c;
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11,125,92,0.45);
}

.blog-card .card-btn:hover::before,
.blog-card .card-btn:hover::after {
  transform: scaleX(1.05); /* تغطية كاملة بدون أي خط */
}

/* ===== Pagination ===== */
.blog-pagination {
  margin-top: 50px;
  text-align: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin: 0 5px;
  border-radius: 50%;
  background: #f1f1f1;
  color: #333;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.blog-pagination .page-numbers:hover {
  background: #0b7d5c;
  color: #fff;
}

.blog-pagination .page-numbers.current {
  background: linear-gradient(135deg, #0b7d5c, #13a37a);
  color: #fff;
}

/* ======================================
   SINGLE POST – CLEAN & PRO (FINAL)
====================================== */

.single-post-page {
  padding: 50px 0;
  background: #fafafa;
  direction: rtl;
  font-family: 'Tajawal', sans-serif;
}

.single-post-page .container {
  max-width: 1180px;
  margin: auto;
  padding: 0 20px;
}

/* Layout */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: flex-start;
}

/* Article */
.single-post-content {
  background: #fff;
  padding: 36px 34px;
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.single-title {
  font-size: 28px;
  color: #0b7d5c;
  margin-bottom: 10px;
}

.single-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 22px;
}

.single-thumb img {
  width: 100%;
  border-radius: 22px;
  margin-bottom: 28px;
}

/* Content */
.single-content {
  max-width: 760px;
  margin: auto;
  font-size: 16.5px;
  line-height: 2;
  color: #333;
  transition: font-size 0.3s ease;
}

.single-content h2,
.single-content h3 {
  color: #0b7d5c;
  margin: 34px 0 14px;
}

/* ===== TOC ===== */
.toc-box {
  background: #f7f9f8;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 30px;
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toc-header h4 {
  margin: 0;
  font-size: 17px;
  color: #0b7d5c;
}

/* Arrow button */
.toc-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toc-toggle:hover {
  background: rgba(11,125,92,0.1);
}

.toc-toggle::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #0b7d5c;
  border-bottom: 2px solid #0b7d5c;
  transform: rotate(45deg);
  transition: transform 0.35s ease;
}

.toc-collapsed .toc-toggle::before {
  transform: rotate(-135deg);
}

#toc-list {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.toc-collapsed #toc-list {
  max-height: 0;
  opacity: 0;
}

#toc-list li {
  margin-bottom: 10px;
}

#toc-list li.sub {
  padding-right: 14px;
}

#toc-list a {
  text-decoration: none;
  font-size: 14px;
  color: #333;
}

#toc-list a:hover {
  color: #0b7d5c;
}

/* Sidebar */
.single-sidebar {
  background: #fff;
  padding: 22px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  position: sticky;
  top: 120px;
}

.single-sidebar h3 {
  text-align: center;
  font-size: 17px;
  margin-bottom: 18px;
  color: #0b7d5c;
}

.sidebar-post {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  text-decoration: none;
  color: #000;
}

.sidebar-post img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.sidebar-title {
  font-size: 13.5px;
  font-weight: 700;
}

.sidebar-post small {
  font-size: 11.5px;
  color: #888;
}

/* Responsive */
@media (max-width: 992px) {
  .single-layout {
    grid-template-columns: 1fr;
  }

  .single-sidebar {
    position: static;
    margin-top: 30px;
  }

  .single-content {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .single-post-content {
    padding: 24px 18px;
  }

  .single-title {
    font-size: 22px;
  }

  .single-content {
    font-size: 15.5px;
    line-height: 1.9;
  }
}

.blog-hero-cta {
  position: relative;
  overflow: hidden;
}

.blog-hero-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 125, 92, 0.75); /* تحكم في الشفافية */
  z-index: 1;
}

.blog-hero-cta .container {
  position: relative;
  z-index: 2;
}

.service-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  background: #123c34;
  color: #fff;
  padding: 25px;
  border-radius: 20px;
  width: 320px;
  text-align: center;
  position: relative;
}

.popup-box h3 {
  margin: 10px 0;
  font-size: 22px;
}

.popup-box p {
  margin-bottom: 20px;
  opacity: .9;
}

.popup-actions {
  display: flex;
  gap: 10px;
}

.popup-actions .btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

.popup-actions .whatsapp {
  background: #25D366;
}

.popup-actions .call {
  background: #0b2e28;
}

.popup-close {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}
