/*
Theme Name: Twenty Twenty-Five Child
Theme URI: http://example.com/twenty-twenty-five-child
Description: پوسته فرزند برای Twenty Twenty-Five
Author: نام شما
Author URI: http://example.com
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive-child
*/

/*فونتها*/
/* -----------------------------
   تعریف فونت وب (Vazirmatn)
-------------------------------*/
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}


body, p, span, li, a, input, textarea, button {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 2.5;
    text-align: right;
    direction: rtl;
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
	color:black;
}
p, li {
  margin-bottom: 0.75em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.5;
    margin: 1.2em 0;
}

/* سایز پیشنهادی برای عناوین */
h1 { font-size: 28px; }
h2 { font-size: 26px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

a {
    font-family: inherit;
     text-decoration: none;
    transition: color 0.3s ease;
}
p {margin-bottom: 1em;}

/* -----------------------------
   لیست‌ها
-------------------------------*/
ul, ol {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    line-height: 1.8;
    margin: 0 0 1em 0;
    padding-left: 1.5em;
}

/* -----------------------------
   دکمه‌ها و فرم‌ها
-------------------------------*/
button, input, textarea, select {
    font-family: inherit;
}



a:hover {
    color: #ff0000; 
}

/* بخش هدر ایکونها*/

/* استایل عمومی برای هدر */
.wp-block-template-part {
  max-width: 1345px;     
  margin: 0 auto;        
  padding: 2px 2px;    
  background-color: #061544ab; 
  color: #fdfdff;          
}


/*  آموزش بیوانفورماتیک */
.header-bioinfo .word-amoozesh {color: #05ff2f;}
.header-bioinfo .word-bioinfo {color: #ffce05;}


.my-topheader{padding-bottom:0 !important;
margin:0 2px 0 2px !important;;
gap: 0 !important;}
.my-topheade.wp-block-column{max-width:200px!important;}


.my-topheader h1 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0; 
}

.my-topheader .wp-block-column[style*="flex-basis:70%"] {
  max-width: 200px !important;
  flex: 0 0 auto; 
}

.my-botheader{margin:0 2px 10px 2px !important;
gap:5px}



.my-dast {
  display: grid;
  grid-template-columns: repeat(15, 1fr); 
  gap: 12px;
  margin:0 2px 10px 2px;
 padding: 5px ;
  justify-items: center;
background-color: #fff;
	border-radius: 8px;
}

.my-dast2 {text-align: center;}

.my-dast2 img {
  display: block;
  margin: 0 auto 6px auto;
width:50px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.my-dast2 img:hover {
  transform: scale(1.08);
}

.my-dast2 a {
  font-size: 12px;
  text-decoration: none;
  display: block;
}

.my-dast2 a:hover {
  color: #1e90ff;
}

/* تبلت */
@media screen and (max-width: 900px) {
  .my-dast {
    grid-template-columns: repeat(9, 1fr);
  }
}

/* موبایل متوسط */
@media screen and (max-width: 600px) {
  .my-dast {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* موبایل خیلی کوچک */
@media screen and (max-width: 400px) {
  .my-dast {
    grid-template-columns: repeat(6, 1fr);
  }
.my-dast2 img {width: 40px;}
.header-bioinfo {font-size: 21px;}
}

/*استایل فهرست پایین هدر*/

.my-feh1 {
  display: flex;
justify-content: flex-start; /* از راست شروع می‌کند */
  gap: 15px; /* فاصله بین آیکون‌ها */
  flex-wrap: wrap; /* ریسپانسیو برای موبایل */
  margin: 5px 0;
background-color: #ffffff; /* سفید */
    padding: 5px; /* فاصله داخلی برای زیبایی */
    border-radius: 8px; /* گوشه‌های کمی گرد */
}

.my-feh2 {
  text-align: center;
}

.my-feh2 a {
  text-decoration: none;
  display: flex;
  flex-direction: column; /* عکس بالا، متن پایین */
  align-items: center;
  color: black; /* رنگ پیشفرض متن */
  transition: color 0.3s;
}

.my-feh2 a img {
  width: 20px; /* اندازه ثابت آیکون */
  height: 20px;
  transition: all 0.3s;
}

/* تغییر رنگ متن و تصویر هنگام هاور */
.my-feh2 a:hover span {
  color: #007bff; /* آبی */
}

.my-feh2 a:hover img {
  content: url(attr(data-img hover)); /* جاوااسکریپت باید مقدار hover اضافه کنه */
}

/* متن زیر آیکون */
.my-feh2 span {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
}

.my-feh2 a.active span {
    color: #1309d1;   /* آبی */
    font-weight: 700;  /* بولد */
}
.my-feh2 a:hover span {
    color: #1309d1;   /* رنگ آبی هنگام هاور */
    font-weight: 700;  /* بولد شدن */
}
/*بوردر و وسط چین کردن*/
 .my-cart {
	 padding:0px 10px  !important;
    border: 1px solid black;
    max-width: 1347px !important;
    margin: 10px auto; 
}

.has-global-padding {
padding:0;
 margin: 10px auto !important;
}

.my-cart.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 1347px !important;
}


/*طول و عرض برابر برای عکس */
.wp-block-post-featured-image img {
    width: 100%;
    height: auto !important;
    max-width: 300px;
    max-height: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/*آرشیو پسنها*/
/* فقط برای بلوک post-template */
.wp-block-post-featured-image{    width: 100%;
	 aspect-ratio: 1 / 1 !important;
    height: auto !important;
    max-width: 300px;
    max-height: 300px;}

.has-global-padding > .alignfull {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1340px;
}

ul.wp-block-post-template.is-layout-flow {
    display: grid;
    gap: 10px;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* موبایل: 1 ستون */
@media (max-width: 600px) {
    ul.wp-block-post-template.is-layout-flow {
        grid-template-columns: 1fr;
    }
}

/* تبلت: 2 ستون */
@media (min-width: 601px) and (max-width: 900px) {
    ul.wp-block-post-template.is-layout-flow {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* لپ‌تاپ کوچک: 3 ستون */
@media (min-width: 901px) and (max-width: 1199px) {
    ul.wp-block-post-template.is-layout-flow {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* دسکتاپ بزرگ: دقیقاً 4 ستون */
@media (min-width: 1200px) {
    ul.wp-block-post-template.is-layout-flow {
        grid-template-columns: repeat(4, 1fr);
    }
}
.wp-block-post-title a:not(.wp-element-button) {
    font-size: 14px;
}

/*شروع فوتر*/
.my-footer  {
    background-color: #d9d2e3ed;
	margin-bottom:5px;
 }
.my-footer img {
    background-color: #fff;
    padding: 10px; 
    border-radius: 6px;
    display: block;
}
#my-footer1 {
  background-color: #fff !important;
}


.footer-bottom{
border-top:1px dashed #aaa;
margin-top:20px;
padding-top:16px;
text-align:center;
font-size:13px;
color:#777;
}

.footer-links{
display:flex;
justify-content:center;
gap:40px;
flex-wrap:wrap;
font-size:14px;
color:#444;
}
.footer-links ul li{margin-bottom:6px;}

#my-footer1 .my-feh1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

#my-footer1 .my-feh2 a img {
  width: 40px;
  height: 40px;
}

/*انتهای فوتر*/

/*شروع صفحه اصلی*/
/*تب دو زبانه*/

.tab-container { width: 100%;}
.tab-container input[type="radio"] { display: none;}

/* هدر تب */
.tab-header {
  display: flex;
  width: 100%;
  border-bottom: 2px solid #ccc;
}

/* هر زبانه سهم مساوی از عرض */
.tab-header label {
  flex: 1; /* مهم: هر تب 50٪ از عرض کل */
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
  border: 1px solid #ccc;
  border-bottom: none;
  background-color: #f1f1f1;
  margin-left: -1px; /* جلوگیری از فاصله بین border ها */
}

.tab-header label:first-child {
  margin-left: 0; /* حذف فاصله سمت چپ اولین تب */
}

/* حالت hover */
.tab-header label:hover {
  background-color: #e0e0e0;
}

/* تب فعال */
#tab-left:checked ~ .tab-header label.tab-left,
#tab-right:checked ~ .tab-header label.tab-right {
  background-color: #fff;
  font-weight: bold;
}

/* محتوای تب */
.tab-content {
  border: 1px solid #ccc;
  padding: 10px 15px;
  display: none;
}

/* نمایش تب فعال */
#tab-left:checked ~ .tab-content.tab-left,
#tab-right:checked ~ .tab-content.tab-right {
  display: block;
}


/* تب 4 زبانه*/

/* تب فعال */
#tab-ncbi:checked ~ .tab-header label.tab-ncbi,
#tab-cloning:checked ~ .tab-header label.tab-cloning,
#tab-phylo:checked ~ .tab-header label.tab-phylo,
#tab-primer:checked ~ .tab-header label.tab-primer {
  background-color: #fff;
  font-weight: bold;
}

/* نمایش تب فعال */
#tab-ncbi:checked ~ .tab-content.tab-ncbi,
#tab-cloning:checked ~ .tab-content.tab-cloning,
#tab-phylo:checked ~ .tab-content.tab-phylo,
#tab-primer:checked ~ .tab-content.tab-primer {
  display: block;
}
/*انتهای صفحه اصلی*/
/*فروشگاه*/
.wc-block-components-product-button__button span {color: #fff !important;
line-height:1.2}

.wp-block-button.wc-block-components-product-button 
> a.wc-block-components-product-button__button {
  padding: 15px 15px !important;
}


.wc-block-components-product-button__button{border-radius:10px ;}
/* استایل زیبا برای قیمت ووکامرس */
.woocommerce-Price-amount.amount {
  display: inline-block;
  font-weight: 700;
  font-size: 1.5rem;
  color: #2b7a0b; 
  background-color: #f3fdf5;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1.5;
}

/* رنگ نماد تومان */
.woocommerce-Price-amount.amount .woocommerce-Price-currencySymbol {
  font-weight: 400;
  font-size: 0.9em;
  color: #555;
  margin-right: 4px;
}



/* استایل ریسپانسیو محصولات مرتبط ووکامرس با CSS Grid */
.wc-block-product-template.is-flex-container {
  display: grid;
  gap: 1.25em;
  grid-template-columns: repeat(5, 1fr); /* ۵ ستون در دسکتاپ */
}
.wc-block-product-template.is-flex-container > li {
  width: 100% !important;
}

/* تبلت */
@media (max-width: 1024px) {
  .wc-block-product-template.is-flex-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* موبایل متوسط */
@media (max-width: 768px) {
  .wc-block-product-template.is-flex-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* موبایل کوچک */
@media (max-width: 480px) {
  .wc-block-product-template.is-flex-container {
    grid-template-columns: 1fr;
  }
}


/*صفحه پرداخت*/
#payment img {
  display: none !important;
}

