/*
Theme Name: دبستان غیردولتی احسان پاکدشت (قالب شاد اختصاصی)
Theme URI: https://ehsaans.ir
Author: دبستان پسرانه احسان
Author URI: https://ehsaans.ir
Description: قالب اختصاصی، پرانرژی و شاد مدرسه‌ای برای دبستان غیردولتی پسرانه احسان پاکدشت. کاملاً سازگار با PHP 8.3 و دارای پنل تنظیمات فارسی جهت ویرایش تمامی بخش‌ها از پیشخوان وردپرس.
Version: 2.3.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: ehsaans
*/

/* ==========================================================================
   دبستان غیردولتی پسرانه احسان - قالب شاد و تخصصی کودکانه و مدرسه‌ای
   Ehsaan Boys' Elementary School - Vibrant, Cheerful & Modern Theme
   الهام‌گرفته از مدرن‌ترین استانداردهای سایت‌های مدارس و مهدکودک‌های شاد
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* پالت رنگ شاد، زنده و پرانرژی برگرفته از تصویر نمونه */
  --header-bg: #E11D48;            /* سرخابی / صورتی پرانرژی سربرگ (Vibrant Berry Pink) */
  --header-top: #BE123C;           /* نوار بالایی سربرگ (Deep Rose) */
  --primary: #E11D48;
  --primary-hover: #BE123C;

  --yellow: #FBBF24;               /* زرد آفتابی درخشان برای دکمه‌ها و المان‌ها */
  --yellow-hover: #F59E0B;
  --yellow-light: #FEF3C7;

  --cyan: #06B6D4;                 /* فیروزه‌ای شاداب */
  --cyan-light: #E0F2FE;
  
  --green: #10B981;                /* سبز باطراوت و رشد */
  --green-light: #D1FAE5;
  
  --purple: #8B5CF6;               /* بنفش خلاقیت */
  --orange: #FB923C;               /* نارنجی پرانرژی */
  --coral: #F43F5E;                /* مرجانی شاداب */

  --hero-bg: #FFF1F2;              /* پس‌زمینه لطیف و صورتی بنر اصلی (مانند نمونه) */
  --bg-white: #FFFFFF;
  --bg-cream: #FEFCE8;             /* کرم-عسلی ملایم */
  --bg-soft-blue: #F0F9FF;
  
  --text-main: #1E293B;            /* مشکی-سرمه‌ای بسیار خوانا و استاندارد */
  --text-muted: #64748B;
  --text-white: #FFFFFF;
  
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 12px rgba(225, 29, 72, 0.08);
  --shadow-md: 0 8px 24px rgba(225, 29, 72, 0.12);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
  --shadow-yellow: 0 6px 20px rgba(251, 191, 36, 0.45);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.7;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-white);
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   ۱. نوار بالایی سربرگ (Top Bar)
   ========================================================================== */
.site-topbar {
  background-color: var(--header-top);
  color: #FFFFFF;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.95);
}
.topbar-item a {
  color: #FEF08A;
  font-weight: 700;
  direction: ltr;
}
.topbar-item a:hover {
  text-decoration: underline;
}
.topbar-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-social-link {
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}
.topbar-social-link:hover {
  background: var(--yellow);
  color: #831843;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .site-topbar {
    display: none; /* در موبایل برای سادگی پنهان می‌شود */
  }
}

