
.header,.logo i,.nav-link:hover {
    color:#fff
}
.content-title::after,.nav-link::after {
    content:'';
    bottom:0;
    position:absolute;
    right:0
}
.back-btn,.nav-link,.read-link {
    text-decoration:none
}
:root {
    --primary-color:#0e0e11;
    --secondary-color:#000000;
    --accent-color:#000000;
    --light-color:#f8f9ff;
    --dark-color:#1a1a2e;
    --text-color:#101013;
    --gray-color:#1a1a1f;
    --border-radius:16px;
    --box-shadow:0 12px 24px rgba(0,0,0,0.08);
    --transition:all 0.3s ease-in-out;
    --section-gap:80px
}
.nav-link,.nav-link::after {
    transition:var(--transition)
}
* {
    margin:0;
    padding:0;
    box-sizing:border-box
}
body {
    font-family:Tajawal,sans-serif;
    background-color:#fff;
    color:var(--text-color);
    line-height:1.8;
    scroll-behavior:smooth
}
.container {
    margin:0 auto;
    padding:0 30px
}
.header {
    background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));
    padding:25px 0;
    position:sticky;
    top:0;
    z-index:100
}
.header-content {
    display:flex;
    justify-content:space-between;
    align-items:center
}
.logo {
    font-size:24px;
    font-weight:800;
    display:flex;
    align-items:center;
    gap:10px
}
.author-section,.nav-links {
    gap:30px;
    display:flex
}
.author-stat i,.highlight-text::before,.meta-item i {
    color:var(--primary-color)
}
.nav-link {
    color:rgba(255,255,255,.9);
    font-weight:500;
    padding:5px 0;
    position:relative
}
.nav-link::after {
    width:0;
    height:2px;
    background:#fff
}
.nav-link:hover::after {
    width:100%;
    left:0
}
.main-content {
    padding:60px 0;
    position:relative
}
.article {
    background:#fff;
    border-radius:var(--border-radius);
    overflow:hidden;
    margin-bottom:var(--section-gap)
}
.author-section {
    align-items:center;
    padding:40px;
    border-bottom:1px solid rgba(0,0,0,.05)
}
.author-avatar {
    width:100px;
    height:100px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid rgba(255,255,255,.2);
    box-shadow:0 8px 20px rgba(0,0,0,.1)
}
.article-image,.card-image {
    width:100%;
    object-fit:cover
}
.author-info {
    flex:1
}
.author-name {
    font-size:22px;
    font-weight:800;
    color:var(--dark-color);
    margin-bottom:5px
}
.author-bio {
    color:var(--gray-color);
    font-size:15px;
    margin-bottom:15px
}
.author-stats {
    display:flex;
    gap:25px
}
.author-stat {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    color:var(--gray-color)
}
.author-stat i {
    width:18px;
    text-align:center
}
.article-header {
    padding:0 40px;
    margin:40px 0
}
.article-title {
    font-size:42px;
    font-weight:800;
    line-height:1.4;
    color:var(--dark-color);
    margin-bottom:25px
}
.article-meta {
    display:flex;
    flex-wrap:wrap;
    gap:25px;
    margin-bottom:10px
}
.meta-item {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:15px;
    color:var(--gray-color)
}
.article-image-container {
    margin:40px 0;
    position:relative
}
.article-image {
    justify-content:center;
    align-items:center;
    max-height:400px;
    border-radius:12px;
    display:block
}
.image-caption {
    text-align:center;
    margin-top:15px;
    font-size:14px;
    color:var(--gray-color);
    font-style:italic
}
.content-title,.highlight-text {
    color:var(--dark-color);
    position:relative
}
.article-content {
    padding:0 40px
}
.content-section {
    margin-bottom:50px
}
.content-title {
    font-size:28px;
    font-weight:700;
    margin-bottom:25px;
    padding-bottom:15px
}
.content-title::after {
    width:100px;
    height:3px;
    background:linear-gradient(to right,var(--primary-color),var(--accent-color));
    border-radius:3px
}
.content-text {
    font-size:18px;
    line-height:2;
    margin-bottom:25px
}
.content-text:last-child {
    margin-bottom:0
}
.highlight-box {
    background:var(--light-color);
    border-right:4px solid var(--primary-color);
    padding:25px;
    border-radius:0 12px 12px 0;
    margin:35px 0
}
.highlight-text {
    font-size:18px;
    line-height:1.9;
    padding-right:25px
}
.action-btn,.article-tag {
    background:var(--light-color);
    font-weight:600;
    color:#000;
    transition:var(--transition)
}
.highlight-text::before {
    content:'\f10d';
    font-family:'Font Awesome 6 Free';
    font-weight:900;
    position:absolute;
    right:0;
    top:-10px;
    opacity:.3;
    font-size:24px
}
.content-list {
    margin:20px 0;
    padding-right:20px
}
.content-list li {
    margin-bottom:15px;
    position:relative;
    padding-right:30px
}
.content-list li::before {
    content:'';
    position:absolute;
    right:0;
    top:11px;
    width:12px;
    height:12px;
    background:var(--primary-color);
    border-radius:50%
}
.article-tags {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin:50px 0;
    padding-top:30px;
    border-top:1px solid rgba(0,0,0,.05)
}
.article-tag {
    padding:8px 18px;
    border-radius:50px;
    font-size:14px;
    border:1px solid rgba(16,16,17,.2)
}
.article-tag:hover {
    background:#000;
    color:#fff;
    transform:translateY(-2px)
}
.article-footer {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:30px 40px;
    border-top:1px solid rgba(0,0,0,.05)
}
.article-actions {
    display:flex;
    gap:15px
}
.action-btn {
    display:flex;
    align-items:center;
    gap:8px;
    border:1px solid rgba(16,16,17,.2);
    border-radius:25px;
    padding:10px 18px;
    font-size:15px;
    cursor:pointer
}
.action-btn:hover {
    background:rgba(0,0,0,.2);
    transform:translateY(-2px)
}
.action-btn i {
    font-size:16px
}
.like-btn.active {
    background:rgba(255,71,87,.1);
    color:#ff4757
}
.bookmark-btn.active {
    background:rgba(46,213,115,.1);
    color:#2ed573
}
.share-btn:hover {
    background:rgba(255,165,2,.1);
    color:#ffa502
}
.back-btn {
    background:#000;
    color:#fff;
    padding:8px 10px;
    border-radius:20px;
    font-weight:50;
    display:inline-block;
    transition:var(--transition)
}
.article-card,.newsletter-section {
    border-radius:var(--border-radius)
}
.back-btn:hover {
    transform:translateY(-3px);
    box-shadow:0 8px 25px rgba(71,70,82,.5)
}
.recommended-section {
    margin-bottom:var(--section-gap)
}
.section-title {
    font-size:28px;
    font-weight:800;
    color:var(--dark-color);
    margin-bottom:40px;
    display:flex;
    align-items:center;
    gap:15px
}
.section-title::after {
    content:'';
    flex:1;
    height:2px;
    background:linear-gradient(to left,var(--primary-color),transparent)
}
.articles-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:30px
}
.article-card {
    background:#fff;
    overflow:hidden;
    box-shadow:0 8px 30px rgba(0,0,0,.05);
    transition:var(--transition)
}
.article-card:hover {
    transform:translateY(-10px);
    box-shadow:0 15px 40px rgba(0,0,0,.1)
}
.card-image {
    height:200px
}
.card-content {
    padding:25px
}
.card-title {
    font-size:18px;
    font-weight:700;
    margin-bottom:15px;
    line-height:1.5;
    color:var(--dark-color)
}
.card-meta {
    display:flex;
    justify-content:space-between;
    color:var(--gray-color);
    font-size:13px;
    margin-bottom:15px
}
.card-excerpt {
    font-size:15px;
    color:var(--text-color);
    line-height:1.7;
    margin-bottom:20px
}
.read-link {
    color:var(--primary-color);
    font-weight:600;
    display:inline-flex;
    align-items:center;
    gap:8px;
    transition:var(--transition)
}
.read-link:hover {
    color:var(--secondary-color);
    gap:12px
}
.newsletter-section {
    background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));
    padding:60px;
    color:#fff;
    margin-bottom:var(--section-gap)
}
.newsletter-content {
    max-width:700px;
    margin:0 auto;
    text-align:center
}
.newsletter-title {
    font-size:28px;
    font-weight:800;
    margin-bottom:20px
}
.newsletter-text {
    font-size:16px;
    margin-bottom:30px;
    opacity:.9;
    line-height:1.7
}
.newsletter-form {
    display:flex;
    max-width:500px;
    margin:0 auto
}
.newsletter-input {
    flex:1;
    padding:15px 20px;
    border:none;
    border-radius:8px 0 0 8px;
    font-family:inherit;
    font-size:16px
}
.newsletter-button {
    background:var(--dark-color);
    color:#fff;
    border:none;
    padding:0 25px;
    border-radius:0 8px 8px 0;
    font-weight:600;
    cursor:pointer;
    transition:var(--transition)
}
.newsletter-button:hover {
    background:#0f0f1f
}
.thank-you-note {
    text-align:center;
    margin-top:100px;
    padding:30px;
    background:linear-gradient(135deg,#3498db,#32da78d2);
    border-radius:35px;
    color:#fff
}
.thank-you-note h3 {
    font-size:2rem;
    margin-bottom:15px;
    color:#fff
}
.thank-you-note p {
    font-size:1.1rem;
    max-width:800px;
    margin:0 auto;
    color:#fff
}
@keyframes fadeInUp {
    from {
        opacity:0;
        transform:translateY(30px)
    }
    to {
        opacity:1;
        transform:translateY(0)
    }
}
.fade-in {
    animation:.8s forwards fadeInUp
}
@media (max-width:992px) {
    .article-title {
        font-size:36px
    }
    .author-section {
        flex-direction:column;
        text-align:center
    }
    .author-avatar {
        margin-bottom:20px
    }
    .author-stats {
        justify-content:center
    }
}
@media (max-width:768px) {
    :root {
        --section-gap:60px
    }
    .article-footer,.header-content {
        flex-direction:column;
        gap:20px
    }
    .nav-links {
        gap:20px
    }
    .article-content,.article-header,.author-section {
        padding:30px
    }
    .article-title {
        font-size:30px
    }
    .content-title {
        font-size:24px
    }
    .article-actions {
        width:100%;
        justify-content:center;
        flex-wrap:wrap
    }
    .newsletter-section {
        padding:40px 30px
    }
    .newsletter-form {
        flex-direction:column
    }
    .newsletter-button,.newsletter-input {
        width:100%;
        border-radius:8px
    }
    .newsletter-button {
        margin-top:15px;
        padding:15px
    }
}
@media (max-width:576px) {
    .article-title {
        font-size:26px
    }
    .article-meta {
        flex-direction:column;
        gap:15px
    }
    .article-content {
        padding:25px
    }
    .content-text {
        font-size:16px
    }
}


/* === النافبار الرئيسي === */
#navbar {
   background-color: white;
   position: fixed;
   top: 0;
   width: 100%;
   z-index: 1000;
 }

 .navbar-container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 20px;
   display: flex;
   justify-content: space-between; /* توزيع العناصر بين اللوجو والقائمة */
   align-items: center; /* تأكد من ان اللوجو والقائمة في نفس السطر */
 }

 .navbar-header {
   display: flex;
   justify-content: flex-start;
   align-items: center;
   padding: 15px 0;
   width: 100%; /* التأكد أن النافبار بالكامل في نفس السطر */
 }

 /* تكبير اللوجو وإضافة الأنميشن */
 .navbar-logo {
   display: flex;
   align-items: center;
   text-decoration: none;
   color: black;
   font-weight: 700;
   font-size: 1.8rem; /* زيادة حجم اللوجو */
   margin-right: 15px; /* المسافة بين الأيقونة واللوجو */
   white-space: nowrap; /* منع الكلمة من الانكسار */
   animation: pulse 2.5s infinite; /* الأنميشن */
 }

 /* الأيقونة داخل اللوجو */
 .navbar-logo i {
   color: #000000da;
   font-size: 1.8rem;
 }

 /* الأنميشن الخاص بالنبض */
 @keyframes pulse {
   0% {
     transform: scale(1);
   }
   50% {
     transform: scale(1.1); /* التكبير */
   }
   100% {
     transform: scale(1); /* العودة للحجم الطبيعي */
   }
 }

 .navbar-toggle {
   background: none;
   border: none;
   font-size: 1.5rem;
   color: black;
   cursor: pointer;
   display: none;
 }

 .navbar-menu {
   display: flex;
   justify-content: flex-end;
   width: auto; /* تأكد أن القائمة في نفس السطر مع اللوجو */
 }

 .navbar-list {
   display: flex;
   list-style: none;
   margin: 0;
   padding: 0;
   white-space: nowrap; /* منع تكسر النصوص في العناصر */
 }

 .navbar-list li {
   margin-left: 25px;
   white-space: nowrap; /* منع تكسر النصوص في العناصر */
 }

 .navbar-list a {
   text-decoration: none;
   color: black;
   font-weight: 500;
   padding: 10px 0;
   display: block;
   position: relative;
 }

 .navbar-list a:hover {
   color: #000;
 }

 .navbar-list a::after {
   content: '';
   position: absolute;
   bottom: 0;
   right: 0;
   width: 0;
   height: 2px;
   background-color: #000;
   transition: width 0.3s ease;
 }

 .navbar-list a:hover::after {
   width: 100%;
 }

 /* === استايل الجوال === */
 @media (max-width: 768px) {
   .navbar-toggle {
     display: block;
   }

   .navbar-menu {
     display: block;
     position: fixed;
     top: 0;
     right: -250px; /* القائمة تبدأ من اليمين */
     width: 250px;
     height: 100%;
     background-color: #fff;
     border-left: 1px solid hsl(0, 0%, 100%);
     transition: right 0.3s ease;
     padding-top: 60px;
     flex-direction: column;
   }

   .navbar-menu.active {
     right: 0; /* القائمة تخرج من اليمين */
   }

   .navbar-list {
     flex-direction: column;
   }

   .navbar-list li {
     margin: 0;
     padding: 8px 20px;
     border-bottom: 1px solid #ffffff;
   }

   .navbar-list li:hover {
     background-color: #faf7f7;
   }

   /* إخفاء الخطوط تحت العناصر في الجوال */
   .navbar-list a::after {
     content: none; /* إخفاء الخط اللي تحت النص */
   }

   .navbar-header {
     justify-content: space-between;
   }

   .navbar-logo {
     font-size: 1.8rem;
   }
 }
 
 .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    background-color: #000000; /* خلفية سوداء */
    color: #ffffff; /* نص أبيض */
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    border-radius: 15px; /* زوايا مدورة */
    transition: all 0.3s ease;
    border: 2px solid transparent; /* حد ناعم */
    gap: 8px; /* مسافة بين الأيقونة والنص */
}

.cta-button:hover {
    background-color: #333333; /* لون أفتح قليلاً عند التحويم */
    transform: translateY(-2px); /* تأثير رفع خفيف */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* ظل خفيف */
}

.cta-button:active {
    transform: translateY(0); /* إزالة الرفع عند الضغط */
}



.call-button {
      position: fixed;
      left: 25px; /* تحديد المسافة من الجهة اليسرى */
      bottom: 25px; /* تحديد المسافة من الأسفل */
      width: 55px;
      height: 55px;
      background-color: #000000; /* لون الزر أسود */
      border-radius: 50%; /* التأكد من شكل الزر دائري */
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 999999;
      cursor: pointer;
    }

    /* تنسيق الأيقونة داخل الزر */
    .call-button img {
      width: 25px; /* عرض الأيقونة */
      height: 25px; /* ارتفاع الأيقونة */
    }