/* 1. کلاس برای مخفی کردن در موبایل (و تبلت‌های کوچک) */
/* در حالت عادی مخفی است */
.hide-on-mobile {
    display: none !important;
}

/* در عرض‌های بزرگ‌تر از 768px (دسکتاپ)، آن را نمایش بده */
@media (min-width: 769px) {
    .hide-on-mobile {
        display: block !important; /* یا inline-block، flex یا هر چیزی که ساختار شما می‌طلبد */
    }
}

/* 2. کلاس برای مخفی کردن در دسکتاپ */
/* در حالت عادی (موبایل) نمایش داده می‌شود */
.hide-on-desktop {
    display: block !important; /* فرض بر این است که در موبایل باید دیده شود */
}

/* در عرض‌های بزرگ‌تر از 768px، آن را مخفی کن */
@media (min-width: 769px) {
    .hide-on-desktop {
        display: none !important;
    }
}



.tabx {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #eae5;
    padding : 5px 5px 5px 5px ;
}

/* Style the buttons that are used to open the tab content */
.tabx button {
    background-color: #d058cc;
    float: right;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    text-align: center;  
    line-height: 2px;
    margin-right: 10px;
}

/* Change background color of buttons on hover */
.tabx button:hover {
    background-color: #f390ef;
}

/* Create an active/current tablink class */
.tabx button.active {
    background-color: #e8b7b7;
}

 





/*******************************************************************************************************/
.newgridbox {
  display: grid;
  grid-template-columns: auto auto auto;
 // grid-template-rows: 200px 200px 200px 200px 200px ;

  column-gap: 10px; 
  row-gap: 10px; 
}

.newgridbox  > div {
  background-color: rgba(255, 255, 255, 0.8);
  text-align: right;
}

.newgridbox   .titlebox {
    font-size:16px;
    color:white;   
    text-shadow: 0 0 15px black;
    font-weight: bold;
    
}



@media only screen and (max-width: 768px) {

.newgridbox {
  grid-template-columns: auto;

  column-gap: 5px; 
  row-gap: 5px; 
}

.newgridbox   .titlebox {
    font-size:11px;
    color:white;   
    text-shadow: 0 0 15px black;
    font-weight: bold;
}

}










.newgridboxB {
  display: grid;
  grid-template-columns: auto auto auto auto;
 // grid-template-rows: 200px 200px 200px 200px 200px ;

  column-gap: 10px; 
  row-gap: 10px; 
}

.newgridboxB  > div {
  background-color: rgba(255, 255, 255, 0.8);
  text-align: right;
}

.newgridboxB   .titlebox {
    font-size:16px;
    color:white;   
    text-shadow: 0 0 15px black;
    font-weight: bold;
    
}



@media only screen and (max-width: 768px) {

.newgridboxB {
  grid-template-columns: auto auto ;

  column-gap: 5px; 
  row-gap: 5px; 
}

.newgridboxB   .titlebox {
    font-size:11px;
    color:white;   
    text-shadow: 0 0 15px black;
    font-weight: bold;
}

}






.NewsHeader{
  margin-right: 20px;
  margin-left: 20px;
  font-family: Vazir;
}
.NewsHeader>header h2 a{
   font-family: Vazir;
}
.NewsHeader>header {
    font-family:vazir ; 
    position: relative;
    display: table;
    width: 100%;
    margin-bottom: 10px;

}

.NewsHeader:after, .NewsHeader:before {
    content: " ";
    display: table;
}


.NewsHeader>header:before {
    content: '';
    display: inline-block;
    border: 3px solid #78909c;
    width: 100%;
    top: 20px;
    right: 0;
    position: absolute;
}

.NewsHeader>header h2 {
    font-size: 16px;
    z-index: 2;
    position: relative;
    background-color: #dde9f9;
    padding-left: 10px;
    font-weight: normal;
    display: inline-block;
}

.NewsHeader>header h2:before {
    content: '';
    display: inline-block;
    height: 10px;
    width: 10px;
    //background-color: #78909c;
    border-radius: 50%;
    margin-left: 5px;
}

.NewsHeader>header .more {
    float: left;
    position: absolute;
    top: -3px;
    left: 0;
    font-size: 10px;
    color: #78909c;
    font-family: Vazir;
}

.NewsHeader>header h2:before {
    content: '';
    display: inline-block;
    height: 10px;
    width: 10px;
    background-color: #78909c;
    border-radius: 50%;
    margin-left: 5px;
}




/*************************************************************************************************/
.tabx {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #eae5;
    padding : 5px 5px 5px 5px ;
}

/* Style the buttons that are used to open the tab content */
.tabx button {
    background-color: #d058cc;
    float: right;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    text-align: center;  
    line-height: 2px;
    margin-right: 10px;
}

/* Change background color of buttons on hover */
.tabx button:hover {
    background-color: #f390ef;
}

/* Create an active/current tablink class */
.tabx button.active {
    background-color: #e8b7b7;
}
