/*
Theme Name: Autósiskola
Author: Törjék Erzsébet - Paletta webstúdió
Description: Autósiskolának készített egyedi weboldal. 
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --body-bg: #F7F7F7;
    --orange: #BF6D40;
    --title: #232734;
    --blue: #4076B2;
    --body-txt: #707070;
    --light-txt: #F7F7F7;
    --dark-bg: rgba(35, 39, 52, 0.8);
    --radius: 0.3rem;
    --photo-shadow: 2px 2px 8px 0 rgba(35, 39, 52, 0.3);
    --button-shadow: 2px 3px 8px 0 rgba(35, 39, 52, 0.7)
}

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

html {
    font-size: 1.25vw;
}

/*reszponzív font méret*/
@media only screen and (max-width: 1024px) {
    html {
        font-size: 1.4vw;
    }
}

/*tablet*/
@media only screen and (max-width: 768px) {
    html {
        font-size: 22px;
    }
}

/*telefon*/
@media only screen and (max-width: 480px) {
    html {
        font-size: 18px;
    }
}

body {
    margin: 0;
    padding: 0;
    color: var(--body-txt);
    font-family: "Noto Sans", sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

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

a:hover {
    color: var(--blue);
}

.current-menu-item > a   {
    color: var(--orange)!important;
}

p,
li {
    line-height: 1.5;
}

h2,
h3 {
    font-family: "Roboto", sans-serif;
    color: var(--title);
}

h1 {
    font-family: "Roboto", sans-serif;
    font-size: 3.2rem;
    position: relative;
    padding-bottom: 0;
    margin-bottom: 0;
    color: var(--light-txt);
    line-height: 3.8rem;
    margin-top: 0.5vw;
}

.h1-dark {
    color: var(--title);
}

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 0;
    margin-top: 0;
}

h3 {
    font-size: 1.5rem;
}

.single-post .h1-dark,
.widget h3 {
    margin-top: 2rem;
    margin-bottom: 0;
}

.archive h1,
.archive p {
    color: var(--title);
    text-align: center;
}

.archive h1 {
    margin-top: 2rem;
}

h4 {
    font-size: 1rem;
    color: var(--body-txt);
    text-decoration: none !important;
}

h2 a,
h3 a {
    color: var(--orange);
}

.highlight {
    color: var(--blue);
    font-weight: 500;
    font-size: 1.5vw;
    margin-bottom: 15px;
    margin-top: 0.2rem;
    font-style: italic;
}

ul {
    padding-left: 20px;
    list-style-type: disclosure-closed;
}

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

blockquote {
    background: var(--title);
    margin-left: 0;
    border-left: solid 8px var(--orange);
    padding: 0.5rem 0.75rem;
    color: var(--light-txt);
    font-weight: 300;
}

/*gomb*/
input[type=submit],
.button,
.wp-block-button a,
.content-box .home-blog .button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    color: #fff;
    background-color: var(--blue);
    text-transform: uppercase;
    font-weight: normal;
    font-style: italic;
    border: none;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
    border-radius: 0.2rem;
    margin-top: 1.5rem;
}

.button, .gomb a {
     box-shadow: var(--button-shadow);
}

input[type=submit]:hover,
.button:hover,
.content-box .home-blog .button:hover,
.wp-block-button a:hover {
    background-color: var(--orange);
    color: #fff;
    cursor: pointer;
}

.button-orange,
.wp-block-post-excerpt__more-link {
    display: inline-block;
    color: var(--orange);
    text-transform: uppercase;
    font-weight: normal;
    font-style: italic;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

.wp-block-post-excerpt__excerpt,
.wp-block-post-excerpt__more-text {
    margin-bottom: 1rem;
}

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

header {
    background: var(--title);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.10);
}

#top-head {
    /*kék kapcsolati infók a header-ben*/
    background: var(--blue);
    color: var(--light-txt);
    font-size: 0.8rem;
}

#top-head .content-box,
#head .content-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#top-head ul {
    display: flex;
    color: var(--light-txt);
    gap: 1.5rem;
    margin: 0.4rem 0;
    font-family: "Noto Sans", sans-serif;
}

#top-head ul li::marker {
    content: '';
}

#top-head a {
    color: var(--light-txt);
}

#top-head a img {
    width: 1.15rem;
    vertical-align: middle;
    margin-right: 0.25rem;
}

#logo {
    margin-left: -3vw;
    background: var(--light-txt);
    padding: 1rem 3rem;
}

#logo svg {
    max-width: 5rem;
    vertical-align: middle;
    margin: 0 auto;
}

