/* استایل پایه پروژه هنرستان پویندگان */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');
body {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  color: #222;
  margin: 0;
  padding: 0;
  direction: rtl;
  /* مدرن: گرادینت زاویه‌دار و پس‌زمینه پویا */
  min-height: 100vh;
  background: linear-gradient(120deg, #e0e7ff 0%, #f0fdfa 40%, #bae6fd 100%);
  position: relative;
  overflow-x: hidden;
}

/* بکگراند بلوری مدرن */
.background-blobs {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.background-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  animation: blobMove 18s ease-in-out infinite alternate;
  mix-blend-mode: lighten;
  transition: opacity 0.7s;
}
.background-blob.blob1 {
  width: 420px; height: 420px;
  background: linear-gradient(135deg, #38bdf8 60%, #2563eb 100%);
  top: -120px; right: -100px;
  animation-delay: 0s;
}
.background-blob.blob2 {
  width: 320px; height: 320px;
  background: linear-gradient(135deg, #a5b4fc 60%, #38bdf8 100%);
  bottom: -100px; left: -80px;
  animation-delay: 4s;
}
.background-blob.blob3 {
  width: 220px; height: 220px;
  background: linear-gradient(135deg, #f0fdfa 60%, #bae6fd 100%);
  top: 40%; left: 10%;
  animation-delay: 8s;
}
/* Blob جدید با رنگ‌های متفاوت */
.background-blob.blob4 {
  width: 300px; height: 300px;
  background: linear-gradient(135deg, #f472b6 60%, #a5b4fc 100%);
  top: 60%; right: 8%;
  animation-delay: 12s;
}
.background-blob.blob5 {
  width: 180px; height: 180px;
  background: linear-gradient(135deg, #fbbf24 60%, #38bdf8 100%);
  bottom: 10%; left: 40%;
  animation-delay: 16s;
}
@keyframes blobMove {
  0%   { transform: scale(1) translateY(0) translateX(0) rotate(0deg); }
  30%  { transform: scale(1.12) translateY(40px) translateX(60px) rotate(8deg); }
  60%  { transform: scale(1.08) translateY(-30px) translateX(-40px) rotate(-6deg); }
  100% { transform: scale(1) translateY(0) translateX(0) rotate(0deg); }
}

/* نویز ملایم روی بکگراند */
.background-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.13;
  background: url('data:image/svg+xml;utf8,<svg width="200" height="200" viewBox="0 0 200 200" fill="none" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="200" height="200" filter="url(%23noiseFilter)"/></svg>');
  background-size: 220px 220px;
}

/* اطمینان از اینکه محتوای اصلی بالای بکگراند قرار می‌گیرد */
body > *:not(.background-blobs) {
  position: relative;
  z-index: 1;
}
:root {
  --primary: #2563eb;
  --secondary: #1e293b;
  --accent: #38bdf8;
  --bg: #f7fafd;
  --radius: 16px;
}
/* سایر استایل‌ها بعداً اضافه می‌شود */

/* هدر و منو */
.main-header {
  background: var(--primary);
  box-shadow: 0 2px 12px #0001;
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0;
  animation: fadeDown 1.1s cubic-bezier(.4,2,.6,1);
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: none; }
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto;
  padding: 0.7rem 1.5rem 0.7rem 1.5rem;
  min-height: 64px;
  z-index: 200;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.4rem;
  color: #fff;
  font-weight: bold;
  letter-spacing: -1px;
}
.logo img {
  border-radius: 10px;
  background: #fff;
  padding: 2px 4px;
  box-shadow: 0 2px 8px #0002;
  height: 48px;
  width: auto;
  margin-left: 0.5rem;
  transition: transform 0.22s, box-shadow 0.22s;
}
.logo img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 0 16px #38bdf8cc, 0 2px 8px #0002;
}
.nav-links {
  display: flex;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  position: relative;
  z-index: 999999 !important;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  font-size: 1.05rem;
  display: block;
  animation: fadeInLink 1.1s cubic-bezier(.4,2,.6,1);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.22s;
}
@keyframes fadeInLink {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
.nav-links a:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px #38bdf822;
  transform: scale(1.06);
}
.nav-links a.active {
  box-shadow: 0 2px 12px #38bdf822;
  transform: scale(1.06);
}

/* استایل‌های منوی کشویی */
/* حل مشکل z-index و موقعیت منو */
header, nav {
  position: relative;
  z-index: 200;
}

/* اطمینان از اینکه منوها روی همه چیز باشند */
.dropdown-menu,
.nested-menu {
  z-index: 99999 !important;
  position: absolute !important;
  pointer-events: auto !important;
}

/* اطمینان از اینکه لینک‌ها قابل کلیک باشند */
.dropdown-menu a,
.nested-menu a {
  position: relative !important;
  z-index: 9999999 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* اطمینان از اینکه همه المان‌های منو روی همه چیز باشند */
.dropdown-menu li,
.nested-menu li {
  position: relative !important;
  z-index: 9999999 !important;
  pointer-events: auto !important;
}

/* اطمینان از اینکه منوها روی همه المان‌های صفحه باشند */
.dropdown-menu,
.nested-menu {
  z-index: 999999 !important;
  position: absolute !important;
  pointer-events: auto !important;
  transform: translateZ(0) !important;
}

/* حل مشکل stacking context */
.main-header {
  position: relative !important;
  z-index: 999999 !important;
  transform: translateZ(0) !important;
}

.navbar {
  position: relative !important;
  z-index: 999999 !important;
  transform: translateZ(0) !important;
}

.nav-links {
  position: relative !important;
  z-index: 999999 !important;
  transform: translateZ(0) !important;
}

/* راه‌حل نهایی برای مشکل z-index */
.dropdown-menu,
.nested-menu {
  z-index: 999999 !important;
  position: absolute !important;
  pointer-events: auto !important;
  transform: translateZ(0) !important;
  isolation: isolate !important;
}

/* اطمینان از اینکه منوها روی همه چیز باشند */
.dropdown-menu,
.nested-menu {
  z-index: 999999 !important;
  position: absolute !important;
  pointer-events: auto !important;
  transform: translateZ(0) !important;
  isolation: isolate !important;
}

/* حل مشکل stacking context */
.main-header {
  position: relative !important;
  z-index: 999999 !important;
  transform: translateZ(0) !important;
}

.navbar {
  position: relative !important;
  z-index: 999999 !important;
  transform: translateZ(0) !important;
}

.nav-links {
  position: relative !important;
  z-index: 999999 !important;
  transform: translateZ(0) !important;
}

/* اطمینان از اینکه منوها روی همه چیز باشند */
.dropdown-menu,
.nested-menu {
  z-index: 999999 !important;
  position: absolute !important;
  pointer-events: auto !important;
  transform: translateZ(0) !important;
  isolation: isolate !important;
}

.dropdown {
  position: relative;
  z-index: 999999 !important;
}

.dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  margin-right: 0.3rem;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute !important;
  top: 100%;
  right: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  z-index: 999999 !important;
  pointer-events: auto !important;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

.dropdown-menu li {
  list-style: none;
  margin: 0;
}

.dropdown-menu a {
  color: #374151 !important;
  padding: 0.75rem 1.25rem !important;
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  background: transparent;
  margin: 0;
}

.dropdown-menu a:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dropdown-menu a i {
  width: 16px;
  text-align: center;
  font-size: 0.9rem;
}

/* منوی تو در تو */
.nested-dropdown {
  position: relative;
  z-index: 9999999 !important;
}

.nested-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nested-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  margin-right: 0;
}

.nested-dropdown:hover .nested-arrow {
  transform: rotate(-90deg);
}

.nested-menu {
  position: absolute !important;
  top: 0;
  right: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  margin-right: 0.5rem;
  z-index: 9999999 !important;
  pointer-events: auto !important;
}

.nested-dropdown:hover .nested-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.nested-menu::before {
  content: '';
  position: absolute;
  top: 15px;
  right: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #ffffff;
  filter: drop-shadow(2px 0 4px rgba(0, 0, 0, 0.1));
}

.nested-menu a {
  color: #374151 !important;
  padding: 0.75rem 1.25rem !important;
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  background: transparent;
  margin: 0;
}

.nested-menu a:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.nested-menu a i {
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
}

/* انیمیشن‌های اضافی */
.dropdown-menu li {
  animation: slideInRight 0.3s ease forwards;
  opacity: 0;
  transform: translateX(20px);
}

.dropdown:hover .dropdown-menu li:nth-child(1) { animation-delay: 0.1s; }
.dropdown:hover .dropdown-menu li:nth-child(2) { animation-delay: 0.15s; }
.dropdown:hover .dropdown-menu li:nth-child(3) { animation-delay: 0.2s; }
.dropdown:hover .dropdown-menu li:nth-child(4) { animation-delay: 0.25s; }
.dropdown:hover .dropdown-menu li:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ریسپانسیو برای منوهای کشویی */
@media (max-width: 900px) {
  .dropdown-menu {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    border-radius: 8px;
    padding: 0.5rem;
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu::before {
    display: block;
  }
  
  .nested-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    margin-right: 1rem;
    margin-top: 0.5rem;
    display: none;
  }
  
  .nested-dropdown.active .nested-menu {
    display: block;
  }
  
  .nested-menu::before {
    display: none;
  }
  
  .dropdown-menu a,
  .nested-menu a {
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem;
  }
  
  .dropdown-menu a:hover,
  .nested-menu a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: none;
  }
  
  /* نمایش منوی همبرگری */
  .hamburger-menu {
    display: flex;
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100001;
    padding: 2rem;
    gap: 2rem;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    width: 100%;
    display: block;
  }
  
  .dropdown-toggle {
    justify-content: center;
  }
  
  .dropdown-arrow {
    display: block;
  }
}

/* اسلایدر */
.hero {
  padding: 0;
  margin: 2rem auto;
  max-width: 1200px;
  box-shadow: none;
  background: none;
}
.hero-content {
  flex: 1 1 320px;
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-content h1 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--secondary);
}
.mission {
  display: inline-block;
  margin-top: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
}
.hero-slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 8px 32px #2563eb33;
  transform-style: preserve-3d;
  perspective: 1000px;
  z-index: 1 !important;
}
.slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}
.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  z-index: 1;
}
.slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.5) 100%);
  z-index: 2;
  border-radius: 24px;
}
.slide .slide-content {
  position: absolute;
  bottom: 40px;
  right: 40px;
  color: #fff;
  z-index: 3;
  transform: translateZ(50px);
}
.slide .slide-content h1, .slide .slide-content p {
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  opacity: 0;
  color: #fff;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.slide.active .slide-content h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
.slide.active .slide-content p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.2);
  z-index: 10;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 5s linear;
}
.slide.active .progress-bar {
  width: 100%;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}
