/* وب‌سایت عمومی مدرسه: صفحه‌ی اول (اسلایدر خبر + ورود به مقاطع) */
:root { --ps-ink: #0c1a3d; --ps-line: #dde1ea; --ps-muted: #5d6679; --ps-surface: #fff; --ps-bg: #f5f6f9; --ps-shadow: 0 10px 30px rgba(12,26,61,.12); }
.ps-home { background: var(--ps-bg); }
.ps-wrap { max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
.ps-home a { text-decoration: none; }

/* هدر شفاف روی اسلایدر */
.ps-top { position: absolute; inset: 0 0 auto; z-index: 5; color: #fff; }
.ps-top .ps-wrap { display: flex; align-items: center; gap: 24px; padding-block: 16px; }
.ps-top a { color: #fff; }
.ps-logo { display: flex; align-items: center; gap: 10px; }
.ps-logo img { height: 48px; border-radius: 10px; background: rgba(255,255,255,.9); padding: 3px; }
.ps-logo .mk { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-accent); color: #222; display: grid; place-items: center; font-weight: 800; }
.ps-logo .nm { font-weight: 800; font-size: 1.15rem; line-height: 1.3; }
.ps-menu { display: flex; gap: 20px; margin-inline-start: auto; font-size: .9rem; font-weight: 500; flex-wrap: wrap; }
.ps-menu a { opacity: .88; padding-block: 4px; border-bottom: 2px solid transparent; }
.ps-menu a:hover, .ps-menu a.on { opacity: 1; border-color: var(--brand-accent); }
.ps-login { white-space: nowrap; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); padding: 6px 16px; border-radius: 99px; font-size: .88rem; font-weight: 500; backdrop-filter: blur(6px); }
.ps-burger { display: none; position: relative; margin-inline-start: auto; }
.ps-burger summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: rgba(255,255,255,.12); }
.ps-burger summary::-webkit-details-marker { display: none; }
.ps-burger nav { position: absolute; inset-inline-end: 0; top: 48px; min-width: 190px; background: var(--ps-surface); border-radius: 14px; box-shadow: var(--ps-shadow); padding: 8px; display: grid; }
.ps-burger nav a { color: #172033; padding: 8px 12px; border-radius: 8px; font-size: .92rem; }
.ps-burger nav a:hover { background: var(--ps-bg); }

/* اسلایدر */
.ps-slider { position: relative; height: clamp(440px, 62vw, 600px); background: color-mix(in srgb, var(--brand-primary) 60%, black); color: #fff; overflow: hidden; }
.ps-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.ps-slide.on { opacity: 1; visibility: visible; }
.ps-art { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ps-art.gen { background:
  radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--brand-accent) 45%, transparent) 0 150px, transparent 151px),
  repeating-radial-gradient(circle at 80% 55%, transparent 0 46px, rgba(255,255,255,.12) 47px 50px),
  linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 45%, black)); }
.ps-art.gen.v1 { background:
  radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--brand-accent) 40%, transparent) 0 170px, transparent 171px),
  repeating-linear-gradient(135deg, transparent 0 28px, rgba(255,255,255,.08) 29px 32px),
  linear-gradient(135deg, color-mix(in srgb, var(--brand-secondary) 70%, var(--brand-primary)), color-mix(in srgb, var(--brand-primary) 50%, black)); }
