@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

:root {
  --primary-color: #fab36d;
  --light-orange: #f8cb9e;
  --secondary-color: #465C88;
  --Background: #f0f5fa;
  --text: #154c80;
  --text-hover: #153a5e;
}
* {
  box-sizing: border-box;
}
html, body {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}
.container, .row {
  margin: 0 !important;
  padding: 0 !important;
}
body {
  font-family: 'Vazir', sans-serif;
  margin: 0;
  padding: 0 !important;
  direction: rtl;
  background-color: #fff8f1;
  overflow-x: hidden
}
#loader {
      border: 8px solid #f3f3f3;
      border-top: 8px solid #3498db;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      animation: spin 1s linear infinite;
      margin: auto;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      display: none; 
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

/* ---------------- HEADER ---------------- */
header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--primary-color);
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 10px 50px;
  height: 60px;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.logo a{
  text-decoration: none;
  font-weight: bold;
  font-size: 1.6em;
  color: var(--text);
}


.nav-group {
  display: flex;
  align-items: center;
  gap: 40px; 
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  direction: rtl; 
}


nav ul li a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  padding: 4px 0; 
  transition: color 0.3s ease;
}

nav ul li a::after {
  content: "";
  position: absolute;
  right: 0;        
  bottom: -4px;      
  width: 0%;
  height: 2px;
  background-color: var(--text-hover); 
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: var(--text-hover); 
}

nav ul li a:hover::after {
  width: 100%; 
}

.system {
  text-decoration: none;
  border: 2px solid var(--text);
  border-radius: 5px;
  padding: 7px 25px;
  transition: all 0.3s ease;
  color: var(--text);
}
.system:hover {
  color: var(--Background);     
  border-color: var(--Background);
  transform: scale(1.05);            
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background-color: var(--secondary-color);
}

/* ---------------- HERO ---------------- */
.hero h1 {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3s steps(30) forwards;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
.hero-content a {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlide 1s ease-out forwards;
  animation-delay: 0.5s;
}

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

.hero {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  padding: 25px 20px;
}
.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 90%;
  padding: 30px 50px;
  gap: 30px;
  background-color: #f7af68;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border-radius: 15px;
  margin-top: 50px;
}

.text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.hero-content h1 {
  font-size: 4em;
  color: var(--text);
  margin: 0;
}

.hero-content p {
  font-size: 1.3em;
  color: var(--text);
  margin: 0;
}

.btnbox {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.btnbox button {
  padding: 8px 24px;
  border: 2px solid white;
  border-radius: 6px;
  background-color: transparent;
  color: white;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.4s ease;
  font-family: 'Vazir', 'sans-serif';
}

.btnbox .course-box {
  background-color: white;
  color: #10375C;
}

.btnbox .course-box:hover{
  color: var(--Background);     
  border-color: var(--Background);
  transform: scale(1.05);            
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background-color: var(--secondary-color);
}
.btnbox .call-box:hover {
  color: var(--Background);     
  border-color: var(--Background);
  transform: scale(1.05);            
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background-color: var(--secondary-color);
}

.hero-content img {
  width: 255px;
  object-fit: contain;
}

/*-------------------- باکس انواع زبان -------------------*/
.language-section {
  padding: 40px 20px;
  text-align: center;
  direction: rtl;
  margin-bottom: 50px;
}

.section-title {
  font-size: 30px;
  margin-bottom: 20px;
  color: #e66f00;
  font-family: 'Vazir', sans-serif;
}

.language-scroll {
  display: flex;
  flex-wrap: nowrap;          
  gap: 16px;
  padding: 10px 0;
  font-family: 'Vazir', sans-serif;
  overflow-x: auto;          
  scroll-snap-type: x mandatory; 
  -webkit-overflow-scrolling: touch; 
}

.language-scroll::-webkit-scrollbar {
  height: 6px;
}
.language-scroll::-webkit-scrollbar-thumb {
  background-color: #f8a24c;
  border-radius: 3px;
}

.language-card {
  padding: 20px;
  position: relative;
  min-width: 200px;             
  flex-shrink: 0;            
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  scroll-snap-align: start;
  text-align: center;
  background-color: white;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.language-card:hover {
  transform: translateY(-5px);
}

.language-card img {
  width: 60px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  height: auto;
  margin-bottom: 12px;
}

.language-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #10375C;
}

.language-card p {
  font-size: 14px;
  margin-bottom: 12px;
  color: #555;
}

.language-card a {
  position: relative;
  display: inline-block;
  margin-left: 7px;
}

.language-card a img {
  display: block;
  transition: transform 0.3s ease;
  background-color: var(--light-orange);
  padding: 10px;
  border-radius: 50%;
}

.language-card a .label {
  position: absolute;
  left: 50%;
  bottom: 100%; 
  transform: translateX(-50%) translateY(-8px);
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.8rem;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.language-card a:hover img {
  transform: scale(1.08);
}

.language-card a:hover .label {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}


@media (max-width: 600px) {
  .section-title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .language-scroll {
    flex-wrap: nowrap;      
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth;       
    -webkit-overflow-scrolling: touch; 
  }

  .language-card {
    width: 80%;                 
    min-width: 260px;           
    padding: 12px;
    border-radius: 10px;
    scroll-snap-align: start;  
  }
  .language-card img {
    width: 50px;
    margin-bottom: 10px;
  }

  .language-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .language-card p {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.5;
  }

  .language-card a img {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .language-card a .label {
    font-size: 0.7rem;
    padding: 4px 6px;
  }
}
/*--------------- class box ----------------*/
.program-box {
  max-width: 100%;
  margin: 7px;
  font-family: 'Vazir', sans-serif;
  margin-bottom: 80px;
}

.program-header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--text);
}

.program-header .title {
  font-weight: bold;
  color: var(--text);
}

.program-table {
  padding: 15px;
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;

}
.program-box thead tr th {
  color: var(--text);
}
.program-table th, .program-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.program-table th {
  background: #f9f9f9;
  font-weight: bold;
}

.register-btn {
  text-decoration: none;
  display: inline-block;
  background: var(--primary-color);
  color: var(--text);
  border: none;
  width: 70%;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  font-family: 'Vazir', sans-serif;
  transition: all 0.3s ease; 
}

.register-btn:hover {
  background: var(--secondary-color); 
  color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.show-more, .show-less {
  color: var(--text);
  background: #fafafa;
  border: 1px solid var(--primary-color);
  padding: 8px 14px;
  margin: 5px;
  margin-right: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  font-family: 'Vazir', sans-serif;
  transition: all 0.3s ease;
}

.show-more:hover, .show-less:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.hidden {
  display: none;
  transition: all 0.3s ease; 
}

/*------------ باکس استاندارد --------------*/
 .standards-section {
  padding: 40px 20px;
  text-align: center;
  direction: rtl;
  font-family: 'Vazir','sans-serif';
}

.section-title {
  font-size: 24px;
  margin-bottom: 30px;
  color: #333;
  font-family: 'Vazir','sans-serif';
}

.standards-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0px;
  font-family: 'Vazir','sans-serif';
}

.standard-column {
  flex: 1;
  padding: 0 10px;
  font-family: 'Vazir','sans-serif';
}

.standard-column h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #222;
  font-family: 'Vazir','sans-serif';
}

.tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Vazir','sans-serif';
}

.tags a {
  text-decoration: none;
}

.tags a span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 90%;
  font-family: 'Vazir','sans-serif';
}
.divider {
  width: 0;
  border-left: 2px dashed #aaa;
  height: 100%;
  align-items: stretch;
}


.tags a:nth-child(odd) span {
  background-color: var(--secondary-color); 
}

.tags a:nth-child(even) span {
  background-color: var(--primary-color); 
  color: var(--text);
}

.tags a:hover span {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  background-color: #10375C; 
  color: #fffde7;
}
.testimonials {
  padding: 15px;
  background: #f9f9f9;
  text-align: center;
  margin-bottom: 100px;
}

.title-testimonials {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 20px;
}


.testimonial-box {
  overflow: hidden;
  position: relative;
  width: 100%;
}


.testimonial-track {
  display: flex;
  gap: 20px;
  animation: scroll-left 40s linear infinite;
  will-change: transform; 
}

.testimonial {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: right;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 210px;
}
.testimonial:hover {
  transform: translateY(-5px);
}

.testimonial p {
  font-size: 0.9em;
  margin: 0 0 15px 0;
  color: black;
  background-color: #fde4cb;
  line-height: 1.6;
  padding: 12px;
  border-right: 4px solid #EC8305;
  border-radius: 6px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Vazir','sans-serif';
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.user-text h3 {
  margin: 0;
  font-size: 1rem;
  color: #EC8305;
}
.user-text .subtitle {
  font-size: 0.85rem;
  color: #777;
}


@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(60%); }
}

/* ریسپانسیو */
@media (max-width: 600px) {
  .testimonial-track {
    animation: scroll-left 40s linear infinite; 
    gap: 15px;
  }

  .testimonial {
    margin-bottom: 80px;
    flex: 0 0 80%;
    height: auto;
  }
}


/*---------------- باکس نمونه مقاله ------------------*/
.article-promo {
  background-color: var(--primary-color);
  color: var(--text);
  padding: 40px 30px;
  border-radius: 13px;
  max-width: 1000px;
  margin: 60px auto;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  margin-bottom: 150px;
}

.article-promo h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text);
}

.article-promo p {
  font-size: 16px;
  line-height: 2;
  background-color: #fff7ec;
  padding: 20px;
  border-radius: 12px;
  border-right: 4px solid var(--text);
  margin-bottom: 30px;
}

