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

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

body {
    /*font-family: Arial, sans-serif;*/
    font-family: "Wix Madefor Text", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    margin: 0;
    padding: 0;
    color: #000;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 320px;
    line-height: 1.7;
}


main > article > header.entry-header h1 {
    padding-top: 1em;
}

main > article > header.entry-header,
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em;
}

header#header {
    background-color: #000;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    align-items: center;
}

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

.logo {
    margin: 10px 0;
}

.logo img {
    height: 100px;
    transition: height 0.3s ease;
}

@media (max-width: 992px) {
    .logo img {
        height: 70px;
    }
}

.hero {
    background-color: #ccc; /* Replace with image later */
    text-align: center;
    padding: 50px 0;
}

.hero h1 {
    margin: 0 0 20px;
}

.hero button {
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.content {
    padding: 1em;
    flex: 1;
}

.content-block-accent .content {
    padding-top: 2em;
    padding-bottom: 2em;
}

section#social {
    background: #f3f3f3;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

section#social a {
    display: block;
    overflow: hidden;
    width: 40px;
    height: 40px;
    margin: 0 4px;
}

section#social a:hover {
    opacity: 0.8;
}

section#social a img {
    width: 40px;
    height: 40px;
}

footer#footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding-bottom: 20px;
    margin-top: auto;
}

footer#footer p {
    margin-bottom: 5px;
}

footer#footer p:last-child {
    margin-bottom: 0;
}

a {
    transition: background-color 0.2s ease;
}

nav .menu-item-has-children > a::after {
    content: "\25BC";
    font-size: 11px;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

nav .menu-item-has-children.focus > a::after,
nav .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

nav ul .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 0;
    background: #202020;
}

nav ul li.menu-item-has-children:hover .sub-menu {
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding-left: 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px;
    font-weight: 700;
}

nav a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

nav .current_page_item > a,
nav .current-menu-parent > a {
    background: rgba(255, 255, 255, 0.16);
}

nav a,
nav a:focus,
nav a:visited,
footer a,
footer a:focus,
footer a:visited {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #aaa;
}

.menu-icon {
    font-size: 30px;
    cursor: pointer;
    display: none;
    position: relative;
    width: 30px;
    height: 30px;
    line-height: 30px;
}

/* Hamburger icon */
.menu-icon::before {
    content: '\2630'; /* Unicode for hamburger icon */
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
}

/* Close icon */
.menu-icon::after {
    content: '\2715'; /* Unicode for close icon */
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
}

.menu-icon.active::before {
    opacity: 0;
    transform: scale(0);
}

.menu-icon.active::after {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 992px) and (min-width: 769px) {
    .pll-parent-menu-item > a span {
        display: none;
    }
}

.wp-block-cover {
    font-size: 2.5em;
    font-weight: 700;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.67em;
}

.heading-centered h1,
.heading-centered h2,
.heading-centered h3,
.heading-centered h4 {
    text-align: center;
}


h2 {
    font-size: 2em;
}

p {
    margin-bottom: 1.5em;
}

hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}

ul,
ol {
    margin: 0 0 1.5em 3em;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li > ul,
li > ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}

a {
    color: #4169e1;
}

a:visited {
    color: #800080;
}

a:hover,
a:focus,
a:active {
    color: #191970;
}

nav ul li {
    position: relative;
}

nav ul li:hover > ul,
nav ul li.focus > ul {
    display: block;
}

nav ul ul {
    display: none;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99999;
    padding: 0;
    margin: 0;
    background: #222;
}

nav ul ul li {
    display: block;
}

nav ul ul a {
    display: block;
    white-space: nowrap;
}


.menu-toggle {
    display: none;
}

nav.toggled ul {
    display: block;
}

.sticky {
    display: block;
}

body .post,
body .page {
    margin: 0 0 3.5em;
}

.page-content .content.container,
.entry-content .content.container,
.entry-summary .content.container {
    margin-top: 1.5em;
}

.comment-content a {
    word-wrap: break-word;
}

