/* ==========================================================================
   ISHOST Pages — real layout for client-area key pages
   ========================================================================== */

body.ishost-pages .ish-breadcrumb,
body.ishost-pages .master-breadcrumb,
body.ishost-pages .primary-content > .header-lined,
body.ishost-pages .primary-content > h1:first-child {
    display: none !important;
}

body.ishost-pages .ish-main > .container > .row > .col-lg-4,
body.ishost-pages .ish-main > .container > .row > .col-xl-3 {
    display: none !important;
}

body.ishost-pages .ish-main > .container > .row > .primary-content,
body.ishost-pages .ish-main .primary-content.col-lg-8,
body.ishost-pages .ish-main .primary-content.col-xl-9 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.ishost-pages .d-lg-none.sidebar-secondary,
body.ishost-pages .sidebar-secondary {
    display: none !important;
}

body.ishost-pages .ish-main {
    padding-top: 0.5rem;
    padding-bottom: 3rem;
}

body.ishost-pages .primary-content {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* —— Hero —— */
.ish-page-hero {
    position: relative;
    margin: 0 0 1.5rem;
    padding: 1.65rem 1.75rem 1.45rem;
    border-radius: 24px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(245, 180, 0, 0.14), transparent 55%),
        radial-gradient(ellipse 70% 50% at 0% 100%, rgba(13, 62, 163, 0.1), transparent 50%),
        #fff;
    border: 1px solid rgba(13, 62, 163, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 24px 48px -28px rgba(13, 62, 163, 0.45);
    overflow: hidden;
}

.ish-page-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #0d3ea3, #f5b400, #0d3ea3);
}

.ish-page-hero__kicker {
    margin: 0 0 0.3rem;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    color: #0d3ea3;
}

.ish-page-hero__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-weight: 800;
    color: #0f172a;
}

.ish-page-hero__lead {
    margin: 0 auto 1rem;
    max-width: 34rem;
    font-size: 0.94rem;
    line-height: 1.7;
    color: #64748b;
    font-weight: 500;
}

.ish-page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* —— Page shell —— */
.ish-page {
    direction: rtl;
    text-align: right;
    font-family: "Vazir", "IRANSans", "IRANYekan", Tahoma, Arial, sans-serif;
}

.ish-panel {
    border-radius: 20px;
    border: 1px solid rgba(13, 62, 163, 0.1);
    background: #fff;
    box-shadow: 0 16px 36px -28px rgba(13, 62, 163, 0.4);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.ish-panel__head {
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.ish-panel__head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.ish-panel__head p {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: #64748b;
}

.ish-panel--form,
.ish-panel--success {
    padding: 1.5rem 1.4rem;
}

.ish-empty {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.ish-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.15rem;
}

.ish-page-nav {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

/* —— Feed (announcements) —— */
.ish-feed {
    display: grid;
    gap: 14px;
}

.ish-feed__item {
    padding: 1.35rem 1.4rem;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 12px 28px -24px rgba(13, 62, 163, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ish-feed__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -22px rgba(13, 62, 163, 0.45);
}

.ish-feed__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 650;
}

.ish-feed__title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.ish-feed__title a {
    color: #0f172a;
    text-decoration: none !important;
}

.ish-feed__title a:hover {
    color: #0d3ea3;
}

.ish-feed__excerpt {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 0.85rem;
}

.ish-feed__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 750;
    color: #0d3ea3;
    text-decoration: none !important;
}

/* —— Article —— */
.ish-article {
    padding: 1.5rem 1.5rem 1.35rem;
    border-radius: 20px;
    border: 1px solid rgba(13, 62, 163, 0.1);
    background: #fff;
    box-shadow: 0 16px 36px -28px rgba(13, 62, 163, 0.4);
}

.ish-article__title {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.ish-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.ish-article__body {
    font-size: 0.98rem;
    line-height: 1.85;
    color: #334155;
}

.ish-article__vote {
    margin-top: 1.5rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e2e8f0;
}

.ish-article__vote h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.ish-vote-actions {
    display: flex;
    gap: 10px;
}

.ish-article__footer {
    margin-top: 1.25rem;
}

/* —— KB —— */
.ish-searchbar {
    display: flex;
    gap: 10px;
    margin-bottom: 1.35rem;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px -24px rgba(13, 62, 163, 0.35);
}

.ish-searchbar__input {
    flex: 1 1 auto;
    min-height: 48px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.ish-searchbar__btn {
    min-width: 120px;
    min-height: 48px !important;
}

.ish-kb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ish-kb-cat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.1rem 1.15rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 10px 24px -22px rgba(13, 62, 163, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ish-kb-cat:hover {
    transform: translateY(-2px);
    color: inherit;
    box-shadow: 0 16px 32px -20px rgba(13, 62, 163, 0.45);
}

.ish-kb-cat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(13, 62, 163, 0.1);
    color: #0d3ea3;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.ish-kb-cat__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ish-kb-cat__body strong {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
}

.ish-kb-cat__body small {
    font-size: 0.8rem;
    color: #64748b;
}

.ish-kb-cat__count {
    flex-shrink: 0;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0d3ea3;
    font-weight: 800;
    font-size: 0.85rem;
}

.ish-linklist {
    display: flex;
    flex-direction: column;
}

.ish-linklist__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.15s ease;
}

.ish-linklist__item:last-child {
    border-bottom: none;
}

.ish-linklist__item:hover {
    background: #f8fafc;
    color: inherit;
}

.ish-linklist__title {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.98rem;
}

.ish-linklist__item:hover .ish-linklist__title {
    color: #0d3ea3;
}

.ish-linklist__desc {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.55;
}

/* —— Contact form —— */
.ish-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ish-form__full {
    grid-column: 1 / -1;
}

.ish-form__actions {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* —— Server status —— */
.ish-status-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.15rem;
}

.ish-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid transparent;
}

.ish-status-chip--ok {
    background: rgba(61, 154, 120, 0.14);
    color: #166534;
}

.ish-status-chip--warn {
    background: rgba(245, 180, 0, 0.18);
    color: #92400e;
}

.ish-status-chip--info {
    background: rgba(13, 62, 163, 0.1);
    color: #0d3ea3;
}

.ish-table-wrap {
    overflow-x: auto;
}

.ish-table {
    margin: 0;
}

.ish-issues {
    display: grid;
    gap: 12px;
    margin-top: 1.15rem;
}

.ish-issue {
    padding: 1.25rem 1.3rem;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 12px 28px -24px rgba(13, 62, 163, 0.35);
}

.ish-issue__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0.35rem;
}

.ish-issue__head h2 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
}

