/* ============================================================
   Electronic services pages — خدمات الکترونیک
   Extends .page-minimal-doc
   ============================================================ */

.page-eservice {
    --eservice-accent: #85003e;
    --eservice-accent-soft: rgba(133, 0, 62, 0.1);
}

.page-eservice .doc-hero__kicker {
    background: var(--eservice-accent-soft);
    color: var(--eservice-accent);
}

.page-eservice .doc-hero__line {
    background: linear-gradient(90deg, transparent, var(--eservice-accent), transparent);
}

.page-eservice .cms-fancy-box__accent {
    background: linear-gradient(90deg, var(--eservice-accent), #b12969);
}

.page-eservice .cms-item--table .cms-item__kicker {
    background: var(--eservice-accent-soft);
    color: var(--eservice-accent);
}

.page-eservice .cms-table thead th {
    background: #f7f1f4;
}

.page-eservice .cms-table tbody tr:hover td {
    background: rgba(133, 0, 62, 0.05);
}

.page-eservice .eservice-notes,
.page-eservice .eservice-steps {
    margin: 18px 0 0;
    padding: 16px 18px 16px 0;
    border-radius: 12px;
    background: var(--eservice-accent-soft);
    list-style: none;
}

.page-eservice .eservice-notes li,
.page-eservice .eservice-steps li {
    position: relative;
    margin: 0 0 10px;
    padding-right: 18px;
    color: var(--doc-ink, #1c1418);
    font-size: 14px;
    line-height: 1.85;
}

.page-eservice .eservice-notes li:last-child,
.page-eservice .eservice-steps li:last-child {
    margin-bottom: 0;
}

.page-eservice .eservice-notes li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--eservice-accent);
}

.page-eservice .eservice-steps {
    counter-reset: eservice-step;
}

.page-eservice .eservice-steps li {
    padding-right: 34px;
}

.page-eservice .eservice-steps li::before {
    counter-increment: eservice-step;
    content: counter(eservice-step);
    position: absolute;
    right: 0;
    top: 0.1em;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--eservice-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
}

.page-eservice .eservice-callout {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px dashed rgba(47, 128, 237, 0.28);
    background: rgba(255, 255, 255, 0.7);
    color: var(--doc-ink, #1c1418);
    font-size: 14px;
    line-height: 1.85;
}

.page-eservice .eservice-callout strong {
    color: var(--eservice-accent);
}

.page-eservice .cms-table tbody td:last-child .cms-table-cell-text {
    font-weight: 600;
    color: var(--eservice-accent);
}

.page-eservice .eservice-stack {
    gap: 24px;
}

/* ---- Tuition fee schedule hub / year pages ---- */

.tuition-hub,
.tuition-year-page {
    max-width: 920px;
    margin-inline: auto;
}

.tuition-hub > p,
.tuition-year-lead {
    color: #5c4f56;
    line-height: 1.95;
    font-size: 0.98rem;
    text-align: center;
}

.tuition-year-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0 1.75rem;
}

.tuition-year-card {
    display: flex;
    align-items: stretch;
    gap: 0.9rem;
    padding: 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(133, 0, 62, 0.12);
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(28, 20, 24, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tuition-year-card:hover,
.tuition-year-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(133, 0, 62, 0.35);
    box-shadow: 0 12px 28px rgba(28, 20, 24, 0.1);
    outline: none;
}

.tuition-year-card__media {
    flex: 0 0 96px;
    width: 96px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3e8ed;
}

.tuition-year-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tuition-year-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
}

.tuition-year-card__body strong {
    color: #85003e;
    font-size: 1.05rem;
}

.tuition-year-card__body em {
    font-style: normal;
    color: #5c4f56;
    font-size: 0.88rem;
    line-height: 1.7;
}

.tuition-table-fig {
    margin: 1.25rem 0;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(133, 0, 62, 0.12);
    background: #fff;
    box-shadow: 0 6px 18px rgba(28, 20, 24, 0.06);
}

.tuition-table-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.tuition-table-fig figcaption,
.tuition-year-back {
    margin-top: 0.75rem;
    text-align: center;
    color: #5c4f56;
    font-size: 0.88rem;
}

.tuition-year-back a {
    color: #85003e;
    font-weight: 700;
}

@media (min-width: 720px) {
    .tuition-year-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.1rem;
    }

    .tuition-year-card {
        flex-direction: column;
        padding: 0.75rem;
    }

    .tuition-year-card__media {
        flex: none;
        width: 100%;
        height: 140px;
    }
}

@media (max-width: 767px) {
    .page-eservice .eservice-notes,
    .page-eservice .eservice-steps {
        padding-right: 14px;
    }
}
