/* Glossary Styles */

.glossary-container {
    display: flex;
    width: 1440px;
    padding: 70px 80px 40px 80px;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
}

.glossary-subtitle {
    margin-top: 8px;
    margin-bottom: 40px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}

.glossary-search-bar {
    display: flex;
    align-items: center;
    padding: 4px 16px;
    gap: 4px;
    flex: 1 0 0;
    align-self: stretch;
    margin-bottom: 30px;
    width: 100%;
}

.glossary-search-bar form {
    display: flex;
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    width: 100%;
    position: relative;
    border-radius: 4px;
}

#glossary-search-input {
    flex: 1;
    padding: 12px 15px;
    background: #f6f6f6;
    border-radius: 28px;
    border: none;
    font-size: 16px;
    width: calc(100% - 40px);
}

.search-icon-button {
    display: flex;
    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: radial-gradient(718.13% 133.15% at 4.71% 100%, #FF5C6E 4.63%, #AB8BE2 54.4%, #299CE7 86.3%);
    border: none;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

.glossary-alphabet {
    display: flex;
    gap: 4px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.glossary-letter {
    display: flex;
    padding: 8px 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.glossary-letter:hover {
    background-color: #f5f5f5;
}

.glossary-letter.active {
    background: var(--Gradient-3, radial-gradient(718.13% 133.15% at 4.71% 100%, #FF5C6E 4.63%, #AB8BE2 54.4%, #299CE7 86.3%));
    color: white;
}

.glossary-items-container {
    width: 100%;
    max-width: 800px;
}

.glossary-letter-section {
    margin-bottom: 40px;
    width: 100%;
}

.glossary-letter-section h2 {
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 125.987%;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.glossary-letter-section h2.active {
    font-size: 40px;
    font-style: normal;
    font-weight: 800;
    line-height: 125.987%;
}

.glossary-terms {
    display: flex;
    width: 100%;
    max-width: 581px;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    padding-left: 20px;
}

.glossary-terms li {
    margin-bottom: 15px;
    list-style-type: disc;
}

.glossary-terms li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.glossary-terms li a:hover {
    color: #007bff;
}

.glossary-search-results h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 1440px) {
    .glossary-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .glossary-container {
        padding: 40px 20px;
    }
    
    .glossary-alphabet {
        gap: 5px;
    }
    
    .glossary-letter {
        padding: 5px 8px;
        font-size: 14px;
    }
    
    .glossary-terms {
        max-width: 100%;
    }
    
    .glossary-letter-section h2 {
        font-size: 24px;
    }
    
    .glossary-letter-section h2.active {
        font-size: 28px;
    }
}

/* Single Glossary Styles - Add to your glossary.css file */

.glossary-single-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.glossary-single-content {
    max-width: 800px;
    margin: 0 auto;
}

.glossary-single-article {
    margin-bottom: 50px;
}

.glossary-single-article .entry-header {
    margin-bottom: 30px;
}

.glossary-single-article .entry-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.glossary-single-article .entry-content {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.glossary-single-article .entry-content p {
    margin-bottom: 20px;
}

.glossary-single-article .entry-content h2,
.glossary-single-article .entry-content h3,
.glossary-single-article .entry-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.glossary-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-to-glossary {
    display: inline-block;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-glossary:hover {
    color: #007bff;
}

/* Related Posts Section */
.related-posts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-posts-section h2 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.related-post-thumbnail {
    display: block;
    height: 180px;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-thumbnail:hover img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-post-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.related-post-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-content h3 a:hover {
    color: #007bff;
}

.related-post-excerpt {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

@media (max-width: 900px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .glossary-single-article .entry-title {
        font-size: 32px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-post-thumbnail {
        height: 200px;
    }
}