/*
Theme Name: TM Dev
Theme URI: https://huynhtanmao.com
Version: 1.0.0
Description: 
Author: TM Dev
Author URI: https://huynhtanmao.com
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tmdev
*/
/**
 *  General
 */
* {
  margin: 0;
  padding: 0;
}
body {
  font-size: 16px;
  line-height: 24px;
  color: #333;
  font-family: Arial, "Times New Roman", "Bitstream Charter", Times, serif;
  font-weight: normal;
}
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-track {
  background: rgba(122, 122, 122, 0.1);
}
body::-webkit-scrollbar-thumb {
  background: #f5f5f5;
  border: solid 1px rgba(122, 122, 122, 0.1);
  border-radius: 5px;
}
body::-webkit-scrollbar-thumb:hover {
  background: #fff;
  border: solid 1px rgba(122, 122, 122, 0.1);
}
p,
a {
  font-size: 16px;
  line-height: 1.5;
}
a {
  outline: 0;
  text-decoration: none !important;
  cursor: pointer;
  color: #008542;
  text-decoration: none;
  outline: none;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
button:focus,
a:focus {
  outline: 0;
}
a:hover,
a:focus {
  color: #008542;
  text-decoration: underline;
}
a.link {
  color: #6a6a6a;
  text-transform: capitalize;
  text-decoration: none;
}
h1,
h2,
h3 {
  color: #008542;
  font-size: 30px;
  line-height: 1.4;
  font-weight: bold;
  font-family: Arial, "Times New Roman", "Bitstream Charter", Times, serif;
}
h1 {
  font-size: 30px;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 18px;
}
h4 {
  font-size: 16px;
}
h5 {
  font-size: 15px;
}
img {
  max-width: 100%;
  height: auto;
}
label,
strong {
  font-weight: 700;
  color: #333333;
}
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  padding: 6px 12px;
  line-height: 1.5;
  border-radius: 4px;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn .feather {
  width: 16px;
  height: 16px;
  position: relative;
  top: 2px;
}
input,
button,
select,
textarea {
  max-width: 100%;
}
.form-row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -5px;
  margin-left: -5px;
}
.form-row > .col,
.form-row > [class*=col-] {
  padding-right: 5px;
  padding-left: 5px;
}
.form-group {
  margin-bottom: 1rem;
}
.form-control {
  height: 38px;
  padding: 6px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}
/* buttons */
.btn-primary,
.btn-secondary,
button,
input[type="button"],
input[type="submit"] {
  display: inline-block;
  position: relative;
  padding: 12px 28px;
  margin-bottom: 5px;
  line-height: 1.2;
  border: 0;
  outline: 0;
  border: 2px solid #008542;
  text-transform: capitalize;
  color: #222;
  text-shadow: none;
  background-color: #fff;
  border-radius: 0;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.btn-primary:hover,
.btn-primary:focus,
button:hover,
button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background-color: #008542;
  border-color: #008542;
  color: #fff;
}
.btn-secondary {
  border-color: #d5d5d5;
  background-color: #fff;
}
.btn-secondary:hover,
.btn-secondary:focus {
  color: #222;
  border-color: #008542;
  background-color: #008542;
}
.form-control:focus {
  box-shadow: none;
  border-color: #008542;
}
.two-column{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.site-wrap {
  padding-left: 270px;
  position: relative;
}
.wrap-post {
  padding: 30px 30px 0 30px;
  display: block;
  overflow: hidden;
  min-height: 90vh;
}
.nav-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  border-right: 1px solid #dfdfdf;
  background-color: #fff;
  box-shadow: 0 0 20px 0 rgba(62, 28, 131, 0.1);
  height: 100%;
  overflow: auto;
  padding-bottom: 100px;
}
.nav-sidebar .nav-header {
  background: #fff;
  padding: 20px 25px 15px !important;
  text-align: center;
  color: #333;
}
.nav-sidebar .nav-header .brand {
  display: block;
  text-decoration: none;
}
.nav-sidebar .nav-header .brand img {
  border-radius: 50%;
}
.nav-sidebar .nav-header .tmdev-logo-text {
  font-size: 22px;
  font-weight: bold;
  margin: 10px auto 0;
  color: #008542;
}
.nav-sidebar .toggle-bar {
  display: none;
  border: 0;
  padding: 0;
  background: transparent;
  outline: none;
  cursor: pointer;
}
.nav-sidebar .menu li {
  display: block;
  float: none;
  list-style: none;
  font-size: 14px;
  font-family: Arial, "Times New Roman", "Bitstream Charter", Times, serif;
}
.nav-sidebar .menu li a {
  border-bottom: solid 1px #efefef;
  display: block;
  padding: 10px 30px 10px 60px;
  text-decoration: none;
  color: #3a3a3a;
  position: relative;
  font-weight: 700;
  font-size: 14px;
}
.nav-sidebar .menu li a i {
  width: 16px;
  height: 16px;
  position: absolute;
  top: 17px;
  left: 30px;
}
.nav-sidebar .menu li:first-child a {
  border-top: solid 1px #efefef;
}
.nav-sidebar .menu > .current-menu-item {
  position: relative;
}
.nav-sidebar .menu > .current-menu-item > a {
  background-color: #fcfcfc;
}
.nav-sidebar .menu > .current-menu-item > a:after {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  content: '';
  width: 2px;
  height: 100%;
  margin: 0 auto;
  background-color: #008542;
  -webkit-transition: all 0.18s ease-out;
  -moz-transition: all 0.18s ease-out;
  transition: all 0.18s ease-out;
}
.nav-sidebar .attributes {
  position: fixed;
  left: 0;
  width: 270px;
  bottom: 0;
  margin-bottom: 0;
  padding: 5px 20px;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #dfdfdf;
  border-right: solid 1px #dfdfdf;
  background-color: #fff;
}
.nav-sidebar .attributes li {
  list-style: none;
}
.nav-sidebar .attributes li a {
  display: block;
  padding: 20px 10px;
  color: #6a6a6a;
}
.nav-sidebar .attributes li .feather {
  width: 18px;
  height: 18px;
}
.customize-support .nav-sidebar {
  top: 30px;
}
/* 
 * sub header 
 */
