/*
Theme Name: mwdireksiyon
Theme URI: https://mwdireksiyon.com/
Author: mwdireksiyon
Author URI: https://mwdireksiyon.com/
Description: Custom theme for mwdireksiyon.com
Requires at least: 6.4
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mwdireksiyon
Tags: custom-theme, full-site-editing, block-patterns, translation-ready
*/

:root {
    --swiper-theme-color: var(--wp--preset--color--primary, #F22613);
    --swiper-pagination-bottom: -40px;
    --swiper-pagination-bullet-inactive-color: #ffffff;
}

body,
html {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
}

.bg-primary {
    background-color: var(--wp--preset--color--primary, #F22613) !important;
}

.header-top-bg {
    background-color: var(--wp--preset--color--primary, #F22613) !important;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.header-top .header-top-menu,
.header-top .header-top-social-links {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #ffffff;
    font-size: 13px;
}

.header-top .header-top-social-links {
    gap: 20px;
}

.header-top .header-top-menu li:not(:last-child)::after {
    content: "|";
    margin-left: 5px;
}

.header-top .header-top-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.2s ease;
}

.header-top .header-top-menu a:hover {
    opacity: 0.8;
}

.header-top .header-top-social-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.2s ease;
}

.header-top .header-top-social-links a:hover {
    opacity: 0.8;
}

.brand-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    background: #ffffff;
}

.brand-bar .brand-logo img {
    max-height: 58px;
    width: auto;
    height: auto;
}

.brand-bar .brand-logo .site-title-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--wp--preset--color--secondary, #2E375F);
    text-decoration: none;
}

.brand-bar .brand-phone {
    font-size: 1.1rem;
    font-weight: 600;
}

.brand-bar .brand-phone-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--wp--preset--color--secondary, #2E375F);
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.2s;
}

.brand-bar .brand-phone-link:hover {
    opacity: 0.7;
}

