
  /*==================== منوی بالا ====================*/
  .top-nav {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
    color: white;
    padding: 0 40px 0 40px;
    box-sizing: border-box;
    border-bottom: 1px solid hsla(0, 0%, 100%, .15);
     font-family: 'Shabnam', Tahoma, sans-serif;
  }
.logo {
   max-width: 80px;
}
  .nav-inner {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    gap: 40px;
    direction: rtl;
  }

  .logo {
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
  }

  .menu {
    list-style: none;
    display: flex;
    gap: 35px;
    margin-right: 20px;
  }

  .menu li {
    cursor: pointer;
    font-size: 17px;
    transition: opacity 0.3s;
  }

  .menu li:hover {
    opacity: 0.7;
  }


  /*==================== اسلایدر ====================*/
  .slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 450px;
  }

  /* کاور گرادیانی بالای اسلایدر */
  .slider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, rgba(127, 61, 151, 0.95), rgba(127, 61, 151, 0));
    z-index: 3;
    pointer-events: none;
  }

  .slides {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s ease, transform 1s ease;
  }

  .slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
  }

  .slide .image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: background-position: 50% 50%;
  }

  .caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 22px;
    color: white;
    text-shadow: 0 0 8px black;
    z-index: 4;
  }

  .controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    font-size: 35px;
    color: white;
    padding: 0 15px;
    cursor: pointer;
    user-select: none;
    z-index: 4;
  }

  /* ====== فلش‌های اسلایدر (اصلاح شده) ====== */
  .controls span {
    width: 40px;
   
    display: flex;
 
  }

  .prev {
    margin-left: 10px;
  }

  .next {
    margin-right: 10px;
  }