.read-more-btn {
  display: inline-block;
  background-color: #003366;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  transform: scale(1.05);
  background-color: var(--Background);  
  color: var(--text)                
}
/*---------------- فوتر -----------------*/
.footer-section {
  background-color: var(--text);
  color: #fff;
  padding: 40px 20px;
  font-family: 'Vazir', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.footer-column p,
.footer-column li {
  font-size: 15px;
  line-height: 1.8;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #ffa500;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  border-top: 1px solid #555;
  padding-top: 20px;
  color: #ccc;
}

/* ---------------- MEDIA QUERIES ------------------ */
@media (max-width: 600px) {
  * { max-width: 100%; }
  body, html { overflow-x: hidden !important; }
  /* هدر */
  header { flex-direction: column; align-items: center; padding: 10px 15px; height: auto; gap: 10px; width: 100%; }
  .logo { font-size: 0.9em; text-align: center; margin: 0 auto; }
  nav ul { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 13px; padding: 0; margin: 0; }
  nav ul li a { font-size: 0.9em; white-space: normal; }
  .system { padding: 5px 15px; font-size: 0.9em; display: block; margin: 0 auto; text-align: center; }

  /* HERO */
  .hero-content { direction: rtl; display: flex; justify-content: center; margin-top: 50px !important; padding: 20px !important; width: 100% !important; }
  .hero-content h1 { font-size: 1.6em; }
  .hero-content p { font-size: 0.95em; line-height: 1.6; }
  .hero-content img { width: 140px; margin-bottom: 20px; }
  .btnbox { display: flex; flex-direction: row; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
  .btnbox button { min-width: 100px; padding: 8px 12px; font-size: 0.85em; }

  /* باکس انواع زبان */
  .language-scroll { gap: 12px; padding: 0 10px; overflow-x: auto; }
  .language-section { margin-bottom: 50px; }
  .language-card { width: 80% !important; min-width: 80% !important; font-size: 14px; padding: 12px; margin: 0 auto; }
  .language-card h3 { font-size: 16px; }
  .language-card p { font-size: 13px; }

  /* class box */
  .programcountainer{padding: 0;}
  .program-table { margin-bottom: 60px; }
  .program-table thead tr th { font-size: 0.8em; }
  .program-table tbody tr td { font-size: 0.7em; }
  .program-box tbody tr td .register-btn { width: auto; padding: 5px; font-size: 1em; }
  .program-table th:nth-child(7),
  .program-table td:nth-child(7) { display: none;}
  .program-table th:nth-child(2),
  .program-table td:nth-child(2) { display: none;}

  /* هدر جدول */
  .header-flex { display: flex; justify-content: space-between; padding: 0; margin: 0; }
  .header-right, .header-left { width: 100%; white-space: normal; margin-bottom: -10px; }
  .header-right { text-align: right; font-size: 17px; margin-right: 20px; }
  .header-left { text-align: left; font-size: 14px; margin-left: 20px; }
  button { font-size: 0.8em; padding: 6px 10px; min-width: 90px; background-color: #10375C; color: white; border: none; border-radius: 5px; cursor: pointer; transition: background 0.3s ease; }
  button:hover { background-color: #EC8305; color: #10375C; }

  /* باکس استاندارد */
  .standards-container { flex-direction: column; gap: 30px; }
  .standard-column { padding: 0; }
  .tags { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .tags a span { font-size: 13px; padding: 5px 10px; }
  .section-title { font-size: 24px; }
  .standard-column h3 { font-size: 18px; margin-bottom: 12px; }

  /* باکس مقاله */
  .article-promo { padding: 18px 15px; margin: 20px; margin-top: -90px; margin-bottom: 110px; }
  .article-promo h2 { font-size: 1.2em; }
  .article-promo p { font-size: 0.8em; }
  .article-promo .read-more-btn { font-size: 0.9em; }

  /* نظرات */
  .testimonial-track { animation: scroll-left 20s linear infinite; gap: 15px; width: max-content; }
  .testimonial { margin-bottom: 110px; flex: 0 0 85% !important; width: 85% !important; height: auto; }

  /* فوتر */
  .footer-container { flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; gap: 20px; width: 100%; }
  .footer-column { padding: 0 10px; }
  .footer-column h3 { font-size: 12px; }
  .footer-column p, .footer-column li, .footer-column a { font-size: 10px; line-height: 1.6; }
  .footer-bottom { font-size: 11px; padding-top: 15px; }
}

/* تبلت */
@media (max-width: 800px) and (min-width: 600px) {
  header { flex-direction: column; align-items: center; padding: 10px 15px; height: auto; gap: 10px; }
  .logo { font-size: 0.9em; text-align: center; margin: 0 auto; }
  .system { font-size: 0.9em; padding: 8px 16px; display: inline-block; margin: 10px auto; text-align: center; width: auto; min-width: 120px; border-radius: 6px; }
  nav ul li a:not(.samane) { display: inline-block; padding-top: 12px; }
  th:nth-child(3), td:nth-child(3) { display: none; }
  th:last-child, td:last-child { width: 25%; }
}