.hero {
    /*kezdőoldal sötét háttér a fényképen*/
    background: var(--dark-bg);
    overflow: hidden;
    padding: 6vw 0;
    color: var(--light-txt);
    z-index: 1;
}

.home-hero {
    /*kezdőoldal hero fotó*/
    background-image: url(img/home-hero-photo2.jpg);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 2;
    box-shadow: var(--photo-shadow);
}

/*KÁRTYA STÍLUSOK*/
.box-style,
.home-blog ul li,
.tanfolyam-cta ul li {
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.10);
    background-color: #fff;
    box-shadow: 0 2px 10px 0 rgba(1, 122, 111, 0.20);
    padding: 0 1.5rem;
    overflow: hidden;
}

.archive .column-3 {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.home-blog ul li h3,
.column-3 .home-blog h3 {
    margin: 1rem 0 0.5rem 0;
    min-height: 1em;
}

.content-box .home-blog,
.content-box .home-blog ul li {
    border-radius: var(--radius);
    background-color: #fff;
    padding: 0 0;
    overflow: hidden;
}

.archive .home-blog {
    box-shadow: var(--photo-shadow);
}

.content-box home-blog a {
    background-color: var(--title);
    margin-top: 0;
}

.content-box .home-blog h3 {
    padding: 0 0;
    overflow: hidden;
    color: var(--body-txt);
}

.content-box .home-blog p,
.content-box .home-blog h3 {
    padding: 0 1rem;
    text-align: left;
}

.content-box .home-blog h3 {
    color: var(--title);
    font-size: 1.5rem;
    height: 4rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 2rem;
}

.content-box .column-3 .home-blog {
    display: flex;
    text-align: left;
    flex-direction: column;
    justify-content: space-between;
    height: 36rem;
}

.content-box .home-blog .button {
    align-self: center;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.wide {
    width: calc(100vw - 18px);
    position: relative;
    left: calc(50% + 9px);
    margin-left: -50vw;
}

.wide-photo-frontpage {
    background-image: url(img/home-hero-photo2.jpg);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
    z-index: 0;
}

.wide-photo-frontpage::before,
.home-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 39, 52, 0.8);
    z-index: 1;
}

.wp-block-group__inner-container .wp-block-heading {
    text-align: left;
    justify-content: start;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 3;
}

.home-hero p,
.wp-block-group__inner-container .wp-block-buttons {
    position: relative;
    z-index: 3;
}

.wide-blue-bg {
    /*ALOLDALAK FEJLÉCE*/
    margin-top: 0;
    text-align: left;
    justify-content: start;
}

.narrow,
.archive p {
    max-width: 50rem;
    margin: 0 auto;
}

.home-blog ul li figure,
.tanfolyam-cta ul li figure {
    margin: 0 -1.5rem;
}

.decor {
    margin-left: 1.5vw;
    position: relative;
    display: inline-block;
    box-shadow: var(--photo-shadow);
}

.decor::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 0;
    bottom: 0;
    width: 2px;
    border-left: 12px dashed var(--orange);
}

.decor-right {
    margin-right: 1.5vw;
    position: relative;
    display: inline-block;
    box-shadow: var(--photo-shadow);
}

.decor-right::before {
    content: '';
    position: absolute;
    right: -25px;
    top: 0;
    bottom: 0;
    width: 2px;
    border-right: 12px dashed var(--orange);
}

