/* Brand Widget Styles */
.brand-three-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.3s ease;
    height: 182px;
    width: 100%;
    padding: 0 !important;
    border: 1px solid #e5e7eb;
    /* Explicit border since utilitarian classes might not work as expected */
    border-radius: 0.5rem;
    /* Explicit radius */
}

/* Tailwind Utilities Recreation */
.tw-rounded-lg {
    border-radius: 0.5rem;
}

.border {
    border-width: 1px;
    border-style: solid;
}

.border-neutral {
    border-color: #e5e7eb;
    /* Neutral-200 */
}

.tw-py-15 {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
}

.tw-mb-7 {
    margin-bottom: 1.75rem;
}

.cursor-pointer {
    cursor: pointer;
}

/* Hover Effect */
.brand-three-active-media,
.brand-three-hover-media {
    transition: all 0.7s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.brand-three-active-media {
    transform: translateY(0);
}

.brand-three-active-media img,
.brand-three-hover-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-three-hover-media {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30%);
}

.brand-three-wrapper:hover .brand-three-active-media {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s ease-in-out;
}

.brand-three-wrapper:hover .brand-three-hover-media {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Animation Utilities (tw_fade_anim) replacement for GSAP */
.tw_fade_anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.tw_fade_anim.tw-anim-active {
    opacity: 1;
    transform: translateY(0);
}

/* Support for different animate directions if needed, though default is bottom-up (fade-up) */
.tw_fade_anim[data-fade-from="left"] {
    transform: translateX(-30px);
}

.tw_fade_anim[data-fade-from="right"] {
    transform: translateX(30px);
}

.tw_fade_anim[data-fade-from="top"] {
    transform: translateY(-30px);
}

.tw_fade_anim.tw-anim-active[data-fade-from] {
    transform: translate(0);
}

.brand-three-area .row {
    --bs-gutter-x: 10px;
    /* Reduced gutter for more space */
    --bs-gutter-y: 10px;
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

.brand-three-area .brand-col {
    padding-right: calc(.5 * var(--bs-gutter-x));
    padding-left: calc(.5 * var(--bs-gutter-x));
}

/* Section Title Styles */
.section-title {
    position: relative;
    z-index: 1;
}

.section-title .sub-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #bfa37c;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title .title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
    color: #1c1c1c;
}

.mb-50 {
    margin-bottom: 50px;
}

/* Custom Menu Widget */
.bdevs-custom-menu-widget {
    border-radius: 5px;
}

.bdevs-custom-menu-widget .widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    cursor: default;
    color: #1b1b1b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bdevs-custom-menu-widget .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bdevs-custom-menu-widget .menu li {
    margin-bottom: 15px;
}

.bdevs-custom-menu-widget .menu li:last-child {
    margin-bottom: 0;
}

.bdevs-custom-menu-widget .menu li a {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    text-transform: uppercase;
}

.bdevs-custom-menu-widget .menu li a:hover {
    color: #bfa37c;
    padding-left: 5px;
}

/* Mobile Toggle Styles */
@media (max-width: 991px) {
    .bdevs-custom-menu-widget .widget-title {
        cursor: pointer;
        margin-bottom: 0;
        padding-bottom: 15px;
        /* Adjust spacing when closed */
    }

    .bdevs-custom-menu-widget .widget-title::after {
        content: '+';
        position: absolute;
        right: 0;
        top: 0;
        font-weight: 400;
        font-size: 20px;
    }

    .bdevs-custom-menu-widget .widget-title.active::after {
        content: '-';
    }

    .bdevs-custom-menu-widget .menu-container {
        display: none;
        /* Hidden by default on mobile */
        margin-top: 20px;
        margin-bottom: 20px;
        /* Add spacing only when menu is open */
    }

    .bdevs-custom-menu-widget .widget-title.active {
        margin-bottom: 0;
        /* Removing excess margin when active handled by menu-container margin */
        padding-bottom: 5px;
    }

    .bdevs-custom-menu-widget {
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 0;
        /* Removing excess padding from wrapper */
    }
}

/* Pages Banner Breadcrumb */
.bdevs-breadcrumb {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    /* Increased spacing */
}

.bdevs-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bdevs-breadcrumb a:hover {
    color: #bfa37c;
}

/* Custom Lightbox */
.bdevs-lightbox-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.bdevs-lightbox-overlay.active {
    opacity: 1 !important;
}