.ish-issue__status {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 650;
}

.ish-issue__affect {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.ish-issue__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 600;
}

.ish-issue__body {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #334155;
}

/* —— Ticket departments —— */
.ish-dept-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ish-dept-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 1.25rem;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(165deg, #fff 50%, rgba(13, 62, 163, 0.05));
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 12px 28px -24px rgba(13, 62, 163, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ish-dept-card:hover {
    transform: translateY(-2px);
    color: inherit;
    box-shadow: 0 18px 36px -20px rgba(13, 62, 163, 0.45);
}

.ish-dept-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d3ea3;
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.ish-dept-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ish-dept-card__body strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.ish-dept-card__body small {
    color: #64748b;
    font-size: 0.84rem;
}

.ish-dept-card__arrow {
    color: #94a3b8;
}

/* —— Tables panel —— */
.ish-page--table .ish-table-panel,
.ish-page--table .table-container {
    border-radius: 18px !important;
    border: 1px solid rgba(13, 62, 163, 0.1) !important;
    background: #fff !important;
    box-shadow: 0 16px 36px -28px rgba(13, 62, 163, 0.4) !important;
    overflow: hidden;
    padding: 0.85rem !important;
}

.ish-page--table .btn-group {
    margin-bottom: 1rem !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* —— Ticket view / form cards —— */
.ish-page--ticket .card,
.ish-page--form .card {
    border-radius: 18px !important;
    border: 1px solid rgba(13, 62, 163, 0.1) !important;
    box-shadow: 0 16px 36px -28px rgba(13, 62, 163, 0.4) !important;
    overflow: hidden;
    margin-bottom: 1.15rem;
}

.ish-page--ticket .card-title,
.ish-page--form .card-title {
    font-weight: 800;
}

.ish-page--ticket .ticket-reply {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    margin-bottom: 0.75rem;
}

.ish-page--ticket .ticket-reply.staff {
    background: rgba(13, 62, 163, 0.05);
    border-color: rgba(13, 62, 163, 0.15);
}

@media (max-width: 767.98px) {
    .ish-kb-grid,
    .ish-dept-grid,
    .ish-form__grid {
        grid-template-columns: 1fr;
    }

    .ish-searchbar {
        flex-direction: column;
    }

    .ish-page-hero {
        padding: 1.25rem 1.1rem;
        border-radius: 18px;
    }
}
