@font-face {
    font-family: 'mikhak';
    src: url('../fonts/ttf/Mikhak-Medium.ttf') format('truetype');
}
@font-face {
    font-family: 'mikhak-B';
    src: url('../fonts/ttf/Mikhak-Black.ttf') format('truetype');
}
@font-face {
    font-family: 'IRDA';
    src: url('../fonts/ttf/IRANDorandis.ttf') format('truetype');
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-thumb {
  background-color: #fff;
}

* {
    font-family: 'mikhak';
    color: rgb(246, 251, 255);
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    list-style-type: none;
    text-decoration: none !important;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
  --c1: #ff00ff; /* صورتی نئون */
  --c2: #00e5ff; /* آبی الکتریک */
  --c3: #39ff14; /* سبز نئونی */
}

/* scrollbar */

.scrollpercentvitrin {
  z-index: 1;
}


@keyframes moving {
  0% {top: 89.5%; }
  15% {top: 85.5%; }
  30% {top: 88%; }
  45% {top: 84%; }
  60% {top: 89.5%; }
  75% {top: 85.5%; }
  90% {top: 89.5%; }
  100% {top: 84%; }
}


.scrollpercent {
  position: fixed;
  font-size: .65rem;
  z-index: 999;
  padding: 2rem;
  text-align: center;
  margin: 1rem;
  border-radius: 100%;
  width: 60px;
  height: 25px;
  top: 88.5%;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  letter-spacing: 4px;
  overflow: hidden;
  animation: moving 45s infinite;
}

.scrollpercentvitrin {
  font-family: 'IRDA';
}

/* پس‌زمینه متحرک گرادینت سه‌رنگ */
.scrollpercent::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    var(--c1),
    var(--c2),
    var(--c3),
    var(--c1)
  );
  background-size: 400% 400%;
  animation: gradientShift 6s ease infinite;
  filter: blur(30px);
}

/* حاشیه و تابش نئونی با سه رنگ */
.scrollpercent::after {
  content: "";
  position: absolute;
  inset: 0;
  border-image: linear-gradient(
    to right,
    var(--c1),
    var(--c2),
    var(--c3)
  ) 1;
  box-shadow:
    0 0 10px var(--c1),
    0 0 20px var(--c2),
    0 0 30px var(--c3),
    0 0 60px var(--c1);
  animation: flicker 3s linear infinite;
}

@keyframes gradientShift {
  0%   { background-position:   0% 50%; }
  33%  { background-position:  50% 50%; }
  66%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    box-shadow:
      0 0 10px var(--c1),
      0 0 20px var(--c2),
      0 0 30px var(--c3),
      0 0 60px var(--c1);
  }
  20%, 24%, 55% {
    opacity: 0.8;
    box-shadow:
      0 0 5px var(--c1),
      0 0 10px var(--c2),
      0 0 15px var(--c3);
  }
}


body {
    background-color: #0E1629;
}

/* header */

header , .header-container , .main-container , .footer-container , .hero-section , .categories{
    width: 100%;
}

.header-container {
  position: fixed;
  height: 5rem;
  z-index: 10;
  background-color: transparent;
  transition: all .5s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff00;
}

.header-right {
  height: 100%;
}

.header-right img {
  max-width: 14rem;
  height: 90%;
  margin: .25rem .5rem;
  margin-right: 6vw;
}

.menu-item-has-children {
  display: flex;
  align-items: center;
}

.menu-item-has-children::after {
  content: '⌵';
  margin-top: 6px;
  margin-right: 6px;
}

.main-nav { 
  display: flex; 
  justify-content: center; 
}

.main-menu { 
  display: flex; 
  gap: 2rem;
  margin-left: 10vw;
}

.main-menu > li { 
  position: relative; 
}

.main-menu > li > a { 
  display: block; 
  font-size: 1.15rem; 
  transition: color 0.3s ease; 
}

.main-menu > li > a:hover { 
  color: #007bff; 
}


/* استایل کلی مگامنو */
.mega-menu {
    position: absolute;
    top: 2.35rem;
    left: -4rem;
    width: 30vw; /* عرض کلی مگامنو */
    min-width: 350px;
    background-color: #fff; /* پس زمینه اصلی سفید شد */
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1000;
}

.menu-item-has-children:hover .mega-menu,
.menu-item-has-children.active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ۱. استایل منوی ناوبری سمت راست */
.megamenu-nav {
    flex: 0 0 220px; /* عرض ثابت برای منوی راست */
    background-color: #f8f9fa; /* یک رنگ پس‌زمینه ملایم */
    border-left: 1px solid #e9ecef;
    padding: 10px 0;
    border-radius: .5rem;
    overflow-y: scroll;
}

