/* 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;
}

/* 2. Dự Án Web (ntm-ux-project.php) */
.ntm-project-card {
    border: 1px solid #0bdada;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06));
    transition: box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ntm-project-card:hover {
    box-shadow: 0 10px 20px rgba(11, 218, 218, 0.2);
}

.ntm-project-img {
    height: 250px;
    overflow: hidden;
    position: relative;
    background: #222;
    border-bottom: 1px solid #0bdada;
}

.ntm-project-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 10s ease-in-out;
}

.ntm-project-card:hover .ntm-project-img img {
    transform: translateY(calc(-100% + 250px));
}

.ntm-project-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ntm-project-date {
    font-size: 13px;
    color: #fff;
    margin-bottom: 10px;
}

.ntm-project-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.ntm-project-title a {
    color: #fff;
    text-decoration: none;
}

.ntm-project-title a:hover {
    color: #0bdada;
}

.ntm-project-desc {
    font-size: 14px;
    color: #0bdada;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ntm-project-client {
    font-size: 14px;
    color: #0bdada;
    margin-bottom: 15px;
    font-weight: 500;
}

.ntm-project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ntm-btn {
    flex: 1;
    padding: 8px 5px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none !important;
    display: inline-block;
    white-space: nowrap;
}

.ntm-btn.red {
    background: #ff0000;
}

.ntm-btn.red:hover {
    background: #cc0000;
}

.ntm-btn.blue {
    background: #0084ff;
}

.ntm-btn.blue:hover {
    background: #0066cc;
}

.ntm-load-more-wrap {
    text-align: center;
    margin-top: 30px;
    width: 100%;
}

.ntm-load-more-btn {
    background: transparent;
    border: 2px solid #0bdada;
    color: #0bdada;
    padding: 10px 30px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.ntm-load-more-btn:hover {
    background: #0bdada;
    color: #fff;
}

.ntm-load-more-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

/* 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;
}