@font-face {
    font-family: "mikhak";
    src: url("../font/Mikhak-Medium.woff2");
    font-display: swap;
}
body {
    font-family: "mikhak";
    padding-top: 50px; 
}
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar-brand img {
    height: 40px;
    margin-left: 10px;
}
.navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-toggler {
        border-color: rgba(255,255,255,0.6);
        
      }
.img-post{
    background-image: url("../img/index\ .webp");
    background-size:100% 100%;
    background-repeat: no-repeat;
    width: 100%;
    height: 650px;
    
}
.head-posts{
    width: 100%;
    border: solid 1px;
    text-align: center;
    margin: 0px;
    margin-top: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 30PX;
}
.post-countiner{
    border-bottom: solid 1px;
}
  footer {
    font-family: "mikhak";
  }

  .footer-link {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .footer-link:hover {
    color: #fff;
    text-decoration: underline;
  }

  footer h5 {
    
    border-bottom: 2px solid #0d6efd;
    display: inline-block;
    padding-bottom: 5px;
  }
  .custom-pagination .page-link {
    color: #0d6efd;
    border: none;
    margin: 0 5px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }

  .custom-pagination .page-item.active .page-link {
    background-color: #0d6efd;
    color: #fff;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.5);
  }

  .custom-pagination .page-link:hover {
    background-color: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
  }

  .custom-pagination .page-item.disabled .page-link {
    color: #aaa;
    box-shadow: none;
  }
  .custom-box {
    width: 90%;
    background: #fff;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
  }

  .custom-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .box-header {
    background: #f8f9fa;
    border-bottom: 2px solid #0d6efd;
  }

  .share-btn {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
  }

  .share-btn:hover {
    background-color: #0d6efd;
  }

  .share-btn:hover i {
    color: #fff;
  }

  .box-content p {
    font-size: 1.1rem;
    line-height: 1.9;
  }
  .music-player {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
   
  }
section {
  scroll-margin-top: 100px; /* ارتفاع navbar + فاصله دلخواه */
}
  .music-player:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
    select#speedControl {
    cursor: pointer;
  }
  /* more */
    .more-text{
      margin-right: 10%;
      margin-bottom:50px;

    }
@media screen and (max-width: 545px) {
.img-post{
    height: 300px;

}
.more-text{
   margin-bottom:30px;
}
.index-text{
  font-size: 1.5rem !important; /* فونت کوچکتر برای موبایل */
}


}


/* برای کارت انتخاب نمونه سوال یا ویدیو */


.grade-links{
    margin-top:30px;
}

.grade-card{
    display:block;
    background:#fff;
    border-radius:22px;
    padding:35px 30px;
    text-align:center;
    color:#222;
    box-shadow:0 12px 35px rgba(0,0,0,.08);
    transition:.35s;
    height:100%;
    border:1px solid #f0f0f0;
}

.grade-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(0,0,0,.15);
}

.card-icon{
    width:80px;
    height:80px;
    margin:auto;
    border-radius:20px;
    background:linear-gradient(135deg,#0d6efd,#4dabff);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    color:#fff;
    margin-bottom:25px;
}

.card-icon.video{
    background:linear-gradient(135deg,#16a34a,#4ade80);
}

.grade-card h3{
    font-size:26px;
    font-weight:700;
    margin-bottom:15px;
}

.grade-card p{
    color:#666;
    line-height:2;
    min-height:70px;
}

.card-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:20px;
    color:#0d6efd;
    font-weight:700;
    transition:.3s;
}

.grade-card:hover .card-btn{
    gap:15px;
}

@media(max-width:768px){

    .grade-links{
        margin-top:10px;
    }

    .grade-card{
        padding:28px 22px;
    }

    .grade-card h3{
        font-size:22px;
    }

}
/* side bar filter */

.card {
    border-radius: 15px;
}

.form-check {
    margin-bottom: 10px;
}

#searchInput{
    border-radius:10px;
}

.sticky-top{
    z-index:100;
}