/* ================= 1. GLOBAL STYLES ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.6;
}

a { text-decoration: none; }

/* ================= 2. HEADER ================= */
.header {
    background-color: #fff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #3da98f;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= HEADER USER ACTIONS (MỚI THÊM) ================= */
.user-actions {
    display: flex;
    align-items: center;
}

.btn-partner-login {
    color: #3da98f;
    font-weight: 600;
    border: 2px solid #3da98f;
    padding: 8px 20px;
    border-radius: 20px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-partner-login:hover {
    background: #3da98f;
    color: white;
}

/* Dropdown khi đã đăng nhập */
.user-dropdown {
    position: relative;
    cursor: pointer;
    font-weight: bold;
    color: #2c3e50;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 101;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #3da98f;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

/* ================= 3. HERO SECTION (NỀN & OVERLAY) ================= */
.hero {
    background: linear-gradient(135deg, #3da98f, #2c3e50);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    color: white;
    padding: 80px 20px 60px; /* Tăng khoảng cách trên dưới cho thoáng */
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero h1 { font-size: 48px; margin-bottom: 15px; font-weight: 800; text-shadow: 0 3px 6px rgba(0,0,0,0.3); }
.hero p { font-size: 20px; opacity: 0.95; margin-bottom: 30px; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* ================= 4. BANNER QUẢNG CÁO (ADS) ================= */
.hero-ads {
    max-width: 1000px; /* ĐỒNG BỘ VỚI SEARCH BOX */
    width: 95%;
    margin: 0 auto 25px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: none;
    background: #000;
    border: 2px solid rgba(255,255,255,0.2);
}

.hero-ads[style*="display: block"] { display: block !important; }

.ads-slide img {
    width: 100%; height: auto; max-height: 280px; /* Cho phép ảnh cao hơn chút */
    object-fit: cover; display: block;
}

.ads-label {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.6); color: white;
    font-size: 11px; padding: 3px 8px; border-radius: 4px;
    text-transform: uppercase; pointer-events: none;
}
.ads-slide { animation: fadeEffect 1s; }
@keyframes fadeEffect { from { opacity: 0.6; } to { opacity: 1; } }

/* ================= 5. SEARCH BOX (SIÊU TO KHỔNG LỒ) ================= */
.search-wrapper {
    max-width: 1000px; /* RỘNG 1000PX */
    width: 95%;        /* Chiếm 95% màn hình trên thiết bị nhỏ */
    margin: 0 auto 40px;
    display: flex;
    gap: 15px;         /* Khoảng cách giữa input và nút lớn hơn */
    background: rgba(255, 255, 255, 0.3); /* Nền mờ sáng hơn */
    padding: 15px;     /* Viền dày hơn */
    border-radius: 80px; /* Bo tròn cực đại */
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3); /* Đổ bóng đậm hơn */
    border: 1px solid rgba(255,255,255,0.4);
}

.search-wrapper input {
    flex: 1;
    padding: 22px 35px; /* Ô nhập CỰC CAO */
    border-radius: 50px;
    border: none;
    font-size: 20px;    /* Chữ CỰC TO */
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.search-wrapper button {
    padding: 15px 60px; /* Nút DÀI HƠN */
    border-radius: 50px;
    border: none;
    background-color: #ff9f43;
    color: white;
    font-weight: 800;   /* Chữ đậm hơn */
    font-size: 20px;    /* Chữ nút CỰC TO */
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(255, 159, 67, 0.5);
    text-transform: uppercase; /* Chữ in hoa cho mạnh mẽ */
}

.search-wrapper button:hover {
    background-color: #e67e22;
    transform: translateY(-3px) scale(1.02); /* Hiệu ứng phóng to nhẹ khi di chuột */
}

/* ================= 6. SERVICE TAGS ================= */
.service-tags {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 15px; max-width: 1000px; margin: 0 auto 60px;
}

.tag {
    background-color: rgba(255, 255, 255, 0.95); color: #333;
    padding: 12px 25px; /* Tag to hơn xíu cho cân đối */
    border-radius: 30px;
    cursor: pointer; font-weight: 600; font-size: 15px;
    transition: 0.3s; user-select: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.tag:hover { background-color: #ff9f43; color: white; transform: translateY(-3px); }

/* ================= 7. VIDEO CONTAINER ================= */
.video-container {
    max-width: 900px; /* Video cũng to ra theo cho đẹp */
    margin: 0 auto;
    padding: 0 20px;
}

.video-wrapper {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 5px solid rgba(255, 255, 255, 0.3);
    background: #000; overflow: hidden;
}

@supports not (aspect-ratio: 16 / 9) { .video-wrapper { padding-bottom: 56.25%; height: 0; } }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ================= 8. RESULT GRID & CARDS ================= */
.container { max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.search-result { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; padding-bottom: 40px; }

.card {
    background: white; border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.3s;
    border: 1px solid #eee; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card-img { height: 180px; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover .card-img img { transform: scale(1.1); }
.price-badge {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.8); color: #ff9f43;
    padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: bold;
}
.card-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-info h3 { margin: 0 0 10px; color: #2c3e50; font-size: 18px; line-height: 1.4; }
.time-tag { color: #3da98f; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.desc { color: #666; font-size: 14px; line-height: 1.6; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.btn-view {
    display: block; width: 100%; padding: 12px;
    background-color: #f1f2f6; color: #2c3e50;
    border: none; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s;
}
.btn-view:hover { background-color: #3da98f; color: white; }

/* ================= 9. FOOTER ================= */
.footer { background-color: #2c3e50; color: #ecf0f1; padding: 40px 0; margin-top: 60px; font-size: 14px; border-top: 5px solid #3da98f; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.footer-copyright p { margin: 5px 0; color: #bdc3c7; }
.footer-links { display: flex; gap: 25px; }
.footer-links a { color: #fff; font-weight: 500; transition: 0.3s; }
.footer-links a:hover { color: #3da98f; text-decoration: underline; }
.partner-btn {
    background-color: #3da98f; color: white; padding: 12px 25px; border-radius: 30px; font-weight: bold;
    transition: 0.3s; display: inline-block; border: 2px solid #3da98f; box-shadow: 0 5px 15px rgba(61, 169, 143, 0.3);
}
.partner-btn:hover { background-color: transparent; color: #3da98f; transform: translateY(-2px); }

/* ================= 10. RESPONSIVE MOBILE (NÂNG CẤP) ================= */
@media (max-width: 768px) {
    /* Header thu gọn hơn trên Mobile */
    .header { padding: 15px 20px; }
    .logo { font-size: 20px; }

    /* Hero text nhỏ lại để vừa màn hình điện thoại */
    .hero { padding: 40px 15px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }

    /* Search wrapper tự động căn dọc và co dãn */
    .search-wrapper { 
        flex-direction: column; 
        border-radius: 25px; 
        padding: 10px; 
        width: 92%; 
        gap: 10px;
    }
    .search-wrapper input { 
        width: 100%; 
        padding: 15px 20px; 
        font-size: 16px; 
        text-align: center;
    }
    .search-wrapper button { 
        width: 100%; 
        padding: 15px; 
        font-size: 18px; 
        margin-bottom: 0;
    }

    /* Các Tag dịch vụ căn đều, không bị dính lẹo */
    .service-tags { gap: 10px; padding: 0 10px; }
    .tag { padding: 8px 15px; font-size: 14px; }

    /* Kết quả tìm kiếm hiển thị dạng danh sách 1 cột đẹp mắt */
    .search-result { grid-template-columns: 1fr; gap: 20px; }

    /* Footer căn giữa toàn bộ */
    .footer-container { flex-direction: column; text-align: center; gap: 20px; }
    .footer-links { justify-content: center; flex-direction: row; flex-wrap: wrap; gap: 15px; }
}

/* Tối ưu thêm cho các màn hình cực nhỏ (iPhone SE, v.v.) */
@media (max-width: 480px) {
    .hero h1 { font-size: 24px; }
    .btn-partner-login { padding: 6px 12px; font-size: 13px; }
    .tag { width: calc(50% - 10px); text-align: center; } /* Chia 2 cột tag cho gọn */
}
/* TOAST NOTIFICATION CHUẨN EMERALD */
.nhm-toast {
    position: fixed; top: 20px; right: 20px; background: #3da98f; color: white;
    padding: 15px 25px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 9999; display: flex; align-items: center; gap: 12px;
    animation: slideIn 0.3s ease, fadeOut 0.5s 2.5s forwards;
}
.nhm-toast i { font-size: 20px; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
/* --- STYLE CHO HEADER CŨ (DROPDOWN) --- */
.main-header { display: flex; justify-content: space-between; padding: 15px 30px; background: white; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo { font-weight: 900; color: #3da98f; font-size: 20px; }

/* Nút đăng nhập */
.btn-partner-login { background: #3da98f; color: white; padding: 8px 15px; border-radius: 20px; text-decoration: none; font-weight: bold; font-size: 14px; transition: 0.3s; }
.btn-partner-login:hover { background: #2c3e50; }

/* Dropdown User */
.user-dropdown { position: relative; cursor: pointer; padding: 5px 10px; border-radius: 20px; transition: 0.3s; background: white; border: 1px solid #eee; }
.welcome-txt { color: #3da98f; font-weight: 800; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.header-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #3da98f; }

.dropdown-content {
    display: none; position: absolute; right: 0; top: 120%; background: white;
    min-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-radius: 10px;
    z-index: 3000; overflow: hidden; border: 1px solid #e0f2f1;
}
.user-dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { 
    color: #2c3e50; padding: 12px 20px; text-decoration: none; display: flex; 
    align-items: center; gap: 12px; font-size: 14px; transition: 0.2s; border-bottom: 1px solid #f9f9f9;
}
.dropdown-content a:hover { background: #f0faf8; color: #3da98f; }
/* css/style.css - THÊM VÀO CUỐI FILE */

/* --- 1. TÙY CHỈNH THANH TÌM KIẾM TO & NỔI BẬT --- */
.hero-section .search-container {
    max-width: 800px; /* Rộng hơn */
    margin: 30px auto; /* Cách xa hơn */
    display: flex;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Bóng đổ nổi bật */
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden; /* Để nút bấm bo tròn theo */
}

.hero-section input {
    flex: 1;
    padding: 18px 30px; /* To hơn */
    font-size: 16px;
    border: none; outline: none;
    background: rgba(255,255,255,0.95);
    color: #2c3e50;
}

.hero-section button {
    padding: 0 40px;
    background: #f1c40f; /* Màu vàng nổi bật */
    color: #2c3e50; font-weight: 800; font-size: 16px;
    border: none; cursor: pointer;
    transition: 0.3s;
}
.hero-section button:hover { background: #d4ac0d; }


/* --- 2. STYLE CHO FOOTER CHUYÊN NGHIỆP MỚI --- */
footer {
    background: #2c3e50; color: #ecf0f1;
    padding-top: 60px; margin-top: 50px;
}
.footer-content {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: repeat(4, 1fr); /* 4 cột */
    gap: 30px;
}
.footer-col h3 {
    color: #3da98f; font-size: 18px; margin-bottom: 20px;
    position: relative;
}
/* Gạch chân dưới tiêu đề footer */
.footer-col h3::after {
    content: ''; position: absolute; left: 0; bottom: -10px;
    width: 50px; height: 2px; background: #3da98f;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #bdc3c7; text-decoration: none; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.footer-col ul li a:hover { color: #3da98f; transform: translateX(5px); }

.contact-info li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; color: #bdc3c7; }
.contact-info i { color: #3da98f; margin-top: 3px; }

.footer-bottom {
    background: #233140; text-align: center;
    padding: 20px; margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05); color: #7f8c8d;
}

/* Responsive Footer cho điện thoại */
@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr 1fr; } /* 2 cột trên tablet */
}
@media (max-width: 480px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; } /* 1 cột trên mobile */
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .contact-info li { justify-content: center; }
}