.bdevs-lightbox-content {
    position: relative !important;
    max-width: 90% !important;
    max-height: 90% !important;
}

.bdevs-lightbox-content img {
    max-width: 100% !important;
    max-height: 90vh !important;
    display: block !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5) !important;
}

.bdevs-lightbox-close {
    position: absolute !important;
    top: -40px !important;
    right: 0 !important;
    font-size: 40px !important;
    color: #fff !important;
    cursor: pointer !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
}

.bdevs-lightbox-close:hover {
    color: #bfa37c !important;
    transform: scale(1.2) !important;
}

.bdevs-lightbox-prev,
.bdevs-lightbox-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    cursor: pointer !important;
    border-radius: 3px !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

.bdevs-lightbox-prev {
    left: 20px !important;
}

.bdevs-lightbox-next {
    right: 20px !important;
}

.bdevs-lightbox-prev:hover,
.bdevs-lightbox-next:hover {
    background: rgba(191, 163, 124, 0.9) !important;
}

.bdevs-lightbox-counter {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
}

/* Lightbox Mobile Styles */
@media (max-width: 768px) {

    .bdevs-lightbox-prev,
    .bdevs-lightbox-next {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
    }

    .bdevs-lightbox-prev {
        left: 10px !important;
    }

    .bdevs-lightbox-next {
        right: 10px !important;
    }

    .bdevs-lightbox-counter {
        font-size: 8px !important;
        padding: 4px 8px !important;
    }

    .bdevs-lightbox-content img {
        max-height: 70vh !important;
        width: 90vw !important;
        height: auto !important;
        object-fit: cover !important;
    }
}

/* Desktop lightbox */
.bdevs-lightbox-content img {
    height: 70vh !important;
    width: 80vw !important;
    max-width: 1200px !important;
    object-fit: cover !important;
}

/* Pages Carousel - AGGRESSIVE STYLING */
.pages-carousel-wrapper {
    position: relative !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 90px !important;
}

.pages-carousel {
    position: relative !important;
    overflow: hidden !important;
}

.pages-carousel .item {
    position: relative !important;
    overflow: hidden !important;
}

.pages-carousel .item img {
    width: 100% !important;
    height: 600px !important;
    display: block !important;
    object-fit: cover !important;
}

@media (max-width: 768px) {
    .pages-carousel .item img {
        height: 400px !important;
    }
}

.pages-carousel .image-wrapper {
    position: relative !important;
    display: block !important;
}

.pages-carousel .hover-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    z-index: 2 !important;
}

.pages-carousel .hover-overlay a {
    text-decoration: none !important;
}

.pages-carousel .hover-overlay i {
    color: #fff !important;
    font-size: 30px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.pages-carousel .hover-overlay a:hover i {
    background: rgba(191, 163, 124, 0.8) !important;
    transform: scale(1.1) !important;
}

.pages-carousel .item:hover .hover-overlay {
    opacity: 1 !important;
}

/* ARROWS - EXTERNAL */
.pages-carousel-wrapper .owl-carousel .owl-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 100% !important;
    left: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    z-index: 100 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pages-carousel-wrapper .owl-carousel .owl-nav button.owl-prev,
.pages-carousel-wrapper .owl-carousel .owl-nav button.owl-next {
    position: absolute !important;
    top: 0 !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    transition: all 0.3s ease !important;
    border-radius: 3px !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
}



.pages-carousel-wrapper .owl-carousel .owl-nav button:hover {
    background-color: rgba(191, 163, 124, 0.9) !important;
}

/* Custom Carousel Navigation */
.custom-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    pointer-events: none;
    z-index: 100;
}

.custom-carousel-nav button {
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    border-radius: 3px;
    pointer-events: auto;
    cursor: pointer;
    border: none;
    outline: none;
}

.custom-carousel-nav .custom-prev {
    left: 0px;
}

.custom-carousel-nav .custom-next {
    right: 0px;
}

.custom-carousel-nav button:hover {
    background-color: rgba(191, 163, 124, 0.9) !important;
}

@media (max-width: 768px) {
    .custom-carousel-nav .custom-prev {
        left: 10px;
    }

    .custom-carousel-nav .custom-next {
        right: 10px;
    }
}

