@import url(./common.css);
@import url(./resource_common.css);
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

#glossary {
    background-color: #f3f4f6;
    padding-top: 50px;
}

.filter-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 0.6rem;
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    color: #4b5563;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.filter-group select,
.filter-group input {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: #374151;
    font-weight: 400;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.4);
    transform: none;
}
.alphabet-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.alphabet-bar button{
  background: #DEE4F7;
  border: none;
  color: #000;
  width: 35px;
  height: 30px;
  font-weight: 500;
  /* padding: 8px 12px; */  
  border-radius: 2px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.alphabet-bar button:hover,
.alphabet-bar button.active {
  background: #0c43a0;
  color: #fff;
}

.glossary-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7.5px;
    /* display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem; */
}

.glossary-item {
    background: white;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc((100% - 15px) / 3);
    flex-grow: 0;
    flex-shrink: 0;
    min-height: 80px;
}

.glossary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.glossary-item::before {
    content: none;
}

.glossary-item .term-link {
    font-weight: 600;
    font-size: 1.05rem;
    color: #1f2937;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.glossary-item .term-link:hover {
    color: #0C43A0 !important;
}

.glossary-item .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 12.5px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    transform: none;
    opacity: 0.9;
}

.category-information {
    background: #e0e7ff;
    color: #374151;
}

.category-document {
    background: #d1fae5;
    color: #374151;
}

.category-material {
    background: #ffedd5;
    color: #374151;
}

.category-finance,
.category-financial {
    background: #fae8ff;
    color: #374151;
}

.subcategory-tag,
.country-tag {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.search-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-container input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: #374151;
    font-weight: 400;
}

.search-container input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.4);
    transform: none;
}

.search-container input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.glossary_header {
    text-align: center;
    margin-bottom: 1rem;
    color: #1f2937;
}

.glossary_header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: none;
    color: #1f2937;
}

.glossary_header p {
    font-size: 1rem;
    opacity: 1;
    font-weight: 400;
    color: #4b5563;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1099px) {
.alphabet-bar {
  gap: 6px;
  margin: 15px 0;
}

.alphabet-bar button{
  width: 30px;
  height: 28px;
  font-size: 13px;
}
}
@media (max-width: 991px) {

}
@media (max-width: 767px) {
.alphabet-bar {
  gap: 2px;
  margin: 10px 0;
}

.alphabet-bar button{
  width: 22px;
  height: 18px;
  font-size: 11px;
}
    /* .glossary-list {
        grid-template-columns: 1fr;
    } */
    .glossary-item {
        width: calc((100% - 15px) / 2);
    }

    .glossary_header h1 {
        font-size: 2rem;
    }

    .filter-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .glossary-item {
        width: calc((100% - 15px) / 1);
    }
}