.widget {
    margin: 0 0 1.5em;
}

.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin: 0;
}

.custom-logo-link {
    display: inline-block;
}

.gallery {
    margin-bottom: 1.5em;
    display: grid;
    grid-gap: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
    grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
    grid-template-columns: repeat(9, 1fr);
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

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

.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
    display: none;
}

.infinity-end.neverending .site-footer {
    display: block;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

#primary[tabindex="-1"]:focus {
    outline: 0;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.wp-block-cover,
.wp-block-cover-image {
    transition: min-height 0.3s ease;
}

.start-with-cover header.entry-header {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 98px;
        left: 0;
        width: 100%;
        background-color: #111;
    }

    nav.active {
        display: flex;
    }

    nav ul {
        display: flex;
        flex-direction: column;
    }

    nav li {
        text-align: center;
    }

    .container {
        min-width: 320px;
    }

    nav ul ul {
        position: unset;
        width: 100%;
        left: unset;
        top: auto;
    }

    .wp-block-cover,
    .wp-block-cover-image {
        min-height: 200px;
    }

    .wp-block-cover .has-large-font-size {
        font-size: 0.7em !important;
    }

    footer#footer {
        padding-bottom: 70px;
    }

    #cmplz-manage-consent .cmplz-manage-consent {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}

