* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #0d0d1a;
    color: #e6e6e6;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background-color: #121223;
    padding: 1.5rem 1rem;
    overflow-y: auto;
  }
  
  .sidebar-menu {
    list-style: none;
    padding: 0;
  }
  
  .sidebar-menu li {
    margin: 1rem 0;
    padding: 1rem;
    color: #4da6ff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
  }
  
  .sidebar-menu li:hover {
    background-color: #1e1e2f;
    border-radius: 15px;
    transform: translateY(-5px);
  }
  
  .submenu {
    list-style: none;
    padding-left: 1rem;
    display: none;
    margin-top: 0.5rem;
  }
  
  .submenu li {
    padding: 0.5rem 1rem;
    background-color: #161627;
    margin: 0.3rem 0;
    border-radius: 8px;
    font-size: 1rem;
  }
  .sidebar-menu .submenu {
    display: none;
    opacity: 0;
    transition: opacity 0.9s ease;
  }
  
  .sidebar-menu .has-submenu:hover .submenu {
    display: block;
    opacity: 1;
  }
  
  .submenu li:hover {
    background-color: #22223a;
  }
  
  
  .has-submenu.active .submenu {
    display: block;
  }
  
  .content-wrapper {
    margin-left: 220px;
    width: calc(100% - 220px);
    
  }
  
  .navbar {
   
    padding: 1rem;
    font-size: 1.5rem;
    color: #4da6ff;
    justify-content: space-between;
    display: flex;
    align-items: center;
  }
  .top-subnav {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: flex-end;
  }
  
  .top-subnav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 2rem;
  }
  
  .top-subnav li {
    color: #4da6ff;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .top-subnav li:hover {
    transform: translateY(-3px);
    color: #ffffff;}
  
  .slider {
    box-shadow: 2px 2px 3px black;
    border: 1.5rem;
    border-radius: 20px;
    margin-left: 1.6rem;
    position: relative;
    height: 400px;
    overflow: hidden;
  }
  
  .slide {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  .slide.active {
    opacity: 1;
    z-index: 1;
  }
  
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 0;
  }
  
  .slide-text {
    position: relative;
    max-width: 40%;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
    color: #ffffff;
  }
  
  .slide-text h2 {
    font-size: 2rem;
    color: #4da6ff;
    margin-bottom: 0.5rem;
  }
  
  .slide-text p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .title-content {
    justify-content: center;
    align-items: center;
    display: flex;
    margin-top: 1.4rem;
    font-size: 2rem;
    color: #4da6ff;
    padding: 0.5rem;
    border-radius: 120px;
  }
  
  .scroll-wrapper {
    overflow: hidden;
    position: relative;
    padding: 1rem;
  }
  
  .scroll-content {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: infinite-scroll 20s linear infinite;
  }
  
  .scroll-wrapper:hover .scroll-content {
    animation-play-state: paused;
  }
  a:visited {
    color: transparent;
  }
  
  .book-card {
    text-decoration: none;
    flex: 0 0 auto;
    width: 200px;
    background-color: #1a1a2b;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
  }
  
  .book-card:hover {
    transform: translateY(-10px);
  }
  .dashbord{
    text-decoration: none;
  }
  .book-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  
  @keyframes infinite-scroll {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-50%);
    }
  }
   
  
  
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
    }
  
    .sidebar {
      position: static;
      width: 100%;
      height: auto;
      text-align: center;
    }
  
    .content-wrapper {
      margin-left: 0;
      width: 100%;
    }
  
    .main-content {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
  
    .slide-text {
      max-width: 90%;
      padding: 1rem;
    }
  }
  .authors-section {
    margin: 1.5rem;
    padding: 1rem;

    
  }
  
  .authors-title {
    text-align: center;
    font-size: 2rem;
    color: #4da6ff;
    margin-bottom: 1.5rem;
  }
  
  .authors-slider {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
  }
  
  .author-card {
    box-shadow: 3px 3px 3px black;
    flex: 0 0 25%;
    background-color: #1a1a2b;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    color: white;
    transition: transform 0.3s;
    margin: 0.5rem;
  }
  
  .author-card:hover {
    transform: translateY(-5px);
    box-shadow: 3px 3px 10px black;
    
  }
  
  .author-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid #4da6ff;
  }
  .author-card:hover img {
    border: 2px solid #a37acc;
    transition: border 0.1s ease-out;
  }
  
  .author-card h3 {
    margin: 0.5rem 0 0.3rem;
    font-size: 1.1rem;
    color: #4da6ff;
  }
  
  .author-card p {
    font-size: 0.9rem;
    color: #ccc;
  }
  .logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem;

  }

  
  .site-logo {
    height: 120px;
    width: auto;
    transition: all 3s;
  }
  .new{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
.right{
  display: flex;
  justify-content: center;
  align-items: center;
}
.left{
  display: flex;
  justify-content: center;
  align-items: center;
}
@keyframes scroll-vertical-text {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

@keyframes scroll-vertical-images {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

.vertical-news-ticker {
  height: 16rem;
  overflow: hidden;
  position: relative;
}

.vertical-track {
  display: flex;
  flex-direction: column;
  animation: scroll-vertical-text 25s linear infinite;
}

.vertical-track:hover {
  animation-play-state: paused;
}

.news-item {
  padding: 0.75rem 1rem;
  white-space: nowrap;
  height: 2.5rem;
}
@keyframes scroll-vertical-images {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.vertical-image-ticker {
  overflow: hidden;
  position: relative;
  height: 450px; /* 3 images x 150px */
}

.vertical-track-img {
  display: flex;
  flex-direction: column;
  animation: scroll-vertical-images 30s linear infinite;
}

.vertical-track-img:hover {
  animation-play-state: paused;
}

.image-item {
  height: 360px;
  overflow: hidden;
  text-align: center;
  flex-shrink: 0;
}

.image-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  margin-top: 20px;
}

.caption {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
.second{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.sec-right{
  display: flex;
  justify-content: center;
  align-items: center;
}
.sex-left{
  display: flex;
  justify-content: center;
  align-items: center;
}
.news{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.T{
  font-size: 2rem;
}
  @import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative&family=Indie+Flower&family=Satisfy&family=UnifrakturCook&display=swap');

  .fantasy-slider-section {
    width: 98%;
    height: 600px;
    overflow: hidden;
    margin-top: 3rem;
    border-radius: 12px;
    position: relative;
    margin-bottom: 1.5rem;
    margin-left: 1rem;
    margin-right: 1.5rem;
  }
  
  .fantasy-slider {
    width: 100%;
    height: 100%;
    position: relative;
  }
  
  .fantasy-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 2rem;
    box-sizing: border-box;
  }
  
  .fantasy-slide.active {
    opacity: 1;
    z-index: 2;
  }
  
  .slide-caption {
    color: #fff;
    font-size: 1.5rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    max-width: 300px;
    text-align: right;
    background: rgba(0,0,0,0.4);
    padding: 1rem;
    border-radius: 10px;
  }
  .read-now {
    background: #ffcc00;
    border: none;
    padding: 10px 20px;
    color: #000;
    font-weight: bold;
    font-family: 'Georgia', serif;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
  }
  
  .read-now:hover {
    background: #ffaa00;
  }
  .pricing-section {
    padding: 60px 20px;
    background: #1e1e2f;
    text-align: center;
    margin: 1.5rem;
    border-radius: 20px;
  }
  
  .pricing-title {
    font-size: 36px;
    font-family: 'Georgia', serif;
    margin-bottom: 40px;
    color: #4da6ff;
  }
  
  .pricing-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  
  .pricing-card {
    background: #2c2c3e;
    border-radius: 16px;
    width: 300px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
  }
  
  .pricing-card:hover {
    transform: translateY(-8px);
  }
  
  .plan-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
  }

  .pricing-card h3 {
    font-size: 24px;
    color: #e0e0ff;
    margin-bottom: 20px;
  }
  
  .features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
  }
  
  .features-list li {
    margin: 12px 0;
    font-size: 15px;
    color: #cccccc;
  }
  
  .features-list i {
    color: #a37acc;
    margin-right: 10px;
  }
  .dragon-icon:hover path {
    fill: crimson;
    transition: fill 0.3s ease;
  }
  .dragon-icon {
    color: gray;
    transition: color 0.3s ease;
  }
  
  .dragon-icon:hover {
    color: crimson;
  }
 
  
  .pricing-btn {
    background: #4da6ff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .pricing-btn:hover {
    background: #8e66b8;
  }
  .icon-text{
    margin-top: 1rem;
    font-size: 20px;
  }
  .icon-text:hover{
    color: #4da6ff;
  }
  .top-users {
    padding: 4rem 2rem;
    background-color: #2c2c3e;
    color: white;
    margin: 1.5rem;
    border-radius: 20px;
  }
  
  .section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #4da6ff;
  }
  
  .top-users-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 1rem;
  }
  
  .user-card {
    grid-column: span 4;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: transform 2ms ease;
  }
  
  .user-card:hover {
    transform: scale(1.03);
  }
  
  .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    transition: transform 0.3s ease
  }
  .user-card:hover .profile-pic {
    transform: scale(2);
    transition: transform 0.3s ease;
  }
  
  .user-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
  }
  
  .user-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #aaa;
  }
  .footer-section {
    background-color: #22223a;
    color: #ccc;
    padding: 2rem;
    font-family: sans-serif;
    border-radius: 20px;
    margin: 1.2rem;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .footer-left,
  .footer-right {
    flex: 1;
    min-width: 250px;
    margin: 1rem;
  }
  
  .footer-left h3,
  .footer-right h3 {
    color: #fff;
    margin-bottom: 1rem;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }
  
  .contact-item i {
    margin-right: 0.5rem;
    color: #4da6ff;
    font-size: 1.2rem;
  }
  
  .footer-right p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0.4rem 0;
  }
  .bi{
    transition: all.2s;
  }
  .bi:hover{
color: white;
  }
  @media (max-width: 768px) {
    .new,
    .logo-title,
    .top-subnav ul {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
   
    .navbar {
      display: none !important;
    }
  
  
    .top-subnav ul {
      gap: 1rem;
    }
  
    .site-logo {
      height: 60px;
    }
  
    .title-content {
      font-size: 1.2rem;
      padding: 0.4rem;
    }
  
    /* اسلایدر */
    .slider {
      height: 250px;
    }
  
    .slide-text h2 {
      font-size: 1.2rem;
    }
  
    .slide-text p {
      font-size: 0.9rem;
    }
  
    .slide-text {
      padding: 0.5rem;
      max-width: 95%;
    }
  
    /* کارت کتاب‌ها */
    .scroll-content {
      gap: 0.5rem;
      padding-left: 0.5rem;
    }
  
    .book-card {
      width: 140px;
      padding: 0.5rem;
    }
  
    .book-card img {
      height: 180px;
    }
  
    .book-card h3 {
      font-size: 1rem;
    }
  
    .book-card p {
      font-size: 0.8rem;
    }
  
    /* بخش نویسنده‌ها */
    .authors-slider {
      gap: 0.5rem;
      overflow-x: auto;
    }
  
    .author-card {
      flex: 0 0 70%;
      padding: 0.8rem;
    }
  
    .author-card img {
      width: 80px;
      height: 80px;
    }
  
    .author-card h3 {
      font-size: 1rem;
    }
  
    .author-card p {
      font-size: 0.8rem;
    }
  
    /* اسلایدر فانتزی */
    .fantasy-slider-section {
      height: 300px;
      margin-left: 0.5rem;
      margin-right: 0.5rem;
    }
  
    .slide-caption {
      font-size: 1rem;
      padding: 0.5rem;
      max-width: 80%;
    }
  
    .read-now {
      font-size: 0.8rem;
      padding: 6px 12px;
    }
  
    /* پلن قیمت‌ها */
    .pricing-cards {
      flex-direction: column;
      align-items: center;
    }
  
    .pricing-card {
      width: 90%;
      padding: 1rem;
    }
  
    .pricing-card h3 {
      font-size: 1.2rem;
    }
  
    .features-list li {
      font-size: 0.9rem;
    }
  
    .icon-text {
      font-size: 0.9rem;
    }
  
    /* کاربران برتر */
    .top-users-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.5rem;
    }
  
    .user-card {
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 0.5rem;
    }
  
    .user-card .profile-pic {
      width: 50px;
      height: 50px;
      margin-bottom: 0.3rem;
      margin-right: 0;
    }
  
    .user-info h4 {
      font-size: 0.9rem;
    }
  
    .user-info p {
      font-size: 0.7rem;
    }
  
    /* فوتر */
    .footer-container {
      flex-direction: column;
      text-align: center;
    }
  
    .footer-left,
    .footer-right {
      margin: 1rem 0;
    }
  
    .contact-item {
      justify-content: center;
    }
  }
.r{
  padding: 6px;
  background-color: #2c2c3e;
  border-radius: 50%;
  transition: all 0.5s;
}
.r:hover{
  padding: 10px;
}
.login{
  border-radius: 30%;
  padding: 17px;
  transition: all 0.3s;
  text-decoration: none;
}
.login:hover{
  
  
  background-color: #2c2c3e;
  
}