.sub-header {
  padding: 10px 30px 11px;
  background-color: #fff;
  border-bottom: 1px solid #efefef;
  width: 100%;
  display: flex;
  align-items: center;
}
.sub-header .wrap-search {
  flex: 1 0 auto;
}
.sub-header .wrap-search .input-group {
  max-width: 300px;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  width: 100%;
}
.sub-header .wrap-search .form-control {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  border-right: 0;
  box-shadow: none;
  border-radius: 4px 0 0 4px;
}
.sub-header .wrap-search .btn-outline-secondary {
  height: 38px;
  color: #6c757d;
  background-color: transparent;
  background-image: none;
  border-color: #6c757d;
  border-radius: 0 4px 4px 0;
  box-shadow: none;
}
.sub-header .wrap-search .btn-outline-secondary:hover {
  color: #fff;
  background-color: #008542;
  border-color: #008542;
}
/* 
 * component 
 */
/* pagination --------------- */
.wrap-pagination .screen-reader-text {
  display: none;
}
.wrap-pagination .nav-links > span,
.wrap-pagination .nav-links > a {
  position: relative;
  display: block;
  color: #333;
  float: left;
  background-color: #fff;
  border: 1px solid #ced4da;
  margin: 0 1px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
}
.wrap-pagination .nav-links > .current {
  background-color: #008542;
  border-color: #008542;
  color: #fff;
}
/* card -------------------- */
.card {
  margin-bottom: 30px;
  transition: all 0.2s ease-in-out;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 4px;
  position: relative;
}
.card a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}
.card .card-body {
  padding: 10px;
}
.card .title-post {
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  font-weight: bold;
  text-align: left;
  margin-top: 0;
  margin-bottom: 0;
  height: 37px;
  position: relative;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-wrap: break-word;
  font-family: Arial, "Times New Roman", "Bitstream Charter", Times, serif;
}
.card:hover {
  transform: translate(0, -5px);
}
.card:hover .title-post {
  color: #008542;
}
/* Module random post */
.tmdev-random-post .card .title-post {
  font-size: 13px;
}
.tmdev-block-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
}
.tmdev-block-title-wrap .tmdev-next-prev-wrap > a {
  width: 30px;
  height: 30px;
  line-height: 27px;
  display: inline-block;
  text-align: center;
  border: 1px solid #ced4da;
  color: #ababab;
  margin: 0 2px;
}
.tmdev-block-title-wrap h2 {
  margin: 0;
}
.tmdev-block-title-wrap h2 a {
  font-size: 18px;
}
/* Module list post */
.td_list_post_inner .td-block-span12 {
  display: block;
  margin-bottom: 20px;
}
.td_list_post_inner .td_module_4 .entry-title {
  font-size: 14px;
}
.td_list_post_inner .td_module_4 .entry-title a {
  color: #333;
  font-size: 14px;
}
.td_list_post_inner .td_module_4 .td-excerpt {
  font-size: 14px;
}
.td_list_post_inner .td_module_6 {
  position: relative;
}
.td_list_post_inner .td_module_6 .td-module-image {
  position: absolute;
  top: 0;
  left: 0;
}
.td_list_post_inner .td_module_6 .td-module-image img {
  max-width: 90px;
  height: auto;
}
.td_list_post_inner .td_module_6 .td-module-info {
  margin-left: 105px;
  min-height: 70px;
}
.td_list_post_inner .td_module_6 .entry-title {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 4px;
}
.td_list_post_inner .td_module_6 .entry-title a {
  font-size: 13px;
  font-weight: bold;
  color: #333;
}
.td_list_post_inner .td_module_wrap:hover .entry-title a {
  color: #008542;
}
/* Template: Home */
/* Template: Contact */
.tm-post-header {
  margin-bottom: 2rem;
}
.tm-post-header .tm-post-title {
  margin-top: 0;
  margin-bottom: 0;
  display: inline-block;
}
.page-contact .tm-post-header {
  text-align: center;
}
.page-contact .wpcf7-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
/* Template: Tags */
.page-tags .list-tags {
  display: block;
  min-height: 42rem;
}
.page-tags .list-tags .tag-cloud-link {
  display: inline-block;
  padding: 5px 10px;
  background-color: #fff;
  border: 2px solid #008542;
  color: #222;
  text-decoration: none;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  position: relative;
  padding-right: 27px;
  margin-bottom: 10px;
  margin-right: 8px;
}
.page-tags .list-tags .tag-cloud-link .tag-count {
  display: inline-block;
  position: absolute;
  right: 0;
  top: 0;
  height: 34px;
  background: #008542;
  width: 20px;
  text-align: center;
  line-height: 34px;
  color: #fff;
}
.page-tags .list-tags .tag-cloud-link:hover {
  background-color: #008542;
  border-color: #008542;
  color: #fff;
}
.page-tags .list-tags .tag-cloud-link:hover .tag-count {
  background-color: #fff;
  border-color: #008542;
  color: #008542;
}
/* Single */
.single-post .fl-post-title {
  margin-top: 0;
}
.single-post .fl-content {
  max-width: 940px;
  margin: 0 auto;
}
.single-post .fl-content article.fl-post {
  max-width: 100%;
  margin: 0;
}
.single-post .crayon-syntax {
  width: 100%;
}
.single-post .fl-post-content p,
.single-post .fl-post-content ul,
.single-post .fl-post-content ol,
.single-post .fl-post-content a {
  font-size: 16px;
  line-height: 24px;
}
.single-post ol,
.single-post ul {
  padding-left: 30px;
}
.single-post ol ul,
.single-post ul ul {
  padding-left: 30px;
}
.relate-post-wrap .relate-post-grid {
  display: flex;
  margin: 0 -15px;
  flex-wrap: wrap;
}
.relate-post-wrap .section-nav-title {
  margin-bottom: 20px;
}
.single-post .enlighter-default,
.single-post .enlighter-t-atomic{
  padding: 20px !important;
}
/*
 * Footer
 */