.megamenu-nav ul li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: bold;
    color: #495057;
    border-right: 3px solid transparent; /* نوار رنگی برای آیتم فعال */
    transition: background-color 0.2s, border-color 0.2s;
}

.megamenu-nav ul li a .icon {
    margin-left: 10px;
    font-size: 18px;
}

.megamenu-nav ul li:hover a {
    background-color: #e9ecef;
}

/* استایل آیتم فعال در منوی راست */
.megamenu-nav ul li.active a {
    background-color: #fff;
    color: #0d6efd;
    border-right-color: #0d6efd;
}

/* ۲. استایل بخش محتوای سمت چپ */
.megamenu-content-wrapper {
    flex-grow: 1; /* باقی فضا را اشغال کند */
    overflow-y: scroll;
    padding: 25px;
    border-radius: .5rem;
    background-color: #fdecf4; /* رنگ پس‌زمینه صورتی برای بخش محتوا */
}

.megamenu-content {
    display: none; /* همه پنل‌های محتوا به صورت پیش‌فرض مخفی هستند */
    align-items: flex-start; /* ستون ها از بالا تراز شوند */
}

/* پنل محتوایی که فعال است نمایش داده می‌شود */
.megamenu-content.active {
    display: flex; /* با فلکس نمایش داده شود تا ستون‌ها کنار هم قرار گیرند */
}

/* استایل ستون‌ها و لینک‌های داخلی */
.mega-menu-column {
    flex: 1;
    padding: 0 15px;
}

.mega-menu-column h4 { 
  font-size: 17px; 
  color: #333; 
  border-bottom: 2px solid #e9a8d0; 
  padding-bottom: 10px; margin-top: 0;
  margin-bottom: 15px; 
}

.mega-menu-column ul li a { display: block; padding: 8px 5px; color: #555; font-size: 15px; border-radius: 4px; transition: background-color 0.2s ease, color 0.2s ease; }
.mega-menu-column ul li a:hover { 
  background-color: #fff; 
  color: #000; 
}

.header-auth {
  background-color: #4e8dff;
  padding: .5rem;
  border-radius: .5rem;
  margin-left: 5%;
}


/* === Mega-Menu Styles === */

/* ۱. قرارگیری درست زیر آیتم والد */
.main-nav .menu-item-has-children {
  position: relative;
}

/* ۲. مخفی کردن مگامنو به‌صورت پیش‌فرض */
.main-nav .menu-item-has-children .mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 1rem;
}

/* ۳. نمایش مگامنو هنگام هاور */
.main-nav .menu-item-has-children:hover .mega-menu {
  display: block;
}

/* ۴. چینش تب‌های سمت چپ */
.megamenu-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.megamenu-nav ul li {
  margin-right: 1rem;
  cursor: pointer;
}
.megamenu-nav ul li.active a {
  font-weight: bold;
  text-decoration: underline;
}

/* ۵. مخفی/نمایش محتویات داخلی */
.megamenu-content {
  display: none;
}
.megamenu-content.active {
  display: block;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 2rem;
  height: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
}
.hamburger span {
  display: block;
  height: 3px;
  background: #E2E8F0;
  border-radius: 2px;
}

/* ================================================== */
/*                Mobile Sidebar Styles               */
/* ================================================== */

.mobile-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 250px;
  height: 100vh;
  background: #1A253F;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem 1rem;
}
.mobile-sidebar.open {
  transform: translateX(0);
}

.mobile-nav .mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu > li {
  margin-bottom: 1rem;
}
.mobile-menu a {
  display: block;
  padding: .5rem 0;
  color: #E2E8F0;
  text-decoration: none;
  font-weight: 500;
}

/* Accordion Headers */
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  color: #E2E8F0;
  font-size: 1.1rem;
  text-align: left;
  padding: .5rem 0;
  cursor: pointer;
  position: relative;
  right: -107px;
}
.accordion-header::after {
    content: '⌟';
    position: absolute;
    transform: rotate(45deg);
    left: -10;
    margin: 0rem .5rem;
    margin-top: 0.05rem;
    font-size: 1rem;
    transition: transform .3s;
}
.mobile-item.open > .accordion-header::after {
  transform: rotate(225deg);
}

/* Accordion Content */
.accordion-content {
  list-style: none;
  padding: 0 1rem;
  margin: .5rem 0 0 0;
  display: none;
  background-color: #0081fa32;
  border-radius: .5rem;
  padding: 1rem;
}
.mobile-item.open > .accordion-content {
  display: block;
}
.accordion-content li + li {
  margin-top: .5rem;
}
.accordion-content a {
  font-size: .95rem;
  padding: .25rem 0;
}

