/* -----------------------------
   Global safety
------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* -----------------------------
   Body background
------------------------------ */
body {
    background: linear-gradient(0deg, #F5F1DD 0%, #F5F1DD 100%), #FFF;
    margin: 0;
    padding: 0;
}

/* -----------------------------
   Glossary archive container
------------------------------ */
.glossary-archive {
    max-width: 1266px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
}

/* -----------------------------
   Page title
------------------------------ */
.glossary-title {
    color: #0F1616;
    margin-bottom: 10px;
    margin-top: 160px;
    text-align: center;

}


/* -----------------------------
   Page description
------------------------------ */
.sub-text {
    width: 100%;
    max-width: 800px;
    text-align: center ;
    margin: 0px auto 
}

.sub-text p{
    color: #443D37;
    margin-bottom: 30px;

}

/* Glossary Search Wrapper */
.glossary-search-wrap {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}


/* Selected letter */

.glossary-selected {
    display: flex;
    align-items: center;
}

.glossary-selected-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1.5px solid #cfd6e4;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #111;
}

.glossary-selected-pill .pill-letter {
    font-weight: 600;
}

.glossary-selected-pill .pill-clear {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #6b7280;
}

.glossary-selected-pill .pill-clear:hover {
    color: #000;
}

/* Input Field */
#glossary-search {
    width: 100%;
    padding: 22px 50px 22px 27px; /* right padding for icon */
    border-radius: 16px;
    background: #FFF;
    font-size: 16px;
    border: 1px solid #ccc;
    text-align: left; /* placeholder and text aligned left */
    box-sizing: border-box;
}

/* Placeholder styling */
#glossary-search::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Search Icon */
.glossary-search-icon {
    position: absolute;
    right: 20px; /* distance from input right edge */
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #aaa;
    pointer-events: none;
}

/* Focus styling */
#glossary-search:focus {
    border-color: #F3D2A6;
    box-shadow: 0 0 6px rgba(0, 115, 230, 0.25);
    outline: none;
}




/* -----------------------------
   Glossary grid
------------------------------ */
.glossary-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: stretch;
    gap: 27px;
    width: 100%;
    max-width: 1266px;
    margin: 0 auto;

}

/* -----------------------------
   Glossary card
------------------------------ */
.glossary-grid .glossary-card {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
    max-width: 390px;
    padding: 30px;
    gap: 0px;
    border-radius: 20px;
    background: #FFF;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);

}

/* -----------------------------
   Card title
------------------------------ */
.glossary-card-title a {
    font-size: 20px;
    color: #0F1616;
    text-transform: uppercase; 

}

/* -----------------------------
   Card excerpt
------------------------------ */
.glossary-card-excerpt {
    margin: 10px 0;
    color: #443D37;
    font-size: 14px;
    text-align: left;

}

/* -----------------------------
   Read more button
------------------------------ */
.glossary-card-button {
    font-family: "DM Sans" , sans-serif !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0px 0px;
    background: transparent;
    color: #CC6A3D;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;

}


.glossary-card-icon {
    display: inline-flex;
    line-height: 0;
}

/* -----------------------------
   No items message
------------------------------ */
.no-glossary-items {
    width: 100%;
    text-align: center;
    color: #777;
    font-size: 16px;
}

/* -----------------------------
   Tablet adjustments
------------------------------ */
@media (max-width: 1024px) {
    .glossary-archive {
        padding: 50px 16px;
    }

    .glossary-grid {
        gap: 20px;
    }
}

/* -----------------------------
   Mobile adjustments
------------------------------ */
@media (max-width: 767px) {
    .glossary-title {
        margin-bottom: 40px;
    }
	
	#glossary-search {
        padding: 18px 45px 18px 20px; /* adjust padding for smaller screens */
        font-size: 14px;
    }
    .glossary-search-icon {
        right: 15px;
        font-size: 16px;
    }

    .glossary-grid .glossary-card {
        padding: 24px 20px;
    }
	
}