/* DOTS - FILLED */
.pages-carousel-wrapper .owl-carousel .owl-dots {
    position: absolute !important;
    bottom: 30px !important;
    left: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pages-carousel-wrapper .owl-carousel .owl-dots::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 300px !important;
    max-width: 80% !important;
    height: 1px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    z-index: -1 !important;
}

.pages-carousel-wrapper .owl-carousel .owl-dot {
    z-index: 1 !important;
    background: transparent !important;
    margin: 0 15px !important;
    pointer-events: auto !important;
    position: relative !important;
    padding: 0 !important;
}

.pages-carousel-wrapper .owl-carousel .owl-dot span {
    width: 14px !important;
    height: 14px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 50% !important;
    display: block !important;
    transition: all 0.3s ease !important;
    border: none !important;
    margin: 0 !important;
}

.pages-carousel-wrapper .owl-carousel .owl-dot.active span {
    background: #fff !important;
    transform: scale(1.3) !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8) !important;
}

@media (max-width: 768px) {
    .pages-carousel-wrapper {
        padding: 0 20px !important;
    }

    .pages-carousel-wrapper .owl-carousel .owl-nav button.owl-prev {
        left: 10px !important;
    }

    .pages-carousel-wrapper .owl-carousel .owl-nav button.owl-next {
        right: 10px !important;
    }
}

/* Services Carousel Widget */
.services-carousel-wrapper {
    position: relative;
    padding: 0 90px !important;
}

/* Equal Height Logic */
.services-carousel .owl-stage {
    display: flex;
}

.services-carousel .owl-item {
    float: none;
}

.services-carousel .service-card {
    background: #fff;
    margin: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}

.services-carousel .service-card:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.services-carousel .service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.services-carousel .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.services-carousel .service-card:hover .service-image img {
    transform: scale(1.05);
}

.services-carousel .service-content {
    padding: 30px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.services-carousel .service-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-carousel .service-description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.services-carousel .service-button {
    display: inline-block;
    padding: 12px 35px;
    background: #BFA37C;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
    align-self: center;
    margin-top: auto;
}

.services-carousel .service-button:hover {
    background: #a08866;
}

/* Carousel Navigation */
.services-carousel-wrapper .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    height: 0;
}

.services-carousel-wrapper .owl-nav button {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    border-radius: 3px !important;
    font-size: 20px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    border: none !important;
}

.services-carousel-wrapper .owl-nav button:hover {
    background-color: rgba(191, 163, 124, 0.9) !important;
}

.services-carousel-wrapper .owl-nav button.owl-prev {
    left: -70px !important;
}

.services-carousel-wrapper .owl-nav button.owl-next {
    right: -70px !important;
}

@media (max-width: 768px) {
    .services-carousel-wrapper {
        padding: 0 50px !important;
    }

    .services-carousel .service-card {
        margin: 10px;
    }

    .services-carousel .service-image {
        height: 200px;
    }

    .services-carousel .service-content {
        padding: 20px 15px;
    }

    .services-carousel-wrapper .owl-nav button {
        width: 30px !important;
        height: 30px !important;
        font-size: 16px !important;
    }

    .services-carousel-wrapper .owl-nav button.owl-prev {
        left: -10px !important;
    }

    .services-carousel-wrapper .owl-nav button.owl-next {
        right: -10px !important;
    }
}

/* Restaurant Banner Caption Overlay */
.restaurant-banner-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.restaurant-banner-caption .caption {
    width: 100%;
    pointer-events: auto;
}