.brand-bar .brand-phone-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.header-menu-bg {
    background-color: var(--wp--preset--color--secondary, #2E375F);
    border-bottom: 2px solid var(--wp--preset--color--primary);
}

.header-menu {
    display: flex;
    align-items: center;
}

.header-primary-menu-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.header-menu a {
    display: inline-block;
    padding: 0.875rem 1rem;
    border-radius: 30px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.813rem;
    font-weight: 600;
    line-height: 1;
    transition: color 300ms ease, background-color 300ms ease, opacity 300ms ease;
}

.header-menu .header-primary-menu-list>li a.active,
.header-menu .header-primary-menu-list>li a:hover,
.header-menu .current_page_item a {
    color: var(--wp--preset--color--secondary, #2E375F);
    background-color: #ffffff;
}

@media screen and (min-width: 992px) {
    .header-menu .header-primary-menu-list>li:last-child {
        margin-left: auto;
    }

    .header-menu .header-primary-menu-list>li:last-child a {
        padding: 28px 20px;
        border-radius: 0;
        background-color: var(--wp--preset--color--primary, #F22613);
        font-size: 0.875rem;
    }

    .header-menu .header-primary-menu-list>li:last-child a:hover {
        color: #ffffff;
        opacity: 0.75;
    }
}

.header-menu .menu-item-has-children {
    position: relative;
}

.header-menu .menu-item-has-children::before {
    content: "";
    top: 100%;
    width: 100%;
    height: 14px;
    position: absolute;
}

.header-menu .menu-item-has-children>a::after {
    content: "";
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 0.5em;
    margin-bottom: 0.1em;
}

.header-menu ul {
    list-style: none;
}

@media screen and (min-width: 992px) {
    .header-menu .sub-menu {
        display: flex;
        flex-direction: column;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-10px);
        transition:
            max-height 0.3s cubic-bezier(.4, 0, .2, 1),
            opacity 0.3s cubic-bezier(.4, 0, .2, 1),
            transform 0.3s cubic-bezier(.4, 0, .2, 1);
        position: absolute;
        left: 0;
        top: calc(100% + 14px);
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        z-index: 10;
        min-width: 220px;
        padding: 0.5em 0;
    }

    .header-menu li.menu-item-has-children:hover>.sub-menu,
    .header-menu li.menu-item-has-children:focus-within>.sub-menu {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .header-menu .sub-menu li {
        width: 100%;
    }

    .header-menu .sub-menu a {
        display: block;
        font-size: 0.75rem;
        padding: 10px 20px;
        margin: 0;
        transition: padding 400ms ease;
        color: #14161b;
    }

    .header-menu .sub-menu a:hover {
        background-color: #ffffff;
        color: var(--wp--preset--color--primary, #F22613) !important;
        padding-left: 30px;
    }
}

.site-footer {
    position: relative;
    padding: 75px 0;
    background-color: #fafafa;
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-background-size: cover;
    color: #ffffff;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(17, 17, 17, 0.8) none repeat scroll 0 0;
    z-index: 0;
}

.site-footer>div {
    position: relative;
    z-index: 1;
}


.site-footer .brand-logo {
    margin-bottom: 1rem;
}

.footer-item-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}

.footer-item-description {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #666666;
}

.site-footer .footer-widget-title {
    margin-bottom: 10px;
    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 700;
}

.site-footer .footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #808080;
}

.site-footer .footer-list li {
    border-bottom: 1px dashed #404040;
    padding: 10px 0;
    font-size: 0.875rem;
}

.site-footer .footer-list a {
    text-decoration: none;
    color: #808080;
}

.site-footer .footer-list a:hover {
    color: #999999;
}

.site-footer .footer-work-hour-item {
    display: flex;
    justify-content: space-between;
}

.footer-copyright {
    background-color: #181818;
    padding: 24px 0;
    color: #777777;
    font-size: 0.75rem;
    line-height: 1;
}

.site-footer .footer-link {
    text-decoration: none;
    color: #808080;
    font-size: 0.8125rem;
}

.site-footer .footer-link:hover {
    color: #999999;
}


.site-footer .footer-link svg {
    width: 14px;
    height: 14px;
    fill: var(--wp--preset--color--primary, #F22613);
}

.site-footer .footer-link svg path {
    width: 14px;
    height: 14px;
    fill: var(--wp--preset--color--primary, #F22613);
}

.breadcrumb {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
    width: 100%;
    min-height: 200px;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center bottom;
    background-size: cover;
}

.breadcrumb::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(17, 17, 17, 0.8) none repeat scroll 0 0;
    z-index: 0;
}

.breadcrumb .breadcrumb-title {
    position: relative;
    font-size: 2.25rem;
    font-weight: 700;
    z-index: 1;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 0;
}

.category-posts {
    padding-top: 15px;
}

.category-posts>.row>div {
    margin-bottom: 30px;
}

.category-posts .post-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    text-decoration: none;
    color: var(--wp--preset--color--secondary, #2E375F);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.category-posts .post-item .thumbnail {
    overflow: hidden;
}

.category-posts .post-item .wp-post-image {
    width: 100%;
    height: 275px;
    object-fit: cover;
    transition: transform 500ms ease;

}

.category-posts .post-item:hover .wp-post-image {
    transform: scale(1.15);
}

.category-posts .post-item .title {
    flex-grow: 1;
    font-size: 1rem;
    border: 1px solid #eeeeee;
    font-weight: 700;
    padding: 15px 20px;
    margin-bottom: 0;
}

.post-page-sidebar>.widget_block {
    margin-bottom: 30px;
}

.post-page-sidebar .wp-block-heading {
    padding-bottom: 5px;
    position: relative;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--wp--preset--color--secondary, #2E375F);
}

.post-page-sidebar .wp-block-search__inside-wrapper {
    display: flex;
    flex: auto;
    flex-wrap: nowrap;
    max-width: 100%;
}

.post-page-sidebar .wp-block-search__inside-wrapper .wp-block-search__button {
    fill: #ffffff;
    margin-left: 10px;
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
}

.post-page-sidebar [type=search] {
    appearance: none;
    border: 1px solid #949494;
    flex-grow: 1;
    margin-left: 0;
    margin-right: 0;
    min-width: 3rem;
    padding: 8px;
    text-decoration: unset !important;
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

.post-page-sidebar .wp-block-heading::after {
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 2px;
    background-color: var(--wp--preset--color--secondary, #2E375F);
    content: "";
}

.post-page-sidebar .wp-block-latest-posts {
    list-style: none;
    margin: 0;
    padding: 0 0 0 21px;
}

.post-page-sidebar .wp-block-latest-posts li {
    position: relative;
    border-right: 6px solid var(--wp--preset--color--primary, #F22613);
    background-color: var(--wp--preset--color--secondary, #2E375F);
    height: 42px;
    transition: opacity 500ms ease;
}

.post-page-sidebar .wp-block-latest-posts li:hover {
    opacity: 0.8;
}

.post-page-sidebar .wp-block-latest-posts li:not(:last-child) {
    margin-bottom: 10px;
}

.post-page-sidebar .wp-block-latest-posts a {
    display: block;
    text-decoration: none;
    padding: 10px;
    font-size: 0.875rem;
    color: #ffffff;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.post-page-sidebar .wp-block-latest-posts li::after {
    border-color: transparent var(--wp--preset--color--secondary, #2E375F) transparent transparent;
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-image: none;
    border-style: solid;
    border-width: 21px;
    bottom: 0;
    content: "";
    height: 21px;
    left: -42px;
    position: absolute;
    top: 0;
    width: 23px;
}

.post-page-sidebar .sidebar-custom-list {
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
    color: #666666;
}

.post-page-sidebar .sidebar-custom-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #d3d3d3;
    padding: 10px 0;
    font-size: 0.875rem;
}

.home-page-section-dark {
    padding: 90px 0;
    position: relative;
    background-color: #222222;
}

.home-page-section-dark .home-page-section-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 30px;
}

.home-page-section-dark .home-page-section-title span {
    color: var(--wp--preset--color--primary, #F22613);
}

.post-swiper-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #ffffff;
    color: #333333;
    text-align: center;
    transition: color 300ms ease;
}

.post-swiper-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    padding: 10px 15px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

.post-swiper-item .thumbnail {
    position: relative;
}

.post-swiper-item .thumbnail::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #333333;
    opacity: 0;
    transition: opacity 300ms ease;
}

.post-swiper-item .thumbnail img {
    width: 100%;
    object-fit: cover;
}

.post-swiper-item:hover .thumbnail::after {
    opacity: 0.7;
}

.post-swiper-item:hover {
    color: var(--wp--preset--color--primary, #F22613);
}

#heroSwiper .swiper-slide {
    position: relative;
    height: 650px;
}

#heroSwiper .swiper-slide .slide-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

#heroSwiper .swiper-slide img {
    width: 100%;
    height: 650px;
    object-fit: cover;
}

#heroSwiper .swiper-slide .slide-text {
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 2;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
}

#heroSwiper .swiper-slide .slide-big-title {
    font-size: 4rem;
    margin-bottom: 15px;
}

#heroSwiper .swiper-slide .slide-title {
    display: inline-block;
    font-size: 1.75rem;
    background-color: var(--wp--preset--color--secondary, #2E375F);
    border-left: 6px solid var(--wp--preset--color--primary, #F22613);
    padding: 10px 15px;
    margin-bottom: 15px;
}

#heroSwiper .swiper-slide .slide-description {
    font-size: 1.125rem;
    line-height: 1.4;
}

.go-home-btn {
    background-color: var(--wp--preset--color--secondary, #2E375F);
    transition: opacity 300ms ease;
}

.go-home-btn:hover {
    opacity: 0.8;
}

.header-menu-toggle {
    display: none;
}

@media screen and (max-width: 992px) {
    .header-menu-toggle {
        display: inline-block;
        color: #f0f0f0;
        background: none;
        border: 0;
        padding: 5px;
        margin: 10px 0;
    }

    .header-top {
        flex-direction: column;
        height: 90px;
        justify-content: center;
        gap: 15px;
    }

    .brand-bar {
        flex-direction: column;
        height: 160px;
        justify-content: center;
        gap: 30px;
    }

    .header-menu {
        position: relative;
    }

    .header-primary-menu-list {
        width: 100%;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        z-index: 3;
        align-items: flex-start;
        background-color: #ffffff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .header-primary-menu-list li {
        width: 100%;
    }


    .header-primary-menu-list li:not(:last-child) {
        border-bottom: 1px solid #f0f0f0;
    }

    .header-primary-menu-list li a {
        display: block;
        color: #404040;
    }

    .header-primary-menu-list {
        display: none;
    }

    .header-primary-menu-list.active {
        display: flex;
    }


    .header-menu .sub-menu {
        display: none;
    }

    .header-menu .menu-item-has-children.active .sub-menu {
        display: block;
    }

    #heroSwiper .swiper-slide .slide-big-title {
        font-size: 2.125rem;
    }

    #heroSwiper .swiper-slide .slide-title {
        font-size: 1rem;
    }

    #heroSwiper .swiper-slide .slide-description {
        font-size: 0.875rem;
    }

    .site-footer .container>.row>* {
        margin-bottom: 30px;
    }

    .breadcrumb .breadcrumb-title {
        font-size: 1.25rem;
    }
}