:root {
    --repo-ink: #16202a;
    --repo-muted: #667085;
    --repo-border: #d9e0e8;
    --repo-surface: #ffffff;
    --repo-bg: #f5f7fb;
    --repo-green: #12665f;
    --repo-gold: #b97816;
    --repo-red: #a93f55;
    --repo-blue: #315f9f;
    --repo-shadow: 0 18px 45px rgba(23, 37, 54, .11);
}

.repo-shell {
    font-family: "Almarai", "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--repo-ink);
    background: var(--repo-bg);
    min-height: 100vh;
    padding: 128px clamp(16px, 4vw, 64px) 70px;
}

.repo-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 26px;
    align-items: stretch;
    overflow: hidden;
    border-radius: 8px;
    padding: clamp(24px, 5vw, 54px);
    background:
        linear-gradient(135deg, rgba(18, 102, 95, .92), rgba(34, 54, 76, .88)),
        url("/En/temp24/extra-images/bg-24.jpg") center/cover;
    color: #fff;
    box-shadow: var(--repo-shadow);
}

.repo-hero__content {
    max-width: 900px;
}

.repo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d8b15c;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.repo-hero h1,
.repo-search-header h1 {
    margin: 12px 0;
    font-size: clamp(34px, 5vw, 68px);
    font-weight: 900;
    line-height: 1.08;
}

.repo-hero p,
.repo-search-header p {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .84);
    font-size: 18px;
    line-height: 1.9;
    max-width: 760px;
}

.repo-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 8px;
    box-shadow: 0 16px 35px rgba(5, 18, 30, .18);
}

.repo-search__field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--repo-green);
    background: #f7fafc;
    border: 1px solid var(--repo-border);
    border-radius: 6px;
    padding: 0 14px;
    height: 52px;
}

.repo-search input,
.repo-search select,
.repo-filter-group input,
.repo-filter-group select {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--repo-border);
    border-radius: 6px;
    background: #fff;
    color: var(--repo-ink);
    height: 52px;
    padding: 0 12px;
    font: inherit;
}

.repo-search__field input {
    border: 0;
    background: transparent;
    outline: 0;
    height: 50px;
    padding: 0;
}

.repo-search button,
.repo-filter-submit,
.repo-filter-reset,
.repo-link,
.repo-result-card__actions a,
.repo-empty a,
.repo-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    border-radius: 6px;
    border: 0;
    text-decoration: none;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.repo-search button,
.repo-filter-submit {
    height: 52px;
    padding: 0 22px;
    background: var(--repo-gold);
    color: #fff;
}

.repo-search button:hover,
.repo-filter-submit:hover,
.repo-category-card:hover,
.repo-result-card:hover {
    transform: translateY(-2px);
}

.repo-language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin-top: 14px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    text-decoration: none;
    font-weight: 900;
}

.repo-language-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, .2);
}

.repo-language-toggle--header {
    float: inline-end;
    margin-top: 0;
}

.repo-hero__panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.repo-hero__panel div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 126px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
}

.repo-hero__panel strong {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.repo-hero__panel span {
    margin-top: 10px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.5;
}

.repo-section {
    margin-top: 34px;
}

.repo-section__head,
.repo-results__bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.repo-section h2,
.repo-results__bar h2 {
    margin: 5px 0 0;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 900;
}

.repo-link {
    color: var(--repo-green);
    padding: 0 6px;
}

.repo-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.repo-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 22px;
    border: 1px solid var(--repo-border);
    border-radius: 8px;
    background: var(--repo-surface);
    color: var(--repo-ink);
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(35, 49, 64, .06);
}

.repo-category-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #e9f2f1;
    color: var(--repo-green);
    font-size: 20px;
}

.repo-category-card:nth-child(3n) .repo-category-card__icon {
    background: #fff3dc;
    color: var(--repo-gold);
}

.repo-category-card:nth-child(4n) .repo-category-card__icon {
    background: #eaf0fb;
    color: var(--repo-blue);
}

.repo-category-card__count {
    position: absolute;
    inset-inline-end: 20px;
    top: 22px;
    font-size: 28px;
    font-weight: 900;
}

.repo-category-card h3 {
    margin: 24px 0 10px;
    font-size: 21px;
    font-weight: 900;
}

.repo-category-card p {
    margin: 0;
    color: var(--repo-muted);
    line-height: 1.8;
}

.repo-category-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--repo-green);
    font-weight: 800;
}

.repo-latest-list,
.repo-result-list {
    display: grid;
    gap: 14px;
}