.about {
    background-image: url(img/track.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 6vw;
    padding-bottom: 6vw;
    background-color: #fff;
    margin-bottom: 0;
}

.about-txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wp-block-columns .about-txt {
    display: flex;
}

.numbers .wp-block-column .wp-block-heading,
.numbers .wp-block-column p {
    z-index: 4;
    position: relative;
    text-align: center;
}

.numbers .wp-block-column p {
    color: var(--light-txt);
    margin-top: 0;
    margin-bottom: 0;
}

.table-responsive {
    overflow-x: auto;
}

.orange-box,
.orange-box a {
    background: var(--orange);
    color: var(--light-txt);
    text-align: center;
    width: 100%;
    fill: var(--light-txt);
    margin-top: 0;
}

.orange-box {
    border-right: 2px solid var(--body-bg);
}

.orange-box img {
    max-width: 100px;
    height: auto;
    width: 25vw;
    margin-top: 1.5rem;
}

.orange-box p {
    padding-top: 0;
    padding-bottom: 0;
}

.orange-box h3,
.orange-box figure {
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 0.5;
}

.wp-block-columns.is-layout-flex.no-gap { /*orange-boxok közötti gap megszüntetésére*/
    display: flex;
    gap: 0;
}

.wp-block-column.orange-box:hover {
    box-shadow: 2px 2px 8px 0 rgba(35, 39, 52, 0.7);
}

.orange-box .wp-block-button {
    padding-bottom: 1rem;
}

.orange-box a:hover {
    color: var(--title);
}

.white-box { /*gépjármű kategóriák box*/
    box-shadow: 2px 2px 8px 0 rgba(35, 39, 52, 0.7);
    padding: 5px 25px;
}

.wp-block-column.white-box {
    background-color: white;
    transition: background-color 0.3s ease;
}

.wp-block-column.white-box:hover {
    background-color: var(--body-bg);
    box-shadow: 3px 3px 9px 0 rgba(35, 39, 52, 0.7);
}

.reszletek { /*gépjármű kategóriák - részletek gomb*/
    text-transform: uppercase;
    color: var(--orange);
    font-style: italic;
}

.reszletek a:hover { /*gépjármű kategóriák - részletek gomb*/
    color: var(--blue);
}

.masonry-gallery {
    column-count: 3;
    column-gap: 1rem;
}

.masonry-gallery img {
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
    display: block;
    border-radius: 2px;
}

/*JELENTKEZÉS ŰRLAP*/
form {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

input[type=text],
input[type=email],
input[type=tel],
textarea,
select {
    border: solid 1px var(--light-txt);
    background: #fff;
    box-shadow: 1px 1px 8px 0 rgba(35, 39, 52, 0.4);
    padding: 1rem;
    border-radius: 2px;
    margin-bottom: 0.1rem;
    width: 100%;
    margin: 0 auto;
    font-size: medium;
    font-family: "Noto Sans", sans-serif;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
textarea:focus,
select:focus {
    border: solid 1px var(--orange);
    box-shadow: 2px 2px 8px 0 rgba(35, 39, 52, 0.4);
    color: var(--title);
    font-family: "Noto Sans", sans-serif;
    outline: none;
}

input[type=email] {
    width: 50%;
}

input[type=tel] {
    width: 48%;
    margin-left: 2%;
}

label {
    text-align: left;
    float: left;
    width: 70%;
}

textarea {
    height: 100px;
}

label {
    text-align: start;
}

input[type=submit] {
    margin-top: 0.5rem;
}

input[type="file"] {
    font-family: "Noto Sans", sans-serif !important;
    font-size: 14px;
    color: var(--title);
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: var(--radius);
    width: auto;
}

input[type="file"]:hover {
    border-color: var(--orange);
}

select:focus {
    border-color: var(--orange);
    outline: none;
}

option {
    font-size: 16px;
    padding: 10px;
}

option:hover {
    background-color: #f0f0f0;
}

select:hover {
    border-color: var(--orange);
}

.wpcf7 form.sent .wpcf7-response-output {
    border: var(--blue);
    color: var(--blue);
    font-weight: bold;
}

input[type="file"]:focus {
    border-color: #ff6f00;
}

.wp-block-list img {
    max-width: 1.15rem !important;
    vertical-align: middle;
    margin-right: 0.25rem;
}

/*FOOTER*/
footer {
    background-image: url(img/track.jpg);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 2;
    color: var(--light-txt);
    font-size: smaller;
    font-weight: lighter;
    padding: 3rem 0 2rem 0;
    position: relative;
    margin-top: 3rem;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 39, 52, 0.95);
    z-index: 1;
}

footer * {
    position: relative;
    z-index: 2;
    justify-content: space-between;
}

footer .column-4 {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer img {
    width: 100px;
}

footer a,
footer h3,
footer p,
footer li {
    color: var(--light-txt);
}

footer a:hover {
    color: var(--orange);
}

footer h3 {
    text-transform: uppercase;
    font-size: smaller;
}

footer p {
    font-size: smaller;
}

footer img {
    max-width: 1.15rem !important;
    vertical-align: middle;
    margin-right: 0.25rem;
}

footer ul li::marker {
    content: '';
}

footer ul {
    padding-left: 0;
}

/*Footer űrlap*/
footer input[type=text],
footer input[type=email],
footer input[type=tel],
footer textarea {
    background: rgba(247, 247, 247, 0.9);
    box-shadow: 0 2px 2px var(--body-txt);
    padding: 0.1rem;
    border-radius: 2px;
    margin-bottom: 0.1rem;
    width: 100%;
}

footer form {
    width: 100%;
}

footer textarea {
    height: 60px;
}

footer input[type=submit] {
    margin-top: 0.4rem;
    padding: 0.4rem;
    font-size: 0.8rem;
}

.wpcf7-list-item {
    margin-left: 0;
    font-size: smaller;
}

footer form p  {
    line-height: 0.5rem
}
.archive footer p {
    color: var(--light-txt);
        margin-top: 0.5rem;
    text-align: left;
}

footer label a {
    /*footer adatkezelési tájékoztató*/
    color: var(--orange);
}

footer label {
    text-align: left;
    float: left;
    width: 100%;
}

#logo-footer {
    background-color: rgba(247, 247, 247, 0.7);
    padding: 0.8rem 2rem;
    text-align: center;
}

#logo-footer svg {
    max-width: 4rem;
    vertical-align: middle;
    margin: 0 auto;
}

#copyright, .archive #copyright p {
    background: var(--title);
    color: rgba(244, 244, 244, 0.5);
    font-size: 0.7rem;
    font-weight: 100;
    overflow: hidden;
}

