/* Iran Basketball House — Dictionary index / Phase 14 */

.ib-dictionary-main-phase14,
.ib-dictionary-page-phase14 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ib-dictionary-phase14,
.ib-dictionary-phase14 *,
.ib-dictionary-phase14 *::before,
.ib-dictionary-phase14 *::after {
    box-sizing: border-box;
}

.ib-dictionary-phase14 {
    --ibd-navy: #061a35;
    --ibd-navy-soft: #0b2a50;
    --ibd-orange: #f97316;
    --ibd-red: #dc2626;
    --ibd-ink: #0f2744;
    --ibd-muted: #667a91;
    --ibd-line: rgba(15, 39, 68, .09);
    --ibd-surface: #fff;
    width: 100%;
    overflow: clip;
    background:
        radial-gradient(circle at 82% 20%, rgba(249, 115, 22, .055), transparent 28rem),
        #f4f7fa;
    color: var(--ibd-ink);
}

.ib-dictionary-hero-phase14 {
    position: relative;
    width: 100%;
    min-height: 438px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(5, 24, 49, .34) 0%, rgba(5, 24, 49, .74) 42%, rgba(5, 24, 49, .97) 100%),
        url("/images/unified-hubs/dictionary-hero.webp") center 54% / cover no-repeat;
}

.ib-dictionary-hero-phase14::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        radial-gradient(circle at 84% 30%, rgba(249, 115, 22, .16), transparent 25rem),
        linear-gradient(180deg, transparent 68%, rgba(3, 16, 34, .25));
}

.ib-dictionary-hero-phase14__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px 58px;
    width: min(1500px, calc(100% - 96px));
    min-height: 438px;
    margin: 0 auto;
    padding: 48px 0 34px;
    align-content: center;
    align-items: center;
}

.ib-dictionary-hero-phase14__content {
    max-width: 860px;
}

.ib-dictionary-kicker-phase14 {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ffad70;
    font-size: 13px;
    font-weight: 900;
}

.ib-dictionary-kicker-phase14 i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ibd-orange);
    box-shadow: 0 0 0 6px rgba(249, 115, 22, .13);
}

.ib-dictionary-hero-phase14 h1 {
    margin: 14px 0 0;
    color: #fff;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 950;
    line-height: 1.3;
    letter-spacing: -.7px;
}

.ib-dictionary-hero-phase14__content > p {
    max-width: 820px;
    margin: 13px 0 0;
    color: rgba(239, 246, 255, .84);
    font-size: 16px;
    font-weight: 650;
    line-height: 2.05;
}

.ib-dictionary-hero-phase14__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.ib-dictionary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 13px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    transition: transform .18s ease, background .18s ease;
}

.ib-dictionary-button:hover {
    transform: translateY(-1px);
}

.ib-dictionary-button--primary {
    background: var(--ibd-orange);
    color: #fff;
}

.ib-dictionary-button--glass {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.ib-dictionary-stats-phase14 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    direction: rtl;
}

.ib-dictionary-stat-phase14 {
    display: flex;
    min-height: 95px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 18px;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 18px 40px rgba(1, 12, 28, .16);
    backdrop-filter: blur(16px);
}

.ib-dictionary-stat-phase14--primary {
    grid-column: 1 / -1;
    min-height: 122px;
    background: rgba(255, 255, 255, .14);
}

.ib-dictionary-stat-phase14 strong {
    display: block;
    color: #fff;
    font-size: 28px;
    font-weight: 950;
    line-height: 1.15;
}

.ib-dictionary-stat-phase14--primary strong {
    font-size: clamp(40px, 4vw, 58px);
}

.ib-dictionary-stat-phase14 span {
    display: block;
    margin-top: 8px;
    color: #ffb47a;
    font-size: 12px;
    font-weight: 850;
}

.ib-dictionary-search-phase14 {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.5fr) minmax(230px, .85fr) auto auto;
    gap: 12px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    align-items: end;
    background: rgba(5, 27, 55, .62);
    box-shadow: 0 22px 48px rgba(0, 10, 28, .2);
    backdrop-filter: blur(18px);
}

.ib-dictionary-search-phase14 label {
    display: block;
    margin: 0 2px 7px;
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    font-weight: 900;
}

.ib-dictionary-search-phase14 input,
.ib-dictionary-search-phase14 select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 13px;
    outline: none;
    background: rgba(255, 255, 255, .96);
    color: var(--ibd-ink);
    font: inherit;
}

.ib-dictionary-search-phase14 input:focus,
.ib-dictionary-search-phase14 select:focus {
    border-color: #ff9b54;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, .15);
}

