/*
Theme Name: HealthSystemKMS
Author: Amirali Chegini
Description:سامانه ملی مدیریت دانش نظام سلامت
Version: 1.0
*/
@font-face {
    font-family: "Vazir";
    src: url("./Font/Vazir.eot");
    /* IE9 Compat Modes */
    src: url("./Font/Vazir.eot?#iefix") format("embedded-opentype"),
        url("./Font/Vazir.woff2") format("woff2"),
        url("./Font/Vazir.woff") format("woff"),
        url("./Font/Vazir.ttf") format("truetype");
    /* Safari, Android, iOS */
}

a {
    text-decoration: none;
}

.bg-greenlight {
    background-color: #48bf9d;
}

.btn-greenlight {
    background-color: #48bf9d;
    border: none;
    color: #fff;
	text-align:center;
	margin:20px 0;
	padding:10px;
	width:100%
}

.bg-green {
    background-color: #017969;
    color: #fff
}
.green{
	color: #017969;
}
.greenlight {
    color: #48bf9d;
}

.white {
    color: #FFF
}

.bi {
    line-height: 0.5;
}

body,
a,
h3,
h4 {
    font-family: "Vazir" !important;
  
}
a:hover{
  color: #48bf9d ;
}
.side-slide.active h5:hover{
	 color: #fff !important;
}
.card-body h5 a{
	 font-size: 1.1rem!important;
	 color: #48bf9d !important;
	line-height: 1.8;
}
.card-body h5 a:hover{
	 color: #017969 !important;
}
.card-text {
	    text-align: justify;
	line-height: 1.7;
}
.navbar-nav .current-menu-item > a,
.navbar-nav .current_page_item > a,
.navbar-nav .active > a {
color:#017969 !important;
}
.card-title{
	padding-top:20px;
	color:#333;
	Font-size:1.1rem;
}
.card-title:hover{
	color:#017969;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(72, 191, 157, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(72, 191, 157, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(72, 191, 157, 0);
  }
}

.bg-greenlight:hover {
  animation: pulse 1.5s infinite;
}



h1,
h2,
h3,
h4,
h5 {
    font-weight: bold;
}

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active,.btn-outline-primary {
    background-color: #48bf9d !important;
    border: none !important;
    color: #fff !important;
}
.btn-outline-primary:hover {
    background-color: #017969 !important;
    border: none !important;
    color: #fff !important;
}

.title {
    text-align: center;
    border-bottom: 4px solid;
    border-color: #017767;

}
.nav-link{
    font-weight: bolder;
    font-size: 1rem;
}
.nav-link:hover{
color: #48bf9d !important;
}
.footer .nav-link{
	color:#fff!important;
	font-weight:normal!important;
		padding:10px 0 !important
}
.footer a:hover{
  color: #48bf9d !important;
}
header {

    background-color: #017969;
    background-image: url(./img/Pattern-header.png);
    background-repeat: repeat-x;
    background-position: top;
}

.navbar .border-bottom {

    box-shadow: #000 0px 4px 16px !important;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(72, 191, 157, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(72, 191, 157, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(72, 191, 157, 0);
  }
}

.navbar-nav > li:last-child > a {
  background-color: #48bf9d;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: bold;
  animation: pulse 2s infinite;
  transition: transform 0.3s ease;
}

.imgleft{
	    max-width: 114px;

}

.card {
    border: none
}

.botimg{
    width: 220px;
	 height: auto;
}
.chat-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.chat-box {
  border-radius: 30px;
  padding: 10px;
  width: 100%;
  resize: none;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  font-family: inherit;
  box-sizing: border-box;
}

/* نوک تیز پایین سمت چپ */
.chat-tail {
  position: absolute;
  top: -19px;         /* به جای bottom */
  right: 30px;         /* محل افقی فلش */
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-bottom-color: #f0f0f0; /* به جای border-top-color */

}
announcement a {
    color: #333;
}

announcement img {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px
}

