/* 5 Cánh Cổng (Cards) */
.five-gates {
    display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
}

.gate-card {
    width: 200px; height: 320px; border-radius: 20px;
    position: relative; overflow: hidden; cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
    border: 1px solid rgba(255,255,255,0.5);
}

.gate-card:hover { transform: translateY(-15px) scale(1.02); box-shadow: 0 20px 50px rgba(0,0,0,0.2); width: 230px; }

.gate-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transition: 0.5s; z-index: 1; filter: brightness(0.9);
}
.gate-card:hover .gate-bg { transform: scale(1.1); filter: brightness(1.1); }

.gate-content { position: relative; z-index: 2; text-align: center; color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.gate-icon { 
    font-size: 2.5rem; margin-bottom: 10px; display: block; 
    opacity: 0.8; transition: 0.3s;
}
.gate-card:hover .gate-icon { opacity: 1; transform: translateY(-5px); }

.gate-title { 
    font-size: 1.8rem; margin: 0; font-family: 'Playfair Display', serif; 
    font-weight: 700; line-height: 1;
}
.gate-sub { 
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; 
    margin-top: 5px; display: block; opacity: 0; transform: translateY(10px); transition: 0.3s;
}
.gate-card:hover .gate-sub { opacity: 1; transform: translateY(0); }

/* Specific Gate Styles (Background Gradients/Colors) */
.g-kim .gate-bg { background: linear-gradient(to bottom, #E0E0E0, #F9F3E5); }
.g-kim .gate-content { color: #5d4037; text-shadow: none; }

.g-moc .gate-bg { background: linear-gradient(to bottom, #A5D6A7, #2E7D32); }

.g-thuy .gate-bg { background: linear-gradient(to bottom, #90CAF9, #1565C0); }

.g-hoa .gate-bg { background: linear-gradient(to bottom, #FFAB91, #C62828); }

.g-tho .gate-bg { background: linear-gradient(to bottom, #D7CCC8, #5D4037); }

/* CONTACT FORM (Lead Gen) */
.lead-form-wrapper {
    max-width: 900px; margin: 0 auto;
    background: white; border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    display: flex; overflow: hidden;
}
.lead-info {
    flex: 1; background: var(--text-main); color: white; padding: 40px;
    display: flex; flex-direction: column; justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.lead-info h3 { font-size: 1.8rem; margin-bottom: 15px; font-family: 'Playfair Display', serif; }
.lead-info p { opacity: 0.8; margin-bottom: 20px; font-size: 0.95rem; }
.lead-benefit { list-style: none; padding: 0; }
.lead-benefit li { margin-bottom: 10px; display: flex; gap: 10px; align-items: center; font-size: 0.9rem; }
.lead-benefit i { color: var(--kim-dark); }

.lead-inputs { flex: 1.5; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-field { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Lexend', sans-serif; outline: none; transition: 0.3s; }
.form-field:focus { border-color: var(--text-main); }
.form-submit {
    width: 100%; padding: 15px; background: linear-gradient(135deg, #C5A059, #D4AF37);
    color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer;
    transition: 0.3s; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3); }

/* --- 4. 6 CÔNG CỤ PHONG THỦY --- */
.tools-sec { padding: 80px 0; background: #fafaf9; border-top: 1px solid #f0f0f0; }
.section-header { text-align: center; margin-bottom: 60px; }

.tools-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}

.tool-card {
    background: var(--bg-body); border-radius: 20px; padding: 30px;
    box-shadow: var(--shadow); transition: 0.4s;
    position: relative; overflow: hidden; border: 1px solid rgba(0,0,0,0.03);
    display: flex; align-items: flex-start; gap: 20px; cursor: pointer;
}
.tool-card:hover { transform: translateY(-5px); background: white; border-color: var(--kim-dark); }

.tool-icon-box {
    width: 60px; height: 60px; border-radius: 16px; 
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; flex-shrink: 0;
}

.t-color .tool-icon-box { background: #E3F2FD; color: #1565C0; }
.t-number .tool-icon-box { background: #FFF3E0; color: #EF6C00; }
.t-compass .tool-icon-box { background: #E8F5E9; color: #2E7D32; }
.t-plant .tool-icon-box { background: #F3E5F5; color: #7B1FA2; }
.t-wallpaper .tool-icon-box { background: #FFEBEE; color: #C62828; }
.t-item .tool-icon-box { background: #ECEFF1; color: #455A64; }

.tool-content h3 { font-size: 1.2rem; margin-bottom: 8px; font-weight: 700; }
.tool-content p { font-size: 0.9rem; color: #666; margin-bottom: 15px; line-height: 1.5; }
.tool-link { 
    color: var(--text-main); font-weight: 600; font-size: 0.85rem; 
    display: flex; align-items: center; gap: 5px; text-decoration: underline;
}
.tool-link:hover { color: var(--kim-dark); }

/* --- 5. BLOG SECTION --- */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.blog-card {
    background: white; border-radius: 16px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: 0.3s; cursor: pointer;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }

.blog-img { height: 200px; overflow: hidden; position: relative; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }

.blog-body { padding: 25px; }
.blog-date { font-size: 0.8rem; color: #999; margin-bottom: 10px; display: block; }
.blog-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; color: var(--text-main); }
.blog-excerpt { font-size: 0.95rem; color: #666; line-height: 1.6; }

.lead-form { background: #fafaf9; }

/* --- 6. FAQ SECTION --- */
.faq-container { max-width: 800px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid #eee; }
.faq-question {
    padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; font-size: 1.1rem; transition: 0.3s;
}
.faq-question:hover { color: var(--kim-dark); }
.faq-icon { transition: 0.3s; }
.faq-answer { 
    max-height: 0; overflow: hidden; transition: 0.4s ease; color: #666; line-height: 1.6;
}
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

@media (max-width: 768px) {
    .gate-card { width: 160px; height: 280px; }
    .blog-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .lead-form-wrapper { display: block; }
}