/* Color System */
:root {
    --primary: #6366f1;
    --secondary: #ec4899;
    --dark: #0f172a;
    --light: #f8fafc;
    --accent: #10b981;
    --text-muted: #64748b;
}

/* Typography Base */
body { 
    font-family: 'Montserrat', sans-serif; /* Đã đổi sang Montserrat */
    background: #fff; 
    color: var(--dark); 
    margin: 0; 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Áp dụng cho tiêu đề và các nút bấm */
h1, h2, h3, .stat-number, .btn-agency {
    font-family: 'Montserrat', sans-serif; /* Đã đổi sang Montserrat */
    letter-spacing: -0.02em;
    font-weight: 700; /* Tăng độ đậm cho Montserrat trông chuyên nghiệp hơn */
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    overflow: hidden;
    color: white;
}

.hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-content { z-index: 2; position: relative; }

.hero-badge {
    display: inline-block; 
    padding: 8px 24px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 50px; 
    margin-bottom: 24px; 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-badge span {
    font-size: 0.85rem; 
    font-weight: 700; 
    color: var(--secondary);
    letter-spacing: 1.5px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-desc {
    max-width: 600px; 
    font-size: 1.25rem; 
    margin-bottom: 40px; 
    opacity: 0.9;
    font-weight: 400;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-agency {
    display: inline-flex;
    padding: 18px 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-agency:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

/* Network Stats */
.stats-section { padding-bottom: 80px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    text-align: center;
    border: 1px solid #f1f5f9;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label { font-weight: 600; color: var(--text-muted); margin: 0; font-size: 0.9rem; }

/* Section Common */
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 15px; }
.section-title.center { text-align: center; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; }

/* --- Bento Grid Cơ bản --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 260px);
    gap: 24px;
}

.bento-item {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #000; /* Thay cho var(--dark) nếu cần */
    transition: all 0.5s ease;
}

/* --- Quan trọng: Cấu hình thẻ link bao phủ toàn bộ ô --- */
.bento-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
    position: relative;
    z-index: 1;
}

.bento-item img {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s;
}

.bento-content { 
    position: absolute; 
    bottom: 30px; left: 30px; right: 30px; 
    z-index: 3; /* Đẩy lên trên cùng */
    pointer-events: none; /* Tránh cản trở sự kiện click */
}

.bento-content h3 { font-size: 1.4rem; font-weight: 700; margin: 0 0 8px; color: #fff; }
.bento-content p { font-size: 0.9rem; opacity: 0.8; margin: 0; color: #eee; }

/* --- Hiệu ứng Hover --- */
.bento-item:hover {
    transform: translateY(-5px); /* Nhấc nhẹ ô lên */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.bento-item:hover img { 
    transform: scale(1.1); 
    opacity: 0.7; 
}

/* Layout Grid giữ nguyên theo ý bạn */
.bento-1 { grid-column: span 2; }
.bento-2 { grid-column: span 1; grid-row: span 2; }
.bento-5 { grid-column: span 2; }

/* Thêm lớp phủ Gradient để chữ nổi bật hơn (Tùy chọn) */
.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    z-index: 2;
    opacity: 0.6;
    transition: 0.5s;
}

.bento-item:hover .bento-overlay {
    opacity: 0.8;
}

/* Partners */
.partners-section { padding: 100px 0; background: #fff; }
.brand-item {
    padding: 30px;
    text-align: center;
    transition: 0.4s;
}
.brand-item img { max-width: 130px; height: 45px; object-fit: contain; filter: grayscale(100%); opacity: 0.5; transition: 0.4s; }
.brand-item span { display: block; margin-top: 15px; font-weight: 700; font-size: 0.85rem; color: var(--text-muted); opacity: 0; transition: 0.4s; }
.brand-item:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.1); }
.brand-item:hover span { opacity: 1; }

/* Features Section */
.features-section { padding: 120px 0; background: var(--light); }
.features-flex { display: flex; align-items: center; gap: 80px; }
.features-content { flex: 1; }
.features-image { flex: 1; }
.features-image img { width: 100%; border-radius: 32px; box-shadow: 0 40px 80px rgba(0,0,0,0.12); }
.features-desc { margin: 30px 0; font-size: 1.15rem; color: var(--text-muted); }
.features-list { list-style: none; padding: 0; }
.features-list li { margin-bottom: 20px; display: flex; align-items: center; font-weight: 600; font-size: 1.05rem; }
.features-list li .icon { color: var(--accent); margin-right: 15px; font-size: 1.2rem; }

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .bento-2 { grid-row: span 1; }
    .features-flex { flex-direction: column; text-align: center; gap: 50px; }
    .features-list li { justify-content: center; }
}

@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-1, .bento-2, .bento-5 { grid-column: span 1; }
    .hero-content h1 { font-size: 2.8rem; }
}

/*home*/
/* KOL Cards */
/* --- Swiper Core --- */
.kol-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

/* Card chính */
.kol-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ép card full chiều cao của slide */
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.kol-card-v2 {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Thêm khung và đổ bóng */
    border: 1px solid #e2e8f0; /* Màu khung xám nhạt */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.kol-card-v2:hover {
    transform: translateY(-8px); /* Nhấc khung lên */
    border-color: var(--primary); /* Đổi màu khung sang màu chủ đạo (tím/hồng) */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
/* Hình ảnh và hiệu ứng Zoom */
.kol-image {
    position: relative;
    width: 100%;
    padding-top: 133.33%; /* Tỷ lệ 3:4 (4/3 * 100) */
    overflow: hidden;
}

.kol-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f8fafc;
    /* Giữ ảnh gọn trong khung */
    border-radius: 19px 19px 0 0; 
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kol-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    z-index: 1;
}

.kol-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Quan trọng: Ảnh sẽ tự cắt để lấp đầy khung mà không bị méo */
}

/* Thông tin KOL */
.kol-info {
    min-height: 120px; /* Đặt một chiều cao cố định cho phần chữ */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.kol-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    /* Giới hạn tên trong 1 dòng để không làm lệch card */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta: Category & TikTok */
.kol-meta {
    opacity: 0;
    visibility: hidden;
    height: 0; /* Thu nhỏ chiều cao về 0 khi ẩn */
    transition: all 0.3s ease;
}

.dot { color: #cbd5e1; }

.tiktok-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: #1e293b; /* Màu số follower đậm hơn chút cho rõ */
}

.tiktok-info i {
    font-size: 0.8rem;
    color: #000;
}

/* --- HIỆU ỨNG HOVER --- */

.kol-card-link:hover .kol-card {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #ff4d4d; /* Màu viền khi hover */
}

.kol-card-link:hover .kol-image img {
    transform: scale(1.1);
}

.kol-card-link:hover h4 {
    color: #ff4d4d; /* Đổi màu tên khi hover */
}

/* Hiệu ứng rung nhẹ icon TikTok khi hover card */
.kol-card-link:hover .tiktok-info i {
    animation: tiktokBounce 0.5s infinite alternate;
}

/* Fix lỗi đụng trần cho Swiper */
.kol-swiper {
    padding-top: 15px !important;   /* Tạo khoảng trống > 10px để card bay lên */
    padding-bottom: 25px !important;/* Tạo khoảng trống cho bóng đổ (box-shadow) */
    margin-top: -15px !important;  /* Kéo margin âm để không làm xê dịch vị trí section */
    overflow: visible !important;   /* Cho phép nội dung thò ra ngoài vùng chứa */
}
.kol-swiper {
    padding-bottom: 50px !important;
}
/* Đảm bảo container bao ngoài cũng không cắt nội dung */
.swiper-wrapper {
    overflow: visible !important;
}
.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    width: 25px;
    border-radius: 5px;
}
@keyframes tiktokBounce {
    from { transform: scale(1); }
    to { transform: scale(1.2); color: #fe2c55; }
}

/* Trạng thái mặc định: Ẩn thông tin meta */
.kol-card .kol-meta {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Khi hover vào card: Hiện thông tin lên */
.kol-card:hover .kol-meta {
    opacity: 1;
    visibility: visible;
    height: auto; /* Hiện ra nhưng không được làm card to hơn các card bên cạnh */
}

/* Tùy chỉnh thêm cho tag lĩnh vực đẹp hơn (tùy chọn) */
.kol-cat-tag {
    background: var(--secondary); /* Hoặc màu thương hiệu của bạn */
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Hiệu ứng phóng to nhẹ ảnh khi hover để tạo chiều sâu */
.kol-image img {
    transition: transform 0.5s ease;
}

.kol-card:hover .kol-image img {
    transform: scale(1.05);
}

.kol-card-v2:hover .kol-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.kol-card-v2:hover .main-img {
    transform: scale(1.1);
}

/* Container chứa các pill */
.pill-container {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 5;
    padding: 20px;
}

/* Hiệu ứng Pill nhảy lên */
.category-pill, .view-detail-pill {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: block;
}

.category-pill {
    opacity: 0;
    transform: translateY(25px) scale(0.9); /* Bắt đầu từ dưới và hơi nhỏ lại */
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Hiệu ứng lò xo (elastic) */
    
    background: rgba(255, 255, 255, 0.15); /* Nền trắng trong suốt */
    backdrop-filter: blur(8px); /* Làm mờ hậu cảnh kiểu kính */
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.view-detail-pill {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    margin-top: 15px;
    
    background: #ffffff; /* Nút chính dùng màu trắng đục hẳn */
    color: #1a1a1a !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    pointer-events: auto;
}

.view-more-pill {
    margin-top: 10px;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    opacity: 0;
    pointer-events: auto;
}

/* Kích hoạt khi hover */
.kol-card-v2:hover .category-pill,
.kol-card-v2:hover .view-detail-pill {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: var(--delay);
}
/* Thông tin chân trang luôn hiện */
.kol-footer-info {
    padding: 20px 15px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #f1f5f9; /* Đường kẻ ngăn cách giữa ảnh và chữ */
}

.kol-footer-info h4 {
    margin: 0 0 5px 0;
    font-weight: 700;
}

.follower-tag {
    color: #ef4444; /* Màu đỏ TikTok */
    font-weight: 600;
    font-size: 0.9rem;
}

/* Lưới hiển thị các nền tảng */
.social-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.stat-item {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f1f5f9;
}

/* Màu sắc đặc trưng cho từng nền tảng */
.stat-item.tiktok { color: #000000; border-left: 2px solid #ff0050; }
.stat-item.facebook { color: #1877F2; }
.stat-item.instagram { color: #E4405F; }
.stat-item.youtube { color: #FF0000; }

/* Giữ chiều cao card ổn định */
.kol-footer-info {
    padding: 12px 10px;
    min-height: 90px; /* Đảm bảo các ô luôn bằng nhau dù có 1 hay 4 nền tảng */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: scale(1.05) !important;
}

@media (max-width: 768px) {
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
}
