/* Base Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
.site-header {
    position: relative;
    background-color: #fff;
    color: #000;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 5px -2px rgba(164, 164, 164, 0.5);
    margin-bottom: 11px;
}
.logo img {
    max-height: 60px;
}

.primary-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    margin-left: 20px;
}

.primary-menu a {
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
}
.header-nav-block {
    /*position: relative;*/
    /*display: grid;*/
    /*grid-template-columns: 8fr 1fr;*/
    /*padding-top: 19px;*/
}
.header-nav-block .menu-item {
    /*position: relative;*/
}
.header-nav-block .menu-item > a {
    position: relative;
    display: inline-block;
    color: #484848;
    font: 700 16px/20px "Ubuntu", sans-serif;
    padding: 10px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.header-nav-block .menu-item > a::before,
.header-nav-block .menu-item > a::after {
    content: "";
    position: absolute;
    opacity: 0;
    transition: opacity 0.25s linear 0s, transform 0.25s linear 0s;
}
.header-nav-block .menu-item > a::before {
    border-bottom: 2px solid #f88db1;
    border-top: 2px solid #f88db1;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    transform: scale(0, 1);
    transform-origin: 100% 0 0;
    transition: transform 0.5s ease;
}
.header-nav-block .menu-item > a::after {
    border-left: 2px solid #f88db1;
    border-right: 2px solid #f88db1;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    transform: scale(1, 0);
    transform-origin: 0 0 0;
    transition: transform 0.5s ease;
}
.header-nav-block .menu-item:hover > a {
    color: #444;
    border-color: #f88db1;
}
.header-nav-block .menu-item:hover > a::before,
.header-nav-block .menu-item:hover > a::after {
    opacity: 1;
    transform: scaleX(1);
}

.language-switcher a {
    display: inline-flex;
    color: #101010;
    text-decoration: none;
}

.language-switcher a.active {
    color: #ff0000;
}
.header-block {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 4fr;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.post-thumbnail img:hover {
    transform: scale(1.05);
}

/* Footer Styles */
.site-footer {
    position: relative;
    color: #777;
}
.footer-container {
    position: relative;
    width: 100%;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-1 {
    position: relative;
    padding-top: 40px;
    padding-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
    background: whitesmoke;
}
.footer-2 {
    position: relative;
    padding-top: 40px;
    padding-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
    background: #ffffff;
}
.footer-widgets h3 {
    color: #ff0000;
    margin-bottom: 15px;
}

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

.footer-menu a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}
.cms-info {
    position: static;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}
main {
    padding-bottom: 40px;
}
#footer a {
    text-transform: uppercase;
    color: #444444;
    transition: 0.3s;
}
#footer a:hover {
    color: #f88db1;
    text-decoration: underline;
}
.main-content {
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
}
.footer-container .bottom-footer {
    color: #777;
    font: 300 14px / 20px "Ubuntu", sans-serif;
    padding: 15px 0;
    position: relative;
    background: whitesmoke;
}
.social_block ul li:hover a {
    color: #f88db1;
}
/* Responsive */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        text-align: center;
    }

    .primary-menu ul {
        flex-direction: column;
        margin-top: 20px;
    }

    .primary-menu li {
        margin: 5px 0;
    }
}

/*-------
SLIDER
-------*/
#vue-slick-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.mySwiper {
    width: 100%;
    height: 100%;
}

.mySwiper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.swiper-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
}

.swiper-pagination-bullet-active {
    background: white;
}
.muted {
    color: #bebebe;
}

.swiper-wrapper .swiper-slide > a > img {
    width: 100%;
    height: auto;
}
/*------------
Main Block
------------*/
.main-block {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}
.main-block_block {
    display: flex;
    flex-wrap: nowrap; /* все блоки в одну строку */
    overflow-x: auto;  /* горизонтальная прокрутка */
    gap: 1rem;
    /*padding: 1rem;*/
    box-sizing: border-box;
}
.main-block_card-body {
    padding: 10px;
}
.item-link_img img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: contrast(0.6);
}
.main-block-card-body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: 2.8rem;
    text-align: center;
    margin: 0 auto;
}
.item-html {
    display: inline-block;
    height: 70%;
    width: 70%;
}
.item-html h3 {
    font-size: 54px;
    font-weight: 600;
    line-height: 50px;
    margin-top: 90px;
    padding-top: 10px;
    color: #ffffff;
    text-shadow: 1px 1px 1px #101010;
    text-transform: uppercase;
    border-top: 5px solid #ef0101;
}
/*-----------
анимация первого блока
------------*/
.item-html h3 {
    transition: opacity 0.5s ease, transform 0.9s ease;
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
}

