.wiki-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #636e72;
    z-index: 10000;
    display: none;
    overflow-y: auto;
}

.wiki-overlay.active {
    display: block;
}

.wiki-container {
    max-width: 800px;
    margin: 10px auto;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 5px 20px 10px 20px;
    width: calc(100% - 40px);
    min-height: calc(100vh - 20px);
}

.wiki-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.wiki-title {
    font-family: 'Shrikhand', cursive;
    color: #0097b2;
    font-size: 1.8em;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.wiki-title:hover {
    color: #00b894;
    transform: scale(1.05);
}

.wiki-close-btn {
    background: white;
    color: #0097b2;
    border: 3px solid #0097b2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 10px;
    line-height: 1;
    align-self: center;
}

.wiki-close-btn:hover {
    background: #0097b2;
    color: white;
    transform: scale(1.1);
}

.wiki-search {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.wiki-search input {
    flex: 1;
    padding: 0 20px;
    border: 3px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
    height: 50px;
    line-height: 44px;
    box-sizing: border-box;
}

.wiki-search input:focus {
    outline: none;
    border-color: #0097b2;
    background: white;
}

.wiki-search button {
    background: #0097b2;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 151, 178, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    align-self: center;
}

.wiki-search button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 151, 178, 0.4);
}

.wiki-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.wiki-category-card {
    background: #0097b2;
    color: white;
    padding: 15px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.wiki-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.wiki-category-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.wiki-category-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.wiki-category-name {
    font-size: 1.2em;
    font-weight: 700;
    text-align: left;
    flex: 1;
}

.wiki-articles-list {
    display: none;
}

.wiki-articles-list.active {
    display: block;
}

.wiki-article-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wiki-article-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.wiki-article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #0097b2;
}

.wiki-article-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #2d3436;
}

.wiki-article-view {
    display: none;
}

.wiki-article-view.active {
    display: block;
}

.wiki-article-content {
    line-height: 1.8;
    color: #2d3436;
}

.wiki-article-header {
    background: #0097b2;
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: left;
    font-weight: 500;
    font-size: 1.05em;
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(0, 151, 178, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
}

.wiki-article-header img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.wiki-article-header-text {
    flex: 1;
}

.wiki-questions-section {
    margin-top: 30px;
}

.wiki-section-title {
    color: #0097b2;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0097b2;
}

.wiki-qa-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #ffbd59;
    transition: all 0.3s;
}

.wiki-qa-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wiki-question {
    color: #0097b2;
    font-weight: 700;
    font-size: 1.05em;
    margin-bottom: 10px;
    line-height: 1.5;
}

.wiki-answer {
    color: #2d3436;
    line-height: 1.7;
    padding-left: 15px;
}

.wiki-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #636e72;
}

.wiki-breadcrumb-link {
    color: #0097b2;
    cursor: pointer;
    font-weight: 600;
}

.wiki-breadcrumb-link:hover {
    text-decoration: underline;
}