.restaurant-banner-caption .caption h1 {
    color: #fff;
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.restaurant-banner-caption .caption p {
    color: #fff;
    font-size: 18px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .restaurant-banner-caption .caption h1 {
        font-size: 32px;
    }

    .restaurant-banner-caption .caption p {
        font-size: 14px;
    }
}

/* Image Text Box Widget */
.myt-image-text-box {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    gap: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.myt-image-text-box.image-left {
    flex-direction: row;
}

.myt-image-text-box.image-right {
    flex-direction: row-reverse;
}

.myt-image-text-box-image {
    width: 50%;
    max-width: 50%;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
    min-width: 0;
}

.myt-image-text-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.myt-image-text-box-content {
    width: 50%;
    max-width: 50%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
    min-width: 0;
}

.myt-image-text-box-title {
    margin: 0 0 20px 0;
    font-weight: bold;
    line-height: 1.3;
}

.myt-image-text-box-description {
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.myt-image-text-box-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.myt-image-text-box-button {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease !important;
    cursor: pointer;
    border-radius: 4px;
    padding: 12px 20px;
    text-align: left;
    position: relative;
    flex-wrap: nowrap;
    /* Prevent wrapping */
}

.myt-image-text-box-button:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: rgba(0, 0, 0, 0.1);
}

.myt-image-text-box-button:hover {
    text-decoration: none !important;
    transform: none !important;
    padding: 12px 20px !important;
    flex-direction: row !important;
    /* Force row on desktop */
    align-items: center !important;
    justify-content: flex-start !important;
}

.myt-image-text-box-button-icon {
    margin-right: 12px;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.myt-image-text-box-button-icon svg {
    display: block;
    width: 1em;
    height: 1em;
}

.myt-image-text-box-button-icon i {
    display: inline-block;
}

.myt-image-text-box-button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
    text-align: left;
    flex: 1;
}

.myt-image-text-box-button-text .button-line-1 {
    font-size: 0.9em;
    margin-bottom: 2px;
}

.myt-image-text-box-button-text .button-line-2 {
    font-size: 1em;
    font-weight: 600;
}

.myt-image-text-box-button .highlight-text {
    font-weight: bold;
    box-sizing: border-box;
    min-width: 0;
}

.myt-image-text-box-title {
    margin: 0 0 20px 0;
    font-weight: bold;
    line-height: 1.3;
}

.myt-image-text-box-description {
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.myt-image-text-box-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.myt-image-text-box-button {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease !important;
    cursor: pointer;
    border-radius: 4px;
    padding: 12px 20px;
    text-align: left;
    position: relative;
    flex-wrap: nowrap;
    /* Prevent wrapping */
}

.myt-image-text-box-button:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: rgba(0, 0, 0, 0.1);
}

.myt-image-text-box-button:hover,
.myt-image-text-box-button:focus,
.myt-image-text-box-button:active {
    display: inline-flex !important;
    /* Override potential theme styles */
    text-decoration: none !important;
    transform: none !important;
    padding: 12px 20px !important;
    flex-direction: row !important;
    /* Force row on desktop */
    align-items: center !important;
    justify-content: flex-start !important;
    outline: none !important;
}

.myt-image-text-box-button-icon {
    margin-right: 12px;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.myt-image-text-box-button-icon svg {
    display: block;
    width: 1em;
    height: 1em;
}

.myt-image-text-box-button-icon i {
    display: inline-block;
}

.myt-image-text-box-button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
    text-align: left;
    flex: 1;
}

.myt-image-text-box-button-text .button-line-1 {
    font-size: 0.9em;
    margin-bottom: 2px;
}

.myt-image-text-box-button-text .button-line-2 {
    font-size: 1em;
    font-weight: 600;
}

.myt-image-text-box-button .highlight-text {
    font-weight: bold;
}

/* Video Modal */
.myt-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.myt-video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    z-index: 1;
}

.myt-video-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    z-index: 2;
}

.myt-video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    /* Black background */
    border: none !important;
    outline: none !important;
    color: #fff;
    font-size: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.myt-video-modal-close:hover {
    background: #333;
}

.myt-video-modal-close:focus {
    border: none !important;
    outline: none !important;
}

.myt-video-modal-iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.myt-video-modal-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Gallery Modal */
.myt-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    overflow: hidden;
}

.myt-gallery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    z-index: 1;
}

.myt-gallery-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1600px;
    height: 90vh;
    /* Fixed height to control layout */
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.myt-gallery-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    /* Black background */
    border: none !important;
    outline: none !important;
    color: #fff;
    font-size: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.myt-gallery-modal-close:hover {
    background: #333;
}

.myt-gallery-modal-close:focus {
    border: none !important;
    outline: none !important;
}

.myt-gallery-modal-slider {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Slide Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.myt-gallery-active-slide {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.myt-slide-in-right {
    animation: slideInRight 0.4s ease forwards;
}

.myt-slide-out-left {
    animation: slideOutLeft 0.4s ease forwards;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: 100%;
}

.myt-slide-in-left {
    animation: slideInLeft 0.4s ease forwards;
}

.myt-slide-out-right {
    animation: slideOutRight 0.4s ease forwards;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: 100%;
}

.myt-gallery-modal-main-image-wrapper {
    position: relative;
    flex: 1;
    /* Take all remaining space */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 60px;
    background: transparent;
    overflow: hidden;
    min-height: 0;
    /* Important for flex child overflow */
    width: 100%;
}

.myt-gallery-modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Expand to fill wrapper without distortion */
    display: block;
    box-shadow: none;
    max-height: none;
    /* Let height be controlled by container */
}

.myt-gallery-modal-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: auto;
    max-height: 120px;
    background: rgba(0, 0, 0, 0.8);
    /* Darker background */
    width: 100%;
    /* Full width */
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    /* Do not shrink */
    position: relative;
    /* Static positioning */
}