.copyright {
  margin: 10px auto 0;
  text-align: center;
}
.copyright a {
  color: #333333;
}
/*
 * Media Query
 */
@media (max-width: 991px) {
  /* General ------------ */
  .site-wrap {
    padding-left: 0;
    padding-top: 70px;
    padding-bottom: 65px;
  }
  .wrap-post {
    padding: 30px 15px 0 15px;
  }
  /* Header */
  .nav-sidebar {
    width: 100%;
    height: auto;
    z-index: 999;
    padding-bottom: 0;
  }
  .nav-sidebar .nav-header {
    padding: 0 50px 10px 15px !important;
    text-align: left;
  }
  .nav-sidebar .nav-header .brand img {
    display: none;
  }
  .nav-sidebar .toggle-bar {
    display: block;
    position: absolute;
    top: 22px;
    font-size: 21px;
    right: 15px;
  }
  .nav-sidebar .toggle-bar i {
    color: #222;
  }
  .nav-sidebar .navbar-nav {
    position: fixed;
    top: 77px;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    margin-left: -100vw;
    -webkit-transition: all 0.5s ease-in-out;
    -khtml-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
  }
  .nav-sidebar.open .navbar-nav {
    display: block;
    opacity: 1;
    margin-left: 0;
  }
  .nav-sidebar .attributes {
    width: 100%;
  }
  .nav-sidebar .attributes li a {
    padding: 5px 10px;
  }
  /* sub header ----  */
  .sub-header {
    display: block;
    overflow: hidden;
  }
  .sub-header .wrap-pagination {
    margin-top: 10px;
  }
}
@media (max-width: 480px) {
  .wrap-post > .row > .col-xs-6 {
    width: 100%;
  }
}
