/* Iran Basketball House — Internal dictionary pages / Phase 15 */

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

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

.ib-dictionary-internal-phase15 {
    --ibdi-navy: #061a35;
    --ibdi-navy-soft: #0c2c51;
    --ibdi-orange: #f97316;
    --ibdi-red: #dc2626;
    --ibdi-ink: #0f2744;
    --ibdi-muted: #65798f;
    --ibdi-line: rgba(15, 39, 68, .09);
    width: 100%;
    overflow: clip;
    background:
        radial-gradient(circle at 82% 18%, rgba(249, 115, 22, .055), transparent 28rem),
        #f4f7fa;
    color: var(--ibdi-ink);
}

.ib-dictionary-internal-hero {
    position: relative;
    width: 100%;
    min-height: 360px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(4, 20, 42, .45) 0%, rgba(4, 22, 47, .82) 48%, rgba(4, 20, 42, .97) 100%),
        url("/images/unified-hubs/dictionary-hero.webp") center 54% / cover no-repeat;
}

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

.ib-dictionary-internal-hero__inner,
.ib-dictionary-internal-workspace,
.ib-dictionary-term-workspace {
    width: min(1500px, calc(100% - 96px));
    margin-inline: auto;
}

.ib-dictionary-internal-hero__inner {
    padding: 34px 0 38px;
}

.ib-dictionary-crumbs-phase15 {
    display: flex;
    min-height: 28px;
    gap: 8px;
    margin-bottom: 27px;
    align-items: center;
    flex-wrap: wrap;
    color: rgba(226, 236, 248, .7);
    font-size: 12px;
    font-weight: 750;
}

.ib-dictionary-crumbs-phase15 a {
    color: rgba(240, 246, 255, .86);
    text-decoration: none;
}

.ib-dictionary-crumbs-phase15 a:hover {
    color: #ffad70;
}

.ib-dictionary-crumbs-phase15 strong {
    color: #ffad70;
    font-weight: 900;
}

.ib-dictionary-internal-hero__grid,
.ib-dictionary-term-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 46px;
    align-items: center;
}

.ib-dictionary-internal-hero__content,
.ib-dictionary-term-hero-content {
    max-width: 880px;
}

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

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

.ib-dictionary-internal-hero h1 {
    margin: 13px 0 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 950;
    line-height: 1.35;
    letter-spacing: -.6px;
}

.ib-dictionary-internal-hero__content > p,
.ib-dictionary-term-hero-content > p {
    max-width: 820px;
    margin: 12px 0 0;
    color: rgba(235, 243, 252, .84);
    font-size: 15px;
    font-weight: 650;
    line-height: 2.05;
}

.ib-dictionary-internal-actions {
    display: flex;
    gap: 10px;
    margin-top: 19px;
    flex-wrap: wrap;
}

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

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

.ib-dictionary-internal-button--primary {
    background: var(--ibdi-orange);
}

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

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

.ib-dictionary-internal-stat,
.ib-dictionary-term-summary {
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .11);
    box-shadow: 0 18px 40px rgba(1, 12, 28, .16);
    backdrop-filter: blur(16px);
}

.ib-dictionary-internal-stat {
    display: flex;
    min-height: 88px;
    padding: 15px;
    border-radius: 17px;
    flex-direction: column;
    justify-content: center;
}

.ib-dictionary-internal-stat--primary {
    grid-column: 1 / -1;
    min-height: 112px;
    background: rgba(255, 255, 255, .15);
}

.ib-dictionary-internal-stat strong {
    color: #fff;
    font-size: 28px;
    font-weight: 950;
    line-height: 1.1;
}

.ib-dictionary-internal-stat--primary strong {
    font-size: 46px;
}

.ib-dictionary-internal-stat span {
    margin-top: 8px;
    color: #ffb47a;
    font-size: 11.5px;
    font-weight: 850;
}

.ib-dictionary-internal-workspace {
    padding: 24px 0 44px;
}

.ib-dictionary-topic-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 17px;
    align-items: center;
    flex-wrap: wrap;
}

.ib-dictionary-topic-nav span {
    color: var(--ibdi-muted);
    font-size: 12px;
    font-weight: 900;
}

.ib-dictionary-topic-nav a {
    display: inline-flex;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--ibdi-line);
    border-radius: 999px;
    align-items: center;
    background: #fff;
    color: #354b64;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
}

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

.ib-dictionary-cluster-phase15 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    margin-bottom: 17px;
    padding: 22px;
    border: 1px solid var(--ibdi-line);
    border-radius: 20px;
    align-items: center;
    background:
        linear-gradient(105deg, rgba(255, 247, 237, .95), #fff 54%);
    box-shadow: 0 14px 34px rgba(15, 39, 68, .045);
}

.ib-dictionary-cluster-phase15 span,
.ib-dictionary-section-head-phase15 span,
.ib-dictionary-term-source header span,
.ib-dictionary-term-side-box header > span {
    color: #dd5b08;
    font-size: 12px;
    font-weight: 950;
}

