/**
 * Knowledge Base Styles
 * Common styles for knowledge center pages
 * Includes: Sidebar, Navigation, Main Content, and Collapsible Menu
 */

/* ==================== Layout & Base ==================== */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.public_title h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.public_title p {
    font-size: 14px;
    color: #666;
}

.knowledge-layout {
    display: flex;
    gap: 20px;
}

/* ==================== Sidebar Navigation ==================== */
.sidebar {
    width: 25%;
    position: sticky;
    top: 20px;
    height: fit-content;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.sidebar a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebar a:hover {
    color: #333;
}

/* ==================== Collapsible Menu ==================== */
.category-item {
    margin-bottom: 8px;
}

.category-title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    padding: 5px 0;
    user-select: none;
}

.category-title:hover {
    color: #007bff;
}

.arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.arrow.rotated {
    transform: rotate(90deg);
}

.sub-menu {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    display: none;
    border-left: 2px solid #eee;
}

.sub-menu.show {
    display: block;
}

.sub-menu li {
    margin-bottom: 6px;
}

.sub-menu a {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.sub-menu a:hover {
    color: #333;
}

.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 12px 0;
}

/* ==================== Contact Sidebar Section ==================== */
.contact-sidebar {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.contact-sidebar h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.contact-sidebar p {
    margin: 5px 0;
    font-size: 14px;
}

/* ==================== Main Content Area ==================== */
.main-content {
    width: 70%;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-content h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 18px;
    font-weight: 600;
}

.main-content p {
    margin-bottom: 12px;
    text-align: justify;
    line-height: 1.7;
    color: #555;
}

.main-content h3 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
}

.main-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.main-content li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.main-content li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.main-content li a:hover {
    color: #333;
    text-decoration: underline;
}
