/* MAIN CONTAINER */
.dictionary-container {
    padding: 3rem 5%;
    display: flex;
    justify-content: center;
}

.dictionary-card {
    width: 100%;
    max-width: 850px;
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid #e8ecf3;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

/* SEARCH BOX */
.dictionary-search-box {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.dictionary-search-input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #dfe4ee;
    outline: none;
}

.dictionary-search-input:focus {
    border-color: #5CB8FF;
}

.dictionary-search-btn {
    padding: 0.9rem 1.6rem;
    background: #5CB8FF;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.dictionary-search-btn:hover {
    background: #4aa7ee;
    transform: translateY(-2px);
}

/* WORD HEADER */
.word-header {
    margin-bottom: 2rem;
}

.word-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #111;
}

.word-pronunciation {
    color: #5CB8FF;
    margin-top: 0.3rem;
}

.word-type {
    display: inline-block;
    background: #eef6ff;
    color: #5CB8FF;
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

/* TITLES */
.block-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

/* BULLET LIST */
.dictionary-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dictionary-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.dictionary-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #5cb8ff, #a48cff);
    border-radius: 50%;
}

/* TABLE */
.table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
}

.dictionary-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

.dictionary-table th {
    background: #eaf3ff;
    padding: 0.9rem;
    text-align: left;
    color: #5CB8FF;
    font-weight: 600;
}

.dictionary-table td {
    padding: 0.9rem;
    border-top: 1px solid #eee;
}

/* PILLS */
.pill {
    display: inline-block;
    background: #eef6ff;
    color: #000000;
    padding: 0.25rem 0.7rem;
    border-radius: 30px;
    font-size: 0.9rem;
    margin: 0.2rem;
}

.pill-red {
    background: #ffe6e6;
    color: #000000;
}

/* RELATED WORDS */
.related-section {
    margin-top: 2.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.related-item {
    display: block;
    background: #f7faff;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e6ef;
    color: #333;
    transition: 0.25s ease;
}

.related-item:hover {
    background: #eef4ff;
    border-color: #5CB8FF;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(92,184,255,0.15);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .dictionary-card {
        padding: 2rem 1.4rem;
    }

    .word-title {
        font-size: 2rem;
    }

    .dictionary-search-box {
        flex-direction: column;
    }
}







.dictionary-wrapper {
    padding: 60px 0;
    font-family: 'Poppins', sans-serif;
}

.dictionary-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.dictionary-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
}

/* 3-COLUMN GRID */
.dictionary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.dictionary-box h2 {
    font-size: 28px;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 12px;
    padding-bottom: 6px;
}

.dictionary-box ul {
    list-style: none;
    padding-left: 0;
}

.dictionary-box li {
    margin: 8px 0;
}

.dictionary-box a {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
}

.dictionary-box a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .dictionary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dictionary-grid {
        grid-template-columns: 1fr;
    }
}



.highlight {
  background: linear-gradient(90deg, #5cb8ff, #a48cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}