/* style.css - فایل استایل کامل */
/* فونت‌ها و تنظیمات پایه */
@font-face {
  font-family: 'IRANSans';
  src: url('../font/IRANSans.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-color: #2e7d32;
  --primary-light: #4caf50;
  --primary-dark: #1b5e20;
  --secondary-color: #ffc107;
  --text-color: #333;
  --light-text: #f5f5f5;
  --dark-text: #212121;
  --bg-color: #f9f9f9;
  --card-bg: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* تنظیمات کلی */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'IRANSans', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}

/* دارک مود */
body.dark-mode {
  --bg-color: #181a1b;
  --card-bg: #23272b;
  --text-color: #e0e0e0;
  --dark-text: #f5f5f5;
  --light-text: #f8f8f8;
  --shadow: 0 4px 16px rgba(255,255,255,0.07);
  --primary-color: #7ed957;
  --primary-light: #a5ffb0;
  --primary-dark: #3a5d3c;
  --secondary-color: #ffd966;
}

body.dark-mode .section-title,
body.dark-mode .school-name span {
  color: var(--primary-light);
}

body.dark-mode .feature-card,
body.dark-mode .gallery-item,
body.dark-mode .staff-card {
  background: var(--card-bg);
  border: 1px solid #333;
  box-shadow: var(--shadow);
}

body.dark-mode .feature-card h3,
body.dark-mode .staff-name {
  color: var(--primary-color);
}

body.dark-mode .feature-icon i {
  color: var(--primary-light);
}

body.dark-mode .feature-card ul li,
body.dark-mode .staff-bio,
body.dark-mode .about-text p {
  color: #bdbdbd;
}

body.dark-mode .about-text strong {
  color: var(--secondary-color);
}

body.dark-mode .about-img img {
  box-shadow: 0 10px 25px rgba(255,255,255,0.08);
}

body.dark-mode .gallery-caption {
  background: linear-gradient(transparent, rgba(30,30,30,0.85));
  color: var(--light-text);
}

body.dark-mode .modern-footer {
  background: linear-gradient(135deg, #23272b, #181a1b);
}

body.dark-mode .footer-info p,
body.dark-mode .footer-info i {
  color: #e0e0e0;
}

body.dark-mode .footer-cta {
  background: rgba(255,255,255,0.04);
  border: 1px solid #333;
}

body.dark-mode .btn-register {
  background-color: var(--secondary-color);
  color: #23272b;
}
body.dark-mode .btn-register:hover {
  background-color: #ffe599;
  color: #23272b;
}

body.dark-mode .btn-primary {
  background-color: transparent;
  color: var(--light-text);
  border: 2px solid var(--primary-light);
}
body.dark-mode .btn-primary:hover {
  background-color: var(--primary-light);
  color: #23272b;
  border-color: var(--primary-light);
}

body.dark-mode .nav-link {
  color: var(--light-text);
}
body.dark-mode .nav-link:hover {
  color: var(--secondary-color);
}

body.dark-mode .navbar {
  background-color: #23272b !important;
  color: var(--light-text);
}

body.dark-mode .theme-toggle {
  color: var(--secondary-color);
}

body.dark-mode .social-icon {
  background: rgba(255,255,255,0.08);
  color: var(--light-text);
}
body.dark-mode .social-icon:hover {
  background: var(--primary-color);
  color: #23272b;
}
body.dark-mode .social-icon.eitaa:hover {
  background: #ffe599;
}

body.dark-mode .copyright {
  color: #bdbdbd;
}

/* بخش Staff */
body.dark-mode .staff {
  background-color: var(--card-bg); /* رنگ پس‌زمینه کارت */
}

body.dark-mode .staff-bio {
  color: #cccccc; /* خاکستری روشن */
}

body.dark-mode .staff-card {
  border: 2px solid var(--primary-color); /* سبز ملایم */
}

body.dark-mode .staff-name {
  color: var(--primary-light); /* سبز روشن‌تر */
}

body.dark-mode .staff-position {
  color: var(--primary-color); /* سبز ملایم */
}

/* بخش About */
body.dark-mode .about-text p {
  color: #d0d0d0; /* خاکستری ملایم */
}

body.dark-mode .about-text strong {
  color: var(--secondary-color); /* زرد ملایم */
}

body.dark-mode .about-img img {
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* بخش Features */
body.dark-mode .features {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

body.dark-mode .features .feature-card {
  background-color: #1f1f1f; /* کارت‌ها تیره‌تر */
  border: 1px solid #333;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

body.dark-mode .features .feature-card:hover {
  background-color: #333333; /* پس‌زمینه هاور */
}

body.dark-mode .features .feature-icon i {
  color: var(--primary-light); /* رنگ آیکون‌ها سبز روشن */
}

body.dark-mode .features h3 {
  color: var(--primary-light); /* عنوان‌ها سبز روشن */
  font-weight: 600;
  margin-bottom: 10px;
}

body.dark-mode .features ul li {
  color: #bbb; /* متن توضیحات خاکستری روشن */
  line-height: 1.5;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}


.school-name span {
  font-weight: bold;
  font-size: 2.5rem;
  letter-spacing: -1px;
}

.section-title {
  font-family: 'IRANSans', sans-serif;
  font-weight: 700;
  /* برای بولدتر بودن */
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-dark);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--primary-light);
  bottom: -15px;
  right: 50%;
  transform: translateX(50%);
  border-radius: 2px;
}

/* نوار ناوبری */
.navbar {
  background-color: var(--primary-dark);
  color: var(--light-text);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(27, 94, 32, 0.95);
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  color: var(--light-text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.navbar-brand i {
  margin-left: 0.5rem;
  font-size: 1.8rem;
  color: var(--secondary-color);
}

.navbar-brand:hover {
  transform: translateY(-2px);
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-link {
  color: var(--light-text);
  text-decoration: none;
  margin-right: 1.5rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--secondary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  right: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
  right: auto;
  left: 0;
}



.theme-toggle:hover {
  color: var(--secondary-color);
  transform: rotate(30deg) scale(1.1);
}

/* هدر */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text);
  padding-top: 80px;
  animation: fadeIn 1.5s ease-in-out;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: slideInDown 1s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  animation: slideInUp 1s ease-out;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow);
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
  right: auto;
  left: 0;
}

/* دارک مود */

.theme-toggle {
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 1rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--secondary-color);
  transform: rotate(20deg) scale(1.1);
}




/* درباره مدرسه */
.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.about-text {
  flex: 1;
  animation: fadeInLeft 1s ease-out;
}

.about-text p {
  font-size: 1.2rem; /* یا 18px */
  font-weight: 500; /* یا bold */
  color: #333;
  margin-bottom: 1.5rem;
  text-align: justify;
  line-height: 2;
}

.about-text strong {
  color: var(--primary-dark);
}

.about-img {
  flex: 1;
  animation: fadeInRight 1s ease-out;
}

.about-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-img img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ویژگی‌ها */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary-light);
  animation: fadeInUp 0.5s ease-out;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-top-color: var(--secondary-color);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  color: var(--secondary-color);
  transform: rotate(15deg) scale(1.1);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.feature-card ul {
  list-style: none;
  text-align: right;
}

.feature-card li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-right: 1.5rem;
}

