/* Scoped styles. Inherits the site's Persian font without loading external assets. */
.tsp-section, .tsp-section * { box-sizing: border-box; }
.tsp-section {
    --tsp-navy: #101d34;
    --tsp-ink: #14233d;
    --tsp-gold: #ffa916;
    --tsp-green: #39ac69;
    position: relative;
    width: 100%;
    margin: 22px auto;
    padding: clamp(30px, 5.5vw, 68px) clamp(17px, 4.5vw, 54px);
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
    background: #0d1930;
    color: #fff;
    font-family: inherit;
    line-height: 1.8;
    text-align: right;
}
.tsp-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse 38% 45% at 0% 0%, rgba(49,110,105,.19), transparent 100%),
                radial-gradient(ellipse 35% 40% at 100% 110%, rgba(255,169,22,.12), transparent 100%);
}
.tsp-section--light { background: #f3f6fb; color: var(--tsp-ink); }
.tsp-section--light::before { opacity: .45; }
.tsp-section__inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }
.tsp-section__header { margin: 0 auto 30px; text-align: center; max-width: 780px; }
.tsp-section__eyebrow {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    color: var(--tsp-gold); font-size: 13px; font-weight: 800; letter-spacing: 0;
    margin-bottom: 10px;
}
.tsp-section__eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tsp-green); box-shadow: 0 0 0 4px rgba(57,172,105,.14); }
.tsp-section .tsp-section__title {
    padding: 0; margin: 0 0 9px; color: inherit;
    font-size: clamp(21px, 3vw, 31px); font-weight: 850; line-height: 1.6;
}
.tsp-section .tsp-section__subtitle { margin: 0; padding: 0; color: #c2ccdc; font-size: clamp(13px, 1.4vw, 15px); line-height: 2; }
.tsp-section--light .tsp-section__subtitle { color: #62718b; }
.tsp-section .tsp-grid {
    list-style: none; padding: 0; margin: 0; display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; align-items: stretch;
}
.tsp-section .tsp-card { list-style: none; padding: 0; margin: 0; min-width: 0; }
.tsp-section .tsp-card::before { display: none; }
.tsp-section .tsp-card__link {
    display: flex; flex-direction: column; height: 100%; overflow: hidden;
    border: 1px solid #e7ecf4; border-radius: 15px;
    background: #fff; color: var(--tsp-ink); text-decoration: none !important;
    box-shadow: 0 12px 33px rgba(0, 9, 25, .13);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tsp-section .tsp-card__link:hover,
.tsp-section .tsp-card__link:focus-visible {
    color: var(--tsp-ink); border-color: var(--tsp-gold);
    transform: translateY(-5px); box-shadow: 0 20px 39px rgba(0, 9, 25, .19);
}
.tsp-section .tsp-card__link:focus-visible { outline: 3px solid var(--tsp-gold); outline-offset: 3px; }
.tsp-section .tsp-card__media {
    position: relative; min-height: 132px; height: 145px;
    display: grid; place-items: center; overflow: hidden;
    color: #ffbc44; background: linear-gradient(135deg,#1b2c49 0%,#0d1930 100%);
}
.tsp-section .tsp-card__media::before {
    content: ""; position: absolute; width: 160px; height: 160px;
    border: 1px solid rgba(255,255,255,.09); border-radius: 50%;
    transform: translate(-48%, 22%); pointer-events: none;
}
.tsp-section .tsp-card__media::after {
    content: ""; position: absolute; width: 92px; height: 92px;
    border-radius: 50%; background: rgba(57,172,105,.09);
    transform: translate(110%, -45%); pointer-events: none;
}
.tsp-section .tsp-card__icon { width: 57px; height: 57px; z-index: 1; filter: drop-shadow(0 6px 12px rgba(0,0,0,.1)); }
.tsp-section .tsp-card__media--photo::before,
.tsp-section .tsp-card__media--photo::after { display: none; }
.tsp-section .tsp-card__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tsp-section .tsp-card__index {
    position: absolute; z-index: 2; top: 13px; right: 13px;
    background: rgba(12,23,44,.74); color: #fff; border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px; padding: 2px 11px; font-size: 10px; font-weight: 750;
}
.tsp-section .tsp-card__body {
    display: flex; flex: 1; flex-direction: column; min-width: 0;
    align-items: flex-start; padding: 24px 23px 21px;
}
.tsp-section .tsp-card__kicker { font-size: 11px; font-weight: 800; color: #238b58; margin-bottom: 4px; }
.tsp-section .tsp-card__title {
    width: 100%; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.7; font-weight: 850;
    color: #12203a; margin: 0 0 8px; padding: 0; text-align: right;
}
.tsp-section .tsp-card__description {
    color: #637088; font-size: 13px; line-height: 2.05;
    margin: 0 0 24px; padding: 0; text-align: right;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.tsp-section .tsp-card__cta {
    display: inline-flex; gap: 9px; align-items: center; justify-content: center;
    background: var(--tsp-gold); color: #172238;
    border-radius: 8px; font-size: 12px; font-weight: 850;
    padding: 8px 14px; margin-top: auto;
    transition: background-color .2s ease;
}
.tsp-section .tsp-card__link:hover .tsp-card__cta,
.tsp-section .tsp-card__link:focus-visible .tsp-card__cta { background: #ffd074; }
.tsp-section .tsp-card__arrow { flex: none; }
.tsp-admin-empty {
    padding: 15px 20px; border: 1px dashed #e4a526;
    background: #fffae7; color: #554320; border-radius: 8px;
    font-size: 13px; line-height: 2;
}
@media (max-width: 960px) {
    .tsp-section .tsp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 620px) {
    .tsp-section { margin: 15px auto; padding: 30px 16px; border-radius: 13px; }
    .tsp-section__header { margin-bottom: 24px; }
    .tsp-section .tsp-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .tsp-section .tsp-card__media { height: 118px; min-height: 118px; }
    .tsp-section .tsp-card__icon { width: 49px; height: 49px; }
    .tsp-section .tsp-card__body { padding: 18px; }
    .tsp-section .tsp-card__description { margin-bottom: 17px; }
    .tsp-section .tsp-card__cta { width: 100%; min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .tsp-section .tsp-card__link, .tsp-section .tsp-card__cta { transition: none; }
    .tsp-section .tsp-card__link:hover { transform: none; }
}
