/* Theme Name: Build It 
Theme Name: Dev-2022
Theme URI: https://frontendtanfolyam.hu/
Author: Anita Koppany
Author URI: https://web.viranita.hu/
Description: Basic Theme by Anita Koppany
Tags: one-column, custom-colors, custom-menu
Version: 1.1
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dev-2022
*/
:root {
  --ff-normal: "Barlow", sans-serif;
  --ff-accent: "Poppins", sans-serif;

  --clr-main: black;
  --clr-white: white;
  --clr-blue-300: #e7f3fc;
  --clr-blue-400: #183b7d;
  --clr-orange-400: #f2663a;
  --clr-grey-300: rgba(0, 0, 0, 0.15);

  --fw-300: 300;
  --fw-400: 400;
  --fw-600: 600;
  --fw-700: 700;

  --fs-400: 1.125rem;
  --fs-500: 1.375rem;
  --fs-600: 1.25rem;
  --fs-700: 2rem;
  --fs-800: 2.8125rem;

  --gap-m: 1rem;

  --gap: 2.5rem;
  --padding: 0.75em 1.25em;
  --br: 50px;
  --br-style: 5px solid var(--clr-blue-300);
  --spacer: 1rem;
  --spacer-md: calc(var(--spacer) * 2);
  --spacer-lg: calc(var(--spacer) * 3);
  --shadow: 0 0 1em rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 0 0.5em rgba(0, 0, 0, 0.15);
  --glowing: 0 0 1em rgba(255, 255, 255, 0.5);

  --form-ui-color: var(--clr-gold-400);
  --form-ui-bg: var(--clr-gold-300);
  --form-size: var(--spacer-md);
  --form-border-radius: 0.25rem;
  --form-border: solid 2px var(--clr-gold-300);
  --form-box-shadow: none;
}

*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

img {
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
  vertical-align: top;
  max-width: 100%;
  height: auto;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  margin: 1.5rem 0;
}

td,
th {
  padding: 0.5rem 1rem;
  border: solid 1px #ddd;
}

th {
  background: var(--clr-blue-300);
  text-align: left;
}

ul,
ol {
  padding: 0;
}

ul ul,
ul ul ul,
ol ol,
ol ol ol {
  margin: 0.5rem 0;
}

ol ol,
ol ol ol {
  padding-left: 1rem;
}

ul li {
  list-style-type: disc;
  margin-bottom: 0.25rem;
  margin-left: 1rem;
  line-height: 1.3;
}

ul li::marker {
  color: var(--clr-orange-400);
}

ol {
  list-style: none;
  counter-reset: my-counter;
}

ol li {
  counter-increment: my-counter;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  padding-left: 2rem;
  position: relative;
}

ol li::before {
  content: counter(my-counter) ".";
  background: var(--clr-orange-400);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-block;
  line-height: 1.5rem;
  color: white;
  text-align: center;
  margin-right: 0.5rem;
  position: absolute;
  left: 0;
  font-size: smaller;
}

.col-2-list {
  display: flex;
  gap: var(--gap-m);
  flex-wrap: wrap;
}

.col-2-list li {
  width: calc((100% - var(--gap-m)) / 2);
  margin-bottom: 1rem;
}
p {
  line-height: 1.5;
}

a {
  color: var(--clr-orange-400);
  text-decoration: none;
}

a:hover {
  color: #000;
  text-decoration: none;
}

.uppercase {
  text-transform: uppercase;
}

.grey-text {
  color: var(--form-ui-bg);
}
html {
  font-size: 18px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--ff-normal);
  font-size: 1rem;
}

h1,
h2,
h3 {
  font-family: var(--ff-accent);
  color: var(--clr-blue-400);
}

h1 {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
}

h2 {
  font-size: 2rem;
  margin: 1.5rem 0 1rem 0;
}

h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem 0;
}

h4 {
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem 0;
}

h2 a,
h3 a,
h4 a {
  color: inherit;
}

blockquote,
q {
  quotes: none;
}

blockquote {
  background: var(--clr-blue-300);
  margin: 1.5rem 0;
  padding: 0.5rem 1.5rem;
  overflow: hidden;
  border-left: solid 5px var(--clr-orange-400);
}

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

header {
  padding: 1.25rem 0;
  background-color: #fff;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1));
}

header .content-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#logo {
  width: 170px;
}

#page-title {
  padding: 3rem 0;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 80px,
    var(--clr-blue-300) 80px
  );
  margin-bottom: 2rem;
}

.border-text {
  background: rgb(255, 255, 255);
  background: linear-gradient(
    -45deg,
    var(--clr-blue-300) 0%,
    var(--clr-blue-300) 40px,
    #fff 40px
  );
  border: 5px solid var(--clr-blue-300);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 0 5px var(--clr-white);
}

footer {
  background-color: var(--clr-blue-400);
  color: var(--clr-white);
  padding: 3rem 0 0 0;
  font-size: smaller;
  margin-top: 2rem;
}

footer h3 {
  color: var(--clr-white);
}

#copyright {
  margin-top: 3rem;
  padding: 1rem 0;
  text-align: center;
  font-size: smaller;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

