/* Glossary Styles */

/* Container Layout */
.glossary-page-container {
    display: flex;
    gap: 30px;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Sidebar Styles */
.glossary-sidebar {
    flex: 0 0 200px;
    position: sticky;
    top: 20px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: fit-content;
    align-self: flex-start;
}

.glossary-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #3861fb; /* Theme primary color */
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
}

/* Alphabet Navigation */
.alphabet-navigation {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.alphabet-link {
    text-decoration: none;
    font-size: 16px;
    color: #074799; /* Theme primary color */
    padding: 5px 10px;
    display: block;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.alphabet-link:hover {
    background-color: #3861fb; /* Theme primary color */
    color: #ffffff;
}

/* Main Content Styles */
.glossary-main-content {
    flex: 1;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.glossary-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #3861fb; /* Theme primary color */
}

/* Search Form Styles */
.glossary-search-form {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
}

.glossary-search-field {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    font-size: 16px;
}

.glossary-search-submit {
    padding: 12px 20px;
    background-color: #009990; /* Theme primary color */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.glossary-search-submit:hover {
    background-color: #2d4ccc; /* Darker version of primary color */
}

/* Letter Headings */
.glossary-letter-heading {
    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #074799; /* Theme primary color */
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
}

/* Glossary Items */
.glossary-item {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background-color: #E1FFBB;
    transition: box-shadow 0.3s ease;
}

.glossary-item:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.glossary-term-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111111;
}

.glossary-term-excerpt {
    font-size: 16px;
    color: #666666;
}

.glossary-term-excerpt p {
    margin: 0;
}

/* Single Glossary Page */
.single-glossary-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.single-glossary-main {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.single-glossary-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #3861fb; /* Theme primary color */
}

.single-glossary-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

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

.glossary-back-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background-color: #3861fb; /* Theme primary color */
    color: #ffffff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.glossary-back-link:hover {
    background-color: #2d4ccc; /* Darker version of primary color */
    color: #ffffff;
}

.glossary-back-link i {
    margin-right: 8px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .glossary-page-container {
        margin: 30px auto;
    }
}

@media (max-width: 768px) {
    .glossary-page-container {
        flex-direction: column;
    }
    
    .glossary-sidebar {
        position: static;
        width: 100%;
    }
    
    .alphabet-navigation {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 480px) {
    .glossary-main-content {
        padding: 20px;
    }
    
    .glossary-search-form {
        flex-direction: column;
    }
    
    .glossary-search-field,
    .glossary-search-submit {
        width: 100%;
    }
    
    .alphabet-navigation {
        grid-template-columns: repeat(4, 1fr);
    }
}
