.popular_links {
    margin-left: 20px;
}

/* Ensure table container does not expand excessively */
.table-container {
    max-width: 100%;
    overflow: hidden;
    padding: 20px;
}

/* Make table scrollable only on small screens */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

/* Ensure table does not stretch beyond its content */
.table-responsive table {
    width: 100%;
    border-collapse: collapse;
}

/*=================================
   Enhanced Modern Header & Footer Styles
==================================*/

/* Enhanced Header Logo */
.th-header .logo-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.th-header .logo-link:hover img {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Enhanced Navigation */
.th-header .main-menu .nav-link {
    position: relative !important;
    overflow: hidden !important;
}

.th-header .main-menu .nav-link::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    transition: left 0.5s !important;
}

.th-header .main-menu .nav-link:hover::before {
    left: 100% !important;
}

/* Enhanced Footer Links */
.footer-wrapper .footer-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.footer-wrapper .footer-link:hover {
    letter-spacing: 0.5px !important;
}

/* Enhanced Social Links */
.th-header .th-social .social-link,
.footer-wrapper .th-social .social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.th-header .th-social .social-link:hover i,
.footer-wrapper .th-social .social-link:hover i {
    transform: scale(1.2) !important;
}

/* Enhanced Contact Items */
.footer-wrapper .contact-item-modern {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.footer-wrapper .contact-item-modern:hover .contact-icon-modern {
    transform: scale(1.1) !important;
}

/* Enhanced Buttons */
.th-btn.modern-btn,
.th-btn.modern-mobile-btn {
    position: relative !important;
    overflow: hidden !important;
}

.th-btn.modern-btn::before,
.th-btn.modern-mobile-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s !important;
}

.th-btn.modern-btn:hover::before,
.th-btn.modern-mobile-btn:hover::before {
    left: 100% !important;
}

/* Enhanced Info Cards */
.th-header .info-card.modern-card {
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

/* Enhanced Footer Background */
.footer-wrapper.modern-footer {
    background-attachment: fixed !important;
}

/*=================================
   Responsive Adjustments
==================================*/

/* Mobile Header Enhancements */
@media (max-width: 991px) {
    .th-header .menu-top {
        padding: 15px 0 !important;
    }

    .th-header .info-card.modern-card {
        margin-bottom: 15px !important;
    }

    .th-header .header-social-col {
        text-align: center !important;
    }
}

/* Tablet Adjustments */
@media (max-width: 1199px) and (min-width: 992px) {
    .th-header .info-card-wrap {
        gap: 20px !important;
    }

    .footer-wrapper .contact-item-modern {
        margin-bottom: 15px !important;
    }
}

/* Small Mobile Enhancements */
@media (max-width: 575px) {
    .th-header .logo-link {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .th-header .logo-text h5 {
        font-size: 1rem !important;
    }

    .footer-wrapper .contact-item-modern {
        padding: 12px !important;
        margin-bottom: 15px !important;
    }

    .footer-wrapper .th-social.modern-social {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .table-responsive table {
        min-width: 600px;
        /* Ensure horizontal scrolling */
        width: auto;
    }

    .header-default .menu-area .menu-area-wrap {
        background: none !important;
    }

    .header-default .menu-area .menu-area-wrap {
        padding: 0 18px 0 0px !important;
    }

    .service-card .box-content {
        background-color: var(--white-color);
        padding: 30px 3px;
    }

    .team-card .team-img img {
        width: 100%;
        height: 135px;
    }

    .team-card .team-card-content {
        position: relative;
        padding: 142px 20px 20px;
        margin-top: -118px;
    }

    .header-default .menu-area {
        background: #1a685b;
        display: block;
    }

}