.myt-gallery-modal-thumbnail {
    width: 70px;
    /* Slightly smaller thumbnails */
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.5;
    flex-shrink: 0;
}

.myt-gallery-modal-thumbnail:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.5);
}

.myt-gallery-modal-thumbnail.active {
    opacity: 1;
    border-color: #fff;
    transform: scale(1.05);
    /* Slight pop */
}

.myt-gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    /* Black background */
    border: none !important;
    outline: none !important;
    color: #fff;
    font-size: 16px;
    /* Larger icon */
    width: 40px;
    /* Larger button */
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 20;
    /* Higher z-index than image */
}

.myt-gallery-modal-nav:hover {
    background: #333;
    transform: translateY(-50%) scale(1.1);
}

.myt-gallery-modal-nav:focus {
    border: none !important;
    outline: none !important;
}

.myt-gallery-modal-nav.prev {
    left: 20px;
}

.myt-gallery-modal-nav.next {
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .myt-image-text-box {
        flex-direction: column !important;
    }

    .myt-image-text-box-image,
    .myt-image-text-box-content {
        width: 100% !important;
        max-width: 100% !important;
        flex-shrink: 1 !important;
    }

    .myt-image-text-box-content {
        padding: 30px 20px;
    }

    .myt-image-text-box-buttons {
        gap: 12px;
        flex-direction: row !important;
    }

    .myt-image-text-box-button {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1;
        min-width: 0;
    }

    .myt-image-text-box-button:hover,
    .myt-image-text-box-button:focus,
    .myt-image-text-box-button:active {
        flex-direction: column !important;
        /* Keep column on mobile hover */
        align-items: center !important;
        justify-content: center !important;
    }

    .myt-image-text-box-button-icon {
        margin-right: 0 !important;
        margin-bottom: 8px;
    }

    .myt-image-text-box-button-text {
        align-items: center !important;
        text-align: center !important;
    }

    /* Mobile Gallery Fixes */
    /* Mobile Close Button Resize */
    .myt-gallery-modal-close,
    .myt-video-modal-close {
        width: 30px !important;
        height: 30px !important;
        font-size: 20px !important;
        top: 15px !important;
        right: 15px !important;
    }

    /* Mobile Arrow Resize */
    .myt-gallery-modal-nav {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
    }

    .myt-gallery-modal-nav.prev {
        left: 10px !important;
    }

    .myt-gallery-modal-nav.next {
        right: 10px !important;
    }

    .myt-gallery-modal-content {
        height: auto !important;
        max-height: 95vh !important;
        overflow-y: auto !important;
        background: transparent !important;
    }

    .myt-gallery-modal-slider {
        flex-direction: column !important;
        height: auto !important;
        justify-content: flex-start !important;
    }

    .myt-gallery-modal-main-image-wrapper {
        padding: 10px !important;
        min-height: auto !important;
        flex: 0 0 auto !important;
        /* Stop shrinking/growing */
        height: auto !important;
    }

    .myt-gallery-modal-main-image {
        max-width: 100% !important;
        max-height: 50vh !important;
        /* Reduce height on mobile */
        width: auto !important;
        height: auto !important;
        position: relative !important;
    }

    .myt-gallery-modal-thumbnails {
        position: relative !important;
        /* Remove absolute positioning */
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        background: transparent !important;
        padding: 10px !important;
        max-height: none !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        margin-top: 10px !important;
    }

    .myt-gallery-modal-thumbnail {
        width: 50px !important;
        height: 50px !important;
        opacity: 0.8 !important;
    }
}

/* Text Banner Widget Styles */
.myt-text-banner {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
}

.myt-text-banner-content {
    width: 100%;
    height: 100%;
}

.myt-text-banner-inner {
    max-width: 100%;
}