.slider-btn:hover {
  background: var(--primary);
  color: #fff;
}
.slider-btn.prev { right: 10px; }
.slider-btn.next { left: 10px; }

/* اعلان‌ها */
.announcements {
  max-width: 900px;
  margin: 2rem auto 1rem auto;
  background: #e0e7ef;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px #2563eb11;
  padding: 1.2rem 2rem;
}
.announcements h2 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}
.announcements ul {
  margin: 0;
  padding: 0 1.2rem;
  list-style: disc inside;
  color: var(--secondary);
  font-size: 1.05rem;
}

/* درباره */
.about {
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px #2563eb11;
  padding: 1.5rem 2rem;
}
.about h2 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}
.about p {
  color: var(--secondary);
  font-size: 1.1rem;
}

/* فوتر */
footer {
  background: var(--secondary);
  color: #fff;
  text-align: center;
  padding: 1rem 0 0.5rem 0;
  font-size: 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 2rem;
  animation: fadeUp 1.1s cubic-bezier(.4,2,.6,1);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.footer-logo img {
  transition: box-shadow 0.22s, transform 0.22s;
}
.footer-logo img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 0 16px #38bdf8cc, 0 2px 8px #0002;
}
.footer-social a {
  transition: box-shadow 0.22s, transform 0.22s, background 0.22s, color 0.22s;
}
.footer-social a:hover {
  box-shadow: 0 0 10px #38bdf8cc;
  transform: scale(1.13) rotate(-6deg);
}

/* ریسپانسیو */
@media (max-width: 900px) {
  .navbar { flex-direction: column; gap: 0.5rem; align-items: stretch; }
  .logo { justify-content: center; margin-bottom: 0.5rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .hero { flex-direction: column; gap: 1.5rem; }
  .hero-slider { max-width: 100%; min-width: 220px; height: 180px; }
}
@media (max-width: 600px) {
  .navbar { padding: 0.5rem 0.5rem; }
  .logo { font-size: 1.1rem; }
  .logo img { height: 36px; }
  .nav-links { gap: 0.3rem; }
  .nav-links a { font-size: 0.95rem; padding: 0.25rem 0.7rem; }
  .hero, .about, .announcements { padding: 1rem; }
  .about, .announcements { max-width: 98vw; }
  .hero-content h1 { font-size: 1.3rem; }
  .mission { font-size: 0.9rem; }
  .hero-slider { height: 320px; }
  .slide .slide-content { right: 20px; bottom: 20px; }
  .slide .slide-content h1 { font-size: 1.4rem; }
}

/* --------------------
   صفحات داخلی (مثل رشته کامپیوتر)
   -------------------- */

.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.computer-hero {
  position: relative;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-image: url('../images/logo.png'); /* تصویر پس‌زمینه جذاب */
  background-size: 30%;
  background-position: center;
  margin-bottom: 3rem;
  box-shadow: 0 10px 40px #2563eb44;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  opacity: 0.8;
  z-index: 1;
}

.computer-hero .hero-content {
  position: relative;
  z-index: 0;
}

.computer-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.computer-hero p {
  font-size: 1.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.page-section {
  margin-bottom: 4rem;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.8;
}

/* بخش درس‌ها */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: right;
}

.subject-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 25px rgba(0,0,0,0.05);
  border: 1px solid #eef;
  transition: transform 0.3s, box-shadow 0.3s;
}

.subject-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.15);
}

.subject-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}

.subject-card h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

