/* کادر عنوان */
.title-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(135deg, #e0f7da, #a5d6a7);
    border-radius: 12px;
    padding: 5px 10px;
    margin: 5px 0 20px;  /* افزایش فاصله از پایین به 20px */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.title-box h1 {
    flex: 1;
    text-align: right;
    direction: rtl;
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    color: #2a6d4e;
}

.title-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 10px;
}

/* کادر توضیحات */
.description-box {
    background: linear-gradient(135deg, #fffde7, #ffecb3);
    border-radius: 12px;
    padding: 2px 10px;
    margin: 2px 0 20px;  /* افزایش فاصله از پایین به 20px */
    text-align: justify;
    direction: rtl;
    font-size: 17px;
    line-height: 1.5;
    color: #4a4a4a;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

/* بخش توضیحات تخصصی (استفاده از سبک description-box) */
.expert-description-section h2 {
    text-align: right;
    direction: rtl;
    margin-top: 20px;
    font-size: 22px;
    color: #2a6d4e;
}

/* گالری تصاویر و ویدئوها: نمایش از سمت راست به چپ */
.list3 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.5em;
    background-color: rgba(235, 245, 251, 0.7);
    border-radius: 8px;
    scroll-snap-type: x mandatory;
    direction: rtl;
}

/* آیتم‌های گالری */
.item3 {
    flex: 0 0 200px;
    margin-left: 0.5em;
    position: relative;
    background-color: rgba(255, 255, 255, 0.4);
    scroll-snap-align: start;
    border-radius: 8px;
    padding: 0.5em;
}

.item3 img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* تنظیم اندازه ویدئوهای گالری عمودی */
.vertical-video-gallery-section .list3 .item3 video {
    width: 200px;
    height: 330px;         /* افزایش ارتفاع به 280px */
    max-width: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* تنظیم آیکون داخل لینک عنوان (برای تصاویر و ویدئوها) */
.itemTitle3 a img {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
        float: left;

}

/* کلاس اختصاصی برای آیکون‌های ویدئو جهت ثابت نگه داشتن اندازه */
.video-icon {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
}

.itemTitle3 {
    text-align: right;
    font-size: 16px;
    color: #000;
    margin-top: 5px;
}

/* آیکون و Tooltip اطلاعات */
.info-icon {
    position: absolute;
    bottom: 15%;
    right: 5%;
    background-color: rgba(187, 143, 206, 0.6);
    /*background-color: rgba(144, 238, 144, 0.6);*/
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
}

.info-tooltip {
    display: none;
    position: absolute;
    bottom: 25%;
    right: 5%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    padding: 5px;
    max-width: 150px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    font-size: 12px;
    border-radius: 5px;
    text-align: justify;
    direction: rtl;
}

.info-tooltip.show {
    display: block;
}

/* جدول مراجع */
.references-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: sans-serif;
    font-size: 14px;
    direction: rtl;
    text-align: right;
}

.references-table th, 
.references-table td {
    padding: 4px 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.references-table th {
    background-color: #f4f4f4;
}

.references-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.references-table tr:hover {
    background-color: #f1f1f1;
}

.references-heading {
    text-align: right;
    direction: rtl;
    margin-top: 30px;
}

/* واکنشگرا */
@media (max-width: 600px) {
    .item3 {
        flex: 0 0 180px;
    }
    .info-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
        bottom: 20%;
        right: 10%;
    }
    .info-tooltip {
        bottom: 30%;
        right: 15%;
        padding: 5px;
        font-size: 10px;
    }
}

/* کادر عنوان بخش کدهای HTML در انتهای صفحه */
.html-codes-title {
    text-align: right;     /* عنوان به صورت راست‌چین */
    margin-bottom: 10px;    /* فاصله بین عنوان و کادر */
    font-size: 22px;
    color: #2a6d4e;
}

.html-codes-container {
    border: 1px solid #ccc;  /* اضافه کردن کادر */
    padding: 15px;           /* فاصله داخلی */
    border-radius: 5px;
    background-color: #f8f9fa;
}

                                                                                              		/* منو ثابت */
.navbar {
     display: flex; flex-wrap: wrap; flex-direction: row; justify-content: space-around;
  overflow: hidden;
  background-color: rgba(72, 201, 176, 0.8);
  position: fixed; /* Set the navbar to fixed position */
  bottom: 0; /* Position the navbar at the top of the page */
  width: 94%; /* Full width */ 
  border-radius: 5px;
z-index: 10;
padding: 5px;
font-weight: 700;
}
/* Links inside the navbar */
.navbar a {color: #f2f2f2;   text-decoration: none; }
/* Change background on mouse-over */
.navbar a:hover { background: #ddd; color: black;}