/* При наведении на ссылку - сначала исчезает, потом разворачивается */
.item-link:hover .item-html h3 {
    animation: hideAndReveal 1s ease forwards;
}

@keyframes hideAndReveal {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    30% {
        opacity: 0;
        transform: scale(0.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/*--------------
    Второй блок на главной
    ----------------*/
.main-second-block {
    position: relative;
    width: 100%;
    padding: 0;
    margin-top: 1.5rem;
}

/* Стили для контейнера без слайдера */
.main-second_block:not(.swiper-wrapper) {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap; /* чтобы всегда в один ряд */
    width: 100%;
    margin-top: 1.5rem;
}

/* Стили для контейнера со слайдером */
.main-second_block.swiper-wrapper {
    display: flex;
    box-sizing: border-box;
}

/*.s_card {*/
/*    position: relative;*/
/*    width: 25%;*/
/*    height: 100%;*/
/*    flex-shrink: 0;*/
/*}*/
.s_card {
    flex: 1 1 25%; /* каждая карточка по 25% ширины */
    box-sizing: border-box;
}


.s_card.swiper-slide {
    width: auto;
    height: auto;
}

.s_item-link {
    display: block;
    height: 100%;
    position: relative;
}

/*.s_item-link_img img {*/
/*    width: 100%;*/
/*    height: auto;*/
/*    object-fit: cover;*/
/*    filter: contrast(0.6);*/
/*}*/
.s_item-link_img img {
    width: 100%; /* картинка на всю ширину карточки */
    height: auto; /* сохраняем пропорции */
    display: block;
    object-fit: cover;
    filter: contrast(0.6);
}

.s_main-block-card-body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.s_item-html {
    position: relative;
    padding: 40px 20px;
    width: 100%;
}

.s_item-html h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 0;
    padding-top: 10px;
    color: #ffffff;
    text-shadow: 1px 1px 1px #101010;
    text-transform: uppercase;
    border-top: 5px solid #ef0101;
    transform: translate3d(0px, 30px, 0px);
    transition: transform 0.5s ease;
}

.s_item-html:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scale(1, 1);
    transition: all 0.5s ease;
    background: #555;
    opacity: 0;
}

.s_card:hover .s_item-html:before {
    opacity: 0.69;
    transform: scale(0.94, 0.905);
}

.s_card:hover h3 {
    transform: translate3d(0px, 0px, 0px);
}
/* Стили для навигации слайдера */
.equipment_product_slider {
    position: relative;
    margin-top: 1.5rem;
}


/* Кастомные кнопки навигации */
.s_button-prev,
.s_button-next {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.s_button-prev:hover,
.s_button-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Левая кнопка */
.s_button-prev {
    left: 10px;
}

/* Правая кнопка */
.s_button-next {
    right: 10px;
}

/* Стрелки можно использовать Unicode или SVG */
.s_button-prev::after,
.s_button-next::after {
    font-size: 20px;
    font-family: "swiper-icons";
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50% 50%;
}

.s_button-prev::after {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
}

.s_button-next::after {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z'/%3E%3C/svg%3E");
}

/* Кастомная пагинация */
.s_pagination {
    position: absolute;
    text-align: center;
    bottom: 10px;
    left: 0;
    width: 100%;
    z-index: 10;
}

.s_pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    margin: 0 4px;
    opacity: 1;
    transition: background 0.3s ease;
    cursor: pointer;
}

.s_pagination .swiper-pagination-bullet-active {
    background: #ffffff;
}


.swiper-pagination-bullet {
    background: white;
}

@media (max-width: 767px) {
    .s_card {
        width: 100%;
        height: auto;
    }

    .s_item-html h3 {
        font-size: 1.2rem;
    }
}
/*--------------
/Второй блок на главной
----------------*/
/*-------------
Третий блок на главной
----------------*/
.main-third-block {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/*display: flex;*/
/*gap: 10px;*/
/*flex-wrap: nowrap; !* чтобы всегда в один ряд *!*/
/*width: 100%;*/

.main-third_block {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    margin-top: 1.5rem;
    box-sizing: border-box;
}
.thr_card {
    position: relative;
    /*width: 49%;*/
    /*height: 100%;*/
    /*flex-shrink: 0;*/
    flex: 1 1 50%; /* каждая карточка по 50% ширины */
    box-sizing: border-box;
}
.thr_item-link_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(0.6);
}
.thr-block-card-body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.thr_item-html {
    position: relative;
    padding: 40px 20px;
    width: 100%;
}
.thr_item-html h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 0;
    padding-top: 10px;
    color: #ffffff;
    text-shadow: 1px 1px 1px #101010;
    text-transform: uppercase;
    border-top: 5px solid #ef0101;
    transform: translate3d(0px, 40px, 0px);
    transition: transform 0.5s ease;
}

