/* CSS for Premium Land Tax Knowledge Base on hosothue.com.vn */

:root {
    --land-primary: #0f172a; /* Slate 900 (Dark Blue) */
    --land-primary-light: #1e293b;
    --land-accent: #0284c7; /* Sky 600 */
    --land-accent-light: #e0f2fe;
    --land-success: #059669; /* Emerald 600 */
    --land-success-light: #ecfdf5;
    --land-warning: #d97706; /* Amber 600 */
    --land-warning-light: #fef3c7; /* Amber 100 */
    --land-gray-light: #f8fafc; /* Slate 50 */
    --land-gray-border: #e2e8f0; /* Slate 200 */
    --land-text: #334155; /* Slate 700 */
}

/* Base styling overrides within land tax articles */
.land-tax-body {
    color: var(--land-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.8;
}

.land-tax-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--land-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--land-gray-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.land-tax-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--land-primary-light);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.land-tax-body p {
    margin-bottom: 1.25rem;
}

/* Mobile-friendly paragraph limit */
@media (max-width: 767.98px) {
    .land-tax-body p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
}

/* 1. HERO SECTION */
.land-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.land-hero-title {
    font-weight: 900;
    line-height: 1.3;
    font-size: 2.25rem;
}

.land-hero-summary {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 1rem;
    border-left: 3px solid var(--land-accent);
    padding-left: 1rem;
}

.land-meta-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.land-risk-badge {
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.land-risk-low {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.land-risk-medium {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.land-risk-high {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* 2. ALERT BOX QUAN TRỌNG (RỦI RO THƯỜNG GẶP) */
.land-alert-warning {
    background-color: var(--land-warning-light);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-left: 5px solid var(--land-warning);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.land-alert-warning-title {
    color: #92400e;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.land-alert-warning ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
    color: #78350f;
}

.land-alert-warning li {
    margin-bottom: 0.5rem;
}

.land-alert-warning li::marker {
    color: var(--land-warning);
}

/* 3. CASE STUDY BOX (TRƯỜNG HỢP THỰC TẾ) */
.land-case-study-box {
    background-color: #f8fafc;
    border: 1px solid var(--land-gray-border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.land-case-study-title {
    color: var(--land-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 4. BLOCK HỒ SƠ CẦN CHUẨN BỊ (CHECKLIST CARD) */
.land-checklist-card {
    background-color: #ffffff;
    border: 2px solid var(--land-gray-border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.land-checklist-title {
    color: var(--land-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--land-gray-border);
    padding-bottom: 0.75rem;
}

.land-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.land-checklist-item {
    background-color: var(--land-gray-light);
    border: 1px solid var(--land-gray-border);
    padding: 0.85rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.land-checklist-item:hover {
    border-color: var(--land-accent);
    background-color: var(--land-accent-light);
    color: var(--land-primary);
}

.land-checklist-item i {
    color: var(--land-success);
    font-size: 1.25rem;
}

/* 5. TIMELINE QUY TRÌNH STEP-BY-STEP */
.land-timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.land-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background-color: var(--land-gray-border);
}

.land-timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.land-timeline-item:last-child {
    margin-bottom: 0;
}

.land-timeline-badge {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: #ffffff;
    border: 3px solid var(--land-accent);
    z-index: 2;
    transition: all 0.2s ease;
}

.land-timeline-item:hover .land-timeline-badge {
    transform: scale(1.2);
    border-color: var(--land-success);
}

.land-timeline-card {
    background-color: var(--land-gray-light);
    border: 1px solid var(--land-gray-border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    transition: all 0.2s ease;
}

.land-timeline-card:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--land-gray-border);
}

.land-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.land-timeline-step {
    font-weight: 700;
    color: var(--land-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.land-timeline-time {
    font-size: 0.8rem;
    color: #64748b;
    background-color: rgba(100, 116, 139, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

.land-timeline-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--land-primary);
    margin-bottom: 0.5rem;
}

.land-timeline-body {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

/* 6. FAQ ACCORDION */
.land-faq-container {
    margin: 2rem 0;
}

.land-faq-card {
    border: 1px solid var(--land-gray-border);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.land-faq-card:hover {
    border-color: var(--land-accent);
}

.land-faq-header {
    background-color: #ffffff;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
}

.land-faq-question {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--land-primary);
    margin-bottom: 0;
}

.land-faq-icon {
    font-size: 1.1rem;
    color: var(--land-accent);
    transition: transform 0.25s ease;
}

.land-faq-body {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: 0.95rem;
    color: var(--land-text);
    display: none;
    border-top: 1px solid transparent;
    line-height: 1.7;
}

.land-faq-card.active .land-faq-body {
    display: block;
    border-top-color: var(--land-gray-border);
}

.land-faq-card.active .land-faq-icon {
    transform: rotate(180deg);
}

/* 7. INFO BOX PHÁP LÝ (LEGAL BOX) */
.land-legal-box {
    background-color: var(--land-gray-light);
    border: 1px solid var(--land-gray-border);
    border-left: 4px solid var(--land-success);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.land-legal-box-title {
    color: var(--land-success);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.land-legal-box-body {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

/* 9. FLOATING TABLE OF CONTENTS */
.land-toc-desktop {
    background-color: #ffffff;
    border: 1px solid var(--land-gray-border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.land-toc-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--land-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--land-gray-border);
    padding-bottom: 0.5rem;
}

.land-toc-link {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.land-toc-link:hover, .land-toc-link.active {
    color: var(--land-accent);
    background-color: var(--land-accent-light);
    border-left-color: var(--land-accent);
    font-weight: 600;
}

/* Mobile Quick Access button */
.land-toc-mobile-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--land-primary);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    font-weight: 700;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

@media (max-width: 991.98px) {
    .land-toc-mobile-btn {
        display: flex;
    }
}

.land-toc-mobile-btn:hover {
    background-color: var(--land-accent);
    transform: translateY(-2px);
}

/* 10. COST CARD & BẢNG PHÍ CHUYÊN BIỆT */
.land-cost-table-container {
    margin: 2rem 0;
    border: 1px solid var(--land-gray-border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.land-cost-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.land-cost-table th {
    background-color: var(--land-primary-light);
    color: #ffffff;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
}

.land-cost-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--land-gray-border);
    font-size: 0.95rem;
    color: var(--land-text);
}

.land-cost-table tr:last-child td {
    border-bottom: none;
}

.land-cost-table tr:nth-child(even) {
    background-color: var(--land-gray-light);
}

/* 11. CTA TOOL CARDS AT THE BOTTOM */
.land-cta-section {
    background-color: var(--land-gray-light);
    border: 1px solid var(--land-gray-border);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    margin-top: 3rem;
}

.land-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.land-cta-card {
    background-color: #ffffff;
    border: 1px solid var(--land-gray-border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.land-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08);
    border-color: var(--land-accent);
}

.land-cta-icon-box {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background-color: var(--land-accent-light);
    color: var(--land-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.2s ease;
}

.land-cta-card:hover .land-cta-icon-box {
    background-color: var(--land-accent);
    color: #ffffff;
}

.land-cta-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--land-primary);
    margin-bottom: 0.5rem;
}

.land-cta-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0;
}
