/*
 * Theme Name:  AWR
 * Theme URI:   https://www.advancedwebranking.com/blog/
 * Description: AWR Child Theme
 * Template:    squaretype
 * Version:     1.0.0
 */

/* Copy any classes from parent theme here. They will override the parent's version. */

/*
*  Inline-block grid
*  1. One breakpoint, for now, medium devices (tablets, 768px and up)
*  2. grid__col--xs
*/

.container {
  max-width: 80em;
  padding-left: 10px;
  padding-right: 10px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  margin-bottom: 20px;
  letter-spacing: -0.31em;
  text-rendering: optimizespeed;
}

.opera-only :-o-prefocus,
.grid {
  word-spacing: -0.43em;
}

[class*='grid__col--'] {
  display: inline-block;
  width: 100%;
  letter-spacing: normal;
  word-spacing: normal;
  vertical-align: top;
  text-rendering: auto;
}

@media (min-width: 768px) {
  .grid__col--25 {
    width: 25%;
  }

  .grid__col--offset25 {
    margin-right: 25%;
  }

  .grid__col--20 {
    width: 20%;
  }
}
.grid__col--xs25 {
  width: 25%;
}

.grid--mb0 {
  margin-bottom: 0;
}

.grid--gutter {
  margin-left: -20px;
}
.grid--gutter > [class*='grid__col--'] {
  padding-left: 20px;
}

.grid--pad .module {
  padding: 20px;
}

.grid--vmiddle > [class*='grid__col--'] {
  vertical-align: middle;
}


/* Text helpers */
h3, .h3 {
  font-size: 31.5px;
}

h6, .h6 {
  font-size: 18px;
  font-weight: 400;
  margin: 20px 0;
}

.text--left {
  text-align: left;
}

.text--right {
  text-align: right;
}

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

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

.text--nowrap {
  white-space: nowrap;
}

.text--lowercase {
  text-transform: lowercase;
}

.text--uppercase {
  text-transform: uppercase;
}

.text--capitalize {
  text-transform: capitalize;
}

.text--muted {
  color: #777;
}

.small {
  font-size: 80%;
  font-weight: 400;
}

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.pull--right {
  float: right;
}

.mb0 {
  margin-bottom: 0 !important;
}

.mt0 {
  margin-top: 0 !important;
}

