/* Footer link hover styles */
.ul-footer-widget-links a:hover,
.ul-footer-widget-links a:focus,
.ul-footer-widget-links a:active {
    color: #ffffff !important;
    text-decoration: none;
}

/* Footer link default state for better contrast */
.ul-footer-widget-links a {
    color: #cccccc;
    transition: color 0.3s ease;
}

/* Custom spacing overrides for tighter section layout */

/* Reduce banner section bottom margin */
.ul-banner-3 {
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
}

/* Reduce section heading margins */
.ul-section-heading {
    margin-bottom: 20px !important;
    margin-top: 0 !important;
}

/* Reduce section margins between different content areas */
section + section,
section + div,
div + section {
    margin-top: 0 !important;
}

/* Tighter spacing for individual section containers */
.ul-inner-services-container,
.ul-container,
.ul-case-study-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Reduce spacing for service items */
.ul-inner-service {
    margin-bottom: 15px !important;
}

/* Reduce spacing for team/book items */
.ul-team-member {
    margin-bottom: 15px !important;
}

/* Reduce spacing for case study items */
.ul-case-study-item {
    margin-bottom: 15px !important;
}

/* Reduce row gutters */
.ul-bs-row {
    --bs-gutter-y: 0.75rem !important;
}

/* Override any section spacing that might be applied via classes */
.overflow-hidden {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Additional tight spacing for homepage sections */
body section,
body > div {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Reduce spacing in section headings */
.ul-section-title {
    margin-bottom: 15px !important;
}

/* ===== MOBILE SIDEBAR STYLES ===== */

/* Sidebar visibility and animation */
.ul-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.ul-sidebar.active {
    right: 0;
}

/* Sidebar overlay */
.ul-sidebar.active::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Sidebar header */
.ul-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ul-sidebar-closer {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    transition: color 0.3s ease;
}

.ul-sidebar-closer:hover {
    color: #333;
}

/* Mobile sidebar navigation styles */
.ul-sidebar-nav {
    padding: 20px 0;
    flex-grow: 1;
}

.ul-sidebar-nav-item {
    margin-bottom: 10px;
}

.ul-sidebar-nav-link {
    display: block;
    padding: 12px 20px;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.ul-sidebar-nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

.ul-sidebar-nav-item.has-submenu .ul-sidebar-nav-link:after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 18px;
    line-height: 1;
}

.ul-sidebar-nav-item.has-submenu.active .ul-sidebar-nav-link:after {
    content: "-";
    transform: translateY(-50%);
}

.ul-sidebar-submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-top: 5px;
}

.ul-sidebar-nav-item.has-submenu.active .ul-sidebar-submenu {
    display: block;
}

.ul-sidebar-submenu li {
    margin: 0;
}

.ul-sidebar-submenu li a {
    display: block;
    padding: 10px 30px;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ul-sidebar-submenu li a:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    text-decoration: none;
}

.ul-sidebar-cta {
    margin-top: 30px;
    padding: 0 20px;
}

.ul-sidebar-cta .ul-btn {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
}

/* Sidebar footer */
.ul-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.ul-sidebar-footer-title {
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    color: #333;
}

.ul-sidebar-footer-social {
    display: flex;
    gap: 10px;
}

.ul-sidebar-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #f8f9fa;
    border-radius: 50%;
    color: #666;
    transition: all 0.3s ease;
}

.ul-sidebar-footer-social a:hover {
    background-color: #007bff;
    color: white;
}

/* Mobile responsive */
@media (min-width: 992px) {
    .ul-sidebar {
        display: none !important;
    }
}

/* Ensure mobile button is visible on mobile */
@media (max-width: 991.98px) {
    .ul-header-sidebar-opener {
        display: inline-flex !important;
    }
}
