/* Styles for the main menu item */
.menu-item {
    position: relative;
    /* Ensure submenu is positioned relative to this */
}

/* Styles for the submenu */
.sub-menu {
    display: none;
    /* Hide submenu by default */
    position: absolute;
    top: 100%;
    /* Position below the main menu item */
    left: 0;
    background-color: #fff;
    /* Background color for the submenu */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Optional: Add shadow for a raised effect */
    z-index: 1000;
    /* Ensure submenu appears above other content */
    opacity: 0;
    /* Start with transparency */
    visibility: hidden;
    /* Initially hidden */
    transition: opacity 0.3s ease, visibility 0.7s ease;
    /* Smooth fade-in/out transition */
    pointer-events: none;
    /* Disable interaction when hidden */
}

/* Show submenu when parent li is hovered or when hovering on the submenu itself */
.menu-item:hover .sub-menu,
.menu-item:focus-within .sub-menu,
.sub-menu:hover {
    display: block;
    opacity: 1;
    /* Fade in */
    visibility: visible;
    /* Make it visible */
    pointer-events: auto;
    /* Allow interaction */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Smooth fade-in */
}

/* Style links inside the submenu */
.sub-menu .menu-item {
    width: 100%;
    /* Optional: Full width for each submenu item */
}

.sub-menu .menu-item a {
    display: block;
    padding: 10px 15px;
    color: #333;
    /* Text color */
    text-decoration: none;
    transition: background-color 0.3s ease;
    /* Smooth background color transition */
}

/* Change background color on hover */
.sub-menu .menu-item a:hover {
    background-color: #f0f0f0;
    /* Lighter background on hover */
}

.slider-testimonials {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 100px;
}

.slider-t {
    width: 540px;
}

.slider-t .item--inner {
    background-color: #fff;
    padding: 30px 40px 37px 30px;
    margin-top: 30px;
    margin-bottom: 50px;
    -webkit-box-shadow: 0 22px 27px rgba(0, 5, 36, 0.1);
    -khtml-box-shadow: 0 22px 27px rgba(0, 5, 36, 0.1);
    -moz-box-shadow: 0 22px 27px rgba(0, 5, 36, 0.1);
    -ms-box-shadow: 0 22px 27px rgba(0, 5, 36, 0.1);
    -o-box-shadow: 0 22px 27px rgba(0, 5, 36, 0.1);
    box-shadow: 0 22px 27px rgba(0, 5, 36, 0.1);
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    position: relative;
}

.slider-t .item--inner::before {
    position: absolute;

    left: 27px;
    right: 27px;
    height: 21px;

    background-color: rgba(255, 255, 255, 0.25);
    z-index: -1;
}

.slider-t .item--image {
    margin-right: 20px;
    padding: 2px;
    position: relative;
    min-width: 90px;
    width: 90px;
    height: 90px;
    overflow: hidden;
    z-index: 1;
}

.slider-t .item--image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 90px;
    background-color: #9000ff;
    z-index: -1;
}

.slider-t .item--image img {
    border: 9px solid #fff;
    border-radius: 70px;
}

.slider-t .item--icon {
    font-family: playfair display, sans-serif;
    font-size: 162px;
    font-weight: 700;
    position: absolute;
    top: -60px;
    right: 22px;
    line-height: 1;
    transform: rotate(180deg);
    opacity: 0.3;
    transition: 0.3s cubic-bezier(0.24, 0.74, 0.58, 1);
}

.slider-t .item--holder {
    display: flex;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
}

#nav-menu {
    display: none;
    top: 70.5px;
    --menu-height: 1000vmax;
    width: 100%;
    right: 0;
    position: absolute;
    z-index: 9997;
    margin-top: 20px !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    box-sizing: border-box;
    /* Add this property */
}

#nav-menu.open {
    display: block;
    max-height: 500px;
    /* Set a value large enough to hold the entire menu */
    opacity: 1;
}

#menu-toggle {
    cursor: pointer;
}

#menu-icon-bars,
#menu-icon-close {
    font-size: 24px;
}

/* Initially hide the submenu */
.sub-menu1 {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease, display 0s ease 0.3s;
}

.sub-menu1.open {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.menu-item a.active {
    color: #372FFF;
}

@media (max-width: 1024px) {
    .slider-testimonials {
        gap: 50px;
        /* Reduced gap on smaller screens */
    }

    .slider-t {
        width: 45%;
        /* Adjust width to fit better on smaller screens */
    }
}

/* For mobile devices */
@media (max-width: 768px) {
    .slider-testimonials {
        flex-direction: column;
        gap: 20px;
        /* Further reduce gap for mobile */
        justify-content: center;
        /* Center items on mobile */
    }

    .slider-t {
        width: 90%;
        /* Use almost full width on mobile */
    }
}

/* For very small screens (extra mobile devices) */
@media (max-width: 480px) {
    .slider-t {
        width: 100%;
        /* Full width for very small screens */
    }
}