/**
 * Highlighted blocks
 * <div class="highlight-box">
  * <p>...</p>
  * <p>...</p>
 * </div>
 */

 .highlight-box {
  border: 10px solid #FE7943;
  border-image: repeating-linear-gradient(45deg, #fff, #fff 6px, #FE7943 0, #FE7943 8px);
  border-image-slice: 10;
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.highlight-box::before,
.highlight-box::after {
  content: "";
  position: absolute;
  border: 22px solid #FE7943;
}

.highlight-box::before {
  left: -10px;
  top: -10px;
  border-bottom-color: transparent;
  border-right-color: transparent;
}

.highlight-box::after {
  right: -10px;
  bottom: -10px;
  border-top-color: transparent;
  border-left-color: transparent;
}

@supports (-webkit-appearance:none) { /* Target only webkit browsers due to Firefox border-image-slice difference */
  .highlight-box {
    border-image-slice: 15;
  }
}

/*
  ---- Custom quote ----
  <div class="quote">
    <div class="quote--person"
      <img src="...">
      <h5>...</h5>
      <p>...</p>
    </div>
    <div class="quote--text">
      <p>...</p>
    </div>
  </div>
*/

.quote {
  border: 0;
  margin-top: 1.75rem;
  margin-bottom: 0;
  font-weight: normal;
}

.quote--person {
  display: flex;
  align-items: center;
  font-family: Montserrat, "Helvetica Neue", sans-serif;
  font-style: normal;
}

.quote--person img {
  width: 80px;
  border-radius: 50%;
  margin-right: 1rem;
}

.quote--person > div h5{
  margin-bottom: .5rem;
}

.quote--text {
  margin-top: 1rem;
  position: relative;
  z-index: 2;
  margin-left: 1rem;
}

.quote--text::before {
  content: url(data:image/svg+xml;base64,PHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA5OCA4MSIgdmlld0JveD0iMCAwIDk4IDgxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Im0yMS44IDgwLjZjLTYuNyAwLTEyLTIuNC0xNi03LjMtMy45LTUtNS44LTEwLjktNS44LTE3LjcgMC01LjYgMS0xMC44IDMuMS0xNS43czQuNy05LjMgNy44LTEzLjJjMy4zLTQgNi43LTcuNCAxMC4yLTEwLjQgMy43LTMuMSA3LjEtNS43IDEwLjItNy43IDMuMi0yLjIgNS43LTMuOCA3LjctNC44IDIuMS0xIDMtMS41IDIuOS0xLjVsNS4xIDYuN2MtMS4zLjYtMy4xIDEuOC01LjMgMy41LTIuMiAxLjYtNC41IDMuNi02LjcgNi0yLjEgMi40LTMuOSA0LjktNS42IDcuNy0xLjYgMi43LTIuNCA1LjMtMi40IDcuOCAwIDEuNS45IDIuOSAyLjcgNC40IDEuOCAxLjMgMy43IDIuOSA1LjggNC45IDIuMSAxLjggNCA0IDUuOCA2LjYgMS44IDIuNSAyLjcgNS42IDIuNyA5LjMgMCAzLjItLjcgNi4yLTIgOC44LTEuMiAyLjYtMi44IDQuOS00LjkgNi44LTIuMSAxLjgtNC40IDMuMi03IDQuMi0yLjcgMS01LjUgMS42LTguMyAxLjZ6bTU0LjguNGMtMy40IDAtNi41LS43LTkuNC0yLjItMi44LTEuNS01LjMtMy41LTcuNC02cy0zLjctNS40LTQuOS04LjZjLTEtMy40LTEuNi03LTEuNi0xMC44IDAtNy43IDEuNi0xNC43IDQuOS0yMS4yIDMuNC02LjYgNy4xLTEyLjMgMTEuMS0xNyA0LjktNS42IDEwLjQtMTAuNiAxNi41LTE1LjJsNi41IDZjLTEuMy45LTMgMi4zLTQuOSA0LjItMS44IDEuOS0zLjUgNC4yLTUuMSA2LjgtMS41IDIuNS0yLjggNS4xLTQgNy45LTEgMi44LTEuNiA1LjUtMS42IDguMiAwIDEuOCAxLjEgMy4yIDMuMyA0LjRzNC43IDIuNiA3LjMgNC40YzIuNyAxLjggNS4xIDQgNy40IDYuOCAyLjIgMi43IDMuMyA2LjUgMy4zIDExLjMgMCAyLjktLjYgNS43LTEuOCA4LjJzLTIuOCA0LjctNC45IDYuNmMtMS45IDEuOS00LjIgMy41LTYuOSA0LjYtMi41IDEuMS01LjEgMS42LTcuOCAxLjZ6IiBmaWxsPSIjZmU3OTQzIi8+PC9zdmc+);
  position: absolute;
  width: 60px;
  left: -1rem;
  top: -.5rem;
  z-index: -1;
  opacity: .2;
}

/**
 ---- Tips block ----
  <div class="tips-block">
    <p>...</p>
    <p>...</p>
  </div>
*/

.tips-block {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  margin-bottom: 1rem;
  background-color: #ffebe3;
  background-image: linear-gradient(to top, #fff, #ffebe3);
 }

 .tips-block p:last-of-type {
   margin-bottom: 0;
 }

 [data-tips]::before {
  content: attr(data-tips);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #FE7943;
  font-family: Montserrat, "Helvetica Neue", sans-serif;
  font-weight: bold;;
  text-transform: uppercase;
  padding-left: .7rem;
  padding-right: 1rem;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
  color: #fff;
  font-size: 80%;
}

/**
 * Write for us page
 *
 */

 .steps-list {
  display: flex;
  counter-reset: box;
  margin-left: 0;
}

.step {
  display: flex !important;
  flex: 1;
  position: relative;
  clip-path: polygon(100% 0, 100% 80%, 80% 100%, 0 100%, 0 0);
  background-color: #eee;
}

.step::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  background-color: #fff;
  clip-path: polygon(100% 0, 100% 80%, 80% 100%, 0 100%, 0 0);
}

.step:hover {
  background-image: repeating-linear-gradient(45deg, white, white 6px, #FE7943 0, #FE7943 8px);
}

.step a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: .9rem;
  box-shadow: none;
  font-family: Montserrat, "Helvetica Neue", sans-serif;
  font-weight: 600;
  color: #1a1a1a;
  z-index: 2;
}

.step a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  border: 22px solid #ddd;
  border-bottom-color: transparent;
  border-right-color: transparent;
}

.step a::after {
  content: counter(box);
  counter-increment: box;
  position: absolute;
  top: -6px;
  left: 8px;
  font-size: 1.6rem;
  color: #fff;
}

.step a:hover {
  text-decoration: underline;
  color: #FE7943;
}

.step a:hover::before {
  border-top-color: #FE7943;
  border-left-color: #FE7943;
}

.step a:hover::after {
  color: #fff;
}

.step:not(:first-child) {
  margin-left: 12px;
}

.guide-section {
  margin-top: 1rem;
  padding: 1.5rem;
  border: 8px solid transparent;
}

.guide-section:target {
  animation: focus-blink 3s ease-in;
  outline: none;
}

@keyframes focus-blink {
  0% {
    border-color: #FE7943;
  }

  100% {
    border-color: transparent;
  }
}

.guide-note {
  display: inline-block;
  background-color: #FFF0EB;
}

/* Overrides */

.footer-title {
  font-size: 1.3rem !important;
}

.cs-hero .hero-list .cs-post-data .meta-category {
	margin-bottom: 0.75rem;
}

.cs-hero .hero-list .cs-post-data .post-meta {
	margin-top: 0.75rem;
}

.archive-count {
	color: rgba(0, 0, 0, 0.8);
}

.page-subtitle {
	color: rgba(0, 0, 0, 0.8);
}

.meta-category a .label,
.post-meta,
.site-info .footer-col-info .footer-copyright,
.pk-social-links-template-nav .pk-social-links-count {
  color: rgba(0, 0, 0, 0.8);
}

.cs-hero h1 a:hover, .cs-hero h1 a:focus, .cs-hero h2 a:hover, .cs-hero h2 a:focus, .cs-hero h3 a:hover, .cs-hero h3 a:focus, .cs-hero h4 a:hover, .cs-hero h4 a:focus, .cs-hero h5 a:hover, .cs-hero h5 a:focus, .cs-hero h6 a:hover, .cs-hero h6 a:focus,
.cs-hero .h1 a:hover,
.cs-hero .h1 a:focus, .cs-hero .h2 a:hover, .cs-hero .h2 a:focus, .cs-hero .h3 a:hover, .cs-hero .h3 a:focus, .cs-hero .h4 a:hover, .cs-hero .h4 a:focus, .cs-hero .h5 a:hover, .cs-hero .h5 a:focus, .cs-hero .h6 a:hover, .cs-hero .h6 a:focus {
	color: rgba(0, 0, 0, 0.8);
}

.cs-hero .meta-category a:before,
.cs-hero .meta-category a .label {
	color: rgba(0, 0, 0, 0.8);
}

.cs-hero .post-meta {
	color: rgba(0, 0, 0, 0.8);
}

.cs-hero .post-meta a:hover,
.cs-hero .post-meta .author a:hover {
	color: rgba(0, 0, 0, 0.8);
}

.rank-math-breadcrumb {
	font-weight: 600;	
}