.feature-card li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  color: var(--primary-light);
}

/* گالری */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeIn 0.5s ease-out;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--light-text);
  text-align: center;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* بخش کادر آموزشی */
.staff {
  background-color: #f8f9fa;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}
.staff-card {
  height: 100%;
  min-height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 2px solid var(--primary-light);
  animation: pulse-border 1s infinite;
}

.staff-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.staff-img {
  height: 250px;
  overflow: hidden;
}

.staff-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.staff-card:hover .staff-img img {
  transform: scale(1.1);
}

.staff-info {
  padding: 1.5rem;
  text-align: center;
}

.staff-name {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.staff-position {
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.staff-bio {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}



@media (max-width: 992px) {
  .staff-grid {
    grid-template-columns: 1fr 1fr;
  }
  .staff-grid .staff-card:nth-child(4),
  .staff-grid .staff-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .staff-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .staff-card {
    min-height: 320px;
  }
  .staff-grid .staff-card:nth-child(4),
  .staff-grid .staff-card:nth-child(5) {
    grid-column: auto;
  }
}

/* فوتر */
.modern-footer {
  background: linear-gradient(135deg, var(--primary-dark), #0d3b0f);
  padding: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 Q50,80 0,100 Z"></path></svg>');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: bottom;
  z-index: 0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  transform: rotate(45deg);
  left: -110%;
  top: 90%;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-icon:hover::before {
  left: -10%;
  top: -10%;
}

.social-icon:hover {
  transform: translateY(-10px) scale(1.1);
  color: var(--light-text);
}

.social-icon i {
  position: relative;
  z-index: 1;
}

.social-icon image {
  position: relative;
  z-index: 1;
}

.social-icon.instagram:hover {
  background-color: #d415d4;
  background-size: 400% 400%;
  animation: rainbow 3s ease infinite;
}

.social-icon.telegram:hover {
  background-color: #0088cc;
}

.social-icon.eitaa:hover {
  background-color: #c7a012;
}

.footer-info {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-info p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
}

.footer-info i {
  margin-left: 0.5rem;
  color: var(--secondary-color);
  font-size: 20px;
}


.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px var(--primary-light);
  }

  50% {
    box-shadow: 0 0 20px var(--primary-light);
  }

  100% {
    box-shadow: 0 0 5px var(--primary-light);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-30px);
  }

  60% {
    transform: translateY(-15px);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes flip {
  0% {
    transform: perspective(400px) rotateY(0);
  }

  50% {
    transform: perspective(400px) rotateY(180deg);
  }

  100% {
    transform: perspective(400px) rotateY(360deg);
  }
}

@keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse-border {
  0% {
    border-color: var(--primary-light);
  }

  50% {
    border-color: var(--secondary-color);
  }

  100% {
    border-color: var(--primary-light);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* رسپانسیو */
@media (max-width: 1200px) {
  .container {
    width: 95%;
  }
}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  .about-text, .about-img {
    width: 100%;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .staff-grid {
    grid-template-columns: 1fr 1fr;
  }
  .staff-grid .staff-card:nth-child(4),
  .staff-grid .staff-card:nth-child(5) {
    grid-column: auto;
  }
  .staff-card {
    min-height: 320px;
  }
  .hero {
    height: 60vh;
    padding-top: 60px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    flex-direction: row;
  }
  .nav-links {
    position: fixed;
    top: 60px;
    right: -100vw;
    width: 80vw;
    height: calc(100vh - 60px);
    background-color: var(--primary-dark);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    transition: right 0.3s;
    z-index: 2000;
  }
  .nav-links.active {
    right: 0;
  }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 2rem;
    margin-right: 1rem;
    cursor: pointer;
    z-index: 2100;
  }
  .nav-link {
    margin: 1rem 0;
    font-size: 1.2rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .staff-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .staff-card {
    min-height: 320px;
  }
  .staff-grid .staff-card:nth-child(4),
  .staff-grid .staff-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 576px) {
  .container {
    width: 99%;
    padding: 0 0.5rem;
  }
  .section {
    padding: 2rem 0;
  }
  .hero {
    height: 40vh;
    padding-top: 40px;
  }
  .hero-title {
    font-size: 1.3rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .about-content {
    gap: 1rem;
  }
  .feature-card, .gallery-item, .staff-card {
    padding: 1rem;
  }
}
/*رزومه معلم ها  */

/* بخش ویدیوهای معلمان */
.section.teacher-videos {
  padding: 5rem 0;
  background: #f8f9fa;
}

/* عنوان بخش */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-light, #80f14f);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* گرید ویدیوها */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding: 0 1rem;
}

/* کارت ویدیو */
.video-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #80f14f 0%, #6dd63d 100%);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.video-card:hover::before {
  transform: translateX(0);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-color: #80f14f20;
}

/* اطلاعات معلم */
.teacher-name {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 600;
}

.teacher-subject {
  color: #666;
  text-align: center;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  padding: 0.3rem 1rem;
  background: #f5f5f5;
  border-radius: 20px;
  display: inline-block;
  width: 100%;
}

/* ویدیو wrapper */
.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  background: #000;
}

.h_iframe-aparat_embed_frame {
  position: relative;
  width: 100%;
}

.h_iframe-aparat_embed_frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* لودینگ برای ویدیوها */
.video-wrapper::before {
  /* content: 'در حال بارگذاری...'; */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.9rem;
  z-index: 1;
}

/* ریسپانسیو برای تبلت */
@media (max-width: 1024px) {
  .videos-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1.5rem;
  }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
  .section.teacher-videos {
      padding: 3rem 0;
  }
  
  .section-title {
      font-size: 2rem;
  }
  
  .videos-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      padding: 0 0.5rem;
  }
  
  .video-card {
      padding: 1.25rem;
  }
  
  .teacher-name {
      font-size: 1.1rem;
  }
}

/* برای صفحات خیلی بزرگ */
@media (min-width: 1400px) {
  .videos-grid {
      grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
      max-width: 1400px;
      margin-left: auto;
      margin-right: auto;
  }
}

/* انیمیشن برای AOS */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* برای بهبود performance */
.video-card:nth-child(n+7) {
  animation-delay: 0.1s;
}
/* بخش مربوط به فوتر و ثبت نام */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-cta {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  animation: pulse-cta 3s infinite;
}

.footer-cta h3 {
  color: var(--light-text);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background-color: var(--secondary-color);
  color: #333;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-register i {
  margin-left: 0.5rem;
  font-size: 1.2rem;
}

.btn-register:hover {
  background-color: #ffd700;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* انیمیشن مخصوص CTA */
@keyframes pulse-cta {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.2);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 193, 7, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}



.yel {
  color: #ffd700;
}

.blue {
  color: #89d8ff
}

.green {
  color: #94ff9a;
}

.greend {
  color: #12530a;
}

.btn-primary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: bold;
  backdrop-filter: blur(2px);
  text-shadow: 0 0 3px #00000060;
}

.btn-primary:hover {
  background-color: rgba(76, 175, 80, 0.85);
  /* سبز ملایم با شفافیت کم */
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  background-image: url('../images/vorodi.webp');
  /* مسیر تصویرتو اینجا بذار */
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  /* لایه نیمه‌تاریک برای خواناتر شدن متن */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* حالت شفاف پیش‌فرض */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background-color: rgba(0, 0, 0, 0);
  /* سبز نئونی خیلی شفاف */
  transition: background-color 0.5s ease, box-shadow 0.3s ease;
  z-index: 1000;

}

/* وقتی اسکرول شد */
.navbar.scrolled {
  background-color: #03360378;
  /* سبز تیره یا هر رنگ ثابت دلخواه */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease;


}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  /* فاصله بین لوگو و متن */
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffffff;
  /* رنگ سبز نئونی هماهنگ با تم شما */
  text-decoration: none;
  transition: transform 0.3s ease;
  border-radius: 12px;
  /* گوشه‌های نرم در صورت نیاز */

}

