/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'vazir','Tahoma', sans-serif ;
  direction: rtl;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* هدر سایت */
header {
  background-color: #0cdf09e3;
  color: rgb(132, 235, 107);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: rgb(18, 245, 18);
}

nav {
  display: flex;
  gap: 25px;
  align-items: center;
  position: relative;
  font-family: Vazir ,sans-serif;
  font: weight 600;
}

nav a, .dropbtn {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 6px;
  transition:background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap:6px;
  user-select: none;
}
/* هاور و فوکوس روی لینک‌ها */
nav a:hover, .dropbtn:hover, nav a:focus, .dropbtn:focus {
  background-color: #f0a500; /* رنگ نارنجی ملایم */
  color: #222;
  outline: none;
}
.dropdown {
  position: relative;
}

/* محتوای دراپ‌داون (زیرمنو مخفی به‌صورت پیش‌فرض) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #222;
  min-width: 200px;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.3);
  z-index: 1000;
  right: 0; /* راست چین */
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transform:translateY(10px) ;
  transition:opacity 0.25s ease, transform 0.25s ease;
}
.dropdown-content a img {
  margin: 10px 8px 10px 8px;
  width: 20px;
  height: auto;
  margin-right: 2px;
  vertical-align: middle;
}

/* نمایش زیرمنو هنگام هاور */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.dropdown-content a {
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  text-align: right;
  font-weight: 500;
  transition:background-color 0.2s ease;
  text-align: right;
}
/* هاور روی لینک‌های زیرمنو */
.dropdown-content a:hover {
  background-color: #f0a500;
  color: #222;
}
/* آیکون caret کوچک‌تر و کمی فاصله بیشتر */
.dropbtn i.fa-caret-down {
  font-size: 0.7em;
  transition: transform 0.3s ease;
}
/* چرخش آیکون هنگام باز شدن منو */
.dropdown:hover .dropbtn i.fa-caret-down {
  transform: rotate(180deg);
}
.contact-btn {
  background-color: #f0a500;
  color: black;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 700;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.contact-btn:hover {
  background-color: #c17f00;
  color: white;
}
/* بخش‌های محتوا */
/* تنظیم پایه برای فونت و رنگ متن */
/* بخش ترجمه خدمات */
/* استایل بخش کارت‌های مدارک ترجمه ترکی */
.language-cards {
  padding: 2rem 1rem;
  background-color: #fefefe;
  text-align: center;
}

.language-cards h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #c8102e;
  font-weight: bold;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.lang-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 1.5rem 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lang-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.lang-card i {
  font-size: 2rem;
  color: #c8102e;
  margin-bottom: 0.8rem;
}

.lang-card h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.lang-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}
.cta-button {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 35px;
  }

  .consult-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #3498db;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s ease;
  }

  .consult-btn i {
    margin-left: 8px;
  }

  .consult-btn:hover {
    background: #2c80b4;
  }

  @media (max-width: 768px) {
    .documents-needed h2 {
      font-size: 24px;
    }
  }
    .consult-btn {
      font-size: 15px;
      padding: 12px 20px;
    }
/* Footer */
.footer {
  background-color: #111;
  color: #fff;
  padding: 40px 20px 10px;
  font-family: 'Tahoma', sans-serif;
  margin-top: auto;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}
.footer-section {
  flex: 1 1 200px;
  margin: 20px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffd700;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icon {
  font-size: 24px;
  color: #ccc;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  color: #fff;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 10px;
  font-size: 14px;
  color: #aaa;
}
.footer-section.brand h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #fff;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
  max-width: 350px;
}
/* چت باکس */
#avesta-chat {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 320px;
  max-height: 480px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  font-family: 'Vazirmatn', sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  z-index: 9999;
}

.chatbox.closed {
  transform: scale(0);
  opacity: 0;
}

.chatbox.open {
  transform: scale(1);
  opacity: 1;
}

.chat-header {
  background-color: #1c8a53;
  color: white;
  padding: 14px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
}

.chat-body {
  padding: 12px;
  height: 300px;
  overflow-y: auto;
  background-color: #f9f9f9;
}

.chat-msg {
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 90%;
}

.chat-msg.bot {
  background-color: #e8f5e9;
  color: #2e7d32;
  align-self: flex-start;
}

.chat-msg.user {
  background-color: #dcedc8;
  color: #33691e;
  align-self: flex-end;
}

#chat-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #1c8a53;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  transition: background 0.3s ease;
}
#chat-toggle:hover {
  background-color: #157a47;
}