/* =====================================================================
   مدرسه توسعه – استایل اصلی سایت
   پالت: مرجانی، فیروزه‌ای، زرد آفتابی، بنفش ملایم روی زمینهٔ کرم
   ===================================================================== */
:root {
  --coral: #ff6b6b;
  --coral-dark: #e85555;
  --teal: #2ec4b6;
  --teal-dark: #21a99c;
  --sun: #ffd166;
  --sun-dark: #f4b942;
  --grape: #6c5ce7;
  --sky: #48b1f3;
  --mint: #b8f2e6;
  --cream: #fffaf2;
  --ink: #2b2d42;
  --ink-soft: #5c6079;
  --line: #f0e6d8;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --shadow: 0 10px 30px rgba(43, 45, 66, 0.08);
  --shadow-lg: 0 20px 50px rgba(43, 45, 66, 0.14);
  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, .display-4, .display-5 { font-weight: 800; line-height: 1.5; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--coral-dark); }
p { color: var(--ink-soft); }
.lead { color: var(--ink-soft); }
img { max-width: 100%; }

/* ---------- ابزارهای عمومی ---------- */
.text-coral { color: var(--coral) !important; }
.text-teal { color: var(--teal-dark) !important; }
.text-grape { color: var(--grape) !important; }
.text-sun { color: var(--sun-dark) !important; }
.bg-coral { background: var(--coral) !important; }
.bg-teal { background: var(--teal) !important; }
.bg-sun { background: var(--sun) !important; }
.bg-grape { background: var(--grape) !important; }
.bg-sky { background: var(--sky) !important; }
.bg-mint { background: var(--mint) !important; }
.bg-cream { background: var(--cream) !important; }
.bg-soft { background: #fff3e8; }
.rounded-4 { border-radius: var(--radius) !important; }
.rounded-5 { border-radius: var(--radius-lg) !important; }
.shadow-soft { box-shadow: var(--shadow); }
.section { padding: 5rem 0; }
@media (max-width: 767px) { .section { padding: 3.25rem 0; } }

.section-title { margin-bottom: 3rem; }
.section-title .eyebrow {
  display: inline-block;
  background: #fff;
  border: 2px dashed var(--sun);
  color: var(--coral-dark);
  font-weight: 700;
  font-size: .9rem;
  padding: .25rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-title h2 .hl {
  background: linear-gradient(transparent 55%, var(--sun) 55%);
  padding: 0 .25rem;
}

/* ---------- دکمه‌ها ---------- */
.btn { font-weight: 700; border-radius: 999px; padding: .7rem 1.6rem; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(255,107,107,.35); }
.btn-coral:hover { background: var(--coral-dark); color: #fff; box-shadow: 0 12px 26px rgba(255,107,107,.45); }
.btn-teal { background: var(--teal); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(46,196,182,.35); }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-sun { background: var(--sun); color: var(--ink); border: 0; box-shadow: 0 8px 20px rgba(255,209,102,.4); }
.btn-sun:hover { background: var(--sun-dark); color: var(--ink); }
.btn-outline-ink { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.btn-outline-light-2 { border: 2px solid rgba(255,255,255,.8); color: #fff; }
.btn-outline-light-2:hover { background: #fff; color: var(--ink); }

/* ---------- نوار اطلاعیه ---------- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
}
.topbar a { color: var(--sun); }
.topbar .marquee { display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- ناوبری ---------- */
.navbar-tosee {
  background: rgba(255,250,242,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: .6rem 0;
  position: sticky; top: 0; z-index: 1030;
}
.navbar-tosee .navbar-brand { display: flex; align-items: center; gap: .6rem; font-weight: 900; font-size: 1.35rem; color: var(--ink); }
.brand-logo {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--coral), var(--sun));
  display: grid; place-items: center; color: #fff; font-size: 1.4rem;
  box-shadow: 0 6px 14px rgba(255,107,107,.35);
  transform: rotate(-6deg);
}
.brand-logo i { transform: rotate(6deg); }
.navbar-tosee .navbar-brand small { display: block; font-size: .7rem; font-weight: 500; color: var(--ink-soft); line-height: 1.2; }
.navbar-tosee .nav-link { color: var(--ink); font-weight: 600; padding: .5rem .9rem !important; border-radius: 999px; }
.navbar-tosee .nav-link:hover, .navbar-tosee .nav-link.active { background: #fff0e0; color: var(--coral-dark); }

/* ---------- هیرو ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5e6 0%, #e8fbf8 60%, #f1ecff 100%);
  padding: 4.5rem 0 6rem;
}
.hero .hero-title { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 900; line-height: 1.45; }
.hero .hero-title .hl { color: var(--coral); position: relative; display: inline-block; }
.hero .hero-title .hl::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: .1em; height: .35em;
  background: var(--sun); z-index: -1; border-radius: 4px; opacity: .7;
}
.hero .lead { font-size: 1.15rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-badges span {
  background: #fff; border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: .4rem;
}
.hero-visual { position: relative; min-height: 420px; }
.hero-visual .photo {
  position: absolute; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid #fff; background: #fff;
}
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .p1 { width: 62%; height: 78%; right: 0; top: 0; transform: rotate(3deg); }
.hero-visual .p2 { width: 46%; height: 52%; left: 0; bottom: 0; transform: rotate(-4deg); }
.hero-visual .sticker {
  position: absolute; background: #fff; border-radius: 1rem; padding: .6rem 1rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .9rem; z-index: 2;
}
.hero-visual .s1 { left: 6%; top: 8%; animation: float 5s ease-in-out infinite; }
.hero-visual .s2 { right: 4%; bottom: 6%; animation: float 6s ease-in-out infinite reverse; }
.hero-visual .sticker .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; pointer-events: none; }
.blob-1 { width: 260px; height: 260px; background: var(--sun); top: -80px; right: -80px; }
.blob-2 { width: 180px; height: 180px; background: var(--mint); bottom: 40px; left: -60px; }
.blob-3 { width: 120px; height: 120px; background: #ffd6d6; top: 40%; left: 35%; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; font-size: 1.3rem; opacity: .6; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.wave { display: block; width: 100%; height: 70px; margin-top: -1px; }
.wave-bottom { position: absolute; bottom: -1px; left: 0; right: 0; }

/* ---------- کارت ویژگی‌ها ---------- */
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem; height: 100%;
  box-shadow: var(--shadow); border: 2px solid transparent; transition: .25s;
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--sun); box-shadow: var(--shadow-lg); }
.feature-card .icon {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  font-size: 1.7rem; color: #fff; margin-bottom: 1rem; transform: rotate(-6deg);
}
.feature-card h5 { font-size: 1.1rem; margin-bottom: .5rem; }
.feature-card p { font-size: .95rem; margin: 0; }

/* ---------- آمار ---------- */
.stats { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 2.5rem 1.5rem; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.05); top: -120px; left: -80px; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 2.4rem; font-weight: 900; color: var(--sun); line-height: 1.2; }
.stat-item .lbl { color: rgba(255,255,255,.8); font-weight: 600; }

/* ---------- مقاطع ---------- */
.level-card { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); height: 100%; transition: .25s; }
.level-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.level-card .img { height: 210px; overflow: hidden; position: relative; }
.level-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.level-card:hover .img img { transform: scale(1.06); }
.level-card .age { position: absolute; top: 1rem; right: 1rem; background: #fff; border-radius: 999px; padding: .25rem .9rem; font-weight: 700; font-size: .85rem; }
.level-card .body { padding: 1.4rem; }
.level-card ul { padding-right: 1.1rem; margin: 0; color: var(--ink-soft); font-size: .93rem; }
.level-card ul li { margin-bottom: .2rem; }

/* ---------- گالری ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); cursor: zoom-in; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem .8rem; color: #fff; font-weight: 600; font-size: .9rem;
  background: linear-gradient(transparent, rgba(43,45,66,.85));
}
.gallery-item .tag { position: absolute; top: .8rem; right: .8rem; background: rgba(255,255,255,.92); color: var(--ink); border-radius: 999px; font-size: .75rem; padding: .15rem .7rem; font-weight: 700; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.filter-pills .btn { padding: .4rem 1.1rem; font-size: .9rem; }
.filter-pills .btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- اخبار ---------- */
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; transition: .25s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card .img { height: 200px; overflow: hidden; position: relative; background: var(--mint); }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .img .placeholder { height: 100%; display: grid; place-items: center; font-size: 3rem; color: var(--teal-dark); }
.news-card .badge-cat { position: absolute; top: 1rem; right: 1rem; }
.news-card .body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.news-card h5 { font-size: 1.05rem; }
.news-card h5 a { color: var(--ink); }
.news-card .meta { font-size: .82rem; color: var(--ink-soft); }
.news-card .summary { font-size: .93rem; flex: 1; }
.badge-news { background: var(--sky); }
.badge-event { background: var(--coral); }
.event-date { background: var(--sun); color: var(--ink); border-radius: 12px; padding: .5rem .9rem; text-align: center; font-weight: 800; line-height: 1.3; min-width: 64px; }
.event-date small { display: block; font-weight: 600; font-size: .7rem; }
.event-row { background: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.article-body { white-space: pre-line; font-size: 1.05rem; color: var(--ink); }

/* ---------- نظرات والدین ---------- */
.testimonial { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); height: 100%; position: relative; }
.testimonial::before { content: "\201C"; position: absolute; top: .5rem; left: 1.2rem; font-size: 5rem; line-height: 1; color: var(--sun); opacity: .5; font-family: Georgia, serif; }
.testimonial .stars { color: var(--sun-dark); margin-bottom: .6rem; }
.testimonial .quote { color: var(--ink); font-size: .98rem; }
.testimonial .who { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.testimonial .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.testimonial .who strong { display: block; font-size: .95rem; }
.testimonial .who span { font-size: .8rem; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--coral), #ff8e53);
  color: #fff; border-radius: var(--radius-lg); padding: 3rem 2rem; position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.12); right: -150px; bottom: -220px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.92); }

/* ---------- فرم‌ها ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2.2rem; }
.form-control, .form-select { border-radius: 14px; padding: .75rem 1rem; border: 2px solid var(--line); font-family: var(--font); }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 .25rem rgba(46,196,182,.15); }
.form-label { font-weight: 700; font-size: .93rem; }
.form-label .req { color: var(--coral); }
.form-section-title { display: flex; align-items: center; gap: .6rem; font-weight: 800; margin: 1.6rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px dashed var(--line); }
.form-section-title .n { width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.invalid-feedback { display: block; }
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { display: flex; gap: .8rem; margin-bottom: 1rem; }
.step-list .n { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--sun); display: grid; place-items: center; font-weight: 800; }
.info-box { background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.contact-item .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; }

/* ---------- صفحهٔ داخلی (هدر) ---------- */
.page-header { background: linear-gradient(120deg, #fff2e0, #e6fbf7); padding: 3.5rem 0 3rem; position: relative; overflow: hidden; }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.breadcrumb { font-size: .85rem; }
.breadcrumb-item + .breadcrumb-item::before { content: "‹"; float: right; padding-left: .5rem; }

/* ---------- تایم‌لاین / درباره ---------- */
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-grid .about-photo:first-child { grid-row: span 2; }
.timeline { position: relative; padding-right: 2rem; }
.timeline::before { content: ""; position: absolute; right: 9px; top: 0; bottom: 0; width: 3px; background: var(--line); border-radius: 3px; }
.timeline li { position: relative; list-style: none; margin-bottom: 1.4rem; }
.timeline li::before { content: ""; position: absolute; right: -2rem; top: .4rem; width: 20px; height: 20px; border-radius: 50%; background: var(--coral); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--line); }
.timeline .year { font-weight: 800; color: var(--coral-dark); }
.value-pill { background: #fff; border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: .5rem; margin: .3rem; }

/* ---------- فوتر ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 4rem 0 1.5rem; margin-top: 4rem; position: relative; }
.footer h6 { color: #fff; font-weight: 800; margin-bottom: 1rem; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: var(--sun); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer .social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); margin-left: .4rem; }
.footer .social a:hover { background: var(--coral); color: #fff; }
.footer .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; }
.footer-wave { position: absolute; top: -69px; left: 0; right: 0; width: 100%; height: 70px; }

/* ---------- لایت‌باکس ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(20,20,30,.92); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 85vh; border-radius: 1rem; box-shadow: var(--shadow-lg); }
.lightbox .cap { position: absolute; bottom: 1.5rem; color: #fff; font-weight: 600; text-align: center; width: 100%; }
.lightbox .close { position: absolute; top: 1rem; left: 1rem; background: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; }

/* ---------- انیمیشن ورود ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- دکمهٔ شناور ثبت‌نام ---------- */
.fab-register {
  position: fixed; bottom: 1.2rem; left: 1.2rem; z-index: 1020;
  background: var(--teal); color: #fff; border-radius: 999px; padding: .7rem 1.3rem; font-weight: 800;
  box-shadow: 0 10px 26px rgba(46,196,182,.5); display: inline-flex; align-items: center; gap: .5rem;
}
.fab-register:hover { background: var(--teal-dark); color: #fff; }

/* ---------- واکنش‌گرایی ---------- */
@media (max-width: 991px) {
  .hero { padding: 3rem 0 5rem; }
  .hero-visual { min-height: 340px; margin-top: 2rem; }
}
@media (max-width: 575px) {
  .hero-visual { min-height: 300px; }
  .hero-visual .sticker { font-size: .8rem; padding: .45rem .7rem; }
  .form-card { padding: 1.4rem; }
  .stats { padding: 2rem 1rem; }
  .stat-item .num { font-size: 1.8rem; }
  .fab-register span { display: none; }
  .fab-register { padding: .8rem; }
}