.menu-icon.active::before {
    opacity: 1; /* Fully visible close icon */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wp-block-table table {
    background: #fafafa;
    margin-bottom: 30px;
    border-top: 1px solid #ccc;
}

.wp-block-table table td {
    border: 0;
    border-bottom: 1px solid #ccc;
    padding: 0.7em;
}

.wp-block-table table td:last-child {
    width: 140px;
    white-space: nowrap;
    text-align: right;
}

.wp-block-table table tr:hover td {
    background: rgba(0, 0, 0, 0.04);
}

.content-block-accent {
    margin-top: 1em;
    margin-bottom: 2em;
    /*background: #16161B;*/
    /*color: #fff;*/
    background: #f3f3f3;
}

.content-block-accent h2,
.content-block-accent h3 {
    margin-bottom: 1em;
}

@media (max-width: 768px) {
    .content-block-accent {
        padding: 1em 1em 0 1em;
    }
}

.grid-team {
    margin-bottom: 4em;
}

.grid-team .wp-block-group__inner-container h3 {
    margin-bottom: 0.5em;
}

.grid-team .wp-block-group figure {
    margin-bottom: 5px;
}

.grid-team .wp-block-group figure img {
    width: 100%;
}

.grid-team .wp-block-group .wp-block-group {
    padding: 15px 5px;
    background: #16161B;
    color: #fff;
}

.grid-team .wp-block-group .wp-block-group p {
    margin-bottom: 0;
}

.wp-block-button__link {
    background: #000;
    color: #fff;
    text-decoration: none;
}

.wp-block-button__link:hover {
    background: #2f2f37;
    color: #fff;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus,
.wp-block-button__link:active,
.wp-block-button__link:visited {
    color: #fff;
    text-decoration: none;
}

.wp-block-button__link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wp-block-contact-form-7-contact-form-selector {
    width: 50%;
    margin: 0 auto;
}

.wpcf7-submit {
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .wp-block-contact-form-7-contact-form-selector {
        width: 100%;
    }
}

.wpcf7-form p {
    margin: 10px 0;
}

.wpcf7-form label {
    font-size: 16px;
    display: block;
}

input[type="text"].wpcf7-form-control,
input[type="email"].wpcf7-form-control,
select.wpcf7-form-control,
textarea.wpcf7-form-control {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #000;
    background-color: #fbfbfb;
    box-sizing: border-box;
}

.wpcf7-form-control:focus {
    border-color: #000;
    outline: none;
}

/* Error Messages Styling */
.wpcf7-not-valid {
    border-color: red !important;
}

.wpcf7-not-valid-tip {
    font-size: 14px;
    color: red;
    margin-top: 5px;
    display: block;
}

/* Select Fields */
.wpcf7-select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.wpcf7-select:focus {
    border-color: #000;
    outline: none;
}

/* Textarea Fields */
.wpcf7-textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.wpcf7-textarea:focus {
    border-color: #000;
    outline: none;
}

.screen-reader-response.success {
    background-color: #f9fff9;
    color: #1f9824;
    border: 1px solid #1f9824;
    padding: 15px;
    margin-bottom: 30px;
}

.screen-reader-response.error {
    background-color: #fff0f1;
    color: red;
    border: 1px solid red;
}

.screen-reader-response p {
    padding: 0;
    margin: 0;
    text-align: center;
}

.screen-reader-response ul {
    display: none;
}

.wpcf7-response-output {
    display: none;
}

.block-highlights {
}

.block-highlights .wp-block-column {
    display: flex;
    flex-direction: column;
    padding-left: 40px;
}

.block-highlights .wp-block-heading {
    display: flex;
    align-items: center;
    min-height: 0;
    position: relative;
}

.block-highlights h3.wp-block-heading {
    font-size: 1.6em;
    line-height: 1.4;
}

.block-highlights .wp-block-heading svg {
    left: -40px;
    top: 2px;
    position: absolute;
    width: 30px;
    height: 31px;
}

.block-courses {
    padding-top: 30px;
    padding-bottom: 30px;
}

.block-courses p {
    margin-bottom: 0.5em;
}

.block-courses h2 {
    margin-bottom: 0.5em;
}

@media (max-width: 768px) {
    .block-courses {
        text-align: center;
    }

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

.block-courses .wp-block-columns {
    align-items: center !important;
}

/* Index page styling */

.page-template-page-main {
    position: relative;
    background-color: #444;
}

.page-template-page-main #background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

.page-template-page-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.wp-block-cover .has-background-dim:not([class*=-background-color]),
.wp-block-cover-image .has-background-dim:not([class*=-background-color]),
.wp-block-cover-image.has-background-dim:not([class*=-background-color]),
.wp-block-cover.has-background-dim:not([class*=-background-color]),
.page-template-page-main .content-block-accent {
    background-color: rgba(0, 0, 0, 0.5);
}

.page-template-page-main .content-block-accent {
    margin-bottom: 0;
}

.page-template-page-main > header,
.page-template-page-main > main,
.page-template-page-main > footer {
    z-index: 2;
}

.page-template-page-main section#social {
    /*background-color: #161616;*/
}

.page-template-page-main,
.page-template-page-main :where(.wp-block-cover-image.is-light:not(.has-text-color)),
.page-template-page-main :where(.wp-block-cover.is-light:not(.has-text-color)) {
    color: #fff;
}

.page-template-page-main .wp-block-button__link {
    background: #fff;
    color: #000;
}

.page-template-page-main .wp-block-button__link:hover {
    background: #fff;
    color: #000;
}

.page-template-page-main .wp-block-button__link:hover,
.page-template-page-main .wp-block-button__link:focus,
.page-template-page-main .wp-block-button__link:active,
.page-template-page-main .wp-block-button__link:visited {
    color: #000;
}

.page-template-page-main .index-header {
    padding: 5em 0.5em;
}

.page-template-page-main article.page {
    margin-bottom: 0;
}

.page-template-page-main a,
.page-template-page-main a:focus,
.page-template-page-main a:visited {
    color: #fff;
    text-decoration: none;
}

.page-template-page-main a:hover {
    color: #aaa;
}

.personal-data-info-section {
    background: #f8f8f8;
}

#personal-data-info {
    text-align: center;
    font-size: 13px;
    color: #666;
}

.wp-block-group.wp-block-group-image-left-text-right,
.wp-block-group.wp-block-group-text-left-image-right {
    padding: 20px 0;
}

@media (min-width: 840px) {
    .wp-block-group.wp-block-group-image-left-text-right {
        grid-template-columns: 40% 60%;
    }
    .wp-block-group.wp-block-group-image-left-text-right > .wp-block-group:nth-child(2) {
        border-left: 3px solid #eaeaea;
        padding-left: 10%;
    }
    .wp-block-group.wp-block-group-text-left-image-right {
        grid-template-columns: 60% 40%;
    }
    .wp-block-group.wp-block-group-text-left-image-right > .wp-block-group:nth-child(1) {
        border-right: 3px solid #eaeaea;
        padding-right: 10%;
    }
}

.wp-block-group.wp-block-group-image-left-text-right > .wp-block-group:nth-child(1),
.wp-block-group.wp-block-group-text-left-image-right > .wp-block-group:nth-child(2) {
    text-align: center;
}

@media (max-width: 839px) {
    .wp-block-group.wp-block-group-text-left-image-right > .wp-block-group:nth-child(1) {
        order: 2;
    }
    .wp-block-group.wp-block-group-text-left-image-right > .wp-block-group:nth-child(2) {
        order: 1;
    }
}

.wp-block-bubble {
    background: #f8f8f8;
    border: 8px solid #000;
    padding: 30px;
    box-shadow: 15px 15px 0 rgba(0, 0, 0, 0.15);
    border-radius: 30px;
    margin: 40px 10px 40px 0;
    position: relative;
    box-sizing: border-box;
}
.wp-block-bubble .wp-block-group__inner-container::before {
    content: '';
    position: absolute;
    left: 20%;
    bottom: -65px;
    width: 63px;
    height: 65px;
    background: url('/wp-content/themes/proautokool/assets/images/bubble-corner.png');
}

@media (min-width: 840px) {
    .wp-block-bubble {
        margin: 40px 15%;
    }
}

.wp-block-bubble p {
    margin-bottom: 0;
    line-height: 1.2;
}

.wp-block-group.wp-block-group-image-left-text-right .wp-block-buttons,
.wp-block-group.wp-block-group-text-left-image-right .wp-block-buttons {
    margin: 30px auto;
}

.wp-block-group.swipe-gallery {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    border: 1px solid #eaeaea;
}

.wp-block-group.swipe-gallery .wp-block-group__inner-container {
    display: flex;
    gap: 10px;
    height: 100%;
    align-items: center;
    padding: 10px;
}

/* Custom Scrollbar Styles */
.scroll-container::-webkit-scrollbar {
    height: 8px;  /* Set the height of the horizontal scrollbar */
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);  /* Dark transparent scrollbar thumb */
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.15);  /* Light transparent scrollbar track */
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-corner {
    background: transparent;  /* No corner */
}