.navbar-brand:hover {
  transform: scale(1.05);
  /* افکت هاور حرفه‌ای */
  color: #00ffaa;
}

.navbar-brand img {
  height: 80px;
  /* ارتفاع لوگو */
  width: auto;
  /* حفظ تناسب */

  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: rotate(-5deg) scale(1.1);
  /* افکت تصویری هنگام هاور */
}

/* اضافه کردن این کد به فایل style.css */
.social-img-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.social-icon:hover .social-img-icon {
  filter: none;
}

.social-icon.eitaa {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon.eitaa:hover {
  background-color: #c7a012;
}



/* اگر می‌خواهید افکت‌های پیشرفته‌تر داشته باشید */
.social-icon img.social-icon-img {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
  z-index: 100;
}

.social-icon:hover img.social-icon-img {
  filter: brightness(1) invert(0);
  transform: translate(-50%, -50%) scale(1.1);
}

/* استایل مخصوص آیکون ایتا */
.social-icon.eitaa {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon.eitaa img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
  /* حالت عادی: سفید */
  filter: brightness(0) invert(1);
}

.social-icon.eitaa:hover img {
  /* حالت هاور: رنگ اصلی */
  filter: none;
  transform: scale(1.1);
}

.social-icon.eitaa::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #c7a012;
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
}

