
    
    .py-5 {
      background: #eee;
      padding: 1.5rem;
    }
    /* کادر اصلی گالری */
    .gallery-box {
      background: #fff;
      border-radius: 20px;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
      padding: 30px;
    }

    .gallery-item {
      position: relative;
      overflow: hidden;
      border-radius: 15px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      height: 400px;
      /* ارتفاع ثابت برای همه کارت‌ها */
    }

    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      /* عکس رو کراپ میکنه تا داخل ارتفاع جا بشه */
      transition: transform 0.8s ease;
    }

    .gallery-item:hover img {
      transform: scale(1.1);
    }

    .overlay {
      position: absolute;
      top: 30px;
      right: 30px;
      bottom: 30px;
      left: 30px;
      background: rgba(0, 0, 0, 0.9);
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      opacity: 0;
      transition: opacity 0.6s ease;
      color: #fff;
      text-align: center;
      padding: 20px;
      border-radius: 12px;
    }

    .gallery-item:hover .overlay {
      opacity: 1;
    }

    .overlay h5 {
      margin-bottom: 10px;
      font-size: 1.1rem;
    }

    .overlay a {
      color: #3E4095;
      font-weight: bold;
      text-decoration: none;
      font-size: 1rem;
    }

    .overlay a:hover {
      text-decoration: underline;
    }

    /* استایل صفحه‌بندی */
    .pagination .page-link {
      border-radius: 50%;
      width: 38px;
      height: 38px;
      text-align: center;
      line-height: 36px;
      margin: 0 4px;
    }

    .pagination .active .page-link {
      background-color: #3E4095;
      border-color: #3E4095;
      color: #fff;
    }
  