.glossary-container {
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.glossary-search {
    padding: 15px;
    background-color: #f5f7fa;
    border-bottom: 1px solid #e0e0e0;
}

.glossary-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.glossary-list {
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.glossary-section {
    margin-bottom: 30px;
}

.glossary-letter {
    font-size: 24px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.glossary-terms {
    margin: 0;
    padding: 0;
}

.glossary-term {
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
    margin-top: 15px;
    margin-bottom: 5px;
}

.glossary-definition {
    margin: 0 0 15px 0;
    padding: 0 0 0 15px;
    border-left: 3px solid #e0e0e0;
    color: #555;
    line-height: 1.5;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #777;
    font-style: italic;
}

/* Case Studies Styles */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.case-study-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.case-study-header {
    padding: 15px;
    background-color: #f5f7fa;
    border-bottom: 1px solid #e0e0e0;
}

.case-study-header h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.case-category {
    display: inline-block;
    padding: 3px 8px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    font-size: 12px;
}

.case-study-summary {
    padding: 15px;
    color: #555;
}

.case-study-summary p {
    margin: 0;
    line-height: 1.5;
}

.view-case-study {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    text-align: center;
}

/* Modal Styles */
.case-study-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.case-study-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.case-study-modal-body {
    padding: 10px 0;
}

.case-study-modal-body h3 {
    margin-top: 0;
    color: #2c3e50;
    padding-right: 30px;
}

.case-study-category {
    margin-bottom: 20px;
}

.case-study-category span {
    display: inline-block;
    padding: 5px 10px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

.case-study-content {
    line-height: 1.6;
    color: #333;
}

.case-study-content h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.case-study-content p {
    margin-bottom: 15px;
}

.case-study-content ul {
    margin-bottom: 15px;
}

.case-study-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.case-study-table th,
.case-study-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.case-study-table th {
    background-color: #f5f7fa;
    font-weight: bold;
}

.case-study-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