.social-icon.eitaa:hover::before {
  opacity: 1;
}

body {
  overflow-x: hidden !important;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.features-grid, .gallery-grid, .footer-content, .about-content, .staff-grid {
  max-width: 100vw;
  box-sizing: border-box;
}

.feature-card, .gallery-item, .staff-card, .about-img, .about-text {
  max-width: 100%;
  box-sizing: border-box;
}

/* اسکرول‌بار مدرن برای کل سایت */
html::-webkit-scrollbar, body::-webkit-scrollbar {
  width: 10px;
  background: #e0e0e0;
}
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #4caf50 30%, #ffc107 100%);
  border-radius: 8px;
  border: 2px solid #fff;
}

html.dark-mode::-webkit-scrollbar, body.dark-mode::-webkit-scrollbar {
  background: #23272b;
}
html.dark-mode::-webkit-scrollbar-thumb, body.dark-mode::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #7ed957 30%, #ffd966 100%);
  border-radius: 8px;
  border: 2px solid #23272b;
}

/* اسکرول‌بار مدرن برای staff-grid */
.staff-grid {
  scrollbar-width: auto;
  scrollbar-color: auto;
}

body.dark-mode .staff-grid {
  scrollbar-color: #7ed957 #23272b;
}

/* کارت‌های staff مدرن‌تر */
.staff-card {
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(126,217,87,0.08), 0 1.5px 8px rgba(255,217,102,0.08);
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
}
.staff-card:hover {
  box-shadow: 0 0 24px 4px #7ed95780, 0 2px 16px #ffd96660;
  border-image: linear-gradient(90deg, #7ed957, #ffd966) 1;
  transform: translateY(-8px) scale(1.03);
}

body.dark-mode .staff-card {
  background: linear-gradient(135deg, #23272b 80%, #23272b 100%);
  border: 2px solid #333;
  box-shadow: 0 6px 32px #7ed95722, 0 1.5px 8px #ffd96622;
}
body.dark-mode .staff-card:hover {
  box-shadow: 0 0 32px 8px #7ed95799, 0 2px 16px #ffd96699;
  border-image: linear-gradient(90deg, #7ed957, #ffd966) 1;
}

body.dark-mode .feature-card, body.dark-mode .gallery-item {
  border-radius: 16px;
  box-shadow: 0 4px 24px #7ed95722, 0 1.5px 8px #ffd96622;
  border: 1.5px solid #333;
}
body.dark-mode .feature-card:hover, body.dark-mode .gallery-item:hover {
  box-shadow: 0 0 24px 4px #7ed95780, 0 2px 16px #ffd96660;
  border-image: linear-gradient(90deg, #7ed957, #ffd966) 1;
}

body.dark-mode .btn-primary, body.dark-mode .btn-register {
  border-radius: 16px;
  font-weight: bold;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 12px #7ed95733;
  background: linear-gradient(90deg, #7ed957 60%, #ffd966 100%);
  color: #23272b;
  border: none;
  transition: background 0.3s, color 0.3s;
}
body.dark-mode .btn-primary:hover, body.dark-mode .btn-register:hover {
  background: linear-gradient(90deg, #ffd966 0%, #7ed957 100%);
  color: #23272b;
}

body.dark-mode .theme-toggle {
  color: #ffd966;
  background: none;
  border-radius: 50%;
  box-shadow: 0 0 8px #ffd96655;
  transition: box-shadow 0.3s, color 0.3s;
}
body.dark-mode .theme-toggle:hover {
  color: #7ed957;
  box-shadow: 0 0 16px #7ed95799;
}

body.dark-mode .navbar {
  background: linear-gradient(90deg, #23272b 80%, #23272b 100%);
  box-shadow: 0 2px 16px #7ed95722;
}

body.dark-mode .modern-footer {
  background: linear-gradient(135deg, #23272b 80%, #181a1b 100%);
  box-shadow: 0 -2px 24px #7ed95722;
}

.events-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.event-card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 4px 24px #7ed95722, 0 1.5px 8px #ffd96622;
  border: 2px solid var(--primary-light);
  padding: 2rem 1.5rem;
  max-width: 400px;
  min-width: 260px;
  text-align: center;
  transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
  margin-bottom: 1rem;
}
.event-card:hover {
  box-shadow: 0 0 24px 4px #7ed95780, 0 2px 16px #ffd96660;
  border-image: linear-gradient(90deg, #7ed957, #ffd966) 1;
  transform: translateY(-8px) scale(1.03);
}
.event-card h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.event-card p {
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

body.dark-mode .event-card {
  background: linear-gradient(135deg, #23272b 80%, #23272b 100%);
  border: 2px solid #333;
  box-shadow: 0 6px 32px #7ed95722, 0 1.5px 8px #ffd96622;
}
body.dark-mode .event-card:hover {
  box-shadow: 0 0 32px 8px #7ed95799, 0 2px 16px #ffd96699;
  border-image: linear-gradient(90deg, #7ed957, #ffd966) 1;
}
body.dark-mode .event-card h3 {
  color: var(--primary-color);
}
body.dark-mode .event-card p {
  color: #bdbdbd;
}

@media (max-width: 768px) {
  .events-content {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .event-card {
    width: 100%;
    min-width: unset;
    max-width: 99vw;
    padding: 1.2rem 0.7rem;
  }
}

body.dark-mode .section.teacher-videos {
  background: #23272b;
}
body.dark-mode .video-card {
  background: linear-gradient(135deg, #23272b 80%, #23272b 100%);
  border: 2px solid #333;
  box-shadow: 0 6px 32px #7ed95722, 0 1.5px 8px #ffd96622;
}
body.dark-mode .video-card:hover {
  box-shadow: 0 0 32px 8px #7ed95799, 0 2px 16px #ffd96699;
  border-image: linear-gradient(90deg, #7ed957, #ffd966) 1;
}
body.dark-mode .teacher-name {
  color: var(--primary-color);
}
body.dark-mode .teacher-subject {
  background: #23272b;
  color: #bdbdbd;
}
body.dark-mode .video-wrapper {
  background: #181a1b;
  box-shadow: 0 3px 10px #7ed95722;
}
.i {
    text-decoration: none;
}