/* CSS FOR CUSTOM ELEMENTS - NGUYENTHAIMMO */

/* 1. AJAX Blog Tabs (ntm-ux-ajax-tabs.php) */
.ntm-loader .loading-spin {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary, #446084);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ntm-tab-pane.fade-in {
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ntm-tab-link {
    font-weight: bold;
    font-size: 20px !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ntm-tab-link .count {
    font-size: 14px !important;
    opacity: 0.7;
    font-weight: normal;
}

/* 3. Blog Posts Custom Glass Card (shortcodes/blog_posts.php) */
.ntm-glass-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06)) !important;
    border-radius: 5px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.ntm-glass-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.post-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
    line-height: 1.3em;
}

.badge.badge-compact {
    top: 10px;
    left: 10px;
    right: auto;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 1;
    width: auto;
    height: auto;
}

/* 4. Premium Navigation Dropdown (UX/UI Refinement) */
/* Reset and Container Styling */
.nav-dropdown {
    background-color: #ffffff !important;
    border-radius: 15px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    padding: 10px 0 !important;
    min-width: auto !important;
    width: max-content !important;
    overflow: hidden;
    /* Smooth Entrance Animation */
    animation: ntmFadeInSlideUp 0.35s cubic-bezier(0.23, 1, 0.320, 1) forwards;
    transform-origin: top center;
}

/* Menu Items */
.nav-dropdown li {
    margin: 0 !important;
    padding: 0 !important;
}

.nav-dropdown li>a {
    color: #333333 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.25s ease !important;
    white-space: nowrap !important;
    border-bottom: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Hover Effects */
.nav-dropdown li>a:hover {
    background-color: #f4f7f9 !important;
    color: #0bdada !important;
    padding-left: 25px !important;
    /* Subtle slide effect */
}

/* Active/Current Item */
.nav-dropdown li.current-menu-item>a {
    color: #0bdada !important;
    background-color: #f0fbfc !important;
}

/* Sub-menu (nested) */
.nav-dropdown .nav-dropdown {
    margin-top: -10px !important;
    margin-left: 5px !important;
}

/* Small Indicator Arrow (Flatsome) */
.nav-dropdown::before {
    border-bottom-color: #ffffff !important;
}

/* Animation Keyframes */
@keyframes ntmFadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix for Dark Header visibility */
.nav-dropdown li>a i {
    color: #0bdada;
    font-size: 16px;
}

/* --- CONTACT LIST PRO --- */
.custom-contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing, 12px);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--font-size, 15px);
    line-height: 1.35;
    transition: transform 0.3s ease;
    cursor: default;
    text-decoration: none !important;
}

.custom-contact-list .contact-item {
    color: inherit;
}

.contact-copy {
    display: flex;
    align-items: baseline;
    gap: 6px;
    row-gap: 2px;
    flex-wrap: wrap;
    min-width: 0;
}

a.contact-item {
    cursor: pointer;
}

.contact-item:hover {
    transform: translateX(var(--shift, 8px));
}

.contact-item i {
    color: var(--icon-color, var(--accent-primary, #E05A2B));
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.contact-icon-wrap {
    width: var(--icon-w, 24px);
    height: var(--icon-w, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-img-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.contact-label {
    font-weight: 600;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.contact-value {
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
    transition: color 0.3s ease;
}

.contact-item i {
    transition: color 0.3s ease;
}

a.contact-item:hover .contact-label,
.custom-contact-list a.contact-item:hover .contact-value,
.custom-contact-list a.contact-item:hover i {
    color: var(--contact-hover-color, var(--accent-primary-dark, #C44A1E)) !important;
}
.custom-contact-list-title {
    line-height: 1.25;
}
