:root {
    --primary-color: #4e73df;
    --secondary-color: #2e59d9;
    --accent-color: #67b7d1;
    --light-bg: #f8f9fc;
    --dark-text: #212529;
    --light-text: #6c757d;
    --success-color: #1cc88a;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fb;
}

a {
    cursor: pointer;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar {
    background-color: white;
    border-right: 1px solid #e9ecef;
    height: calc(100vh - 56px);
    overflow-y: auto;
    position: sticky;
    top: 56px;
}

.category-item {
    padding: 12px 20px;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid #f1f1f1;
}

.category-item:hover {
    background-color: var(--light-bg);
}

.category-item.active {
    background-color: rgba(78, 115, 223, 0.1);
    border-left: 3px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.content-area {
    min-height: calc(100vh - 56px);
}

.knowledge-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    background: white;
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.card-title {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.card-description {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.tag {
    display: inline-block;
    background-color: rgba(78, 115, 223, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tag-white {
    display: inline-block;
    background-color: rgba(78, 115, 223, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

.stats-card {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: none;
    background: white;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.breadcrumb-custom {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--light-text);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.footer {
    background-color: white;
    border-top: 1px solid #e9ecef;
    padding: 30px 0;
}

.category-header {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.psychology-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.test-card {
    border-left: 4px solid var(--primary-color);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.consultation-card {
    background: linear-gradient(135deg, #67b7d1, #4e73df);
    color: white;
    border-radius: 12px;
}

.consultation-card .card-title {
    color: white;
}

.consultation-card .card-text {
    color: rgba(255, 255, 255, 0.9);
}

.consultation-card .btn {
    background-color: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.consultation-card .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.highlight {
    background-color: #ffff00;
    color: #000;
    font-weight: 500;
}

.contact-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.4);
    cursor: pointer;
    z-index: 1040;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(78, 115, 223, 0.5);
}

.contact-btn i {
    font-size: 1.5rem;
}

.report-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #36b9cc, #1cc88a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(54, 185, 204, 0.4);
    cursor: pointer;
    z-index: 1040;
    transition: all 0.3s ease;
    text-decoration: none;
}

.report-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(54, 185, 204, 0.5);
    color: white;
    text-decoration: none;
}

.report-btn i {
    font-size: 1.5rem;
}

.equal-height-cards {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-cards .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.equal-height-cards .card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.equal-height-cards .card .card-body .card-text {
    flex: 1;
}

@media (max-width: 576px) {
    .contact-btn {
        width: 45px;
        height: 45px;
        right: 15px;
        bottom: 15px;
    }

    .contact-btn i {
        font-size: 1.2rem;
    }

    .report-btn {
        width: 45px;
        height: 45px;
        right: 15px;
        bottom: 15px;
    }

    .report-btn i {
        font-size: 1.2rem;
    }
}