/*
Theme Name: Twenty Twenty-Two Child
Author: Armin Hasanpour
Author URI: https://about.me/hasanpour
Description: A Twenty Twenty-two child theme.
Template: twentytwentytwo
Requires at least: 5.9
Tested up to: 6.1
Requires PHP: 5.6
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentytwo-child
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, ltr-language-support, sticky-post, threaded-comments

Twenty Twenty-Two WordPress Theme, (C) 2021 WordPress.org
Twenty Twenty-Two is distributed under the terms of the GNU GPL.
*/

/* Fix footer to bottom */
main {
  min-height: calc(
    100vh - 216px - 132px
  ); /* footer size: 216, header size: 132 */
}

/* Remove underline of links */
a {
  text-decoration: none !important;
}

/* fa icons are align to top by default */
.icon--alignment > div {
  vertical-align: middle;
}

/* Header's bottom border */
.header__menu {
  box-shadow: 0 1px 0 rgb(0 0 0 / 8%);
}

.seprator--dashed {
  width: 100% !important;
  border-bottom: 3px dashed #e1e4e5;
}

/* Prevent multiline heading */
.heading--nowrap {
  white-space: nowrap;
}

.paragraph--justify {
  text-align: justify;
}

.list--ltr {
  direction: ltr;
}

/* The sticky class is added to the header with JS when it reaches its scroll position */
.header__menu--sticky {
  position: fixed;
  top: 0;
  width: 100% !important;
  z-index: 1000;
}

/* Fix kt-blocks carousel */
.tns-visually-hidden {
  display: none;
}

/* Fix kt-accordion font */
.kt-blocks-accordion-header {
  font-family: inherit;
  cursor: pointer;
}

/* Fix kt-tab margin on screen below 1024 */
.kt-tab-title {
  margin-left: 0 !important;
}

/*** Back to top button ***/
#top-button {
  position: fixed;
  left: 15px;
  bottom: 15px;
  border-radius: 50%;
  height: 50px;
  width: 50px;
  background: rgba(0, 0, 0, 0.3);
  z-index: 100;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  transition: background 0.3s;
  display: none;
}

#top-button:hover {
  background: #ff5722;
}

.top-button--middle {
  vertical-align: middle;
}
/***************************/

/*** Menu Styles ***/
.wp-block-navigation-item:hover,
.current-menu-item {
  color: #ff5722;
}

.wp-block-navigation__container > li {
  padding-bottom: 8px !important;
}

.wp-block-navigation-item.has-child > a {
  cursor: default;
}

.wp-block-navigation__submenu-icon {
  margin-right: 0.25em;
}

.wp-block-navigation__submenu-container {
  box-shadow: 0 5px 15px rgb(0 0 0 / 15%);
  border: none !important;
  left: unset !important;
  white-space: nowrap;
}

/* Disable highlitght for menu items with # link */
.header__menu--nohighlight {
  color: #25282b;
}

/* Show pointer for items that have link */
.header__menu--pointer > a {
  cursor: pointer !important;
}
/***************************/

/*** Tabs Styles ***/
.tabs > div > ul {
  flex-flow: nowrap !important;
}

.tabs > div > ul > li {
  text-align: center;
  text-align: -webkit-center;
}

.tabs > div > ul > li > a {
  height: 5.5rem;
  width: 5.5rem;
  overflow: hidden;
  box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.12);
}

.tabs > div > ul > li > a:hover {
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.3);
}

.tabs__seprator--dashed {
  border-top: 1px dashed #e1e4e5;
  width: 100%;
  align-self: center;
}
/***************************/

/*** Contact Form 7 Styles ***/
.columns__column--center {
  display: flex;
  justify-content: center;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  font: inherit;
  font-size: inherit;
  color: inherit;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"] {
  height: 52px;
}

.wpcf7 textarea {
  height: 150px;
}

.wpcf7 input[type="submit"] {
  display: flex;
  margin: auto;
  padding: 6px 50px;
  border: none;
  font: inherit;
  color: inherit;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0.1em 0.2em rgb(0 0 0 / 10%);
  transition: box-shadow 0.1s;
}

.wpcf7 input[type="submit"]:hover {
  box-shadow: 0 0.1em 0.4em rgb(0 0 0 / 15%);
  background: #f1f1f1;
}
/***************************/

/*** Posts Styles ***/
.ultp-block-title {
  text-align: justify;
  line-height: 1.7rem;
}

.ultp-block-excerpt {
  text-align: justify;
}

.ultp-block-readmore {
  float: left;
}

.ultp-block-readmore > a {
  width: fit-content;
}
/***************************/

/*** Mobile Styles ***/
@media (max-width: 1023px) {
  .ultp-block-row {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 767px) {
  .kt-tab-title {
    border-radius: 5px !important;
    padding: 8px !important;
    margin-bottom: 8px;
  }

  .ultp-block-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 599px) {
  .header__menu {
    height: 48px;
  }

  /* Remove blue highlight color on click */
  button,
  li {
    -webkit-tap-highlight-color: transparent;
  }

  .wp-block-navigation__responsive-container {
    display: flex;
    padding: 20px !important;
    width: 90%;
    max-width: 300px;
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 100000;
  }

  .wp-block-navigation__responsive-container.is-menu-open {
    transform: none;
    color: inherit !important;
    font-size: 0.9rem;
    box-shadow: -5px 0px 20px 0px rgb(0 0 0 / 40%);
  }

  .wp-block-navigation__container {
    gap: 0 !important;
  }

  /* Padding for close button */
  .wp-block-navigation__responsive-container-content {
    padding-top: calc(1rem + 24px);
  }

  /* Override wp default inherit color */
  li.wp-block-navigation-item.current-menu-item.wp-block-navigation-link,
  li.wp-block-navigation-item.wp-block-navigation-link:hover {
    color: #ff5722 !important;
  }

  li.wp-block-navigation-item.current-menu-item.header__menu--nohighlight.wp-block-navigation-link {
    color: #25282b !important;
  }

  .wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) {
    background-color: white !important;
  }
  /****************/

  .wp-block-navigation__submenu-container {
    box-shadow: none;
    padding-top: 8px !important;
  }
}

@media (max-width: 480px) {
  .ultp-block-row {
    grid-template-columns: 1fr !important;
  }

  .ultp-block-entry-content {
    text-align: center !important;
  }
}
/***************************/
