/*
Theme Name: Knote Child
Author: CodeGearThemes
Description: Child theme for Knote
Author URI: https://www.codegearthemes.com
Theme URI: https://www.codegearthemes.com/products/knote
Template: knote
Version: 1.0.0
*/

:root {
  --theme-white-color: #ffffff;
  --theme-black-color: #000000;

  --button-text-color-hover: #ffffff;
  --button-background-color: #436ec4;
  --button-background-hover-color: #3658a6;
  --button-border-color: #436ec4;
  --button-border-hover-color: #3658a6;
}

.btn,
.button,
.read-more,
.btn-primary,
.search-form .search-submit {
  transition: all 0.3s;
}

.single-post .single-article article {
    max-width: 840px;
    margin: 0 auto 30px auto;
}

.go-back-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    line-height: 1;
    margin-top: 45px;
}

.go-back-btn .icon svg {
    width: 32px;
    height: 32px;
}

.hero-video.elementor-widget-video .elementor-wrapper {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: unset !important;
}

/* Header */

.offcanvas-item-hidden {
  display: none;
}

.header-offcanvas .block-header--drawer .js-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 20px;
  right: 15px;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  transition: all 200ms linear;
  transition-delay: 0.1s;
}

.header-offcanvas .main-navigation ul li:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-offcanvas .main-navigation ul ul li a {
  font-size: 14px;
}

.header-offcanvas .main-navigation ul li a {
  color: var(--theme-text-color);
}

.main-navigation .sub-menu-toggle svg {
  transition: all 0.2s ease;
}

.header-offcanvas .main-navigation ul li.expanded .sub-menu-toggle svg {
  transform: rotate(180deg);
}

.drawer {
  padding-top: 15px;
}

.site-branding-mobile a {
  pointer-events: none;
}

.site-branding-mobile img {
  content: url("assets/img/dark-logo.svg");
  max-width: 200px;
}

.header-offcanvas .component-html .header-component__html .border-btn {
  border-color: var(--theme-black-color) !important;
  color: var(--theme-black-color) !important;
}

.header-offcanvas .component-html .header-component__html .border-btn:hover {
  color: var(--button-text-color-hover) !important;
  background: var(--button-background-hover-color) !important;
  border-color: var(--button-border-hover-color) !important;
}

.header-offcanvas .button {
  width: 100%;
}

.site-header .component-hamburger button {
  width: 45px;
  height: 45px;
}

.site-header .component-hamburger button svg {
  width: 36px;
  height: 36px;
}

body:not(.home) .site-header .custom-logo {
  content: url("assets/img/dark-logo.svg");
}

body:not(.home) .site-header [data-header-inner],
body:not(.home) .site-header [builder-location*="_main"],
body:not(.home) .site-header {
  background-color: var(--theme-white-color);
}

body:not(.home) .site-header .main-navigation ul li a {
  color: var(--theme-text-color);
}

body:not(.home) .site-header [builder-location*="_main"],
body:not(.home) .site-header [builder-location*="_below"] {
  box-shadow: none;
}

body:not(.home)
  .site-header
  .component-html
  .header-component__html
  .border-btn {
  border-color: var(--theme-black-color) !important;
  color: var(--theme-black-color) !important;
}

body .site-header .component-html .header-component__html .border-btn:hover {
  color: var(--button-text-color-hover) !important;
  background: var(--button-background-hover-color) !important;
  border-color: var(--button-border-hover-color) !important;
}

body:not(.home)
  .site-header[data-sticky="true"][data-location="main"]
  [builder-location*="_main"],
.site-header[data-sticky="true"][data-location="below"]
  [builder-location*="_below"] {
  background-color: #ffffff;
  box-shadow: none;
}

.site-header.sticky-active[data-sticky="true"][data-location="main"]
  [builder-location*="_main"]
  .site-branding
  img {
  max-width: 200px;
}

.site-header.sticky-active[data-sticky="true"][data-location="main"]
  .builder-header_row_main {
  min-height: auto;
  padding: 10px 0;
}

body:not(.home) .site-header .component-hamburger button {
  color: var(--theme--black-color);
}

body.admin-bar
  .site-header.sticky-active[data-sticky="true"][data-location="main"]
  [builder-location*="_main"] {
  top: 32px;
}

body[data-elementor-device-mode="mobile"]
  .site-header.sticky-active[data-sticky="true"][data-location="main"]
  [builder-location*="_main"],
.site-header.sticky-active[data-sticky="true"][data-location="main"]
  [builder-location*="_main"] {
  top: 0;
}

/* Footer Callbar */
.footer-callbar {
  bottom: 0;
  width: 100%;
  position: fixed;
  background: #436ec4;
  padding: 15px;
  z-index: 100001;
}

.footer-callbar .wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.footer-callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  text-decoration: none;
  width: 50%;
  font-size: 16px;
  gap: 8px;
  text-transform: uppercase;
}

.footer-callbar a.phone-center {
  width: 60px;
  height: 60px;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  -webkit-box-shadow: 0 2px 15px 0 rgba(51, 51, 51, 1);
  -moz-box-shadow: 0 2px 15px 0 rgba(51, 51, 51, 1);
  box-shadow: 0 2px 15px 0 rgba(51, 51, 51, 1);
  border-radius: 60px;
  bottom: 10px;
  background: #172644;
}

/* Footer */

.footer .menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer .menu .menu-item {
  margin-bottom: 2rem;
}

.footer .menu a {
  color: var(--theme--base-color);
  font-size: 1.6rem;
}

.footer .menu a:hover {
  color: var(--theme--primary-color);
}

@media (min-width: 769px) {
  .footer-callbar {
    display: none;
  }
  .single-post .single-article article {
		margin: 0 auto 60px auto;
	}
}

@media screen and (min-width: 881px) {
  .sub-menu-toggle svg {
    width: 18px;
    height: 18px;
  }
  .main-navigation ul ul {
    min-width: 270px;
    border-top: 3px solid var(--theme--primary-color);
    padding: 10px 0;
    box-shadow: 0px 10px 20px 13px rgb(0 0 0 / 10%);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s linear, transform 0.2s linear,
      visibility 0.2s linear;
  }

  .main-navigation ul li:hover > ul,
  .main-navigation ul li:focus > ul,
  .main-navigation ul li.focus > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-navigation ul ul li a {
    font-size: 1.4rem;
    line-height: 1.2;
    border-bottom: 1px solid #d6d6d6;
  }

  .main-navigation ul ul li:last-child a {
    border-bottom: none;
  }
}