/* ==========================================================================
   ۲. سربرگ اصلی با رنگ شاداب سرخابی و فرم دندانه‌دار ابری (Main Header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  box-shadow: 0 4px 20px rgba(190, 18, 60, 0.25);
}

.header-main {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* نشان کپسولی سفید لوگو - بدون هیچ متن تداخلی */
.brand-pill {
  background: #FFFFFF;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  text-decoration: none;
  max-width: 200px;
  transition: transform 0.2s ease;
}
.brand-pill:hover {
  transform: scale(1.03);
}
.brand-logo {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* منوی ناوبری سفید و تمیز */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  color: #FFFFFF !important;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-block;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255, 255, 255, 0.25);
  color: #FEF08A !important; /* زرد آفتابی */
  transform: translateY(-1px);
}
.nav-link-insta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* دکمه‌های اکشن سمت چپ */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-quote {
  background-color: var(--yellow);
  color: #831843 !important;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--shadow-yellow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition-bounce);
}
.btn-quote:hover {
  background-color: var(--yellow-hover);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6);
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* دندانه‌های زیبای ابری زیر هدر (دقیقاً مانند تصویر نمونه) */
.header-scallop-divider {
  width: 100%;
  height: 18px;
  display: block;
  line-height: 0;
  overflow: hidden;
  background-color: transparent;
}
.header-scallop-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* منوی واکنش‌گرا برای تبلت و لپ‌تاپ - بدون تداخل */
@media (max-width: 1150px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    right: -100%;
    width: 290px;
    height: calc(100vh - 76px);
    background-color: #FFFFFF;
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    gap: 8px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-link {
    color: var(--text-main) !important;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: #F8FAFC;
    font-size: 0.95rem;
  }
  .nav-link:hover, .nav-link.active {
    background: var(--hero-bg);
    color: var(--primary) !important;
  }
  .menu-toggle {
    display: flex;
  }
}
@media (max-width: 580px) {
  .btn-quote {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .brand-pill {
    padding: 4px 10px;
    max-width: 155px;
  }
  .brand-logo {
    height: 30px;
  }
}

/* ==========================================================================
   ۳. بنر اصلی شاد با حباب‌های گرد عکس‌دار و کنفتی‌های رنگی (Hero Section)
   دقیقاً منطبق بر تصویر ۲ نمونه ارسالی
   ========================================================================== */
.hero-kid-style {
  position: relative;
  background: var(--hero-bg);
  padding: 60px 0 90px;
  overflow: hidden;
}

.hero-header-box {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-block;
  color: var(--green);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.hero-kid-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 14px;
}
.hero-kid-title .text-cyan {
  color: var(--cyan);
}

.hero-kid-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 24px;
}

.btn-quote-lg {
  padding: 14px 34px;
  font-size: 1.05rem;
  font-weight: 800;
}

/* کانتینر ۴ حباب گرد عکس‌دار با فریم‌های رنگی ضخیم (دقیقاً مثل تصویر ۲) */
.hero-bubbles-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.photo-bubble {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #FFFFFF;
}
.photo-bubble:hover {
  transform: translateY(-10px) scale(1.06);
}
.photo-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* حاشیه حباب‌ها طبق تصویر ۲ */
.bubble-orange {
  width: 180px;
  height: 180px;
  border: 7px solid var(--orange);
}
.bubble-pink {
  width: 180px;
  height: 180px;
  border: 7px solid #EC4899;
}
.bubble-cyan {
  width: 220px;
  height: 220px;
  border: 8px solid var(--cyan);
}
.bubble-yellow {
  width: 180px;
  height: 180px;
  border: 7px solid var(--yellow);
}

.bubble-tag {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* کنفتی‌های رنگی معلق در بک‌گراند (Polka Dots) */
.confetti-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.dot-yellow-1 { width: 34px; height: 34px; background: var(--yellow); top: 10%; left: 8%; opacity: 0.9; }
.dot-purple-1 { width: 22px; height: 22px; background: var(--purple); top: 20%; left: 22%; opacity: 0.85; }
.dot-pink-1   { width: 26px; height: 26px; background: var(--coral); bottom: 25%; left: 6%; opacity: 0.9; }
.dot-cyan-1   { width: 18px; height: 18px; background: var(--cyan); bottom: 35%; left: 30%; opacity: 0.8; }
.dot-yellow-2 { width: 32px; height: 32px; background: var(--yellow); top: 14%; right: 10%; opacity: 0.9; }
.dot-red-2    { width: 22px; height: 22px; background: var(--header-bg); bottom: 28%; right: 7%; opacity: 0.85; }
.dot-green-2  { width: 20px; height: 20px; background: var(--green); top: 38%; right: 26%; opacity: 0.8; }

/* دیوایدر ابری سفید رنگ انتهای بنر اصلی */
.cloud-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
}
.cloud-divider-bottom svg {
  display: block;
  width: 100%;
  height: 50px;
}