.thr_item-html:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    transform: scale(1, 1);
    transition: all 0.5s ease;
    background: #555;
    opacity: 0;
}

.thr_card:hover .thr_item-html:before {
    opacity: 0.69;
    transform: scale(0.98, 0.945);
}

.thr_card:hover h3 {
    transform: translate3d(0px, 0px, 0px);
}
/*-------------
Третий блок на главной
----------------*/

/* Убираем горизонтальную прокрутку на маленьких экранах */
@media (max-width: 576px) {
    .main-block_block {
        flex-wrap: wrap;
        /*overflow-x: visible;*/
    }
    .main-block_block > div {
        flex-shrink: 1;
        width: 100%;
    }
}
/*
///////////////
*/
.post-content img,
.info-page img {
    width: auto;
}
/*-----------

-------------*/
/*.site-footer {*/
/*    margin-top: 40px;*/
/*}*/
/*---------
Post Pages
---------*/
.site-main {
    margin-left: 15px;
    margin-right: 15px;
}
.title_block {
    border-bottom: 1px solid #e3e3e3;
    color: #444;
    font: 500 19px / 22px "Ubuntu", sans-serif;
    margin: 0 0 15px;
    padding: 0 0 20px;
    text-transform: uppercase;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}
.post-image {
    position: relative;
    width: 100%;
    height: auto;
    border: 1px solid #f7f7f7;
    display: block;
    padding: 5px;
    background: #f7f7f7;
    float: left;
    margin-right: 19px;
}
.post-title {
    vertical-align: center;
}
.post-title a {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin-bottom: 0;
    text-transform: uppercase;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.post-sidebar-block {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 4fr;
    border-bottom: 1px solid rgba(68, 68, 68, 0.54);
}
.sidebar ul  {
    padding-left: unset;
}
/*---------
Content page
-----------*/
.blog-archive {
    margin-right: 25px;
    margin-left: 25px;
}

.content-page, .content-categories-list, .content-posts-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.content-subcategories li, .content-posts-list li {
    margin-bottom: 15px;
    font-size: 18px;
}

.content-subcategories a, .content-posts-list a {
    text-decoration: none;
    color: #333;
}

.content-subcategories a:hover, .content-posts-list a:hover {
    color: #0073aa;
}
/*----------
Contact form
-----------*/
.contact-form {

}
.contact-form-container {
    max-width: 600px;
    margin: auto;
}
.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
}
.contact-form-container button {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
}
/*--------
contact Form page
---------*/
.contact-page {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
    font-family: sans-serif;
}

.contact-left, .contact-right {
    flex: 1 1 500px;
}

.contact-left h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info strong {
    display: inline-block;
    width: 120px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input, .contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
}

.contact-form button {
    width: fit-content;
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
}

.contact-map iframe {
    width: 100%;
    height: 350px;
    border: 0;
    margin-top: 30px;
}

.contact-form-box {

    padding: 23px 18px 6px ;
    margin: 0 0 30px 0;
    background: url(/wp-content/themes/jdm_cars/assets/images/style/contact-form.png) repeat-x white;
    -moz-box-shadow: rgba(0, 0, 0, 0.17) 0 5px 13px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.17) 0 5px 13px;
    box-shadow: rgba(0, 0, 0, 0.17) 0 5px 13px;
}

@media (max-width: 768px) {
    .contact-page {
        flex-direction: column;
    }
}

/*------------
Equipment Slider
-------------*/
 .equipment-slider {
     width: 100%;
     height: auto;
     margin: 0 auto;
 }

.equipment-slider .swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.equipment-slider .swiper-slide img {
    max-width: 100%;
    height: auto;
    display: block;
}
.swiper-wrapper,
.equipment-slider-item {
    position: relative;
}
.eloquent-slider_title {
    position: absolute;
    top: 18%;
    left: 0;
    right: 0;
    width: 20%;
    font-size: 1.82rem;
    font-weight: 700;
    color: #ffffff;
    background: #ff0000;
    margin: 0 auto;
    padding: 12px 8px;
    text-transform: uppercase;
}
.swiper-pagination-bullet-active {
    background: #000;
}