#partners {
  padding: 3rem 0;
}

#partners ul {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
}

#partners li {
  margin: 0;
  padding: 0;
  list-style-type: none;
  width: calc((100% / 8) - 3rem);
}

#partners li img {
  filter: grayscale(1);
  opacity: 0.5;
}

.dashed,
.home h1,
.home h2 {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.dashed::before,
.home h1::before,
.home h2::before {
  position: absolute;
  content: "";
  display: block;
  bottom: 0;
  left: -5px;
  height: 5px;
  width: 60px;
  background-color: var(--clr-orange-400);
  transform: skewX(-45deg);
}

.dashed::after,
.home h1::after,
.home h2::after {
  /* position: absolute; */
  content: "";
  display: block;
  bottom: 0;
  left: -5px;
  height: 5px;
  width: 100%;
  background-color: var(--clr-grey-300);
  background: repeating-linear-gradient(
    -45deg,
    var(--clr-grey-300),
    var(--clr-grey-300) 5px,
    rgba(255, 255, 255, 0) 5px,
    rgba(255, 255, 255, 0) 10px
  );
}

/* Kezdőlap */
.home {
  --cornersize: 6vw;
}
.home h1,
.home h2 {
  text-transform: uppercase;
}

.home h1 {
  font-size: 2rem;
}

.home section {
  padding-block: 8vw;
}

#hero {
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

#hero .border-text {
  margin-bottom: 0;
  max-width: 36rem;
}

#hero .button,
.home main .button {
  background-image: url(img/arrow-right-w.svg);
  background-position: center right 10px;
  background-repeat: no-repeat;
  background-size: auto 0.75rem;
  padding-right: 2rem;
}

.light-bg {
  background-color: var(--clr-blue-300);
}

.corner-left,
.corner-right {
  position: relative;
}

.corner-left::before,
.corner-left::after {
  position: absolute;
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
}

.corner-left::before {
  top: calc(var(--cornersize) * -1);
  left: 0;
  border-width: var(--cornersize) 0 0 var(--cornersize);
  border-color: transparent transparent transparent var(--clr-blue-300);
}

.corner-left::after {
  bottom: 0;
  right: 0;
  border-width: 0 0 var(--cornersize) var(--cornersize);
  border-color: transparent transparent var(--clr-white) transparent;
}
.corner-right::before,
.corner-right::after {
  position: absolute;
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
}

.corner-right::before {
  top: calc(var(--cornersize) * -1);
  right: 0;
  border-width: 0 0 var(--cornersize) var(--cornersize);
  border-color: transparent transparent var(--clr-blue-300) transparent;
}

.corner-right::after {
  bottom: 0;
  left: 0;
  border-width: var(--cornersize) 0 0 var(--cornersize);
  border-color: transparent transparent transparent var(--clr-white);
}

.subtitle {
  font-weight: bold;
  color: var(--clr-main);
  line-height: 1.2;
  padding: 0;
  margin: 0;
}

.subtitle a {
  color: var(--clr-main);
}

.read-more {
  font-weight: bold;
}

.about_img > div {
  column-count: 2;
  column-gap: 5px;
}

.about_img figure {
  margin: 0 0 5px 0;
}

.about_icons {
  display: flex;
  gap: var(--gap-m);
  flex-wrap: wrap;
}
.about_icons li {
  width: calc((100% - (var(--gap-m) * 2)) / 3);
  background-color: var(--clr-blue-400);
  color: var(--clr-white);
  list-style-type: none;
  padding: 6rem 1rem 1rem 1rem;
  margin: 0;
  text-align: center;
  font-weight: bold;
  background-position: top 1rem center;
  background-repeat: no-repeat;
  background-size: 4rem auto;
}
.about_icons li:first-of-type {
  background-image: url(img/certificate-w.svg);
}
.about_icons li:nth-of-type(2) {
  background-image: url(img/quality-w.svg);
}
.about_icons li:last-of-type {
  background-image: url(img/architect-w.svg);
}

.work-for .wp-block-column {
  position: relative;
  padding-left: 6rem;
}
.work-for .wp-block-column::before {
  content: "";
  display: block;
  height: 4rem;
  width: 4rem;
  background-color: var(--clr-blue-400);
  position: absolute;
  left: 1rem;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 2.5rem auto;
}

.work-for .wp-block-column:first-of-type::before {
  background-image: url(img/detached-w.svg);
}
.work-for .wp-block-column:nth-of-type(2)::before {
  background-image: url(img/condo-w.svg);
}
.work-for .wp-block-column:last-of-type::before {
  background-image: url(img/college-w.svg);
}

.work-for h3 {
  margin-top: 0;
}

.work-how_img {
  position: relative;
  bottom: calc(-8vw - 1.75rem);
}

.work-how_img img {
  width: 90%;
  height: auto;
}

.read-more svg {
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.read-more path {
  fill: var(--clr-orange-400);
}

#services .border-text {
  min-height: 320px;
}

/*accordion*/
.accordion {
  margin: 0 0 2rem 0;
  clear: both;
}

.accordion .accordion-content {
  display: none;
}

