body {
    direction: rtl;
    background-color: #fff;
    color: #333;
  }

  /* ديسكتوب: لون الروابط في النافبار */
  .nav-links li a:hover {
    color: #33A5A0 !important;
    border: none !important;
  }

  /* نفس استايل الليست على الشاشات الصغيرة مثل About (صفحة آخر الأخبار) */
  @media (max-width: 768px) {
    .hero .nav-links {
      display: none;
      flex-direction: column;
      flex-wrap: nowrap;
      width: 100%;
      order: 10;
      margin: 12px 0 0;
      padding: 12px 0;
      background-color: var(--navbar-bg);
      border-radius: 12px;
      box-shadow: 0 4px 16px var(--shadow-color);
      max-height: 70vh;
      overflow-y: auto;
      list-style: none;
      gap: 0;
    }

    .hero .nav-links.show {
      display: flex;
    }

    .hero .nav-links > li {
      margin: 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      width: 100%;
      display: block;
      flex-shrink: 0;
    }

    .hero .nav-links > li:last-child {
      border-bottom: none;
    }

    .hero .nav-links > li.dropdown {
      display: block;
      width: 100%;
    }

    .hero .nav-links li a,
    .hero .nav-links .dropbtn {
      display: block;
      padding: 14px 20px;
      color: var(--text-white) !important;
      text-decoration: none;
      font-weight: 500;
      width: 100%;
      text-align: right;
    }

    .hero .nav-links .dropbtn {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .hero .nav-links .dropbtn .dropbtn-text {
      flex: 1;
      text-align: right;
    }

    .hero .nav-links .dropbtn-icon {
      color: var(--text-white) !important;
      font-size: 0.85rem;
      margin-right: 8px;
      flex-shrink: 0;
      transition: transform 0.25s ease;
    }

    .hero .nav-links .dropdown.show .dropbtn-icon {
      transform: rotate(180deg);
    }

    .hero .nav-links .dropdown-content {
      position: static;
      box-shadow: none;
      background: rgba(255, 255, 255, 0.12);
      border-radius: 8px;
      margin: 4px 16px 12px;
      min-width: auto;
      display: none;
      padding: 4px 0;
      list-style: none;
    }

    .hero .nav-links .dropdown.show .dropdown-content {
      display: block;
    }

    .hero .nav-links .dropdown-content a {
      display: block;
      padding: 12px 20px;
      color: var(--text-white) !important;
      text-decoration: none;
      border-radius: 6px;
      margin: 2px 8px;
      transition: background 0.2s ease;
    }

    .hero .nav-links .dropdown-content a:hover {
      background: rgba(255, 255, 255, 0.15);
      color: var(--text-white) !important;
    }

    .hero .nav-links .dropdown-content a.active {
      background: rgba(31, 126, 119, 0.9);
      color: var(--text-white) !important;
    }
  }

  .custom-line {
    border: 0;
    height: 4px;
    background-color: rgba(51, 165, 160, 1);
    width: 80%;
    margin:10px auto;
    justify-content: center;
    align-items: center;
  }
.custom-news-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    padding: 40px 20px;
    flex-direction: column;
    gap: 40px;
    margin: 0 auto;
}

.custom-news-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding-bottom: 20px;
    width: 100%;
    max-height: 180px;
    overflow: hidden;
    border-bottom: 1px solid #ccc;
}

.custom-news-image {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.custom-news-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.custom-news-title {
    color: #0A3442;
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-news-description {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* عدد الأسطر المسموحة */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-news-link {
    color: #007c91;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    align-self: flex-start;
}


@media (max-width: 768px) {
    .custom-news-item {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .custom-news-image {
      width: 100%;
      height: auto;
    }

    .custom-news-text {
      text-align: center;
    }
  }


  .courses-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: var(--primary-bg);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow-color);
    margin: 40px auto 20px;
    max-width: 1300px;
    height: 140px;
    color: var(--text-white);
    text-align: center;
    margin-top: 45px;

  }

  .courses-header h2 {
    margin: 0;
    font-size: 2rem;
    color: white;
  }

  .custom-news-header {
    margin:  0 9% ;
    text-align: right;
    padding: 30px 20px;
    background-color: #ffffff;
  }

  .news-main-title {
    font-size: 28px;
    font-weight: bold;
    color: #0a3442;
    margin-bottom: 15px;
  }

  .news-subtext {
    display: flex;
    align-items: center;
    /* justify-content: flex-end; */
    gap: 10px;
    font-size: 20px;
    color: #007c91;
  }

  .arrow-icon {
    font-size: 24px;
    color: #007c91;
  }

  /* موبايل */
  @media (max-width: 600px) {
    .news-main-title {
      font-size: 22px;
      text-align: center;
    }

    .news-subtext {
      justify-content: center;
      font-size: 18px;
    }

    .arrow-icon {
      font-size: 20px;
    }
  }
