
  <style>
.related-glossaries {
    margin: 40px auto 0 auto;
    max-width: 900px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f4ff 0%, #e6e0ff 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(106, 90, 205, 0.08);
}

.related-glossaries h3 {
    text-align: center;
    color: #5D3FD3;
    font-size: 1.5rem;
    margin-bottom: 22px;
    letter-spacing: 1px;
    font-weight: 700;
    text-shadow: 0 1px 2px #e6e0ff;
}

.glossary-links-grid {
    padding:10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.glossary-links-grid a {
    display: block;
    background: #fff;
    color: #5D3FD3;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(106, 90, 205, 0.07);
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e6e0ff;
    font-size: 1.04rem;
}

.glossary-links-grid a:hover {
    background: #5D3FD3;
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(106, 90, 205, 0.13);
}
 
   .glossary-description {
    max-width: 800px;
    margin: 40px auto 30px auto;
    background: linear-gradient(135deg, #e6e0ff 0%, #f8f4ff 100%);
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 6px 20px rgba(106, 90, 205, 0.12);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #4b3ca7;
    text-align: center;
}

.glossary-description h2 {
    margin-bottom: 12px;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-shadow: 1px 1px 2px rgba(106, 90, 205, 0.3);
}

.glossary-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
    color: #5d4db2;
}
   .alphabet-header-row td {
    background-color: #9d91e5; /* matching your header purple */
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 10px 15px;
    border-top: 3px solid #4b0082;
    border-bottom: 3px solid #4b0082;
    text-transform: uppercase;
    letter-spacing: 2px;
}

        .glossary-container {
            max-width: 800px;
            margin: 0 auto;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        h2 {
            color: #5D3FD3;
            text-align: center;
            margin: 25px 0;
            font-size: 2rem;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
        }
        
        .glossary-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        thead {
            background: linear-gradient(135deg, #6a5acd 0%, #4b0082 100%);
            color: white;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        th, td {
            padding: 15px;
            text-align: left;
            border: 1px solid #e0e0e0;
        }
        .term{

            color: #ee8e00; 
        }
        .term-column {
            width: 30%;
            font-weight: 600;
        }
        
        .definition-column {
            width: 70%;
        }
        
        /* Even rows */
        tbody tr:nth-child(even) {
            background-color: #fff;
            border: 1px solid #e0e0e0;
        }
        
        /* Odd rows */
        tbody tr:nth-child(odd) {
            background-color: #ffffff;
            border: 1px solid #e0e0e0;
        }
        
        /* Hover effect */
        tbody tr:hover {
            background-color: #f0eaff;
            transform: scale(1.002);
            transition: all 0.2s ease;
            box-shadow: 0 2px 10px rgba(106, 90, 205, 0.1);
        }
        
        tfoot {
            background: linear-gradient(135deg, #f8f4ff 0%, #e6e0ff 100%);
            font-style: italic;
            text-align: center;
            color: #5D3FD3;
            font-weight: 500;
        }
        
        /* Border radius for first and last rows */
        tbody tr:first-child td:first-child {
            border-top-left-radius: 0;
        }
        tbody tr:first-child td:last-child {
            border-top-right-radius: 0;
        }
        tbody tr:last-child td:first-child {
            border-bottom-left-radius: 0;
        }
        tbody tr:last-child td:last-child {
            border-bottom-right-radius: 0;
        }
   
.bookdesc{
    padding:10px;
background:linear-gradient(white,#b8ddee,white);
  width:80%;
    margin:auto;
}

/* Glossary list styles */

 /* Reset & base */
  *, *::before, *::after {
    box-sizing: border-box;
  }
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    margin: 0; padding: 0;
    color: #333;
    line-height: 1.5;
  }
  h1 {
    text-align: center;
    padding: 2rem 1rem 1rem;
    font-weight: 700;
    color: #222;
  }
  /* Container */
  .container {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
  }
  /* Search bar */
  .search-bar {
    max-width: 400px;
    margin: 0 auto 2rem;
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  }
  .search-bar input {
    flex-grow: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
  }
  .search-bar button {
    background: #0078d4;
    border: none;
    color: white;
    padding: 0 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  .search-bar button:hover {
    background: #005ea2;
  }
  /* Alphabetical filter */
  .alphabet-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
  }
  .alphabet-filter button {
    background: #e1e8f7;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .alphabet-filter button.active,
  .alphabet-filter button:hover {
    background: #0078d4;
    color: white;
  }
  /* Grid */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 24px;
  }
  /* Card */
  .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .card:hover,
  .card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgb(0 0 0 / 0.15);
  }
  .card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    flex-shrink: 0;
  }
  .card-content {
    padding: 1rem 1.25rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #0078d4;
  }
  .card-description {
    font-size: 1rem;
    color: #555;
    flex-grow: 1;
  }
  /* Responsive tweaks */
  @media (max-width: 480px) {
    .card img {
      height: 140px;
    }
  }