:root {
    --bs-primary: #28a745; /* xanh lá */
}

/* --- MÀU CHỦ ĐẠO --- */
.text-primary {
    color: var(--bs-primary) !important;
}
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}
.bg-primary {
    background-color: var(--bs-primary) !important;
}
.border-primary {
    border: 2px solid var(--bs-primary) !important;
    background-color: rgba(40, 167, 69, 0.1);
}

/* --- KHUNG KÍNH --- */
.glass-box {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    padding: 10px 15px;
    border-radius: 16px;
    backdrop-filter: blur(6px);
    color: #fff;
}

/* --- CARD CHUNG --- */
.service-item {
    transition: all 0.3s ease;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
    border-top: 4px solid var(--bs-primary);
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 128, 0, 0.15);
}

/* --- LOGO --- */
.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--bs-primary);
    padding: 6px;
    background: linear-gradient(135deg, #d4ffd4, #f9fff9);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* ✅ Hover: phóng to logo */
.service-item:hover .partner-img {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(0, 128, 0, 0.3);
}

/* --- RESPONSIVE --- */
@media (max-width: 576px) {
    .partner-img {
        width: 80px;
        height: 80px;
    }
}

/* ✅ Tooltip dự án */
.project-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 15px);
    background: #fff;
    padding: 20px 24px;
    width: 320px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    opacity: 0;
    visibility: hidden;
    z-index: 50;
    transition: all 0.3s ease;
}

.project-card:hover .project-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 5px);
}

/* ✅ Fix lệch tooltip trên mobile */
@media (max-width: 768px) {
    .project-tooltip {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 10px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .project-card:hover .project-tooltip {
        transform: none !important;
    }

    .project-tooltip::after {
        display: none;
    }
}

/* ✅ Nút viền xanh lá */
.btn-outline-primary {
    color: var(--bs-primary) !important;
    border: 1px solid var(--bs-primary) !important;
    background-color: transparent !important;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}