@media (max-width: 900px) {
  .hero-kid-title { font-size: 2.1rem; }
  .photo-bubble { width: 140px; height: 140px; }
  .bubble-cyan { width: 165px; height: 165px; }
}
@media (max-width: 580px) {
  .hero-kid-title { font-size: 1.65rem; }
  .hero-kid-desc { font-size: 0.92rem; }
  .photo-bubble { width: 130px; height: 130px; }
  .bubble-cyan { width: 140px; height: 140px; }
  .hero-bubbles-wrapper { gap: 14px; }
}

/* ==========================================================================
   ۴. بخش امکانات و پایه‌ریزی مستحکم (Services & Features)
   دقیقاً مشابه بخش دوم تصویر ۲
   ========================================================================== */
.section-kid-services {
  padding: 70px 0 90px;
  background: var(--bg-white);
  position: relative;
}

.service-header-box {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
}
.service-kicker {
  font-size: 0.9rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.service-main-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
}
.service-main-title .text-cyan {
  color: var(--cyan);
}

.kid-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 992px) {
  .kid-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .kid-services-grid { grid-template-columns: 1fr; }
}

.kid-service-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid #F1F5F9;
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
}
.kid-service-card:hover {
  transform: translateY(-8px);
  border-color: var(--yellow);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
.kid-card-img-box {
  height: 220px;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0;
}
.kid-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.kid-service-card:hover .kid-card-img-box img {
  transform: scale(1.08);
}

.kid-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.kid-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}
.kid-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}
.kid-learn-more {
  color: #D97706;
  font-weight: 800;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}
.kid-learn-more:hover {
  color: var(--primary);
}

/* ==========================================================================
   ۵. بخش کادر و معلمان دبستان (Staff & Teachers)
   اسامی و سمت‌های دقیق ارسالی کاربر با المان‌های شاداب مدرسه‌ای
   ========================================================================== */
.section-teachers-kid {
  padding: 85px 0;
  background: var(--bg-cream);
  position: relative;
  border-top: 2px dashed #FDE68A;
  border-bottom: 2px dashed #FDE68A;
}

.teachers-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 45px;
}
.filter-pill {
  background: #FFFFFF;
  border: 2px solid #FDE68A;
  color: #78350F;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}
.filter-pill:hover, .filter-pill.active {
  background: var(--yellow);
  color: #831843;
  border-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.teachers-grid-kid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) {
  .teachers-grid-kid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .teachers-grid-kid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
  .teachers-grid-kid { grid-template-columns: 1fr; }
}

.teacher-card-kid {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 2px solid #FEF3C7;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}
.teacher-card-kid:hover {
  transform: translateY(-8px);
  border-color: var(--yellow);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.18);
}

/* آیکون کارتونی و نماد تدریس به جای تصویر شخصی */
.teacher-emblem-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}
.teacher-card-kid:hover .teacher-emblem-circle {
  transform: scale(1.1) rotate(6deg);
}