/* بخش مسیر شغلی */
.career-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.career-item {
  background: linear-gradient(135deg, var(--primary), #1e3a8a);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.career-item:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* بخش تایم‌لاین */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem 0;
  padding-left: 50px !important;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 3px;
  background-color: #e0e7ef;
  transform: translateX(50%);
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}
.timeline-item:nth-child(odd) {
  right: 0;
  padding-left: 3rem;
  text-align: left;
}
.timeline-item:nth-child(even) {
  right: 50%;
  padding-right: 3rem;
  text-align: right;
}
.timeline-item::after {
  content: '';
  position: absolute;
  top: 10px;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border: 4px solid var(--accent);
  border-radius: 50%;
  z-index: 1;
}
.timeline-item:nth-child(odd)::after {
  right: -9px;
  transform: translateX(-50%);
}
.timeline-item:nth-child(even)::after {
  left: -9px;
  transform: translateX(50%);
}
.timeline-content {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 25px rgba(0,0,0,0.05);
  position: relative;
}
.timeline-content h3 {
  color: var(--primary);
}

/* بخش ابزارها و فناوری‌ها */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.tech-item {
  height: 80px;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.tech-item:hover {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}
.tech-item img {
  max-height: 48px;
  max-width: 48px;
}

/* گالری */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.4s, box-shadow 0.4s;
}
.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* سوالات متداول */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: right;
  padding: 2.5rem 1.2rem 2.5rem 1.2rem;
}
.faq-item {
  background: linear-gradient(120deg, #e0e7ff 0%, #f0fdfa 60%, #bae6fd 100%);
  border-radius: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px #2563eb22, 0 1.5px 8px #38bdf822;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}
.faq-item:hover {
  box-shadow: 0 12px 36px #2563eb33, 0 2px 12px #38bdf833;
  transform: translateY(-2px) scale(1.015);
}
.faq-question {
  padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--secondary);
  position: relative;
  transition: background 0.22s, color 0.22s;
  background: transparent;
  z-index: 1;
}
.faq-item.active .faq-question {
  background: linear-gradient(90deg, #bae6fd 60%, #e0e7ff 100%);
  color: var(--primary);
}
.faq-question:hover {
  background: linear-gradient(90deg, #f0fdfa 60%, #bae6fd 100%);
  color: #2563eb;
}
.faq-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1.1rem;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 2px 8px #2563eb22;
  transition: box-shadow 0.22s, transform 0.22s;
}
.faq-item.active .faq-icon {
  background: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
  box-shadow: 0 0 0 6px #bae6fd55;
  transform: scale(1.08) rotate(-3deg);
}
.faq-title {
  flex: 1;
  margin-left: 0.7rem;
}
.faq-pulse {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  margin-left: 1.1rem;
  opacity: 0;
  pointer-events: none;
  position: relative;
  z-index: 2;
}
.faq-item.active .faq-pulse {
  opacity: 1;
  animation: pulse-faq 1.1s cubic-bezier(.4,2,.6,1) 1;
}
@keyframes pulse-faq {
  0% { box-shadow: 0 0 0 0 #38bdf855, 0 0 0 0 #6366f155; opacity: 1; }
  70% { box-shadow: 0 0 0 12px #38bdf822, 0 0 0 24px #6366f111; opacity: 0.7; }
  100% { box-shadow: 0 0 0 0 #38bdf800, 0 0 0 0 #6366f100; opacity: 0; }
}
.faq-question i {
  transition: transform 0.3s, color 0.22s;
  margin-right: 0.7rem;
  font-size: 1.1rem;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(.4,2,.6,1), opacity 0.4s cubic-bezier(.4,2,.6,1);
  will-change: max-height, opacity;
  background: transparent;
}
.faq-item.active .faq-answer {
  opacity: 1;
  max-height: 400px;
  animation: fadeInFaq 0.7s cubic-bezier(.4,2,.6,1);
}
@keyframes fadeInFaq {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.faq-answer p {
  padding: 0 2.2rem 1.5rem 2.2rem;
  margin: 0;
  line-height: 1.8;
  color: #444;
  font-size: 1.08rem;
}

/* --------------------
   انیمیشن‌ها
   -------------------- */

.animate-on-load {
  animation: fadeInDown 1s ease-out forwards;
}

.computer-hero p.animate-on-load {
  animation-delay: 0.3s;
  opacity: 0; /* Start hidden */
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* افزودن تاخیر برای کارت‌ها */
.subject-card.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.subject-card.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.subject-card.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.subject-card.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.subject-card.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* =================================
   Styles for Computer Page
   ================================= */

.computer-page {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-computer {
  position: relative;
  height: 60vh;
  background: url('../images/logo.png') no-repeat center center/cover;
  background-size: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(29, 38, 113, 0.7);
  background-image: linear-gradient(45deg, rgba(29, 38, 113, 0.7) 0%, rgba(10, 117, 230, 0.7) 100%);
 
}

.hero-content {
  position: relative;
  z-index: 0;
  animation: slideInFromTop 1s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  color: black;
}

.hero-content p {
  font-size: 2.5rem;
  font-weight: 500;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.intro-computer, .subfields, .skills, .career-paths, .why-us {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.2s;
}

.intro-computer {
  background-color: #f9f9f9;
}

.computer-page h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #1d2671;
}

.computer-page h2 .fa {
  margin-right: 1rem;
  color: #0a75e6;
}

.intro-computer p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
}

.subfields {
    background-color: #fff;
}

.subfields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.subfield-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subfield-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(29, 38, 113, 0.2);
}

.subfield-card .fa {
  font-size: 3rem;
  color: #0a75e6;
  margin-bottom: 1rem;
}

.subfield-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1d2671;
}

.skills {
  background-color: #f9f9f9;
}

.skills ul {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
  text-align: right;
}

.skills li {
  font-size: 1.2rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.skills li:hover {
    transform: translateX(-5px);
}

.skills .fa-check-circle {
  color: #28a745;
  margin-left: 1rem;
  font-size: 1.5rem;
}

.career-paths {
    background-color: #fff;
}

.career-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.career-item {
  background-color: #eaf4ff;
  color: #1d2671;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.career-item:hover {
  background-color: #0a75e6;
  color: #fff;
  transform: scale(1.05);
  cursor: default;
}

.why-us {
    background-color: #1d2671;
    color: #fff;
    border-radius: 10px;
    margin: 2rem auto;
}

.why-us h2 {
    color: #fff;
}

.why-us h2 .fa {
    color: #f39c12;
}

.why-us p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
}


/* Animations */
@keyframes slideInFromTop {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   Teachers Page - Modern Card Style
   ===================== */
.teachers-section {
  max-width: 1200px;
  margin: 3rem auto 2rem auto;
  padding: 2.5rem 1rem 2rem 1rem;
  background: rgba(255,255,255,0.7);
  border-radius: 24px;
  box-shadow: 0 8px 40px #2563eb22, 0 1.5px 8px #38bdf822;
  backdrop-filter: blur(2px);
}
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.teacher-card {
  background: rgba(255,255,255,0.55);
  border-radius: 22px;
  box-shadow: 0 4px 32px #2563eb18, 0 1.5px 8px #38bdf822;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.28s, transform 0.22s, background 0.22s;
  position: relative;
  min-height: 550px;
  border: 1.5px solid #e0e7ef;
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.teacher-card:hover {
  box-shadow: 0 12px 48px #38bdf866, 0 2px 12px #2563eb22;
  transform: translateY(-10px) scale(1.035);
  background: rgba(255,255,255,0.85);
}
.teacher-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 18px #2563eb22, 0 0 0 6px #fff8;
  margin-bottom: 1.2rem;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #38bdf8;
  transition: box-shadow 0.22s, border 0.22s;
}
.teacher-card:hover .teacher-photo {
  box-shadow: 0 8px 32px #38bdf866, 0 0 0 8px #e0e7efcc;
  border: 2.5px solid #2563eb;
}
.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.teacher-info h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.teacher-specialty {
  color: #0a75e6;
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.teacher-summary {
  color: #444;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.teacher-details {
  width: 100%;
  text-align: right;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e7ef;
}

.teacher-details p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.teacher-details strong {
  color: #2563eb;
  font-weight: 600;
}

.teacher-details ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.teacher-details li {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-right: 1rem;
  position: relative;
  line-height: 1.5;
}

.teacher-details li::before {
  content: "•";
  color: #38bdf8;
  font-weight: bold;
  position: absolute;
  right: 0;
  top: 0;
}


@media (max-width: 900px) {
  .teachers-section {
    padding: 1.5rem 0.2rem;
  }
  .teachers-grid {
    gap: 1.2rem;
  }
}
@media (max-width: 600px) {
  .teachers-section {
    padding: 1rem 0.2rem;
  }
  .teacher-card {
    min-height: 500px;
  }
  .teacher-details {
    font-size: 0.9rem;
  }
  .teacher-details li {
    font-size: 0.85rem;
  }
}

/* =====================
   News Page Hero Section
   ===================== */
.news-hero {
  position: relative;
  height: 38vh;
  min-height: 260px;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/logo.png') no-repeat center center/cover;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 8px 40px #2563eb22;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.news-hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(120deg, rgba(37,99,235,0.82) 0%, rgba(56,189,248,0.55) 100%);
  opacity: 0.88;
  z-index: 0;
}
.news-hero-content {
  position: relative;
  z-index: 0;
  text-align: center;
  color: #fff;
  width: 100%;
  padding: 2rem 1rem 1rem 1rem;
}
.news-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  text-shadow: 0 4px 18px #0005;
}
.news-hero-content p {
  font-size: 1.2rem;
  font-weight: 400;
  color: #e0e7ef;
  text-shadow: 0 2px 8px #0003;
  margin: 0 auto;
  max-width: 600px;
}
@media (max-width: 600px) {
  .news-hero {
    height: 22vh;
    min-height: 120px;
    border-radius: 0 0 18px 18px;
  }
  .news-hero-content h1 {
    font-size: 1.3rem;
  }
  .news-hero-content p {
    font-size: 0.98rem;
  }
}

/* Override hero overlay for better text visibility */
.hero-computer .hero-overlay {
  background-color: rgba(29, 38, 113, 0.3) !important;
  background-image: linear-gradient(45deg, rgba(29, 38, 113, 0.3) 0%, rgba(10, 117, 230, 0.3) 100%) !important;
}

.hero-computer .hero-content h1 {
  color: white !important;
  text-shadow: 10px 10px 18px rgba(0,0,0,0.8) !important;
}

.hero-computer .hero-content p {
  color: white !important;
  text-shadow: 10px 10px 18px rgba(0,0,0,0.8) !important;
}

.login-nav-item {
  margin-right: 0.2em;
  margin-left: 0.2em;
  display: flex;
  align-items: center;
}
.login-nav-btn {
  background: linear-gradient(100deg, #2563eb 0%, #38bdf8 100%);
  color: #fff !important;
  border-radius: 14px;
  padding: 0.55em 1.5em;
  font-weight: bold;
  font-size: 1.13rem;
  box-shadow: 0 4px 24px 0 #2563eb33, 0 1.5px 8px 0 #38bdf822;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: background 0.22s, box-shadow 0.22s, transform 0.18s;
  z-index: 10;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin: 0 0.5em;
}
.login-nav-btn .login-icon {
  display: flex;
  align-items: center;
  font-size: 1.25em;
  transition: transform 0.33s cubic-bezier(.4,2,.6,1);
}
.login-nav-btn .login-icon svg {
  width: 1.3em;
  height: 1.3em;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.2em;
}
.login-nav-btn:hover .login-icon {
  transform: scale(1.25) rotate(-10deg);
  filter: drop-shadow(0 0 8px #2563ebcc);
}
.login-nav-btn:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, #bae6fd 0%, #38bdf8 40%, transparent 80%);
  opacity: 0.13;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.22s;
}
.login-nav-btn:hover {
  background: linear-gradient(100deg, #38bdf8 0%, #2563eb 100%);
  box-shadow: 0 8px 32px 0 #2563eb44, 0 2px 12px 0 #38bdf822;
  transform: translateY(-2px) scale(1.045);
  text-decoration: none;
}
.login-nav-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px 0 #2563eb33;
}
.register-btn {
  background: linear-gradient(100deg, #a21caf 0%, #f472b6 100%);
  color: #fff !important;
  border-radius: 14px;
  margin-right: 0.5em;
  font-weight: bold;
  box-shadow: 0 4px 24px 0 #a21caf33, 0 1.5px 8px 0 #f472b633;
  transition: background 0.22s, box-shadow 0.22s, transform 0.18s;
}
.register-btn:hover {
  background: linear-gradient(100deg, #f472b6 0%, #a21caf 100%);
  box-shadow: 0 8px 32px 0 #a21caf44, 0 2px 12px 0 #f472b633;
  transform: translateY(-2px) scale(1.045);
}
.register-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px 0 #a21caf33;
}
@media (max-width: 900px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .login-nav-item {
    order: -1;
    margin-right: 0;
    margin-left: 0;
    width: 50%;
    justify-content: flex-start;
    margin-bottom: 0.3em;
  }
  .login-nav-btn, .register-btn {
    width: 100%;
    justify-content: flex-start;
    font-size: 1.05rem;
    padding: 0.5em 1em;
  }
}

.teacher-card, .news-card {
  perspective: 900px;
  will-change: transform, box-shadow;
}
.teacher-card:hover, .news-card:hover {
  transform: translateY(-14px) scale(1.045) rotateY(7deg) skewY(-1deg);
  box-shadow: 0 18px 60px 0 #2563eb44, 0 2px 12px #38bdf822;
  z-index: 2;
  background: rgba(255,255,255,0.97) !important;
  transition: transform 0.33s cubic-bezier(.4,2,.6,1), box-shadow 0.33s, background 0.22s;
}
.teacher-card:active, .news-card:active {
  transform: scale(0.98) rotateY(-2deg);
  box-shadow: 0 2px 8px #2563eb33;
}

.about, .announcements, .register-container, .login-container, .faq-container, .teachers-section, .news-card, .welcome-card {
  background: linear-gradient(120deg, #e0e7ff 0%, #f0fdfa 60%, #bae6fd 100%) !important;
  border-radius: 22px !important;
  box-shadow: 0 8px 32px #2563eb22, 0 1.5px 8px #38bdf822;
}

@media (hover: hover) and (pointer: fine) {
  .dropdown:hover > .dropdown-menu,
  .nested-dropdown:hover > .nested-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

.news-card, .teacher-card, .teachers-grid, .teachers-section, main, .page-container {
  z-index: 1 !important;
  position: static !important;
}

.dropdown-menu, .nested-menu {
  z-index: 99999 !important;
  position: fixed !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  background: #fff;
  box-shadow: 0 8px 32px #2563eb22, 0 1.5px 8px #38bdf822;
}

.dropdown, .nested-dropdown {
  position: relative !important;
}

.background-blobs,
.background-blob,
.background-noise {
  z-index: 0 !important;
  pointer-events: none !important;
}

.main-footer {
  background: linear-gradient(120deg,#e0e7ff 0%,#f0fdfa 60%,#bae6fd 100%);
  padding: 2.2rem 0 1.2rem 0;
  margin-top: 3rem;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -2px 24px #2563eb11;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem 1.2rem;
}
.footer-info {
  flex: 2;
  min-width: 220px;
  color: #222;
  font-size: 1.08rem;
  line-height: 1.8;
}
.footer-info h3 {
  color: var(--primary);
  font-size: 1.18rem;
  margin-bottom: 0.7rem;
  font-weight: 800;
}
.footer-info p {
  margin: 0 0 0.7rem 0;
  color: #222;
  font-size: 1.01rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-info i {
  color: #2563eb;
  margin-left: 0.5rem;
}
.footer-info .footer-social {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.footer-info .footer-social a {
  font-size: 1.5rem;
  color: #2563eb;
  transition: color 0.2s;
}
.footer-info .footer-social a:hover {
  color: #e1306c;
}
.footer-map-card {
  max-width: 340px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px #2563eb11;
  padding: 1rem 1rem 0.7rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-map-title {
  font-size: 1.08rem;
  color: #2563eb;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-map-card iframe {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 2px 12px #2563eb11;
  width: 100%;
  height: 180px;
}
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    gap: 1.2rem;
    align-items: stretch;
  }
  .footer-map-card {
    max-width: 100%;
  }
}
.footer-copyright {
  text-align: center;
  color: #555;
  margin-top: 1.5rem;
  font-size: 0.98rem;
  padding-bottom: 0.5rem;
}

.register-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2.5rem 0 1.2rem 0;
  gap: 1.2rem;
  text-align: center;
}
.register-hero-graphic {
  background: linear-gradient(120deg,#e0e7ff 0%,#f0fdfa 60%,#bae6fd 100%);
  border-radius: 50%;
  box-shadow: 0 4px 32px #2563eb22;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.register-hero-title h1 {
  color: #2563eb;
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.register-hero-title p {
  color: #444;
  font-size: 1.08rem;
  margin: 0;
}
.register-container {
  max-width: 470px;
  margin: 2.5rem auto 2.5rem auto;
  background: linear-gradient(135deg, #e0e7ffcc 0%, #bae6fdcc 60%, #38bdf8cc 100%);
  border-radius: 32px;
  box-shadow: 0 12px 48px #2563eb33, 0 4px 32px #38bdf844, 0 1.5px 8px #38bdf822;
  padding: 3.2rem 2.5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  z-index: 2;
  border: 3px solid #38bdf8;
  backdrop-filter: blur(16px) saturate(1.5);
  transition: box-shadow 0.33s, border-color 0.28s, background 0.33s;
  animation: gradientMove 8s ease-in-out infinite alternate;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.register-container:hover {
  box-shadow: 0 20px 64px #2563eb55, 0 8px 40px #38bdf866;
  border-color: #2563eb;
  background: linear-gradient(120deg, #bae6fdcc 0%, #38bdf8cc 100%);
}
.form-group {
  position: relative;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 1.1rem 1.1rem 1.1rem 2.7rem;
  border: 2.5px solid #cbd5e1;
  border-radius: 18px;
  font-size: 1.18rem;
  background: rgba(255,255,255,0.75);
  transition: border 0.22s, box-shadow 0.22s, background 0.22s;
  outline: none;
  color: #1a237e;
  font-family: inherit;
  box-shadow: 0 2px 16px #38bdf811;
  font-weight: 500;
  letter-spacing: 0.2px;
  backdrop-filter: blur(2px);
}
.form-group input:focus,
.form-group select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 5px #bae6fd77, 0 2px 16px #38bdf822;
  background: #e0f2fecc;
}
.form-group label {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: #fff8;
  color: #2563eb;
  font-size: 1.13rem;
  font-weight: 600;
  padding: 0 0.7rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px #2563eb11;
  pointer-events: none;
  transition: 0.18s cubic-bezier(.4,2,.6,1);
  z-index: 2;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label {
  top: -1.1rem;
  right: 1.1rem;
  background: #e0e7ffcc;
  color: #38bdf8;
  font-size: 1.01rem;
  padding: 0 0.8rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px #38bdf822;
}
.toggle-password {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #38bdf8;
  font-size: 1.35rem;
  z-index: 3;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  background: #fff8;
  border-radius: 50%;
  padding: 0.18em 0.25em;
  box-shadow: 0 2px 8px #38bdf822;
}
.toggle-password:hover {
  color: #2563eb;
  background: #e0e7ffcc;
  box-shadow: 0 4px 16px #38bdf822;
}
.register-submit-btn {
  width: 100%;
  background: linear-gradient(100deg, #2563eb 0%, #38bdf8 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 1.2rem 0;
  font-size: 1.22rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 32px #2563eb33;
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.7px;
}
.register-submit-btn:active {
  animation: ripple 0.5s linear;
}
@keyframes ripple {
  0% { box-shadow: 0 0 0 0 #38bdf855; }
  100% { box-shadow: 0 0 0 20px #38bdf800; }
}
.register-submit-btn:hover {
  background: linear-gradient(100deg, #38bdf8 0%, #2563eb 100%);
  box-shadow: 0 16px 48px #2563eb44;
  transform: translateY(-2px) scale(1.07);
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.register-submit-btn {
  width: 100%;
  background: linear-gradient(100deg, #2563eb 0%, #38bdf8 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 1.1rem 0;
  font-size: 1.18rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 24px #2563eb33;
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}
.register-submit-btn:hover {
  background: linear-gradient(100deg, #38bdf8 0%, #2563eb 100%);
  box-shadow: 0 12px 40px #2563eb44;
  transform: translateY(-2px) scale(1.05);
}
.form-group input,
.form-group select {
  width: 95%;
  padding: 1rem 1.1rem 1rem 1.1rem;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1.13rem;
  background: #f7fafdcc;
  transition: border 0.22s, box-shadow 0.22s, background 0.22s;
  outline: none;
  color: #222;
  font-family: inherit;
  box-shadow: 0 2px 12px #38bdf811;
}
.form-group input:focus,
.form-group select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px #bae6fd99;
  background: #e0f2fecc;
}
.form-group label {
  font-size: 1.08rem;
  color: #2563eb;
  font-weight: 500;
  background: #fff8;
  padding: 0 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px #2563eb11;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label {
  top: -0.7rem;
  right: 0.7rem;
  background: #fff;
  color: #2563eb;
  font-size: 0.93rem;
  padding: 0 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px #2563eb11;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%232563eb" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: left 0.8rem center;
  background-size: 1.2em;
  padding-left: 2.2em;
}
.register-submit-btn {
  width: 100%;
  background: linear-gradient(100deg, #2563eb 0%, #38bdf8 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 0;
  font-size: 1.18rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 18px #2563eb33;
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
  position: relative;
  overflow: hidden;
}
.register-submit-btn:hover {
  background: linear-gradient(100deg, #38bdf8 0%, #2563eb 100%);
  box-shadow: 0 8px 32px #2563eb33;
  transform: translateY(-2px) scale(1.04);
}
.register-btn-icon svg {
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  margin-left: 0.2em;
}
.register-form-message {
  display: none;
  margin-top: 1.1rem;
  font-size: 1.08rem;
  font-weight: bold;
  text-align: center;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  animation: fadeIn 0.7s;
}
.register-form-message.success {
  background: #d1fae5;
  color: #047857;
  border: 1.5px solid #10b981;
}
.register-form-message.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1.5px solid #ef4444;
}
@media (max-width: 600px) {
  .register-container {
    padding: 1.2rem 0.5rem;
  }
  .register-hero-graphic svg {
    width: 70px;
    height: 70px;
  }
}

.register-closed-message, .login-closed-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff6f6;
  border: 1.5px solid #fecaca;
  border-radius: 14px;
  color: #b91c1c;
  font-size: 1.13rem;
  font-weight: bold;
  padding: 2.1rem 1.2rem 1.5rem 1.2rem;
  margin: 1.2rem 0 1.2rem 0;
  box-shadow: 0 2px 16px #fecaca33;
  text-align: center;
  animation: fadeIn 0.7s;
  min-height: 120px;
}
.register-closed-message svg, .login-closed-message svg {
  margin-bottom: 0.5em;
}

.unavailable-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,41,59,0.18);
  backdrop-filter: blur(6px) saturate(1.1);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s;
}
.unavailable-modal[style*="display: flex"] {
  display: flex !important;
}
.unavailable-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px #fecaca55;
  padding: 2.2rem 1.7rem 1.5rem 1.7rem;
  text-align: center;
  color: #b91c1c;
  font-size: 1.15rem;
  font-weight: bold;
  min-width: 270px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  animation: fadeIn 0.5s;
}
.unavailable-modal-close {
  margin-top: 0.7em;
  background: linear-gradient(100deg, #f87171 0%, #fbbf24 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.5em;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 12px #fecaca33;
  transition: background 0.18s, transform 0.16s;
}
.unavailable-modal-close:hover {
  background: linear-gradient(100deg, #fbbf24 0%, #f87171 100%);
  transform: scale(1.04);
}




.news-section {
  padding: 2.5rem 1.2rem 2.5rem 1.2rem;
  background: linear-gradient(120deg, #f0fdfa 0%, #e0e7ff 100%);
  border-radius: 22px;
  box-shadow: 0 4px 32px #2563eb11;
  margin-bottom: 2.5rem;
}
.news-section .section-title {
  font-size: 2rem;
  font-weight: bold;
  color: #2563eb;
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.7em;
  justify-content: center;
}
.news-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  padding: 1rem;
}
.news-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.08), 0 4px 20px rgba(56, 189, 248, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  width: 100%;
  min-height: 600px;
  margin: 0 auto;
  border: 1px solid rgba(224, 231, 255, 0.6);
  backdrop-filter: blur(10px);
}
.news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 6px 30px rgba(56, 189, 248, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1.02) saturate(1.05);
  position: relative;
}
.news-card:hover {
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15), 0 8px 32px rgba(56, 189, 248, 0.12);
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(37, 99, 235, 0.3);
}
.news-card:hover .news-image {
  filter: brightness(1.05) saturate(1.1);
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.2);
}
.news-content {
  padding: 2rem 1.8rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 1;
  position: relative;
}
.news-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
}
.news-date {
  font-size: 1rem;
  color: #38bdf8;
  margin-bottom: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-date::before {
  content: "📅";
  font-size: 0.9rem;
}
.news-desc {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.8;
  text-align: justify;
  flex: 1;
  overflow: visible;
}

@media (max-width: 900px) {
  .news-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
  }
  .news-card {
    min-height: 520px;
    border-radius: 20px;
  }
  .news-image {
    height: 180px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  .news-content {
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  }
  .news-title {
    font-size: 1.3rem;
  }
}
@media (max-width: 600px) {
  .news-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem;
  }
  .news-card {
    min-height: 320px;
    border-radius: 16px;
  }
  .news-image {
    height: 140px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
  .news-content {
    padding: 1.2rem 1rem 1rem 1rem;
  }
  .news-title {
    font-size: 1.2rem;
  }
  .news-desc {
    font-size: 1rem;
  }
}

.footer-social-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px #0001;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  object-fit: cover;
  vertical-align: middle;
}
.footer-social a:hover .footer-social-icon {
  transform: scale(1.13) rotate(-6deg);
  box-shadow: 0 0 10px #38bdf8cc;
  filter: brightness(1.1) saturate(1.2);
}

/* فرم تماس زیباتر */
.contact-form__input, .contact-form__textarea {
  width: 90%;
  font-family: inherit;
  font-size: 1.08rem;
  padding: 0.95rem 1.1rem;
  border: 1.7px solid #e0e7ff;
  border-radius: 1.1rem;
  outline: none;
  background: #f8fafc;
  margin-bottom: 1.1rem;
  transition: border 0.22s, box-shadow 0.22s;
  box-shadow: 0 2px 8px #38bdf822;
  resize: none;
}
.contact-form__input:focus, .contact-form__textarea:focus {
  border: 1.7px solid #6366f1;
  box-shadow: 0 0 0 3px #bae6fd55;
  background: #fff;
}
.contact-form__button {
  width: 100%;
  background: linear-gradient(90deg,#6366f1 0%,#38bdf8 100%);
  color: #fff;
  border: none;
  border-radius: 1.1rem;
  padding: 1rem 0;
  font-size: 1.13rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 0.5rem;
  box-shadow: 0 2px 12px #38bdf822;
  transition: background 0.22s, box-shadow 0.22s, transform 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.contact-form__button:hover {
  background: linear-gradient(90deg,#38bdf8 0%,#6366f1 100%);
  box-shadow: 0 4px 18px #6366f122;
  transform: translateY(-2px) scale(1.03);
}
/* فرم تماس زیباتر */
.contact-form__input, .contact-form__textarea {
  width: 90%;
  font-family: inherit;
  font-size: 1.08rem;
  padding: 0.95rem 1.1rem;
  border: 1.7px solid #e0e7ff;
  border-radius: 1.1rem;
  outline: none;
  background: #f8fafc;
  margin-bottom: 1.1rem;
  transition: border 0.22s, box-shadow 0.22s;
  box-shadow: 0 2px 8px #38bdf822;
  resize: none;
}
.contact-form__input:focus, .contact-form__textarea:focus {
  border: 1.7px solid #6366f1;
  box-shadow: 0 0 0 3px #bae6fd55;
  background: #fff;
}
.contact-form__button {
  width: 100%;
  background: linear-gradient(90deg,#6366f1 0%,#38bdf8 100%);
  color: #fff;
  border: none;
  border-radius: 1.1rem;
  padding: 1rem 0;
  font-size: 1.13rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 0.5rem;
  box-shadow: 0 2px 12px #38bdf822;
  transition: background 0.22s, box-shadow 0.22s, transform 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.contact-form__button:hover {
  background: linear-gradient(90deg,#38bdf8 0%,#6366f1 100%);
  box-shadow: 0 4px 18px #6366f122;
  transform: translateY(-2px) scale(1.03);
}

/* فرم تماس زیباتر */
.contact-form__input, .contact-form__textarea {
  width: 90%;
  font-family: inherit;
  font-size: 1.08rem;
  padding: 0.95rem 1.1rem;
  border: 1.7px solid #e0e7ff;
  border-radius: 1.1rem;
  outline: none;
  background: #f8fafc;
  margin-bottom: 1.1rem;
  transition: border 0.22s, box-shadow 0.22s;
  box-shadow: 0 2px 8px #38bdf822;
  resize: none;
}
.contact-form__input:focus, .contact-form__textarea:focus {
  border: 1.7px solid #6366f1;
  box-shadow: 0 0 0 3px #bae6fd55;
  background: #fff;
}
.contact-form__button {
  width: 100%;
  background: linear-gradient(90deg,#6366f1 0%,#38bdf8 100%);
  color: #fff;
  border: none;
  border-radius: 1.1rem;
  padding: 1rem 0;
  font-size: 1.13rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 0.5rem;
  box-shadow: 0 2px 12px #38bdf822;
  transition: background 0.22s, box-shadow 0.22s, transform 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.contact-form__button:hover {
  background: linear-gradient(90deg,#38bdf8 0%,#6366f1 100%);
  box-shadow: 0 4px 18px #6366f122;
  transform: translateY(-2px) scale(1.03);
}



/* =================================
   Computer Page Hero Styles
   ================================= */

.hero-computer {
  position: relative;
  height: 80vh;
  min-height: 600px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 20px 60px rgba(30, 58, 138, 0.3);
  margin-bottom: 4rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Floating Tech Elements */
.floating-tech {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tech-element {
  position: absolute;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: floatTech 10s ease-in-out infinite;
}

.tech-element i {
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tech-1 { top: 15%; left: 10%; animation-delay: 0s; }
.tech-2 { top: 25%; right: 15%; animation-delay: 2s; }
.tech-3 { bottom: 20%; left: 20%; animation-delay: 4s; }
.tech-4 { bottom: 30%; right: 10%; animation-delay: 6s; }
.tech-5 { top: 60%; left: 15%; animation-delay: 8s; }
.tech-6 { top: 40%; right: 8%; animation-delay: 10s; }

@keyframes floatTech {
  0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); }
  50% { transform: translateY(-25px) scale(1.1) rotate(5deg); }
}

/* Code Particles */
.code-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.code-line {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: codeFloat 20s linear infinite;
  white-space: nowrap;
}

.code-1 { top: 10%; left: 5%; animation-delay: 0s; }
.code-2 { top: 20%; right: 10%; animation-delay: 3s; }
.code-3 { bottom: 15%; left: 8%; animation-delay: 6s; }
.code-4 { bottom: 25%; right: 5%; animation-delay: 9s; }
.code-5 { top: 50%; left: 12%; animation-delay: 12s; }
.code-6 { top: 30%; right: 12%; animation-delay: 15s; }
.code-7 { bottom: 40%; left: 15%; animation-delay: 18s; }
.code-8 { top: 70%; right: 8%; animation-delay: 21s; }

@keyframes codeFloat {
  0% { transform: translateX(-100vw) translateY(0px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(100vw) translateY(-50px); opacity: 0; }
}

/* Tech Shapes */
.tech-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tech-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  animation: techShapeFloat 15s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 5%;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation-delay: 0s;
}

.shape-2 {
  width: 80px;
  height: 80px;
  top: 70%;
  right: 8%;
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  animation-delay: 5s;
}

.shape-3 {
  width: 120px;
  height: 120px;
  bottom: 15%;
  left: 15%;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: 10s;
}

.shape-4 {
  width: 60px;
  height: 60px;
  top: 30%;
  right: 25%;
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  animation-delay: 15s;
}

@keyframes techShapeFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-40px) rotate(180deg); opacity: 0.7; }
}

.hero-computer .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  width: 100%;
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-computer .hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  text-shadow: 0 8px 32px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-computer .title-line {
  display: block;
  animation: slideInFromTop 1s ease-out;
}

.hero-computer .title-line.highlight {
  background: linear-gradient(45deg, #06b6d4, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInFromTop 1s ease-out 0.3s both;
}

.hero-computer .title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-computer .decoration-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  border-radius: 2px;
}

.hero-computer .decoration-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-computer .decoration-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.hero-computer .hero-description {
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 16px rgba(0,0,0,0.2);
  margin: 0 auto 3rem auto;
  max-width: 800px;
  line-height: 1.7;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-computer .hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.hero-computer .stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.hero-computer .stat-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.hero-computer .stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #06b6d4;
  text-shadow: 0 4px 16px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
}

.hero-computer .stat-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-computer .hero-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  animation: fadeInUp 1s ease-out 1.5s both;
}

.hero-computer .hero-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
}

.hero-computer .hero-btn.primary {
  background: linear-gradient(45deg, #06b6d4, #3b82f6);
  color: #fff;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.hero-computer .hero-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(6, 182, 212, 0.6);
}

.hero-computer .hero-btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-computer .hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.hero-computer .hero-btn i {
  font-size: 1.2rem;
}

/* Responsive styles for computer hero */
@media (max-width: 900px) {
  .hero-computer {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-computer .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-computer .hero-description {
    font-size: 1.3rem;
  }
  
  .hero-computer .hero-stats {
    gap: 2rem;
  }
  
  .hero-computer .stat-item {
    padding: 1.5rem;
  }
  
  .hero-computer .stat-number {
    font-size: 2.5rem;
  }
  
  .hero-computer .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-computer .hero-btn {
    width: 250px;
    justify-content: center;
  }
  
  .tech-element {
    width: 60px;
    height: 60px;
  }
  
  .tech-element i {
    font-size: 1.6rem;
  }
  
  .code-line {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 600px) {
  .hero-computer {
    height: 60vh;
    min-height: 400px;
    border-radius: 0 0 24px 24px;
  }
  
  .hero-computer .hero-title {
    font-size: 2.8rem;
    letter-spacing: -1px;
  }
  
  .hero-computer .hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-computer .hero-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .hero-computer .stat-item {
    width: 200px;
    padding: 1rem;
  }
  
  .hero-computer .stat-number {
    font-size: 2rem;
  }
  
  .hero-computer .stat-label {
    font-size: 1rem;
  }
  
  .hero-computer .hero-btn {
    width: 200px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .hero-computer .decoration-line {
    width: 50px;
  }
  
  .hero-computer .decoration-icon {
    width: 40px;
    height: 40px;
  }
  
  .hero-computer .decoration-icon i {
    font-size: 1.2rem;
  }
  
  .tech-element {
    width: 50px;
    height: 50px;
  }
  
  .tech-element i {
    font-size: 1.4rem;
  }
  
  .code-line {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* =================================
   News Page Hero Styles
   ================================= */

.hero-news {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 50%, #f59e0b 100%);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 20px 60px rgba(220, 38, 38, 0.3);
  margin-bottom: 4rem;
  overflow: hidden;
}

/* Floating News Elements */
.floating-news {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.news-element {
  position: absolute;
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: floatNews 12s ease-in-out infinite;
}

.news-element i {
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.news-1 { top: 15%; left: 12%; animation-delay: 0s; }
.news-2 { top: 25%; right: 18%; animation-delay: 2s; }
.news-3 { bottom: 20%; left: 18%; animation-delay: 4s; }
.news-4 { bottom: 30%; right: 12%; animation-delay: 6s; }
.news-5 { top: 60%; left: 18%; animation-delay: 8s; }
.news-6 { top: 40%; right: 10%; animation-delay: 10s; }

@keyframes floatNews {
  0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); }
  50% { transform: translateY(-30px) scale(1.15) rotate(10deg); }
}

/* News Particles (Emojis) */
.news-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.news-particle {
  position: absolute;
  font-size: 1.5rem;
  animation: newsParticleFloat 18s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.particle-1 { top: 8%; left: 8%; animation-delay: 0s; }
.particle-2 { top: 18%; right: 15%; animation-delay: 3s; }
.particle-3 { bottom: 12%; left: 12%; animation-delay: 6s; }
.particle-4 { bottom: 22%; right: 8%; animation-delay: 9s; }
.particle-5 { top: 55%; left: 15%; animation-delay: 12s; }
.particle-6 { top: 35%; right: 12%; animation-delay: 15s; }
.particle-7 { bottom: 35%; left: 20%; animation-delay: 18s; }
.particle-8 { top: 75%; right: 10%; animation-delay: 21s; }

@keyframes newsParticleFloat {
  0% { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0; }
  10% { opacity: 1; transform: scale(1); }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg) scale(0.5); opacity: 0; }
}

/* News Shapes */
.news-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.news-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  animation: newsShapeFloat 20s ease-in-out infinite;
}

.shape-1 {
  width: 90px;
  height: 90px;
  top: 12%;
  left: 6%;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  animation-delay: 0s;
}

.shape-2 {
  width: 70px;
  height: 70px;
  top: 75%;
  right: 10%;
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  animation-delay: 7s;
}

.shape-3 {
  width: 110px;
  height: 110px;
  bottom: 18%;
  left: 12%;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: 14s;
}

.shape-4 {
  width: 55px;
  height: 55px;
  top: 35%;
  right: 20%;
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  animation-delay: 21s;
}

@keyframes newsShapeFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.4; }
  50% { transform: translateY(-50px) rotate(180deg); opacity: 0.8; }
}

.hero-news .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  width: 100%;
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-news .hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  text-shadow: 0 8px 32px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-news .title-line {
  display: block;
  animation: slideInFromTop 1s ease-out;
}

.hero-news .title-line.highlight {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInFromTop 1s ease-out 0.3s both;
}

.hero-news .title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-news .decoration-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  border-radius: 2px;
}

.hero-news .decoration-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-news .decoration-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.hero-news .hero-description {
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 16px rgba(0,0,0,0.2);
  margin: 0 auto 3rem auto;
  max-width: 800px;
  line-height: 1.7;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-news .hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.hero-news .stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.hero-news .stat-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.hero-news .stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 4px 16px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
}

.hero-news .stat-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Responsive styles for news hero */
@media (max-width: 900px) {
  .hero-news {
    height: 60vh;
    min-height: 450px;
  }
  
  .hero-news .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-news .hero-description {
    font-size: 1.2rem;
  }
  
  .hero-news .hero-stats {
    gap: 2rem;
  }
  
  .hero-news .stat-item {
    padding: 1.5rem;
  }
  
  .hero-news .stat-number {
    font-size: 2rem;
  }
  
  .news-element {
    width: 55px;
    height: 55px;
  }
  
  .news-element i {
    font-size: 1.5rem;
  }
  
  .news-particle {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .hero-news {
    height: 50vh;
    min-height: 350px;
    border-radius: 0 0 24px 24px;
  }
  
  .hero-news .hero-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }
  
  .hero-news .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-news .hero-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .hero-news .stat-item {
    width: 180px;
    padding: 1rem;
  }
  
  .hero-news .stat-number {
    font-size: 1.8rem;
  }
  
  .hero-news .stat-label {
    font-size: 0.9rem;
  }
  
  .hero-news .decoration-line {
    width: 50px;
  }
  
  .hero-news .decoration-icon {
    width: 40px;
    height: 40px;
  }
  
  .hero-news .decoration-icon i {
    font-size: 1.2rem;
  }
  
  .news-element {
    width: 45px;
    height: 45px;
  }
  
  .news-element i {
    font-size: 1.3rem;
  }
  
  .news-particle {
    font-size: 1rem;
  }
}

/* =================================
   Courses Page Styles
   ================================= */

.courses-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
  margin-bottom: 4rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Floating Books Animation */
.floating-books {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.book {
  position: absolute;
  width: 60px;
  height: 80px;
  transform-style: preserve-3d;
  animation: floatBook 6s ease-in-out infinite;
}

.book-cover {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.book-spine {
  position: absolute;
  width: 8px;
  height: 100%;
  background: linear-gradient(45deg, #8b5cf6, #3b82f6);
  left: 0;
  transform: rotateY(-90deg) translateZ(4px);
  box-shadow: 2px 0 8px rgba(0,0,0,0.3);
}

.book-pages {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #f8fafc, #e2e8f0);
  border-radius: 4px 8px 8px 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: rotateY(0deg) translateZ(4px);
}

.book-1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  transform: rotate(-15deg);
}

.book-2 {
  top: 25%;
  right: 15%;
  animation-delay: 1s;
  transform: rotate(20deg);
}

.book-3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 2s;
  transform: rotate(-10deg);
}

.book-4 {
  bottom: 30%;
  right: 10%;
  animation-delay: 3s;
  transform: rotate(25deg);
}

.book-5 {
  top: 50%;
  left: 5%;
  animation-delay: 4s;
  transform: rotate(-5deg);
}

@keyframes floatBook {
  0%, 100% { transform: translateY(0px) rotateX(0deg); }
  50% { transform: translateY(-20px) rotateX(5deg); }
}

/* Floating Icons */
.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: floatIcon 8s ease-in-out infinite;
}

.floating-icon i {
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.icon-1 { top: 20%; left: 20%; animation-delay: 0s; }
.icon-2 { top: 30%; right: 25%; animation-delay: 1.5s; }
.icon-3 { bottom: 25%; left: 30%; animation-delay: 3s; }
.icon-4 { bottom: 35%; right: 20%; animation-delay: 4.5s; }
.icon-5 { top: 60%; left: 15%; animation-delay: 6s; }
.icon-6 { top: 40%; right: 10%; animation-delay: 7.5s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.1); }
}

/* Particles */
.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat 10s linear infinite;
}

.particle-1 { top: 10%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 20%; right: 20%; animation-delay: 2s; }
.particle-3 { bottom: 15%; left: 15%; animation-delay: 4s; }
.particle-4 { bottom: 25%; right: 25%; animation-delay: 6s; }
.particle-5 { top: 50%; left: 30%; animation-delay: 8s; }
.particle-6 { top: 30%; right: 40%; animation-delay: 1s; }
.particle-7 { bottom: 40%; left: 40%; animation-delay: 3s; }
.particle-8 { top: 70%; right: 30%; animation-delay: 5s; }

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.courses-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  width: 100%;
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title-container {
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  text-shadow: 0 8px 32px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.title-line {
  display: block;
  animation: slideInFromTop 1s ease-out;

}

.title-line.highlight {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInFromTop 1s ease-out 0.3s both;
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.decoration-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  border-radius: 2px;
}

.decoration-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.decoration-icon i {
  font-size: 1.2rem;
  color: #fff;
}

.hero-description {
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 16px rgba(0,0,0,0.2);
  margin: 0 auto 3rem auto;
  max-width: 700px;
  line-height: 1.7;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 4px 16px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles for courses hero */
@media (max-width: 900px) {
  .courses-hero {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-description {
    font-size: 1.2rem;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .book {
    width: 50px;
    height: 65px;
  }
  
  .floating-icon {
    width: 40px;
    height: 40px;
  }
  
  .floating-icon i {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .courses-hero {
    height: 2000px !important;
    min-height: 750px !important;
    border-radius: 0 0 24px 24px;
  }
  
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }
  
  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .stat-item {
    width: 200px;
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .book {
    width: 40px;
    height: 55px;
  }
  
  .floating-icon {
    width: 35px;
    height: 35px;
  }
  
  .floating-icon i {
    font-size: 1rem;
  }
  
  .decoration-line {
    width: 40px;
  }
  
  .decoration-icon {
    width: 35px;
    height: 35px;
  }
  
  .decoration-icon i {
    font-size: 1rem;
  }
}

.courses-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.courses-intro {
  margin-bottom: 4rem;
}

.intro-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.1), 0 8px 32px rgba(56, 189, 248, 0.08);
  padding: 4rem 3rem;
  text-align: center;
  border: 1px solid rgba(224, 231, 255, 0.8);
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.intro-card:hover::before {
  left: 100%;
}

.intro-card:hover {
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.2), 0 12px 40px rgba(56, 189, 248, 0.15);
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(37, 99, 235, 0.4);
}

.intro-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
  transition: transform 0.3s ease;
}

.intro-card:hover .intro-icon {
  transform: scale(1.1) rotate(5deg);
}

.intro-icon i {
  font-size: 2rem;
  color: #fff;
}

.intro-card h2 {
  font-size: 2.2rem;
  color: #1e293b;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.intro-card p {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.grades-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.grade-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 28px;
  box-shadow: 0 16px 50px rgba(37, 99, 235, 0.1), 0 6px 25px rgba(56, 189, 248, 0.08);
  overflow: hidden;
  border: 1px solid rgba(224, 231, 255, 0.8);
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.grade-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 2;
}

.grade-card:hover::before {
  transform: scaleX(1);
}

.grade-card:hover {
  box-shadow: 0 25px 70px rgba(37, 99, 235, 0.18), 0 10px 35px rgba(56, 189, 248, 0.12);
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(37, 99, 235, 0.4);
}

.grade-header {
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  color: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.grade-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.grade-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  position: relative;
  z-index: 1;
}

.grade-icon i {
  font-size: 1.5rem;
  color: #fff;
  font-weight: bold;
}

.grade-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.grade-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  position: relative;
  z-index: 1;
}

.subjects-list {
  padding: 2rem 1.5rem;
}

.subject-category {
  margin-bottom: 2rem;
}

.subject-category:last-child {
  margin-bottom: 0;
}

.subject-category h4 {
  font-size: 1.3rem;
  color: #1e293b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.subject-category h4 i {
  color: #2563eb;
  font-size: 1.1rem;
}

.subject-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subject-category li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  font-size: 1rem;
  color: #374151;
}

.subject-category li:hover {
  background: #e0e7ff;
  border-color: #2563eb;
  transform: translateX(-5px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.subject-category li i {
  color: #10b981;
  font-size: 0.9rem;
  min-width: 16px;
}

.courses-features {
  margin-top: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.1), 0 6px 20px rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(224, 231, 255, 0.8);
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2), 0 10px 30px rgba(56, 189, 248, 0.15);
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(37, 99, 235, 0.4);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.3);
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
  font-size: 1.8rem;
  color: #fff;
}

.feature-card h4 {
  font-size: 1.3rem;
  color: #1e293b;
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-card p {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* Hero Sections for Cultural and Disciplinary Programs */
.cultural-hero, .disciplinary-hero {
  min-height: 50vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.cultural-hero::before, .disciplinary-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  animation: grain 20s linear infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(-10%, 5%); }
  30% { transform: translate(5%, -10%); }
  40% { transform: translate(-5%, 15%); }
  50% { transform: translate(-10%, 5%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 10%); }
  80% { transform: translate(-15%, 0%); }
  90% { transform: translate(10%, 5%); }
}

.cultural-hero-content, .disciplinary-hero-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2; 
}

.hero-text {
  color: white;
  text-align: right;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { filter: drop-shadow(0 0 20px rgba(255,255,255,0.3)); }
  100% { filter: drop-shadow(0 0 30px rgba(255,255,255,0.6)); }
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.badge:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-icons {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-icons i {
  position: absolute;
  font-size: 3rem;
  color: rgba(255,255,255,0.8);
  animation: float 6s ease-in-out infinite;
}

.floating-icons i:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.floating-icons i:nth-child(2) { top: 30%; right: 25%; animation-delay: 1s; }
.floating-icons i:nth-child(3) { bottom: 25%; left: 30%; animation-delay: 2s; }
.floating-icons i:nth-child(4) { bottom: 35%; right: 20%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Programs Overview Section */
.programs-overview {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.overview-card {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.overview-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.overview-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.overview-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #666;
}

/* Programs Grid */
.cultural-programs, .disciplinary-programs {
  padding: 4rem 0;
  background: #f8fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.program-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.program-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.program-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.program-meta h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.program-category {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.program-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.program-details {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.program-details span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #888;
  font-size: 0.9rem;
}

.program-details i {
  color: #667eea;
}

/* Features Section */
.cultural-features, .disciplinary-features {
  padding: 4rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.2);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.feature-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card p {
  opacity: 0.9;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 900px) {
  .cultural-hero-content, .disciplinary-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .overview-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-badges {
    justify-content: center;
  }
  
  .program-card {
    padding: 1.5rem;
  }
  
  .program-header {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

/* Main Page Hero Section */
.hero-section {
  min-height: 85vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat 8s linear infinite;
}

.particle-1 { top: 10%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 20%; right: 20%; animation-delay: 2s; }
.particle-3 { bottom: 15%; left: 15%; animation-delay: 4s; }
.particle-4 { bottom: 25%; right: 25%; animation-delay: 6s; }
.particle-5 { top: 50%; left: 30%; animation-delay: 1s; }
.particle-6 { top: 30%; right: 40%; animation-delay: 3s; }

@keyframes particleFloat {
  0% { transform: translateY(0px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-element {
  position: absolute;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.3);
  animation: floatElement 6s ease-in-out infinite;
}

.element-1 { top: 20%; left: 20%; animation-delay: 0s; }
.element-2 { top: 30%; right: 25%; animation-delay: 1s; }
.element-3 { bottom: 25%; left: 30%; animation-delay: 2s; }
.element-4 { bottom: 35%; right: 20%; animation-delay: 3s; }

@keyframes floatElement {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  color: white;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.title-line {
  display: block;
  margin-bottom: 0.5rem;
  font-size: xxx-large;
  background: linear-gradient(45deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.highlight {
  background: linear-gradient(45deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.title-decoration {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.decoration-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.decoration-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-btn.primary {
  background: white;
  color: #667eea;
}

.hero-btn.primary:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
}

.hero-btn.secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.hero-btn.secondary:hover {
  background: white;
  color: #667eea;
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
}

.hero-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  height: 400px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  transform: translateY(100%);
  transition: transform 0.6s ease-in-out;
}

.hero-slide.active .slide-content {
  transform: translateY(0);
}

.slide-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.slide-content p {
  font-size: 1rem;
  opacity: 0.9;
}

.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.slider-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

/* Welcome Section */
.welcome-section {
  padding: 2rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  height: 250px !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.welcome-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.welcome-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: yellow;
  animation: wave 2s ease-in-out infinite;
}

.hand{
  font-size: xxx-large !important;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

.welcome-content h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
}

.welcome-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #666;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background: #f8fafc;
  overflow: hidden !important;
  height: 800px !important;
}
.container {
  overflow: hidden !important;
}
.stats-section {
  overflow: hidden !important;
}
.services-section {
  overflow: hidden !important;
}

.cta-section {
  overflow: hidden !important;
}
.faq-section{
  overflow: hidden !important;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.6s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Statistics Section */
.stats-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  height: 300px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* News Section */
.news-section {
  padding: 6rem 0;
  background: #f8fafc;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  color: #667eea;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-content h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}



.news-more {
  text-align: center;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Dynamic News Loading States */
.news-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #666;
  text-align: center;
}

.news-loading i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #667eea;
}

.news-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #666;
  text-align: center;
}

.news-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.news-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #e74c3c;
  text-align: center;
}

.news-error i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #e74c3c;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  height: 450px;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-btn.primary {
  background: white;
  color: #667eea;
}

.cta-btn.primary:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
}

.cta-btn.secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-btn.secondary:hover {
  background: white;
  color: #667eea;
  transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
  padding: 6rem 0;
  background: #f8fafc;
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-slider {
    height: 300px;
  }
  
  .slider-controls {
    padding: 0 0.5rem;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .welcome-card {
    flex-direction: column;
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
    height: 250px;
    padding-bottom: 30px;
  }
  .hero-description {
    font-size: x-large !important;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    padding: 0.8rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-slider {
    height: 250px;
  }
  
  .slide-content {
    padding: 1.5rem;
  }
  
  .slide-content h3 {
    font-size: 1.2rem;
  }
  
  .slide-content p {
    font-size: 0.9rem;
  }
  
  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .welcome-card {
    padding: 2rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .news-card {
    margin: 0 1rem;
  }
}

/* منوی همبرگری */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100002;
  position: relative;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-close{
  width: 30px;
}