announcement a:hover {
    color: #48bf9d;
}

news a {
    color: #333;
}

news img {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px
}

news a:hover {
    color: #48bf9d;
}

.Knowledge img {
    margin: 0 auto !important;
}
.accordion-button:not(.collapsed){
	background-color:#48bf9d !important
}
main h1{
	font-size:1.5rem;
	line-height:2
}
.custom-post-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.title-sliderbox {
    padding: 5px;
    font-size: 16px;
    background-color: #48bf9d;
    text-align: center;
    color: #ffffff;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.7;
	height: 65px;
}
.post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.post-info {
  flex: 1;
  margin-right: 15px;
}

.post-title {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.post-title a {
  text-decoration: none;
  color: inherit;
	display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.7;
}

.post-date {
  font-size: 13px;
  color: #777;
}

.breadcrumb {
  font-size: 14px;
  margin-bottom: 20px;
}
.breadcrumb a {
  color: #0073aa;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.single-post{
position: relative;
    min-height: 300px;
    height: auto;
    box-shadow: rgba(136, 136, 136, 0.37) 0px 2px 4px 0px;
    background: rgb(255, 255, 255);
    padding: 15px;
    margin: 0px;
	border: 1px solid rgb(224, 224, 224);
}

.post-content{
	line-height:2.5;
	padding: 15px;
	  flex: 1;
  min-width: 250px;
}

.h_iframe-aparat_embed_frame{
	    width:100%;
       display: Flex;         /* برای margin auto */
    margin: 10px auto;
}
.post-img {
  text-align: center; /* برای وسط‌چین کردن تصویر */
}

.post-img img
{
	float: left;
	box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px;
	border-width: 5px;
	border-style: solid;
	border-color: rgb(255, 255, 255);
	border-image: initial;
	margin: 0px 30px 15px 0px;
}
/* برای تبلت‌ها (عرض بین 768 تا 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .post-img img {
    width: 360px;
	  height:360px;
	  display: Flex;         /* برای margin auto */
    margin: 10px auto;
  }
	.h_iframe-aparat_embed_frame{
	    width: 60%;
    display: Flex;         /* برای margin auto */
    margin: 10px auto;
}
}

/* برای دسکتاپ‌های بزرگ‌تر از 1200px */
@media (min-width: 1200px) {
  .post-img img {
    width: 600px;
	  	  height:450px;
  }
		.h_iframe-aparat_embed_frame{
	    width: 80%;
       display: Flex;         /* برای margin auto */
    margin: 10px auto;
}
}

footer {
    background-image: url(./img/Pattern.png);
    background-repeat: repeat-x;
    background-position: bottom;
}


footer span {
    font-weight: bolder;
}

footer ul li {
    list-style: none;
}
footer p {
    font-size: 0.95rem !important;
    text-align: justify;
    line-height: 2;
}
footer ul li a {
    color: #fff;
	font-size:0.95rem!important;
}

CopyRight {
    background-color: #48bf9d;
}
.social-icon i{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #017969;
  color: #48bf9d;
  font-size: 27px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-icon svg {
    display: inline-flex
;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
	padding:5px;
    border-radius: 50%;
    background-color: #017969;
    color: #48bf9d;
    font-size: 27px;
    transition: all 0.3s 
ease;
    text-decoration: none;
}

.social-icon:hover i{
  background-color: #fff;
  color: #017969;
}
.social-icon:hover svg{
  background-color: #fff;
  color: #017969;
}
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: #017969;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: #48bf9d;
color: #017969!important;
}
.gallery-item img {
  width: 800px;
  height: auto;
  border-radius: 6px;
}
.custom-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  justify-content: center;
}

.gallery-thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.gallery-thumb:hover {
  transform: scale(1.05);
  cursor: pointer;
}


/* محدود کردن اندازه تصویر در لایت‌باکس */
.lb-image {
  max-width:800px !important;
  max-height: 400px !important;
  width: 800px !important;
  height: auto !important;
  object-fit: contain;
}

