/*
Theme Name: Hoang Vo
Theme URI: https://elementor.com/
Description: A child theme for Hello Elementor
Author: Hoang Vo
Author URI: Your Website
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/
.company-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cky-btn-revisit-wrapper,
.cky-btn-revisit-wrapper {
    display: none !important;
}

.tn_dn h4 {
    font-weight: bold;
    font-size: 19px;
}

.tn_dn p {
    font-size: 16px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-company {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.card-company svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.card-company span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

/* Chỉ áp dụng cho ảnh ngang */
.icon-placeholder img[style*="aspect-ratio"] {
    object-fit: contain;
}

.card-title {
    line-height: 20px;
}

.icon-placeholder img {
    object-fit: contain;
}

.card-title a {
    color: #000 !important;
    font-size: 18px;
    line-height: 15px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.card-image {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 20px;
    background: #f8f8f8;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0px;
    line-height: 1.4;
    max-height: 55px;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #e53e3e;
}

.negotiate {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin: 0px;
}

.price {
    margin: 0px;
}

.icon-placeholder {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    position: relative;
    overflow: hidden;
}

.icon-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-footer .award-product-container {
    margin: 0px;
}

.search-results-page .container {
    max-width: 1300px;
    margin: 0 auto;
}

.search-results-page
/* Card ngang cho doanh nghiệp */


.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.company-logo {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-logo span {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

.company-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.company-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.company-name a:hover {
    color: #667eea;
}

.company-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.company-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-stats {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.company-name a {
    color: #000 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .company-name {
        font-size: 16px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Grid layout cho danh sách - 4 items 1 hàng */
.company-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

@media (max-width: 768px) {
    .company-grid {
        grid-template-columns: 1fr;
    }
}