.ib-dictionary-search-phase14 button,
.ib-dictionary-reset-phase14 {
    display: inline-flex;
    height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.ib-dictionary-search-phase14 button {
    background: var(--ibd-orange);
    color: #fff;
}

.ib-dictionary-reset-phase14 {
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.ib-dictionary-workspace {
    width: min(1500px, calc(100% - 96px));
    margin: 0 auto;
    padding: 26px 0 48px;
}

.ib-dictionary-suggestions-phase14 {
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
    align-items: center;
    flex-wrap: wrap;
}

.ib-dictionary-suggestions-phase14 span {
    color: var(--ibd-muted);
    font-size: 12px;
    font-weight: 900;
}

.ib-dictionary-suggestions-phase14 a,
.ib-dictionary-letters-phase14 a {
    display: inline-flex;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--ibd-line);
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #354b64;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.ib-dictionary-suggestions-phase14 a:hover {
    border-color: rgba(249, 115, 22, .3);
    color: #dd5b08;
}

.ib-dictionary-guide-phase14 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ib-dictionary-guide-phase14 article {
    display: flex;
    min-height: 124px;
    padding: 18px;
    border: 1px solid var(--ibd-line);
    border-radius: 18px;
    gap: 13px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 30px rgba(15, 39, 68, .045);
}

.ib-dictionary-guide-phase14__number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    align-items: center;
    justify-content: center;
    background: #fff1e8;
    color: #e6610b;
    font-size: 13px;
    font-weight: 950;
}

.ib-dictionary-guide-phase14 strong {
    display: block;
    color: var(--ibd-ink);
    font-size: 14px;
    font-weight: 950;
}

.ib-dictionary-guide-phase14 p {
    margin: 7px 0 0;
    color: var(--ibd-muted);
    font-size: 12.5px;
    line-height: 1.95;
}

.ib-dictionary-guide-phase14 a {
    display: inline-flex;
    margin-top: 7px;
    color: #e45f09;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.ib-dictionary-topics-phase14 {
    margin-top: 18px;
    padding: 21px;
    border: 1px solid var(--ibd-line);
    border-radius: 21px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 36px rgba(15, 39, 68, .05);
}

.ib-dictionary-topics-phase14 > header {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    align-items: end;
    justify-content: space-between;
}

.ib-dictionary-topics-phase14 header span,
.ib-dictionary-results-phase14__head div > span {
    color: #d95608;
    font-size: 12px;
    font-weight: 950;
}

.ib-dictionary-topics-phase14 h2,
.ib-dictionary-results-phase14__head h2 {
    margin: 5px 0 0;
    color: var(--ibd-ink);
    font-size: 22px;
    font-weight: 950;
    line-height: 1.5;
}

.ib-dictionary-topics-phase14 > header > p {
    max-width: 480px;
    margin: 0;
    color: var(--ibd-muted);
    font-size: 12.5px;
    line-height: 1.9;
}

.ib-dictionary-topics-phase14__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.ib-dictionary-topics-phase14__grid a {
    position: relative;
    display: block;
    min-height: 114px;
    padding: 16px 16px 15px 48px;
    border: 1px solid rgba(15, 39, 68, .08);
    border-radius: 16px;
    background: #f7f9fb;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.ib-dictionary-topics-phase14__grid a:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, .24);
    background: #fffaf6;
}

.ib-dictionary-topics-phase14__arrow {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #e8610b;
    font-weight: 950;
}

.ib-dictionary-topics-phase14__grid strong {
    display: block;
    color: var(--ibd-ink);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.7;
}

.ib-dictionary-topics-phase14__grid small {
    display: block;
    margin-top: 6px;
    color: var(--ibd-muted);
    font-size: 12px;
    line-height: 1.85;
}

.ib-dictionary-letters-phase14 {
    display: flex;
    gap: 7px;
    margin-top: 18px;
    padding: 15px;
    border: 1px solid var(--ibd-line);
    border-radius: 18px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, .94);
}

.ib-dictionary-letters-phase14 a {
    min-width: 34px;
    padding: 0 9px;
}

.ib-dictionary-letters-phase14 a:hover,
.ib-dictionary-letters-phase14 a.is-active {
    border-color: var(--ibd-red);
    background: var(--ibd-red);
    color: #fff;
}

.ib-dictionary-results-phase14 {
    margin-top: 20px;
}

.ib-dictionary-results-phase14__head {
    display: flex;
    gap: 18px;
    margin-bottom: 15px;
    align-items: end;
    justify-content: space-between;
}

.ib-dictionary-results-phase14__head p {
    margin: 4px 0 0;
    color: var(--ibd-muted);
    font-size: 13px;
    line-height: 1.8;
}

.ib-dictionary-results-phase14__head > strong {
    display: inline-flex;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #ffe7e7;
    color: #c81e1e;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.ib-dictionary-grid-phase14 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ib-dictionary-card-phase14 {
    position: relative;
    display: flex;
    min-height: 286px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--ibd-line);
    border-radius: 18px;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 39, 68, .045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ib-dictionary-card-phase14::after {
    position: absolute;
    top: 14px;
    right: 0;
    bottom: 14px;
    width: 3px;
    border-radius: 3px 0 0 3px;
    content: "";
    background: #ff944d;
}