.wp-block-group.swipe-gallery .wp-block-group__inner-container .wp-block-image {
    flex: 0 0 auto;
    width: 220px;
    display: flex;
    align-items: center;
}

.wp-block-group.swipe-gallery .wp-block-group__inner-container .wp-block-image img {
    width: auto;
    display: block;
}


/*#slb_viewer_wrap .slb_theme_slb_default .slb_viewer_layout .slb_container .slb_content {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    min-height: 100vh;*/
/*    box-sizing: border-box;*/
/*}*/

.slb_details {
    display: none;
}

.block-dotted-line-with-car > .wp-block-group:nth-child(1) {
    position: relative;
}

.block-dotted-line-with-car > .wp-block-group:nth-child(1) .wp-block-group__inner-container::before {
    content: '';
    position: absolute;
    right: -300px;
    bottom: -200px;
    width: 344px;
    height: 233px;
    background: url('/wp-content/themes/proautokool/assets/images/dotted-line-with-car.png');
    transition: right 0.2s ease, bottom 0.2s ease;
}

@media (max-width: 999px) {
    .block-dotted-line-with-car > .wp-block-group:nth-child(1) .wp-block-group__inner-container::before {
        right: -270px;
        bottom: -240px;
    }
}

@media (max-width: 839px) {
    .block-dotted-line-with-car > .wp-block-group:nth-child(1) .wp-block-group__inner-container::before {
        display: none;
    }
}