.accordion .accordion-title h2,
.accordion .accordion-title h3,
.accordion .accordion-title h4 {
  margin: 0;
}

.accordion .accordion-title {
  cursor: pointer;
  margin: 0;
  line-height: 1.3;
  border-bottom: solid 1px #ddd;
  color: inherit;
  padding: 0.65rem 0.5rem 0.65rem 2rem;
  position: relative;
}

.accordion .accordion-title:after {
  border-style: solid;
  border-width: 2px 2px 0 0;
  content: "";
  display: inline-block;
  height: 0.6rem;
  width: 0.6rem;
  background: transparent;
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -0.3rem;
  transform: rotate(45deg);
  vertical-align: top;
}

.accordion .accordion-title.active,
.accordion .accordion-title:hover {
  color: var(--clr-orange-400);
}

.accordion .active h4 {
  border-bottom: none;
}

.accordion .accordion-title.active:after,
.accordion .accordion-title:hover:after {
  transform: rotate(135deg);
  left: 0.25rem;
  margin-top: -0.35rem;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.accordion .accordion-content {
  margin: 0;
  padding: 1rem 2rem;
  overflow: hidden;
  border-bottom: solid 1px #ddd;
}

.accordion .accordion-content p {
  line-height: 1.4 !important;
}

.accordion .accordion-content p:last-of-type {
  margin: 0 !important;
}
/*end of accordion*/

.post-meta {
  display: flex;
}

.post-meta li {
  list-style-type: none;
  padding: 0;
  margin: 0;
  margin-right: 2rem;
}

.post-meta li svg {
  width: 1rem;
  height: 1rem;
  vertical-align: baseline;
  margin-right: 0.25rem;
}

.post-meta li svg path {
  fill: var(--clr-orange-400);
}

.post-tags {
  border-top: 3px solid var(--clr-blue-300);
  padding-top: 1rem;
}

.post-tags a,
.wp-block-tag-cloud a {
  display: inline-block;
  background-color: var(--clr-blue-400);
  color: var(--clr-white);
  font-size: 0.75rem !important;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}
.post-tags a:hover,
.wp-block-tag-cloud a:hover {
  background-color: var(--clr-blue-300);
  color: var(--clr-blue-400);
  font-weight: bold;
}

span.post-tags a {
  background-color: inherit;
  color: var(--clr-orange-400);
}

span.post-tags a:hover {
  font-weight: bold;
}

#author {
  display: flex;
}

#author div:first-of-type {
  flex-basis: 8rem;
  flex-grow: 0;
  flex-shrink: 0;
}

.avatar {
  width: 6.5rem;
  height: auto;
  border-radius: 50%;
  border: 4px solid var(--clr-blue-300);
}

.comment-author,
.comment-meta {
  display: inline-block;
  margin-right: 1rem;
}

.comment-author img {
  width: 2rem;
  border: none;
}

.comment-body {
  border-bottom: 1px solid var(--clr-grey-300);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.comment-body p,
.comment-body .reply {
  padding-left: 2rem;
}

.comment-list > li {
  padding: 0;
}

.comment-list li::before {
  content: none;
}

#related-posts img {
  margin-bottom: 1rem;
}

#related-posts .post-tags {
  border-top: none;
  padding-top: 1rem;
}

.archives img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.pagination {
  text-align: center;
  display: inline-block;
  margin: 0 auto;
  background-color: var(--clr-blue-300);
}
.pagination a,
.pagination span {
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  display: block;
  float: left;
  border: 1px solid var(--clr-white);
  font-weight: bold;
}

.pagination .current {
  background-color: var(--clr-blue-400);
  color: var(--clr-white);
}

.ad-banner {
  margin: 2rem 0;
  text-align: center;
}

aside > div {
  background-color: var(--clr-blue-300);
  padding: 1rem;
  margin-bottom: 1rem;
}
.wp-block-search__button.has-icon {
  line-height: 1 !important;
}
.wp-block-search.wp-block-search__button-inside
  .wp-block-search__inside-wrapper {
  border: none !important;
  width: 100% !important;
}
input[type="search"],
.wp-block-search__input {
  margin-bottom: 0 !important;
  min-width: 0px !important;
}
.search-btn {
  background-color: var(--clr-orange-400);
  color: --clr-white;
}

.tanusitvany figure:first-of-type,
.tanusitvany figure:nth-of-type(2) {
  display: inline-block;
  width: 40%;
  max-width: 150px;
  height: auto;
}

.tanusitvany figure:nth-of-type(3) {
  max-width: 200px;
  height: auto;
}

.kapcsolat-info {
  background: rgb(255, 255, 255);
  background: linear-gradient(
    -45deg,
    var(--clr-blue-300) 0%,
    var(--clr-blue-300) 40px,
    #fff 40px
  );
  border: 5px solid var(--clr-blue-300);
  padding: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.kapcsolat-info h4 {
  margin-top: 0;
}
.kapcsolat-info img {
  border-radius: 50%;
  width: 100px;
  height: auto;
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  #page-title {
    padding: 1rem 0;
  }
  .border-text {
    padding: 0.75rem;
  }
}