.emblem-gold   { background: #FEF3C7; border: 4px solid var(--yellow); }
.emblem-rose   { background: #FFE4E6; border: 4px solid #F43F5E; }
.emblem-cyan   { background: #E0F2FE; border: 4px solid var(--cyan); }
.emblem-green  { background: #D1FAE5; border: 4px solid var(--green); }
.emblem-purple { background: #EDE9FE; border: 4px solid var(--purple); }
.emblem-orange { background: #FFEDD5; border: 4px solid var(--orange); }

.teacher-name-kid {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}
.teacher-role-badge {
  display: inline-block;
  background: var(--hero-bg);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.teacher-desc-kid {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   ۶. بخش اینستاگرام، فرم پیش‌ثبت‌نام و فوتر
   ========================================================================== */
.section-instagram-kid {
  padding: 85px 0;
  background: #FFFFFF;
}

.insta-grid-kid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .insta-grid-kid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .insta-grid-kid { grid-template-columns: 1fr; }
}

.insta-card-kid {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  border: 3px solid #FEF3C7;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: block;
}
.insta-card-kid:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.2);
}
.insta-card-kid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.insta-card-kid:hover img {
  transform: scale(1.08);
}
.insta-overlay-kid {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.insta-card-kid:hover .insta-overlay-kid {
  opacity: 1;
}

/* فوتر سایت همرنگ با هدر سرخابی پرانرژی */
.site-footer-kid {
  background: var(--header-bg);
  color: #FFFFFF;
  padding: 60px 0 30px;
  position: relative;
}
.footer-scallop-top {
  position: absolute;
  top: -18px;
  left: 0;
  width: 100%;
  height: 18px;
  line-height: 0;
  overflow: hidden;
}
.footer-scallop-top svg {
  width: 100%;
  height: 100%;
  display: block;
}
.footer-grid-kid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .footer-grid-kid { grid-template-columns: 1fr; gap: 30px; }
}
.footer-bottom-kid {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}


/* ==========================================================================
   المان‌های شاد، زرق و برق و انیمیشن‌های کودکانه (Sparkles & School Doodles)
   ========================================================================== */

/* انیمیشن درخشش و چشمک‌زدن ستاره‌ها (Glitter Sparkles) */
@keyframes sparkleTwinkle {
  0%, 100% {
    transform: scale(0.7) rotate(0deg);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.3) rotate(180deg);
    opacity: 1;
    filter: drop-shadow(0 0 10px #FBBF24);
  }
}

/* انیمیشن شناور بودن بادکنک‌ها و المان‌ها */
@keyframes balloonFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(5deg);
  }
}

/* افکت موج براق روی دکمه‌ها (Golden Shimmer Sweep) */
@keyframes buttonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.btn-shimmer {
  position: relative;
  background: linear-gradient(90deg, #FBBF24 0%, #FEF08A 25%, #FBBF24 50%, #F59E0B 75%, #FBBF24 100%) !important;
  background-size: 200% auto !important;
  animation: buttonShimmer 3.5s linear infinite !important;
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.6) !important;
  border: 2px solid #FFFBEB !important;
}

/* ستاره‌های طلایی چشمک‌زن */
.sparkle-star {
  display: inline-block;
  animation: sparkleTwinkle 2.5s ease-in-out infinite;
  color: #FBBF24;
  vertical-align: middle;
}
.sparkle-delay-1 { animation-delay: 0.5s; }
.sparkle-delay-2 { animation-delay: 1.2s; }
.sparkle-delay-3 { animation-delay: 1.8s; }

/* المان بادکنک کارتونی شناور */
.floating-balloon {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  animation: balloonFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}
.balloon-left {
  top: 15%;
  right: 5%;
  width: 58px;
  height: auto;
}
.balloon-right {
  top: 25%;
  left: 6%;
  width: 52px;
  height: auto;
  animation-delay: 1.5s;
}

/* اتوبوس مدرسه زرد کارتونی */
.school-bus-doodle {
  position: absolute;
  bottom: 25px;
  left: 3%;
  width: 72px;
  height: auto;
  pointer-events: none;
  z-index: 4;
  animation: balloonFloat 6s ease-in-out infinite;
  animation-delay: 0.8s;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
}

/* شبکه ۱۰ تایی پست‌های اینستاگرام */
.insta-grid-10 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 36px;
}
@media (max-width: 1200px) {
  .insta-grid-10 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 900px) {
  .insta-grid-10 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .insta-grid-10 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 420px) {
  .insta-grid-10 { grid-template-columns: 1fr; }
}

.insta-card-post {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid #FEF3C7;
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.insta-card-post:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #E11D48;
  box-shadow: 0 16px 32px rgba(225, 29, 72, 0.22);
}

.insta-post-img-box {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.insta-post-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.insta-card-post:hover .insta-post-img-box img {
  transform: scale(1.1);
}

.insta-post-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(225, 29, 72, 0.9);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.insta-post-content {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #FFFFFF;
}

.insta-post-text {
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 10px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insta-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #E2E8F0;
  padding-top: 8px;
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 700;
}
.insta-post-likes {
  color: #E11D48;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
