.method-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    background-color: white;
}
.method-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.method-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.method-icon {
    width: 50px;
    height: 50px;
    background-color: #4a6baf;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2em;
}
.method-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}
.method-syntax {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    margin: 15px 0;
    border-left: 4px solid #3498db;
}
.demo-tree {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin: 20px 0;
}
.tree-node {
    margin-left: 20px;
    position: relative;
}
.tree-node:before {
    content: "";
    position: absolute;
    left: -15px;
    top: 10px;
    width: 10px;
    height: 1px;
    background-color: #999;
}
.tree-node:after {
    content: "";
    position: absolute;
    left: -15px;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #999;
}
.tree-node:last-child:after {
    height: 10px;
}
.current-element {
    background-color: #e3f2fd;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}
.traversal-nav {
    position: sticky;
    top: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.traversal-nav ul {
    list-style-type: none;
    padding-left: 0;
}
.traversal-nav li {
    margin-bottom: 8px;
}
.traversal-nav a {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}
.traversal-nav a:hover {
    background-color: #f0f7ff;
    color: #0066cc;
    padding-left: 20px;
}
.traversal-nav a.active {
    background-color: #e3f2fd;
    color: #0066cc;
    font-weight: bold;
    border-left: 4px solid #0066cc;
}
.chain-example {
    background: linear-gradient(to right, #f8f9fa, #e8f4f8);
    border-left: 4px solid #009688;
    padding: 20px;
    border-radius: 6px;
    margin: 25px 0;
}
.diagram-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}
.node {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    position: relative;
}
.arrow {
    font-size: 1.5em;
    color: #7f8c8d;
    margin: 0 10px;
}
.highlighted {
    background-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}
.comparison-table {
    margin: 25px 0;
}
.comparison-table th {
    background-color: #2c3e50;
    color: white;
}
.live-demo-area {
    border: 2px dashed #ddd;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    background-color: #fafafa;
}
.demo-controls {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}
.method-group {
    background-color: #f5f7fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 5px solid #4a6baf;
}
.method-group h3 {
    color: #2c3e50;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}