.archive #copyright p {
    padding: 0.7rem 0;
}

@media only screen and (max-width: 1281px) {
    #logo {
        margin-left: -5vw;
    }

    .wide {
        width: 100vw;
        position: relative;
        left: 50%;
        margin-left: -50vw;
    }
/*.decor-right,/*nincs narancssárga csík kis kijelzőn!*/
    /*.decor {
         display: none;
    }*/
  .content-box ul {
    list-style-type: square;
  }
     #top-head .wp-block-list, footer ul li {
        list-style: none;
    }

}

@media only screen and (min-width: 481px) and (max-width: 768px) {
    #head {
        background-color: var(--light-txt);
    }

    .orange-box {
        max-width: 50%;
        height: auto;
        border-bottom: 2px solid var(--body-bg);
        border-right: 2px solid var(--body-bg);
    }

    .orange-box h3 {
        line-height: 1;
    }

    .decor-right,/*nincs narancssárga csík kis kijelzőn!*/
    .decor {
        display: none;
    }

    h1
     {
        font-size: 2rem;
        line-height: normal;
        text-align: center;
    }

    h2 {
        font-size: 1.8rem;
    }

    footer .wp-block-group__inner-container .wp-block-heading {
        font-size: 0.8rem;
        text-align: left;
    }

    .highlight {
        font-size: larger;
    }

    .wp-block-table,
    .table-responsive {
        overflow-x: auto;
        display: block;
        font-size: 15px;
    }

    table {
        min-width: 1000px;
        width: 100%;
    }
}

@media only screen and (max-width: 480px) {
    body {
    overflow-x: hidden!important;
}
    #logo {
        margin-left: 0;
        padding: 1rem 0;
    }

    #head {
        background-color: var(--light-txt);
    }

    #top-head .content-box div {
        display: block;
    }
    .content-box ul {
        list-style-type: disclosure-closed;
    }
    #top-head .wp-block-list {
        display: block;
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

    #top-head ul li {
        margin: 0;
        padding: 0.3rem 0;
    }
    
    .decor, .decor-right {
        display: none;
    }

    h1,
    .wp-block-group__inner-container .wp-block-heading {
        font-size: 2.1rem;
        line-height: normal;
        text-align: center;
    }

    h2 {
        font-size: 2rem;
    }

    .about {
        padding-bottom: 14vw;

    }

    .wp-block-spacer {
        max-height: 25px;
    }

    footer .wp-block-group__inner-container .wp-block-heading {
        font-size: 0.8rem;
        text-align: left;
    }

    .highlight {
        font-size: larger;
    }

    .about-oktatok {
        display: block !important;
    }

    footer .column-4 > .wp-block-group {
        width: 100% !important;
    }

    .wide {
        width: 100vw;
        position: relative;
        left: 50%;
        margin-left: -50vw;
    }

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

    .about-txt {
        margin: 0 auto;
    }

    .numbers {
        margin-top: 1rem;
    }

    form {
        width: 100%;
    }

    .wp-block-table,
    .table-responsive {
        overflow-x: auto;
        display: block;
    }

    table {
        min-width: 1000px;
        width: 100%;
    }

    #main-menu ul li a {
        display: block;
        padding: 0.25rem 0;
    }

    .wp-block-buttons {
        justify-content: center;
    }

    .about-txt .wp-block-button .wp-block-button {
        justify-content: flex-start;
    }

    .orange-box {
        border-bottom: 2px solid var(--body-bg);
        border-right: 0;
    }

    footer ul li {
        list-style: none;
    }

    .wpcf7-list-item {
        margin-left: 20px;
    }

    footer ul li:nth-child(7) a img { /*facebook ikon kicsit nagyobb legyen mint a többi*/
        max-width: 1.5rem !important;
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
    }

    footer label {
        font-size: 12px;
    }

    .wpcf7-list-item {
        /* footer adatvédelmi elfogadás*/
        margin-left: 0;
    }
}