.repo-result-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--repo-border);
    border-radius: 8px;
    background: var(--repo-surface);
    box-shadow: 0 10px 28px rgba(35, 49, 64, .055);
    transition: transform .18s ease, box-shadow .18s ease;
}

.repo-result-card__marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 6px;
    background: #f0f6f5;
    color: var(--repo-green);
}

.repo-result-card__topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.repo-result-card__topline span,
.repo-result-card__topline a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f3f6fa;
    color: #425466;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.repo-result-card h3 {
    margin: 0 0 8px;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.5;
    font-weight: 900;
}

.repo-result-card h3 a {
    color: var(--repo-ink);
    text-decoration: none;
}

.repo-result-card h3 a:hover,
.repo-link:hover,
.repo-back-link:hover {
    color: var(--repo-green);
}

.repo-result-card p {
    margin: 0 0 10px;
    color: var(--repo-muted);
    line-height: 1.8;
}

.repo-result-card__authors {
    color: var(--repo-blue) !important;
    font-weight: 800;
}

.repo-result-card__admin {
    color: var(--repo-green) !important;
}

.repo-search-header {
    border-radius: 8px;
    padding: 30px;
    background: #203447;
    color: #fff;
}

.repo-search-header h1 {
    font-size: clamp(30px, 4vw, 52px);
}

.repo-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #e0b65f;
    text-decoration: none;
    font-weight: 900;
}

.repo-search--compact {
    margin: 18px 0;
    box-shadow: 0 12px 28px rgba(35, 49, 64, .08);
}

.repo-results-layout {
    display: grid;
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.repo-filters {
    position: sticky;
    top: 16px;
    padding: 18px;
    border: 1px solid var(--repo-border);
    border-radius: 8px;
    background: var(--repo-surface);
    box-shadow: 0 10px 28px rgba(35, 49, 64, .055);
}

.repo-filter-group {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.repo-filter-group label {
    font-weight: 900;
    color: #344054;
}

.repo-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.repo-filter-submit {
    width: 100%;
    margin-top: 4px;
}

.repo-filter-reset {
    width: 100%;
    margin-top: 10px;
    color: var(--repo-red);
    background: #fff4f5;
}

.repo-results__bar {
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--repo-border);
    border-radius: 8px;
    background: var(--repo-surface);
}

.repo-results__bar h2 {
    font-size: 26px;
}

.repo-results__bar p {
    margin: 4px 0 0;
    color: var(--repo-muted);
}

.repo-results__view {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--repo-green);
    font-weight: 900;
}

.repo-result-card__secondary {
    color: #52677a !important;
    font-weight: 800;
}

.repo-result-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 16px;
    margin: 14px 0 0;
}

.repo-result-card__meta div {
    min-width: 0;
}

.repo-result-card__meta dt {
    color: var(--repo-muted);
    font-size: 12px;
    font-weight: 900;
}

.repo-result-card__meta dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-weight: 800;
    line-height: 1.6;
}

.repo-result-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.repo-result-card__actions a {
    min-height: 40px;
    padding: 0 14px;
    background: #ecf5f4;
    color: var(--repo-green);
}

.repo-result-card__actions a:nth-child(2) {
    background: #fff3dc;
    color: var(--repo-gold);
}

.repo-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 54px 20px;
    border: 1px dashed var(--repo-border);
    border-radius: 8px;
    background: var(--repo-surface);
    text-align: center;
}

.repo-empty i {
    font-size: 44px;
    color: var(--repo-muted);
}

.repo-empty h2,
.repo-empty p {
    margin: 0;
}

.repo-empty a {
    padding: 0 16px;
    background: var(--repo-green);
    color: #fff;
}

.repo-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.repo-pagination a {
    padding: 0 16px;
    background: var(--repo-surface);
    border: 1px solid var(--repo-border);
    color: var(--repo-green);
}

.repo-pagination .is-disabled {
    pointer-events: none;
    color: #a4adba;
    background: #eef1f5;
}

@media (max-width: 992px) {
    .repo-hero,
    .repo-results-layout {
        grid-template-columns: 1fr;
    }

    .repo-filters {
        position: static;
    }
}

@media (max-width: 720px) {
    .repo-shell {
        padding: 112px 12px 54px;
    }

    .repo-hero,
    .repo-search-header {
        padding: 22px;
    }

    .repo-search {
        grid-template-columns: 1fr;
    }

    .repo-hero__panel {
        grid-template-columns: 1fr;
    }

    .repo-section__head,
    .repo-results__bar,
    .repo-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .repo-result-card {
        grid-template-columns: 1fr;
    }

    .repo-result-card__marker {
        width: 44px;
        height: 44px;
    }
}
