/* استایل دکمه و پنل Prebuilts */

#prebuilts-btn {
  position: fixed;
  top: 30%;
  width: 50px;
  height: 50px;
  right: 20px;
  background: white;
  color: #000;
  padding: 0 ;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-family: sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none !important;
  border: none !important;
}

#prebuilts-btn:hover {
  background: #e0c091 ;
  color: #fff;
  transform: scale(1.05);
}

#prebuilts-panel {
  position: fixed;
  top:10%;
  left: 50%; 
  right: -100%;
  width: 80%;
  max-width: 800px;
  height: 80vh;
  background: #fff;
  box-shadow: -3px 0 15px rgba(0,0,0,0.1);
  padding: 20px;
  overflow-y: auto;
  border-radius: 10px;  /* گوشه پنل */
  transition: right 0.4s ease;
  z-index: 9998;
}

#prebuilts-panel.active {
  
  border-radius: 10px;  /* گوشه پنل */
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  right: auto;             /* حذف right:0 */
  left: 50%;
  transform: translateX(-50%);
}

#prebuilts-close {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
}

#prebuilts-panel h2 {
  font-family: sans-serif;
  font-size: 22px;
  margin: 20px 0;
  border-bottom: 2px solid #00b16a;
  padding-bottom: 5px;
}

.prebuilt-post {
  display: inline-block ;
  width: calc(33.333% - 20px); /* سه تا در یک ردیف */
  box-sizing: border-box;      /* شامل padding و border */
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin: 5px;
  vertical-align: top;
  border-bottom: none;                /* حذف خط زیر هر پست */
  padding-bottom: 0;
}

.prebuilt-post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 15px;
  transition: transform 0.3s ease;
}
.prebuilt-post:hover img {
  transform: scale(1.05);
} 

.prebuilt-post h4,
.prebuilt-post div {
  display: none; /* مخفی کردن عنوان و متن */
}  

.prebuilt-post a {
  color: #00b16a;
  text-decoration: none;
}

@media (max-width: 768px) {
  #prebuilts-panel {
    width: 90%;
  }
  #prebuilts-btn {
    right: 10px;
  }
}


  
  