.ib-dictionary-card-phase14:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, .22);
    box-shadow: 0 16px 34px rgba(15, 39, 68, .075);
}

.ib-dictionary-card-phase14__top {
    display: flex;
    gap: 9px;
    margin-bottom: 13px;
    align-items: center;
    justify-content: space-between;
}

.ib-dictionary-letter-phase14 {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: #071a35;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.ib-dictionary-category-phase14 {
    display: inline-flex;
    max-width: calc(100% - 50px);
    min-height: 31px;
    padding: 0 10px;
    overflow: hidden;
    border-radius: 999px;
    align-items: center;
    background: #f1f5f9;
    color: #50667d;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 850;
}

.ib-dictionary-card-phase14 h3 {
    margin: 0 0 7px;
    direction: ltr;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.55;
}

.ib-dictionary-card-phase14 h3 a {
    color: #071a35;
    text-decoration: none;
}

.ib-dictionary-translation-phase14 {
    display: block;
    margin-bottom: 8px;
    color: var(--ibd-ink);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.75;
}

.ib-dictionary-card-phase14 > p {
    margin: 0;
    color: var(--ibd-muted);
    font-size: 12.5px;
    line-height: 1.95;
}

.ib-dictionary-more-phase14 {
    display: inline-flex;
    gap: 7px;
    margin-top: auto;
    padding-top: 15px;
    align-items: center;
    color: #d82020;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
}

.ib-dictionary-pagination-phase14 {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--ibd-line);
    border-radius: 18px;
    background: #fff;
}

.ib-dictionary-empty-phase14 {
    padding: 34px 20px;
    border: 1px solid var(--ibd-line);
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.ib-dictionary-empty-phase14 h2 {
    margin: 0;
    color: var(--ibd-ink);
    font-size: 22px;
}

.ib-dictionary-empty-phase14 p {
    margin: 8px 0 0;
    color: var(--ibd-muted);
}

.ib-dictionary-empty-phase14 a {
    display: inline-flex;
    margin-top: 14px;
    padding: 10px 15px;
    border-radius: 12px;
    background: var(--ibd-orange);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
}

@media (max-width: 1180px) {
    .ib-dictionary-hero-phase14__inner,
    .ib-dictionary-workspace {
        width: min(100% - 48px, 1500px);
    }

    .ib-dictionary-hero-phase14__inner {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 22px 34px;
    }

    .ib-dictionary-grid-phase14 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ib-dictionary-hero-phase14__inner {
        grid-template-columns: 1fr;
        padding-top: 36px;
    }

    .ib-dictionary-stats-phase14 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ib-dictionary-stat-phase14,
    .ib-dictionary-stat-phase14--primary {
        grid-column: auto;
        min-height: 90px;
    }

    .ib-dictionary-stat-phase14--primary strong,
    .ib-dictionary-stat-phase14 strong {
        font-size: 28px;
    }

    .ib-dictionary-search-phase14 {
        grid-template-columns: minmax(0, 1fr) minmax(210px, .75fr) auto;
    }

    .ib-dictionary-reset-phase14 {
        grid-column: 1 / -1;
    }

    .ib-dictionary-guide-phase14,
    .ib-dictionary-topics-phase14__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ib-dictionary-hero-phase14__inner,
    .ib-dictionary-workspace {
        width: calc(100% - 28px);
    }

    .ib-dictionary-hero-phase14 h1 {
        font-size: 34px;
    }

    .ib-dictionary-hero-phase14__content > p {
        font-size: 14px;
    }

    .ib-dictionary-search-phase14 {
        grid-template-columns: 1fr;
    }

    .ib-dictionary-reset-phase14 {
        grid-column: auto;
    }

    .ib-dictionary-topics-phase14 > header,
    .ib-dictionary-results-phase14__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ib-dictionary-topics-phase14 > header > p {
        max-width: none;
    }

    .ib-dictionary-grid-phase14 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .ib-dictionary-hero-phase14__inner {
        padding: 30px 0 26px;
    }

    .ib-dictionary-stats-phase14,
    .ib-dictionary-guide-phase14,
    .ib-dictionary-topics-phase14__grid,
    .ib-dictionary-grid-phase14 {
        grid-template-columns: 1fr;
    }

    .ib-dictionary-stat-phase14,
    .ib-dictionary-stat-phase14--primary {
        min-height: 82px;
    }

    .ib-dictionary-guide-phase14 article,
    .ib-dictionary-card-phase14 {
        min-height: auto;
    }

    .ib-dictionary-topics-phase14 {
        padding: 16px;
    }

    .ib-dictionary-card-phase14 {
        min-height: 250px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ib-dictionary-phase14 *,
    .ib-dictionary-phase14 *::before,
    .ib-dictionary-phase14 *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