.ps-slide .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,16,40,.92) 6%, rgba(8,16,40,.5) 45%, rgba(8,16,40,.18) 100%); }
.ps-slide .ps-wrap { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 150px; }
.ps-tag { align-self: flex-start; background: var(--brand-accent); color: #222; font-weight: 700; font-size: .78rem; padding: 2px 12px; border-radius: 6px; }
.ps-slide h2 { font-weight: 800; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.6; margin: 10px 0 4px; max-width: 20em; text-wrap: balance; }
.ps-slide p { margin: 0 0 14px; max-width: 40em; opacity: .88; }
.ps-meta { display: flex; align-items: center; gap: 16px; font-size: .85rem; }
.ps-more { background: #fff; color: var(--brand-primary); font-weight: 700; padding: 6px 18px; border-radius: 99px; }
.ps-more:hover { background: var(--brand-accent); color: #222; }
.ps-slide .tx > * { opacity: 0; transform: translateY(14px); }
.ps-slide.on .tx > * { opacity: 1; transform: none; transition: opacity .7s ease .25s, transform .7s ease .25s; }
.ps-slide.on .tx > :nth-child(2) { transition-delay: .35s; } .ps-slide.on .tx > :nth-child(3) { transition-delay: .45s; } .ps-slide.on .tx > :nth-child(4) { transition-delay: .55s; }
.ps-ctl { position: absolute; z-index: 4; inset-inline: 0; bottom: 118px; }
.ps-ctl .ps-wrap { display: flex; align-items: center; gap: 12px; }
.ps-dots { display: flex; gap: 8px; flex: 1; max-width: 340px; }
.ps-dots button { flex: 1; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.3); border-radius: 4px; cursor: pointer; overflow: hidden; position: relative; }
.ps-dots button::after { content: ""; position: absolute; inset: 0; background: var(--brand-accent); transform-origin: right; transform: scaleX(0); }
.ps-dots button.done::after { transform: scaleX(1); }
.ps-dots button.on::after { animation: ps-fill 6s linear forwards; }
.ps-slider.paused .ps-dots button.on::after { animation-play-state: paused; }
@keyframes ps-fill { to { transform: scaleX(1); } }
.ps-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); }
.ps-arrow:hover { background: var(--brand-accent); color: #222; border-color: var(--brand-accent); }
.ps-count { font-size: .8rem; opacity: .8; margin-inline-start: auto; }

/* ورود به مقاطع */
.ps-stages { position: relative; z-index: 6; margin-top: -92px; }
.ps-sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ps-stile { background: var(--ps-surface); border-radius: 18px; padding: 18px; box-shadow: var(--ps-shadow); display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; border: 1px solid var(--ps-line); color: #172033; transition: transform .25s; }
.ps-stile:hover { transform: translateY(-5px); color: #172033; }
.ps-stile::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--c); }
.ps-stile .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); margin-bottom: 8px; }
.ps-stile h3 { margin: 0; font-weight: 800; font-size: 1.15rem; line-height: 1.5; }
.ps-stile .go { margin-top: 8px; font-size: .85rem; font-weight: 700; color: var(--c); display: flex; align-items: center; gap: 6px; }