.ib-dictionary-cluster-phase15 h2 {
    margin: 5px 0 0;
    color: var(--ibdi-ink);
    font-size: 21px;
    font-weight: 950;
    line-height: 1.55;
}

.ib-dictionary-cluster-phase15 p {
    margin: 7px 0 0;
    color: var(--ibdi-muted);
    font-size: 13px;
    line-height: 1.9;
}

.ib-dictionary-cluster-phase15 > a,
.ib-dictionary-section-head-phase15--results > a,
.ib-dictionary-empty-phase15 a {
    display: inline-flex;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: var(--ibdi-orange);
    color: #fff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 900;
    white-space: nowrap;
}

.ib-dictionary-featured-phase15 {
    margin-bottom: 20px;
    padding: 21px;
    border: 1px solid var(--ibdi-line);
    border-radius: 21px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 36px rgba(15, 39, 68, .05);
}

.ib-dictionary-section-head-phase15 {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: end;
    justify-content: space-between;
}

.ib-dictionary-section-head-phase15 h2 {
    margin: 4px 0 0;
    color: var(--ibdi-ink);
    font-size: 23px;
    font-weight: 950;
    line-height: 1.5;
}

.ib-dictionary-section-head-phase15 p {
    margin: 4px 0 0;
    color: var(--ibdi-muted);
    font-size: 12.5px;
    line-height: 1.85;
}

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

.ib-dictionary-featured-phase15__grid > a {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 78px;
    padding: 13px;
    border: 1px solid var(--ibdi-line);
    border-radius: 15px;
    align-items: center;
    background: #f7f9fb;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.ib-dictionary-featured-phase15__grid > a:hover {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, .25);
    background: #fffaf6;
}