/* Subtitle */
.myt-text-banner-subtitle {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* Title */
.myt-text-banner-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Description */
.myt-text-banner-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

/* Separator */
.myt-text-banner-separator {
    margin: 20px 0;
    width: 100%;
    max-width: 300px;
    /* Limit separator width */
    margin-left: auto;
    margin-right: auto;
}

.myt-text-banner-separator .separator-line-left,
.myt-text-banner-separator .separator-line-right {
    height: 1px;
    background-color: transparent;
    /* Controlled by border-top */
    border-top-style: solid;
}

/* Buttons */
.myt-text-banner-buttons {
    margin-top: 30px;
}

.myt-text-banner-button {
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.myt-text-banner-button:hover {
    text-decoration: none;
}

/* Responsive Alignment helpers */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Flex alignment helpers */
.align-items-start {
    align-items: flex-start;
}

.align-items-center {
    align-items: center;
}

.align-items-end {
    align-items: flex-end;
}

/* Image Banner (CTA) Widget Styles */
.myt-image-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    overflow: hidden;
    width: 100%;
}

.myt-image-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.myt-image-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: inherit;
    /* Ensure content takes banner height */
}

.myt-image-banner-inner {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.myt-image-banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
}

.myt-image-banner-button {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid #fff;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.myt-image-banner-button:hover {
    background-color: #fff;
    color: #222;
}

/* Responsive */
@media (max-width: 768px) {
    .myt-image-banner-title {
        font-size: 28px;
    }

    .myt-image-banner-button {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* Image Text Box Card Image */
.myt-image-text-box-card-image {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    /* Center horizontally */
    width: 100%;
}

.myt-image-text-box-card-image img {
    height: auto;
    object-fit: contain;
    /* max-width/width controlled by slider */
}

@media (max-width: 768px) {
    .myt-image-text-box-card-image {
        margin-top: -40px;
        /* Pull up to overlap main image */
        position: relative;
        z-index: 5;
    }
}

/* Services Carousel Grid Layout Fixes */
.services-grid-wrapper .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.services-grid-wrapper [class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Fallback for missing Bootstrap grid */
.services-grid-wrapper .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.services-grid-wrapper .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.services-grid-wrapper .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.services-grid-wrapper .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 991px) {

    .services-grid-wrapper .col-lg-4,
    .services-grid-wrapper .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .services-grid-wrapper [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.services-grid-wrapper .service-card,
.services-cta-wrapper .service-card {
    background: #fff;
    margin: 0;
    /* No margin in grid, columns handle spacing */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.services-grid-wrapper .service-card:hover,
.services-cta-wrapper .service-card:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.services-grid-wrapper .service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.services-grid-wrapper .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.services-grid-wrapper .service-card:hover .service-image img {
    transform: scale(1.05);
}

.services-grid-wrapper .service-content,
.services-cta-wrapper .service-content {
    padding: 30px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.services-grid-wrapper .service-title,
.services-cta-wrapper .service-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-grid-wrapper .service-description,
.services-cta-wrapper .service-description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.services-grid-wrapper .service-button,
.services-cta-wrapper .service-button {
    display: inline-block;
    padding: 12px 35px;
    background: #BFA37C;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
    align-self: center;
    margin-top: auto;
}

.services-grid-wrapper .service-button:hover,
.services-cta-wrapper .service-button:hover {
    background: #a08866;
}

/* Mobile adjustments for Grid */
@media (max-width: 768px) {
    .services-grid-wrapper .service-image {
        height: 200px;
    }

    .services-grid-wrapper .service-content {
        padding: 20px 15px;
    }
}

/* Services CTA Horizontal Layout */
.services-cta-wrapper .service-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.services-cta-wrapper .service-text {
    flex: 1;
    padding-right: 30px;
}

.services-cta-wrapper .service-button-wrapper {
    flex-shrink: 0;
    margin-top: 0;
    align-self: center;
}

.services-cta-wrapper .service-description {
    margin-bottom: 0;
}

/* Mobile Responsive for Services CTA */
@media (max-width: 768px) {
    .services-cta-wrapper .service-content {
        flex-direction: column;
    }

    .services-cta-wrapper .service-text {
        padding-right: 0;
        margin-bottom: 20px;
    }
}
/* Home Blog Widget Equal Height */
.news .item .position-re img {
    height: 450px !important;
    object-fit: cover !important;
    width: 100% !important;
    display: block;
}

@media (max-width: 768px) {
    .news .item .position-re img {
        height: 300px !important;
    }
}