/* main */

.hero-section {
  padding-top: 25vh;
  display: flex;
  align-items: center;
}

.hero-right {
  width: 40%;
  padding-right: 2rem;
  text-align: center;
}

.hero-right h1 {
  position: relative;
  font-size: 4rem;
}

.hero-right span {
  font-size: 1.75rem;
  display: block;
}

.hero-right button {
  position: relative;
  padding: .65rem 3rem;
  margin: 2rem;
  font-size: 1.5rem;
  border-radius: .5rem;
  background-color: #066ac9;
  box-shadow: 6px 6px #00a2ff;
  cursor: pointer;
  transition: .25s;
}

.hero-right button:hover {
  background-color: #00519d;
  box-shadow: 0px 0px #00a2ff00;
}

.hero-left {
  width: 60%;
  height: 28rem;
  display: flex;
  align-items: center;
}

.hero-left > img {
  width: 100%;
  height: 100%;
}

.categories h1 {
  font-size: 2.5rem;
  margin-top: 8rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.categories h1 > span {
  color: #00ff77;
  font-size: 2rem;
  margin-top: .5rem;
  margin: 1.5rem;
}

.categories-children {
  width: 80%;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lessons {
  width: 10rem;
  height: 10rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 6px #0084ffc5;
  justify-content: center;
  align-items: center;
  background-color: #066bc91f;
  font-size: 1.5rem;
  transition: .25s ease-in-out;
}

.lessons span {
  font-size: 2rem;
  padding: .5rem;
  border-radius: .5rem;
  opacity: 20%;
  z-index: -2;
  margin-top: -5rem;
  margin-right: -3.25rem;
  border: 2px solid #fff;
}

.lessons:hover {
  background-color: #066bc95c;
  box-shadow: 6px 6px #ffffff00;

}

.learn-online {
  width: 90%;
  display: flex;
  align-items: center;
  margin: 0 auto;
  margin-top: 14rem;
  gap: 2rem;
  text-align: center;
}

.learn-online-right {
  width: 50%;
}

.learn-online-right img {
  width: 100%;
  height: 100%;
}

.learn-online-left {
  width: 50%;
  position: relative;
}

.learn-online-left span {
  color: transparent;
  text-shadow:  0px 0px 75px rgb(255, 217, 0);
  font-size: 6rem;
  z-index: -10;
  position: absolute;
  top: 1.5rem;
  left: 8rem;
}

.lessons-courses {
  width: 100%;
  margin: 10rem auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.slider-title {
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
}

.slider-title h1 {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 2.5rem;
  text-shadow: 2px 2px 1px rgb(70, 70, 70);
}

.moving-slider {
  left: 0;
  position: absolute;
  width: 8.5rem;
}

.swiper-button-next , .swiper-button-prev {
  top: -.5rem;
  padding: 2rem 2rem 2rem 1.75rem; 
  border-radius: 1rem;
  scale: .75;
  color: #fff;
  background-color: rgb(255, 115, 100);
}

.swiper {
  width: 96%;
}

.dabestan , .motevassete {
  padding: 2rem;
}

.course-card {
  width: 20rem;
  height: 30rem;
  background-color: rgb(26 37 63);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  padding: .75rem;
}

.dabestan  .course-card {
  border: 2px solid#ffffff6d;
}

.motevassete  .course-card {
  border: 2px solid #ffffff6a;
}

.course-image {
  width: 100%;
  height: 12rem;
  padding-bottom: .75rem;
  border-bottom:  1px solid #ffffff67;
}

.course-image img {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
}

.course-content {
  width: 100%;
  height: 60%;
  padding: .5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
}

.course-content > h1 {
  font-size: 1.75rem;
  margin-bottom: .5rem;
}

.course-content i {
  margin-left: .5rem;
}

.course-content span  , h3 {
  padding: 0rem .5rem;
}

.course-content a {
  width: 80%;
  margin-right: auto;
  margin-left: auto;
  font-size: 1.5rem;
  padding: .35rem .5rem;
  text-align: center;
  border-radius: .75rem;
  margin-top: 1.5rem;
  background-color: #00e36aea;
  border: 3px solid #00ff1a;
  border-bottom: 7px solid #00ff1a;
  transition: .25s;
}

.files {
  width: 90%;
}

.files > .slider-title {
  width: 97%;
}

.more-files {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  background-color: #00519d;
  box-shadow: 6px 6px #00a2ff;
  border-radius: .5rem;
  transition: .25s;
}

.more-files:hover {
  box-shadow: 6px 6px #00a2ff00;
}

.file-card {
  width: 18rem;
  min-height: 18rem;
  background-color: rgb(26 37 63);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.file-image {
  width: 100%;
  height: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-image img {
  width: 6rem;
  height: 6rem;
}

.file-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.file-content h2 {
  margin-bottom: .5rem;
  font-size: 1.25rem;
}

.file-content span , h2{
  display: flex;
  margin: 0 auto;
  gap: 1rem;
}

.file-content a {
  width: 80%;
  margin-right: auto;
  margin-left: auto;
  font-size: 1.25rem;
  padding: .5rem 1.25rem;
  text-align: center;
  border-radius: .75rem;
  color: #1a1a1a;
  margin-top: .85rem;
  background-color: #ffffffea;
  border: 4px solid #242424;
  border-bottom: 8px solid #242424;
  transition: .25s;
}

/* footer */ 

.footer-container {
  width: 95%; 
  height: auto;
  margin-top: 6rem;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 2rem;
  padding: .5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(26 37 63);
  border-radius: 1rem;
  border: #fff 1px solid;
}

.footer-child {
  max-width: 24rem !important;
  padding: 1rem;
  border-radius: .75rem;
}

.about-us {
  text-align: center;
}

.acces-links .contact-us {
  text-shadow: 2px 2px 2px #2e2e2e;
}


.acces-links h2 , .contact-us h2 , .logos h2 {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-right: 1.5rem; 
    font-size: 1.5rem !important;
    text-align: center;
    margin-top: 1rem;
}

.acces-links ul {
    margin-top: 1rem;
    margin-right: 1.5rem; 
    display: flex;
    font-size: 1.1rem;
    flex-direction: column;
}

.acces-links ul a {
    width: 100%;
    display: block;
    transition: .6s;
}

.acces-links img , .contact-us h2 img , .logos h2 img {
    width: 40px;
    height: 40px;
}

.acces-links a:hover {
    padding-right: 1rem;
    color: #4af0ff;
}

.soc-logos {
    display: flex;
    margin-top: 1.5rem;
    margin-right: 1rem; 
    gap: .5rem;
}

.soc-logos img {
    width: 3rem;
    height: 3rem;
    transition: .45s;
}

.phone-number {
    margin-top: .5rem;
}

.phone-number span {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    gap: .5rem;
}

.phone-number img {
    width: 1.5rem;
    height: 1.5rem;
}

.soc-logos img:hover {
    transform: scale(.8);
}


.logos div img  {
  height: 8rem !important;
  margin: .5rem;
  border-radius: .5rem;
  margin-right: .25rem;
}

.copyRight {
    display: flex;
    justify-content: center;
    text-align: center;
}

/* Responsiver */

@media screen and (max-width: 380px) {
  
}

@media screen and (max-width: 480px) {
  .scrollpercent {
    scale: .85;
  }
  .categories h1 {
    font-size: 1.35rem !important;
  }
  .header-auth {
    font-size: .75rem;
  }
  .hero-right span {
    font-size: 1.25rem !important; 
  }
  .learn-online-left h1 {
    font-size: 1.5rem !important;
  }
  .files > .swiper-wrapper {
    gap: 1rem;
  }
}

@media screen and (max-width: 658px) {
}

@media screen and (max-width: 900px) {
    /* Show hamburger */
  .hamburger {
    display: flex;
  }
  /* Hide desktop nav */
  .header-left .main-nav {
    display: none !important;
  }
  /* Keep auth visible */
  .header-auth {
    display: flex;
    align-items: center;
  }
  .hero-section {
    flex-direction: column;
  }
  .hero-right , .hero-left {
    width: 100%;
    margin-top: 2rem;
  }
  .hero-right h1 {
    font-size: 2.25rem;
  }
  .hero-right span , .hero-right span strong  {
    font-size: 1.45rem;
    margin-top: 1rem;
  }
  .hero-left {
    margin-top: -20rem;
    z-index: -10;
    opacity: .225;
  }
  .categories h1 {
    font-size: 1.75rem;
  }
  .learn-online {
    flex-direction: column;
  }
  .learn-online-left , .learn-online-right {
    width: 100%;
  }
  .slider-title  h1 {
    font-size: 1.75rem;
  }
  .course-card , .file-card {
    scale: .9;
  }
  .course-content a {
    font-size: 1.25rem;
  }
  .header-right img {
    margin: -.25rem .5rem;
    padding-top: .25rem;
  }
  .about-us {
    margin:  0 auto;
  }
}

@media screen and (max-width: 1110px) {
}






 
