/*=============================================
     Search   
==============================================*/
#search {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    -webkit-transform: translate(0px, -100%) scale(0, 0);
    -moz-transform: translate(0px, -100%) scale(0, 0);
    -o-transform: translate(0px, -100%) scale(0, 0);
    -ms-transform: translate(0px, -100%) scale(0, 0);
    transform: translate(0px, -100%) scale(0, 0);
    opacity: 0;
    z-index: 100000;
}

    #search.open {
        -webkit-transform: translate(0px, 0px) scale(1, 1);
        -moz-transform: translate(0px, 0px) scale(1, 1);
        -o-transform: translate(0px, 0px) scale(1, 1);
        -ms-transform: translate(0px, 0px) scale(1, 1);
        transform: translate(0px, 0px) scale(1, 1);
        opacity: 1;
    }

    #search .input-group {
        position: absolute;
        top: 40%;
        padding: 0;
        width: 50%;
        left: 25%;
        right: 25%;
        border-bottom: 3px solid rgba(256,256,256,.1);
    }

    #search input[type="search"] {
        width: 90%;
        color: rgb(255, 255, 255);
        background: rgba(0, 0, 0, 0);
        font-size: 30px;
        text-align: right;
        border: 0px;
        margin: 0px;
        padding: 15px 0;
        outline: none;
    }

    #search .btn-search {
        margin: 0px;
        padding: 15px 0;
        font-size: 30px;
        color: #fff;
        background-color: transparent;
        border: 0px solid;
    }

    #search .close {
        position: fixed;
        top: 15px;
        right: 15px;
        color: #fff;
        background-color: #dd895b;
        border-color: #dd895b;
        opacity: 1;
        padding: 10px 17px;
        font-size: 20px;
    }

    #search h1 {
        color: #fff;
        margin: 0 auto 50px;
        font-size: 30px;
    }


.p-disc {
    border-bottom: 3px solid rgb(92, 57, 40);
    padding: 15px 0;
}

.portfolio-three .items {
    margin-bottom: 40px;
}

.portfolio-three .item-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: rgb(255, 255, 255);
    opacity: 0;
    -webkit-transition: all .5s;
    transition: all .5s;
    z-index: 2;
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
}

.portfolio-three .item-img {
    position: relative;
    overflow: hidden;
}

.gallery {
    width: 100% !important;
    float: left;
    clear: both;
}

.portfolio-three .item-img img {
    max-width: 100%;
    height: 150px;
    padding: 0 !important;
    -moz-transition: all 0.4s, filter 1.4s ease-in-out;
    -webkit-transition: all 0.4s, filter 1.4s ease-in-out;
    transition: all 0.4s, filter 1.4s ease-in-out;
}