.ib-dictionary-featured-phase15__grid > a > span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    align-items: center;
    justify-content: center;
    background: var(--ibdi-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.ib-dictionary-featured-phase15 strong,
.ib-dictionary-related-phase15 strong {
    display: block;
    direction: ltr;
    color: var(--ibdi-ink);
    text-align: left;
    font-size: 13px;
    font-weight: 950;
}

.ib-dictionary-featured-phase15 small {
    display: block;
    margin-top: 4px;
    color: var(--ibdi-muted);
    font-size: 11.5px;
    font-weight: 800;
}

.ib-dictionary-featured-phase15__grid i {
    color: var(--ibdi-orange);
    font-style: normal;
    font-weight: 950;
}

.ib-dictionary-topic-results-phase15 {
    scroll-margin-top: 100px;
}

.ib-dictionary-section-head-phase15--results {
    margin-bottom: 14px;
}

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

.ib-dictionary-topic-card-phase15 {
    position: relative;
    display: flex;
    min-height: 270px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--ibdi-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-topic-card-phase15::after {
    position: absolute;
    top: 14px;
    right: 0;
    bottom: 14px;
    width: 3px;
    border-radius: 3px 0 0 3px;
    content: "";
    background: #ff944d;
}

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

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

.ib-dictionary-topic-letter-phase15 {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: var(--ibdi-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.ib-dictionary-topic-card-phase15__top > a {
    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-topic-card-phase15 h3 {
    margin: 0 0 7px;
    direction: ltr;
    text-align: left;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.55;
}

.ib-dictionary-topic-card-phase15 h3 a {
    color: var(--ibdi-navy);
    text-decoration: none;
}

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

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

.ib-dictionary-topic-more-phase15 {
    display: inline-flex;
    gap: 7px;
    margin-top: auto;
    padding-top: 14px;
    align-items: center;
    color: var(--ibdi-red);
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
}

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

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

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

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

.ib-dictionary-empty-phase15 a {
    margin-top: 14px;
}

/* Term detail */

.ib-dictionary-term-hero-content h1 {
    direction: ltr;
    text-align: left;
    font-size: clamp(42px, 5.5vw, 72px);
    line-height: 1.08;
}

.ib-dictionary-term-meta {
    display: flex;
    gap: 9px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.ib-dictionary-term-meta a,
.ib-dictionary-term-meta span {
    display: inline-flex;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    align-items: center;
    background: rgba(255, 255, 255, .1);
    color: #f4f8fd;
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 850;
    backdrop-filter: blur(10px);
}

.ib-dictionary-term-meta a:hover {
    border-color: rgba(249, 115, 22, .5);
    color: #ffb47a;
}

.ib-dictionary-term-summary {
    display: flex;
    min-height: 198px;
    padding: 23px;
    border-radius: 21px;
    flex-direction: column;
    justify-content: center;
}

.ib-dictionary-term-summary > span {
    color: #ffb47a;
    font-size: 12px;
    font-weight: 900;
}

.ib-dictionary-term-summary > strong {
    margin-top: 7px;
    color: #fff;
    font-size: 25px;
    font-weight: 950;
    line-height: 1.6;
}

.ib-dictionary-term-summary > p {
    margin: 9px 0 0;
    color: rgba(235, 243, 252, .79);
    font-size: 12.5px;
    line-height: 1.95;
}

.ib-dictionary-term-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    padding: 24px 0 44px;
    align-items: start;
}

.ib-dictionary-term-article,
.ib-dictionary-term-side-box {
    border: 1px solid var(--ibdi-line);
    background: #fff;
    box-shadow: 0 15px 36px rgba(15, 39, 68, .05);
}

.ib-dictionary-term-article {
    padding: 24px;
    border-radius: 22px;
}

.ib-dictionary-term-section {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--ibdi-line);
}

.ib-dictionary-term-section:first-child {
    padding-top: 0;
}

.ib-dictionary-term-section__index {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: #fff1e8;
    color: #dd5b08;
    font-size: 11px;
    font-weight: 950;
}

.ib-dictionary-term-section h2,
.ib-dictionary-term-source h2,
.ib-dictionary-term-side-box h2 {
    margin: 0;
    color: var(--ibdi-ink);
    font-size: 18px;
    font-weight: 950;
    line-height: 1.6;
}

.ib-dictionary-term-section p {
    margin: 7px 0 0;
    color: #425a72;
    font-size: 14px;
    line-height: 2.15;
}

.ib-dictionary-term-section--translation p {
    color: var(--ibdi-red);
    font-size: 22px;
    font-weight: 950;
}

.ib-dictionary-term-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.ib-dictionary-term-tags span {
    display: inline-flex;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    align-items: center;
    background: #f1f5f9;
    color: #425a72;
    font-size: 11.5px;
    font-weight: 800;
}

.ib-dictionary-term-source {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(15, 39, 68, .08);
    border-radius: 18px;
    background: #f7f9fb;
}

.ib-dictionary-term-source h2 {
    margin-top: 3px;
}

.ib-dictionary-term-source ul {
    margin: 12px 0 0;
    padding-right: 20px;
}

.ib-dictionary-term-source li,
.ib-dictionary-term-source > p {
    color: #4b6177;
    font-size: 12.5px;
    line-height: 2;
}

.ib-dictionary-term-source > p {
    margin: 10px 0 0;
}

.ib-dictionary-term-side {
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.ib-dictionary-term-side-box {
    padding: 18px;
    border-radius: 18px;
}

.ib-dictionary-term-side-box > h2,
.ib-dictionary-term-side-box header h2 {
    margin-bottom: 9px;
}

.ib-dictionary-term-side-box > a,
.ib-dictionary-related-phase15 > a {
    display: flex;
    min-height: 48px;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ibdi-line);
    align-items: center;
    justify-content: space-between;
    color: #415970;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 850;
}

.ib-dictionary-term-side-box > a:last-child,
.ib-dictionary-related-phase15 > a:last-child {
    border-bottom: 0;
}

.ib-dictionary-term-side-box i,
.ib-dictionary-related-phase15 i {
    color: var(--ibdi-orange);
    font-style: normal;
    font-weight: 950;
}

.ib-dictionary-term-side-box a:hover,
.ib-dictionary-term-side-box a:hover strong {
    color: var(--ibdi-red);
}

.ib-dictionary-related-phase15 strong {
    font-size: 12.5px;
}

.ib-dictionary-related-phase15 span {
    display: block;
    margin-top: 3px;
    color: var(--ibdi-muted);
    font-size: 11px;
    font-weight: 750;
}

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

@media (max-width: 940px) {
    .ib-dictionary-internal-hero__grid,
    .ib-dictionary-term-hero-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 26px;
    }

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

    .ib-dictionary-term-workspace {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 760px) {
    .ib-dictionary-internal-hero__inner,
    .ib-dictionary-internal-workspace,
    .ib-dictionary-term-workspace {
        width: calc(100% - 28px);
    }

    .ib-dictionary-internal-hero__inner {
        padding: 28px 0 31px;
    }

    .ib-dictionary-crumbs-phase15 {
        margin-bottom: 19px;
    }

    .ib-dictionary-internal-hero__grid,
    .ib-dictionary-term-hero-grid,
    .ib-dictionary-term-workspace {
        grid-template-columns: 1fr;
    }

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

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

    .ib-dictionary-internal-stat strong,
    .ib-dictionary-internal-stat--primary strong {
        font-size: 27px;
    }

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

    .ib-dictionary-cluster-phase15 {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .ib-dictionary-internal-hero h1 {
        font-size: 31px;
    }

    .ib-dictionary-term-hero-content h1 {
        font-size: 42px;
    }

    .ib-dictionary-internal-stats,
    .ib-dictionary-featured-phase15__grid,
    .ib-dictionary-topic-grid-phase15,
    .ib-dictionary-term-side {
        grid-template-columns: 1fr;
    }

    .ib-dictionary-section-head-phase15 {
        align-items: flex-start;
        flex-direction: column;
    }

    .ib-dictionary-featured-phase15,
    .ib-dictionary-term-article {
        padding: 17px;
    }

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

    .ib-dictionary-term-section {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 11px;
    }

    .ib-dictionary-term-section__index {
        width: 32px;
        height: 32px;
    }
}
