


.glossary-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}
.glossary-pagination-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

#glossary-load-more {
    background-color: #3F20BA;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#glossary-load-more:hover {
    background-color: #2e1694;
}

.no-terms {
    color: #6b7280;
    font-style: italic;
    padding: 20px 0;
}

/* Top Bar */
.glossary-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 600px;
}



.search-box .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px!important;
    border: 1px solid rgb(178, 178, 185)!important;
    padding-left:50px!important;
    border-radius: 8px!important;
    font-size: 16px;
    outline: none;
}

.search-box input:focus {
    border-color: #3F20BA;
}

/* Toggle Filters */
.type-filters {
    display: flex;
    background-color: #E9E4FC;
    border-radius: 8px;
    padding: 4px;
}

.type-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s ease;
}

.type-btn.active,.type-btn:hover {
    background: white!important;
    color: #111;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Body Layout */
.glossary-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar */
.glossary-sidebar {
    width: 260px;
    background: #FAFAFA;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 24px;
    flex-shrink: 0;
}

.glossary-sidebar h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
}

.letter-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.letter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
    color: #4b5563;
    transition: color 0.2s;
}

.letter-item:hover, .letter-item.active {
    color: #3F20BA;
    font-weight: 500;
}

.letter-circle {
    width: 28px;
    height: 28px;
    background: #E9E4FC;
    color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

/* Main Content */
.glossary-main-content {
    flex: 1;
}

/* Letter Headers */
.letter-header-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.letter-header {
    width: 50px;
    height: 50px;
    background: #3F20BA;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}

.letter-line {
    flex: 1;
    height: 1px;
    background: #eaeaea;
}

/* Cards */
.glossary-card {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    background: white;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4b5563;
}

.card-content {
    flex: 1;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.card-badge {
    background: #e5e7eb;
    color: #374151;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.card-desc {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .glossary-body { flex-direction: column; }
    .glossary-sidebar { width: 100%; }
}