.portfolio-three .item-img:hover .item-img-overlay {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.btn-current.disabled, .btn-current:disabled {
    color: #fff;
    background-color: #5c3928;
    border-color: #5c3928;
}

.page-link:focus {
    z-index: 3;
    color: #5c3928;
    background-color: #e9ecef;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(92, 57, 40, 0.56);
}

.button-play {
    height: 80px;
    width: 80px;
    color: #fff;
    display: inline-block;
    text-align: center;
    top: 8%;
    left: 30%;
    z-index: 1;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background-color: #5c3928ba;
    position: absolute;
    line-height: 80px;
}

.fancybox-slide--iframe .fancybox-content {
    max-width: 100%;
    max-height: 100%
}

.visuallyhidden {
    display: none;
}
/*=============================================
    Offices   
==============================================*/

.offices .officeimage {
    border: 1px solid #ddd;
    float: right;
    font-size: smaller;
    margin: 40px 0 0 30px;
    padding: 5px;
    text-align: center;
}

    .offices .officeimage a {
        display: block
    }

.offices h2 {
    color: hsl(20,55%,35%);
}

.offices h3 {
    color: #be8163;
}

.offices ul {
    border-bottom: 1px solid #ddd;
    padding: 21px 0 10px 15px;
}

.form-control {
    border: 2px solid #e6e6e6;
    height: 50px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 0px;
    margin-bottom: 15px;
}

.btn-primary {
    color: #fff;
    background-color: #6a432f;
    border-color: #6a432f;
}


    .btn-primary:hover {
        color: #fff;
        background-color: #d4a38c;
        border-color: #d4a38c;
    }
/*---------------------
  Sitemap
-----------------------*/
.sitemap {
    float: left;
    width: 100%;
}

    .sitemap ul .title {
        font-weight: 600;
        font-size: 20px;
        color: #000;
        margin: 0 0 20px 0;
    }

    .sitemap ul {
        width: 25%;
        float: left;
        margin: 0 0 20px 0;
        padding: 0 0 20px 0;
        clear: both;
    }


        .sitemap ul li {
            list-style: none;
            display: block;
            font-weight: 400;
            padding: 7px 0;
            margin: 0;
        }

            .sitemap ul li a {
                color: #666;
            }

.time-story__img img {
    width: 60%
}
/* ======================================
 Animation img
====================================== */

.box {
    position: relative;
    width: 100%;
    background: #5c3928;
    float: left;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 20px;
    z-index: 1;
}

    .box:before {
        content: '';
        position: absolute;
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-top: 1px solid #fff;
        border-bottom: 1px solid #fff;
        box-sizing: border-box;
        transition: 0.5s;
        transform: scaleX(0);
        opacity: 0;
    }

    .box:hover:before {
        transform: scaleX(1);
        opacity: 1;
        z-index: 100;
    }

    .box:after {
        content: '';
        position: absolute;
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-left: 1px solid #fff;
        border-right: 1px solid #fff;
        box-sizing: border-box;
        transition: 0.5s;
        transform: scaleY(0);
        opacity: 0;
    }

    .box:hover:after {
        transform: scaleY(1);
        opacity: 1;
    }

    .box .imgBox {
        position: relative;
    }

        .box .imgBox img {
            width: 100%;
            transition: 0.5s;
        }

    .box:hover .imgBox img {
        opacity: .2;
        transform: scale(1.2);
        z-index: 100;
    }

    .box:hover .text {
        z-index: 0;
        opacity: 0;
    }

    .box .content {
        position: absolute;
        width: 100%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
        padding: 20px 25px;
        box-sizing: border-box;
        text-align: center;
    }

        .box .content h2 {
            text-transform: uppercase;
            font-size: 17px !important;
            margin: 0 0 10px;
            padding: 0;
            color: #fff;
            transition: 0.5s;
            transform: translateY(-50px);
            opacity: 0;
            visibility: hidden;
        }

        .box .content p, .box .content a {
            margin: 0;
            padding: 0;
            color: #fff;
            transform: translateY(50px);
            opacity: 0;
            visibility: hidden;
        }



    .box:hover .content h2,
    .box:hover .content P, .box:hover .content a {
        opacity: 1;
        visibility: visible;
        transform: translateY(0px);
    }


    .box .content a {
        margin: 20px 0 0 0;
        padding: 0;
        color: #fff;
        display: block;
        text-transform: uppercase;
    }

        .box .content a:after {
            content: "\f101";
            font: normal normal normal 14px/1 FontAwesome;
            margin-left: 5px;
        }

        .box .content a:hover {
            text-decoration: none;
        }

    .box .text h2 {
        color: #fff;
        text-align: center;
        padding: 15px 25px;
        margin: 0;
        text-transform: uppercase;
        font-size: 17px !important;
    }

/*=============================================
    Carousal Profile   
==============================================*/
.mainCarousel p {
    font-size: .75rem;
    margin-top: 1rem;
}

.mainCarousel {
    color: #170724;
    --carousel-button-bg: #fff;
    --carousel-button-shadow: 0 2px 1px -1px rgb(0 0 0 / 20%), 0 1px 1px 0 rgb(0 0 0 / 14%), 0 1px 3px 0 rgb(0 0 0 / 12%);
    --carousel-button-svg-width: 20px;
    --carousel-button-svg-height: 20px;
    --carousel-button-svg-stroke-width: 2.5;
}


    .mainCarousel .carousel__slide {
        width: 18%;
        padding: 0;
        margin: 0px 0 0px 20px
    }

.button-play-Search {
    height: 80px;
    width: 80px;
    color: #fff;
    display: inline-block;
    text-align: center;
    top: 8%;
    left: 30%;
    z-index: 2;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background-color: #5c3928ba;
    line-height: 80px;
}

div.dataTables_wrapper {
    margin-bottom: 3em;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border: 1px solid rgb(189, 118, 86);
    background-color: rgb(255, 255, 255);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));
    background: -webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%);
    background: -moz-linear-gradient(top, #fff 0%, #dcdcdc 100%);
    background: -ms-linear-gradient(top, #fff 0%, #dcdcdc 100%);
    background: -o-linear-gradient(top, #fff 0%, #dcdcdc 100%);
    background: rgb(189, 118, 86);
    color: #fff !important;
}

.btn-check:focus + .btn-primary, .btn-primary:focus {
    color: #fff;
    background-color: #d4a38c;
    border-color: #d4a38c;
    box-shadow: 0 0 0 .25rem rgba(212, 163, 140, .5) !important;
}

.pagination-sm .page-link {
    font-size: .7rem;
}

.dotnextprev {
    padding: .25rem .25rem;
}

.bg-dark-menu {
    background: #000;
}

.carousel__viewport {
    direction: ltr;
}

.fancybox-caption-wrap, .fancybox-infobar, .fancybox-toolbar {
    direction: rtl;
}


.offices .fa, .offices h5, .offices span {
    color: #583211;
}

.offices p {
    margin: 0 0 5px;
    padding: 0;
    display: contents;
}

.offices img {
    height: 275px;
    width: 100%;
    border-radius: 10px;
    border: 2px solid #583211;
}

.btn-google-maps {
    display: inline-flex;
    align-items: center;
    background-color: #9b3f0a;
    color: #fff;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background-color .3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    font-size: 12px;
}

    .btn-google-maps:hover {
        background-color: #ce6428;
        text-decoration: none;
        color: #fff;
    }

.anchor-target {
    scroll-margin-top: 185px; /* set to your sticky header height + a little padding */
}

a {
    color: #583211;
}

.card-gallery:hover {
    transform: scale(1.05);
    transition: .5s ease-in-out;
}

.card-gallery .card-img img {
    width: 100%;
    height: 260px !important;
    transition: .4s;
    object-position: top;
    object-fit: cover;
}

.gallery-inner-container {
    background-color: #583211 !important;
    color: white !important;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 25px;
}

    .gallery-inner-container h3 {
        font-size: 1.25rem;
        margin-bottom: 0px !important;
    }

.btn-current.disabled, .btn-current:disabled {
    color: #fff;
    background-color: #5c3928;
    border-color: #5c3928;
}

.page-link:focus {
    z-index: 3;
    color: #5c3928;
    background-color: #e9ecef;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(92, 57, 40, 0.56);
}

.card {
    border-radius: 0;
    border-color: #e6eaed;
    height: 100%;
}

.card-news img {
    height: 240px;
    min-height: 240px;
    object-position: top;
    object-fit: cover;
}

.card-body {
    flex: 1 1 auto;
    padding: 1rem;
    color: #594f4f;
}

    .card-body date {
        color: #583211;
        font-size: 20px;
        margin: 5px 0 10px;
        display: block;
    }


    .card-body .card-title {
        margin-bottom: 15px;
    }

        .card-body .card-title a {
            color: #000 !important;
        }

.media-item_content_text {
    color: #594f4f;
}

.media-item_date, date {
    color: #9b3f09;
}

.custom-services-wrapper {
    --brand-color: #583211;
    position: relative;
    padding: 60px 0;
    background-color: white; /* Light gray bg for contrast */
}

    /* --- Header Styling (Scoped) --- */
    .custom-services-wrapper .section-header {
        margin-bottom: 40px;
    }

    .custom-services-wrapper .kicker {
        color: var(--brand-color);
        font-weight: 700;
        letter-spacing: 2px;
        font-size: 0.85rem;
        text-transform: uppercase;
        display: inline-block;
        margin-bottom: 10px;
    }

    .custom-services-wrapper .section-title {
        font-weight: 800;
        color: #212529;
    }

    /* --- Card Design (The "Better" Look) --- */
    .custom-services-wrapper .service-card {
        background: #fff;
        border: 1px solid rgba(0,0,0,0.08);
        height: 100%;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

        /* Hover State: Lift & Border */
        .custom-services-wrapper .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 1rem 3rem rgba(0,0,0,.1);
            border-color: var(--brand-color);
        }

    /* Image Container */
    .custom-services-wrapper .img-holder {
        position: relative;
        width: 100%;
        aspect-ratio: 16/10;
        overflow: hidden;
    }

        .custom-services-wrapper .img-holder img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

    /* Zoom image on hover */
    .custom-services-wrapper .service-card:hover .img-holder img {
        transform: scale(1.1);
    }

    /* Overlay Badge */
    .custom-services-wrapper .service-badge {
        position: absolute;
        top: 0;
        left: 0;
        background: var(--brand-color);
        color: #fff;
        padding: 5px 15px;
        font-size: 0.8rem;
        font-weight: 600;
        z-index: 2;
    }

    /* Content Area */
    .custom-services-wrapper .card-body-custom {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .custom-services-wrapper .service-title {
        font-weight: 700;
        margin-bottom: 0.75rem;
        color: #000;
        transition: color 0.3s;
    }

    .custom-services-wrapper .service-card:hover .service-title {
        color: var(--brand-color);
    }

    .custom-services-wrapper .service-desc {
        color: #6c757d; /* Bootstrap muted */
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    /* Sharp Button */
    .custom-services-wrapper .btn-service {
        margin-top: auto;
        background-color: transparent;
        border: 1px solid #dee2e6;
        color: #212529;
        width: 100%;
        padding: 10px;
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        transition: all 0.3s ease;
    }

    .custom-services-wrapper .service-card:hover .btn-service {
        background-color: var(--brand-color);
        border-color: var(--brand-color);
        color: #fff;
    }

    /* --- Swiper Tweaks (Scoped) --- */
    .custom-services-wrapper .swiper {
        padding-bottom: 60px !important; /* Space for dots */
        padding-top: 20px;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Custom Navigation Buttons */
    .custom-services-wrapper .swiper-btn-custom {
        background: #fff;
        color: var(--brand-color);
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border: 1px solid #eee;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        cursor: pointer;
        transition: 0.3s;
    }

        .custom-services-wrapper .swiper-btn-custom:hover {
            background: var(--brand-color);
            color: #fff;
        }

    .custom-services-wrapper .swiper-btn-prev-custom {
        left: -50px;
    }

    .custom-services-wrapper .swiper-btn-next-custom {
        right: -50px;
    }

/* Hide nav buttons on mobile */
@media (max-width: 768px) {
    .custom-services-wrapper .swiper-btn-custom {
        display: none;
    }
}

/* Pagination Dots (Netflix Style) */
.custom-services-wrapper .swiper-pagination-bullet {
    width: 20px;
    height: 3px;
    border-radius: 0; /* Sharp lines */
    background: #000;
    opacity: 0.2;
    margin: 0 4px !important;
    transition: all 0.3s;
}

.custom-services-wrapper .swiper-pagination-bullet-active {
    background: var(--brand-color);
    opacity: 1;
    width: 30px;
}

.min-heigth-60 {
    min-height: 60px !important
}

.card-gallery {
    display: block;
    position: relative;
    overflow: hidden;
}

   

.gallery-col .card-gallery .project-content {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 10px 15px;
    background-color: #fff;
    overflow: hidden;
    height: 70px;
    border-bottom: 1px solid #ce6428;
}

.btn-play:hover, .button-play:focus {
    background-color: #300;
}

.btn-play {
    height: 60px;
    width: 60px;
    color: #fff;
    display: inline-block;
    text-align: center;
    top: 38%;
    left: 38%;
    z-index: 1;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background-color: #5c3928ba;
    position: absolute;
    line-height: 60px;
}

.gallery-col .card-gallery .project-content h4 {
    font-weight: 600;
    font-size: 20px;
}
