.qbs-card-1 {
    background: #fff;
    border: 1.5px solid #0A33A2;
    border-radius: 14px;
    overflow: hidden;
    transition: .35s;
    box-shadow: 6px 6px 14px 0px #0a33a273;
    padding: 40px 20px;
    height: 350px;
}

.qbs-card-1 .has-icon-bg .icon img  {
    left: unset;
    margin: unset;
    -o-object-fit: cover;
    object-fit: unset;
    padding: 1px;
    position: unset;
    top: unset;
    transform: unset;
    width: 100%;
}


.qbs-card-1:hover {
    transform: translateY(-10px);
    box-shadow: 7px 5px 0px 0px #ffc107;
    border-color: #FFC107;
/*     transform: rotate(1deg); */
}


.newsky-units{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
    max-width:1200px;
    margin:50px auto;
}

.unit-card{
    background:#fff;
    border:2px solid #0A33A2;
    border-radius:14px;
    overflow:hidden;
    transition:.35s;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.unit-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,.18);
    border-color:#FFC107;
}

.unit-link{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    text-decoration:none !important;
    color:#333;
    padding:35px 30px;
    height:100%;
}

.unit-logo{
    width:90px;
    height:90px;
    border:2px solid #0A33A2;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:20px;
}

.unit-logo img{
    width:60px;
    height:60px;
    object-fit:contain;
}

.unit-link h3{
    color:#0A33A2;
    font-size:28px;
    margin:0;
    line-height:1.4;
}

.line{
    width:60px;
    height:4px;
    background:#FFC107;
    margin:18px 0;
    border-radius:30px;
}

.unit-link p{
    color:#666;
    line-height:1.8;
    flex:1;
    margin-bottom:25px;
}

.btn-more{
    display:inline-block;
    background:#0A33A2;
    color:#fff;
    padding:12px 28px;
    border-radius:30px;
    font-weight:600;
}

.unit-card:hover .btn-more{
    background:#FFC107;
    color:#0A33A2;
}

@media(max-width:991px){
    .newsky-units{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:767px){
    .newsky-units{
        grid-template-columns:1fr;
    }
}



.qbs-card-1 h5 {
    position: relative;
    display: inline-block; /* Để đường kẻ chỉ theo chiều rộng của chữ */
    padding-bottom: 10px;
	font-weight: bold;
    font-size: large;
}
.qbs-card-1 h5::after {
	content: "";
    position: absolute;
   	left: 55%;
    transform: translateX(-65%);
    bottom: 0;
    width: 30%;
    height: 3px;
    background: #ffc107;
    border-radius: 2px;
}



/* ===== Popup wrapper ===== */
.ndk-popup-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
/*     padding: 15px 15px; */
    background: #fff;
    border-radius: 8px;
}

/* Nút đóng popup */
.ndk-popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f2f2f2;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    transition: background 0.2s ease;
}
.ndk-popup-close:hover {
    background: #e0e0e0;
    color: #000;
}

/* Tiêu đề */
.ndk-form-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 8px;
}
.ndk-form-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== Form container + overlay loading ===== */
.ndk-form-container {
    position: relative;
}

.ndk-loading-overlay {
    display: none; /* mặc định ẩn */
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}
.ndk-loading-overlay p {
    margin-top: 12px;
    color: #333;
    font-size: 14px;
}

/* Icon spinner xoay */
.ndk-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #1a73e8; /* đổi màu theo brand NewSky nếu khác */
    border-radius: 50%;
    animation: ndk-spin 0.8s linear infinite;
}
@keyframes ndk-spin {
    to { transform: rotate(360deg); }
}

/* Khi đang xử lý, làm mờ form phía dưới overlay */
.ndk-form-container.ndk-is-loading .wpcf7-form {
    opacity: 0.3;
    pointer-events: none;
}

/* Ẩn form khi gửi thành công, hiện thông báo thay thế */
.ndk-success-message {
    display: none;
    text-align: center;
    padding: 30px 10px;
}
.ndk-success-message.ndk-show {
    display: block;
}
.ndk-success-message .ndk-success-icon {
    font-size: 48px;
    color: #2ecc71;
    margin-bottom: 10px;
}

