@import url(http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700);
@import "../css/reset.css";
@import "../css/grid.css";
@import "../css/superfish.css";

html {
  width: 100%;
  direction: rtl;
}
body {
  font: 12px/19px Tahoma;
  color: #6f6f6f;
  position: relative;
  min-width: 1025px;
  background: #ffffff;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  font-family: B Titr, Tahoma;
  color: #308007;
}
h1 { font-size: 18px; line-height: 3.5em; text-transform: uppercase; }
h2 { font-size: 26px; line-height: 1em; text-transform: uppercase; }
h3 { font-size: 14px; line-height: 3em; text-transform: uppercase; }
h4 { font-size: 18px; line-height: 1.5em; text-transform: uppercase; }

a {
  text-decoration: none;
  color: #e30121;
  transition: 0.5s ease;
}
a:hover {
  color: #308007;
}
a.btn {
  background: #308007; /* حذف تصویر و خط سبز زیر دکمه */
  display: inline-block;
  font-family: B Titr, Tahoma;
  font-size: 13px;
  padding: 11px 30px 12px 30px;
  color: #fff;
  text-transform: uppercase;
  margin-top: 20px;
}
a.btn:hover {
  background: #e30121;
  color: #fff;
}
.clear { clear: both; }
.wrap { overflow: hidden; }

/* header */
header {
  display: block;
  padding: 29px 0 0;
  background: #ffffff;
  z-index: 999;
}
header .container_12 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
header .grid_2 {
  order: 2;
  text-align: left;
}
header .grid_12 {
  order: 1;
  width: 100%;
  text-align: center;
}
nav {
  background: #308007;
  margin-top: 20px;
  padding: 23px 0;
}
nav .container_12 {
  text-align: center;
}
nav ul.sf-menu {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  flex-wrap: wrap;
}
nav ul.sf-menu li {
  margin: 0 10px;
  display: inline-block;
}

/* slider pagination */
.tms-pagin span {
  font-size: 0 !important;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #aaa;
  display: inline-block;
  margin: 0 5px;
}
.tms-pagin span.current {
  background: #e30121;
}

/* محصولات در دسکتاپ ۴ ستونه */
@media screen and (min-width: 1025px) {
  .box-1 {
    width: 23%;
    float: right;
    margin-left: 2%;
    display: inline-block;
    vertical-align: top;
  }
  .box-1:nth-child(4n) {
    margin-left: 0;
  }
}

/* درباره ما و نمایشگاه */
.about-exhibition {
  display: flex;
  flex-direction: row-reverse; /* RTL: درباره ما سمت راست */
  gap: 30px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 40px 0;
  align-items: flex-start;
}

.about-box {
  flex: 0 0 65%;
  display: flex;
  align-items: flex-start;
  padding-left: 20px;
  box-sizing: border-box;
  border-left: 1px solid #ccc;
}

.about-box img {
  max-width: 120px;
  margin-left: 20px;
  height: auto;
  flex-shrink: 0;
}

.about-box > div {
  flex: 1;
}

.about-box h4 {
  margin-top: 0;
  color: #308007;
  font-family: B Titr, Tahoma;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 18px;
}

.about-box p {
  text-align: justify;
  font-size: 14px;
  line-height: 1.8;
  margin: 10px 0;
  color: #6f6f6f;
  font-family: Tahoma;
}

.about-box a.btn {
  margin-top: 20px;
}

.exhibition-box {
  flex: 0 0 33%;
  box-sizing: border-box;
  padding-right: 20px;
}

.exhibition-box h4 {
  margin-top: 0;
  color: #308007;
  font-family: B Titr, Tahoma;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 18px;
  margin-bottom: 20px;
}

.exhibition-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exhibition-box li {
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  line-height: 1.6;
  color: #6f6f6f;
  font-family: Tahoma;
}

.badge {
  background: #308007;
  color: #fff;
  font-weight: bold;
  width: 60px;
  padding: 8px 0;
  text-align: center;
  font-size: 18px;
  border-radius: 5px;
  text-transform: uppercase;
  margin-left: 20px;
  float: right;
}

.badge span {
  display: block;
  font-size: 10px;
}

.exhibition-box .wrap {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.exhibition-box .wrap div {
  margin-right: 20px;
}

.exhibition-box a {
  color: #e30121;
  font-size: 13px;
  font-family: Tahoma;
}

.exhibition-box a:hover {
  color: #308007;
}

/* خط عمودی وسط */
.divider {
  width: 1px;
  background-color: #ccc;
  align-self: stretch;
  margin: 0;
}

/* Footer */
footer {
  font-size: 12px;
  color: #d9daab;
  text-transform: uppercase;
  padding: 21px 0 18px 0;
  direction: rtl;
  background-color: #308007;
}
footer .container_12 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
footer .grid_8 {
  text-align: right;
}
footer .grid_4 {
  text-align: left;
}
footer span {
  display: block;
  margin-top: 6px;
}
footer a {
  color: #d9daab;
}
footer a:hover {
  color: #d9daab;
}
.soc-icon {
  display: block;
  padding-top: 10px;
}
.soc-icon li {
  display: inline-block;
  margin-left: 13px;
}
.soc-icon li a img {
  opacity: 0.6;
  transition: opacity 0.3s;
}
.soc-icon li a:hover img {
  opacity: 1;
}

/* قرارگیری دکمه زبان در بالا سمت چپ */
header .grid_2 {
  order: 1;
  text-align: left;
}
header .grid_12 {
  order: 2;
  width: 100%;
  text-align: center;
}

/* ریسپانسیو موبایل */
@media screen and (max-width: 768px) {
  .about-exhibition {
    flex-direction: column;
    padding: 20px 0;
  }
  .about-box, .exhibition-box {
    flex: 1 1 100%;
    border-left: none !important;
    padding: 0;
  }
  .about-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: none;
  }
  .about-box img {
    margin: 0 0 15px 0;
    float: none;
    max-width: 80%;
  }
  .about-box > div {
    width: 100%;
  }
  .divider {
    display: none;
  }
  .exhibition-box ul li {
    border-bottom: none;
    margin-bottom: 15px;
  }
}
/* محصولات - دسکتاپ ۴ ستونه */
@media screen and (min-width: 1025px) {
  ul.list-project {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0;
    margin: 0 -1%;
    list-style: none;
  }
  ul.list-project li {
    width: 23%;
    margin: 1%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* محصولات - موبایل ۲ ستونه */
@media screen and (max-width: 768px) {
  ul.list-project {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  ul.list-project li {
    width: 45% !important;
    margin: 10px !important;
    box-sizing: border-box;
    text-align: center;
  }
}