/* بخش‌ها */
.ps-sec { padding-block: 56px 0; }
.ps-sh { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.ps-sh h2 { margin: 0; font-weight: 800; font-size: 1.6rem; line-height: 1.4; }
.ps-sh h2::after { content: ""; display: block; width: 44px; height: 4px; background: var(--brand-accent); border-radius: 4px; margin-top: 6px; }
.ps-sh a { font-size: .88rem; font-weight: 700; color: var(--brand-primary); }
.ps-about { background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: 20px; padding: 28px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.ps-about p { margin: 0; white-space: pre-line; color: var(--ps-muted); }
.ps-about .lead { color: #172033; font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.ps-contact { background: var(--brand-primary); color: #fff; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; justify-content: center; }
.ps-contact b { font-size: 1rem; }
.ps-contact a { color: #fff; text-decoration: underline; }

.ps-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.ps-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 12px; }
.ps-mosaic .m { border-radius: 16px; overflow: hidden; position: relative; background: color-mix(in srgb, var(--brand-primary) 70%, black); }
.ps-mosaic .m img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ps-mosaic .m:hover img { transform: scale(1.06); }
.ps-mosaic .m:first-child { grid-column: span 2; grid-row: span 2; }
.ps-mosaic .cap { position: absolute; inset: auto 0 0; padding: 22px 14px 10px; color: #fff; font-size: .82rem; font-weight: 500; background: linear-gradient(0deg, rgba(8,16,40,.8), transparent); }

.ps-cta { margin-top: 56px; background: color-mix(in srgb, var(--brand-primary) 70%, black); color: #fff; border-radius: 26px; padding: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.ps-cta h2 { font-weight: 800; font-size: 1.5rem; margin: 0; line-height: 1.5; }
.ps-cta .t { flex: 1 1 260px; min-width: 0; }
.ps-cta .t p { margin: 0; opacity: .8; }
.ps-btn { background: var(--brand-accent); color: #222; font-weight: 800; padding: 10px 26px; border-radius: 99px; }
.ps-btn:hover { color: #222; filter: brightness(1.08); }

@media (max-width: 900px) {
  .ps-menu { display: none; } .ps-login { margin-inline-start: 0; } .ps-burger { display: block; }
  .ps-about { grid-template-columns: 1fr; }
  .ps-mosaic { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ps-slider { height: 580px; }
  .ps-slide .ps-wrap { padding-bottom: 215px; }
  .ps-slide p, .ps-arrow, .ps-count { display: none; }
  .ps-dots { max-width: none; }
  .ps-ctl { bottom: 150px; }
  .ps-stages { margin-top: -130px; }
  .ps-sgrid { grid-template-columns: 1fr 1fr; }
  .ps-stile { padding: 14px; }
  .ps-logo .nm { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .ps-home * { transition: none !important; animation: none !important; } .ps-slide .tx > * { opacity: 1; transform: none; } }

/* ===== هدر و فوتر مشترک، صفحه‌های داخلی ===== */
.ps-top a, .ps-top a:hover, .ps-menu a, .ps-burger nav a, .ps-footer a { text-decoration: none; }
.ps-menu a { border-bottom: 0; }
.ps-menu a.on { opacity: 1; font-weight: 800; }
.ps-menu a.on::after { content: none; }
.ps-top.solid { position: static; background: var(--brand-primary); }
.ps-band { background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 55%, black)); color: #fff; padding: 22px 0 64px; position: relative; overflow: hidden; }
.ps-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--brand-accent) 35%, transparent) 0 110px, transparent 111px), repeating-radial-gradient(circle at 88% 60%, transparent 0 38px, rgba(255,255,255,.1) 39px 42px); pointer-events: none; }
.ps-band .ps-wrap { position: relative; }
.ps-band h1 { margin: 0 0 12px; font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.6; }
.ps-band h1::after { content: ""; display: block; width: 44px; height: 4px; background: var(--brand-accent); border-radius: 4px; margin-top: 6px; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-chips a { color: #fff; font-size: .85rem; padding: 3px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); }
.ps-chips a:hover, .ps-chips a.on { background: var(--brand-accent); color: #222; border-color: var(--brand-accent); }
body.ps-inner { background: var(--ps-bg); font-family: Vazirmatn, Tahoma, sans-serif; }
.ps-page { margin-top: -40px; position: relative; padding-bottom: 8px; min-height: 40vh; }
.ps-page > * { position: relative; }
.ps-page a { text-decoration: none; }
.ps-page a:not(.btn):not(.page-link):not(.card-link) { color: var(--brand-primary); }
.ps-page .card { border: 1px solid var(--ps-line) !important; border-radius: 18px; box-shadow: none !important; transition: transform .25s, box-shadow .25s; background: var(--ps-surface); }
.ps-page .card-link:hover .card { transform: translateY(-4px); box-shadow: var(--ps-shadow) !important; }
.ps-page .card .cover, .ps-page .card .cover-ph { border-radius: 0; }
.ps-page .card-body { padding: 16px 18px 18px; }
.ps-page .card h3 { line-height: 1.8; }
.ps-page .badge.text-bg-primary { background: var(--brand-primary) !important; }
.ps-page article.bg-white, .ps-page .bg-white.rounded-3 { border: 1px solid var(--ps-line); border-radius: 20px !important; box-shadow: none !important; }
.ps-page .article-body { line-height: 2.1; font-size: 1.02rem; }
.ps-page .gallery-img { border-radius: 14px; transition: transform .3s; }
.ps-page a:hover .gallery-img { transform: scale(1.03); }
.ps-page .form-control { border-radius: 12px; padding: .6rem .9rem; }
.ps-page .btn-primary { background: var(--brand-primary); border-color: var(--brand-primary); border-radius: 99px; padding: .5rem 1.6rem; font-weight: 700; }
.ps-page .page-link { border-radius: 10px !important; margin-inline: 2px; border: 1px solid var(--ps-line); color: var(--brand-primary); }
.ps-page .page-item.active .page-link { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.ps-page .section-title { border: 0; padding: 0; }
.ps-page h2.h5 { font-weight: 800; }
.text-brand { color: var(--brand-primary) !important; }
.ps-avatar-ph { border-radius: 50%; margin-inline: auto; margin-bottom: .5rem; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 800; color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 12%, white); }
.ps-page .alert-light { border-radius: 14px; background: var(--ps-surface); }

.ps-footer { margin-top: 56px; background: color-mix(in srgb, var(--brand-primary) 38%, #0b1020); color: rgba(255,255,255,.75); font-size: .9rem; border-top: 6px solid var(--brand-accent); }
.ps-fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-block: 34px; }
.ps-footer .fn { color: #fff; font-weight: 800; font-size: 1.2rem; }
.ps-footer .fs { margin: 6px 0 0; color: var(--brand-accent); font-weight: 500; line-height: 1.9; }
.ps-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 10px; font-weight: 700; }
.ps-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ps-footer a { color: rgba(255,255,255,.85); }
.ps-footer a:hover { color: #fff; }
.ps-copy { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding-block: 12px; font-size: .78rem; }
@media (max-width: 900px) { .ps-fgrid { grid-template-columns: 1fr; } }
