/*

Template 2103 Central

http://www.tooplate.com/view/2103-central
	
*/

body {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a:hover,
a:focus,
.tm-text-gray {
  color: #666666;
}

.tm-text-black {
  color: #212529;
}
h1 {
  font-size: 3rem;
}
p {
  line-height: 1.8;
}

.navbar-toggler {
  border-color: #6c757d;
  cursor: pointer;
}

#mainNav {
  background: white;
  padding: 5px 15px;
  width: 180px;
  position: absolute;
  top: 50px;
  right: 15px;
  -webkit-box-shadow: 0px 0px 7px 0px rgba(214, 214, 214, 1);
  -moz-box-shadow: 0px 0px 7px 0px rgba(214, 214, 214, 1);
  box-shadow: 0px 0px 7px 0px rgba(214, 214, 214, 1);
  z-index: 1000;
}

.navbar {
  justify-content: flex-end;
}
button {
  cursor: pointer;
}
button:focus {
  outline: none;
}
.tm-section-mb {
  margin-bottom: 90px;
}

#top {
  padding-top: 65px;
}

#tm-section-2,
#tm-section-6 {
  padding-top: 60px;
}

.tm-section-4 {
  padding: 0px;
  padding-top: 100px;
  padding-bottom: 80px;
  background-image: url(../img/tm-bg-section-4.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
  height: 300px;
}

.menu {
  float: right;
}

.tm-box-3 {
  padding: 40px 50px;
  background: #f2f2f2;
}

.tm-box-5 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 25px;
  padding-right: 25px;
  min-height: 200px;
  background: #f2f2f2;
}

.tm-media {
  margin-bottom: 25px;
}

.slick-dots li button:before {
  font-size: 20px;
  color: white;
  opacity: 1;
}

.tm-img-slider-item {
  position: relative;
}

.tm-slider-caption {
  color: white;
  font-size: 1.5rem;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 1000;
  margin-bottom: 0;
  padding: 8px 30px;
  background-color: rgba(206, 212, 218, 0.5);
  color: #111;
}

.tm-img-container {
  width: 96%;
  max-width: 1020px;
}

.slick-dots {
  position: absolute;
  bottom: -50px;
  display: block;
  width: 100%;
  padding: 0;
  list-style: none;
  text-align: center;
}

.slick-prev:before,
.slick-next:before {
  color: #f8f9fa;
}

.slick-prev {
  left: 5px;
  z-index: 1000;
}

.slick-next {
  right: 5px;
}
.tm-slider-img {
  width: 100%;
}

.tm-slider-img,
.slick-slide {
  min-height: 250px;
}

.tm-slider-img {
  min-width: 500px;
}



a {
  transition: all 0.3s ease;
}

.btn {
  background-color: white;
  border-color: gray;
  border-radius: 0;
  color: #666666;
  font-size: 1.3rem;
  margin-top: 5px;
  padding: 12px 30px;
}

.btn-big {
  padding: 10px 45px;
}

.btn:hover,
.btn:focus {
  background-color: gray;
  color: white;
}

.tm-media-img {
  width: 200px;
  height: 200px;
}

.float-right {
  float: right;
}

.tm-fa-toggler-icon {
  font-size: 30px;
  padding: 0;
  color: gray;
}

.tm-2col-l {
  padding-right: 40px;
}
.tm-2col-r {
  padding-left: 40px;
}

.form-control {
  border-radius: 0;
  font-size: 1.2rem;
  padding: 13px 19px;
}

.form-control:focus {
  border-color: #b5b5b5;
  box-shadow: 0 0 0 0.2rem #a3a3a329;
}

.form-control::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #666666;
  opacity: 1;
  /* Firefox */
}

.form-control:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #666666;
}

.form-control::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #666666;
}

.form-control::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #666666;
  opacity: 1;
  /* Firefox */
}

.form-control:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #666666;
}

.form-control::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #666666;
}

/* Loader */

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}
#loader {
  display: block;
  position: relative;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #3498db;

  -webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
  animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */

  z-index: 1001;
}

#loader:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #e74c3c;

  -webkit-animation: spin 3s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
  animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

#loader:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #f9c922;

  -webkit-animation: spin 1.5s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
  animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(0deg); /* IE 9 */
    transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */
  }
  100% {
    -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(360deg); /* IE 9 */
    transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */
  }
}
@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(0deg); /* IE 9 */
    transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */
  }
  100% {
    -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(360deg); /* IE 9 */
    transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */
  }
}

#loader-wrapper .loader-section {
  position: fixed;
  top: 0;
  width: 51%;
  height: 100%;
  background: #222222;
  z-index: 1000;
  -webkit-transform: translateX(0); /* Chrome, Opera 15+, Safari 3.1+ */
  -ms-transform: translateX(0); /* IE 9 */
  transform: translateX(0); /* Firefox 16+, IE 10+, Opera */
}

#loader-wrapper .loader-section.section-left {
  left: 0;
}

#loader-wrapper .loader-section.section-right {
  right: 0;
}

/* Loaded */
.loaded #loader-wrapper .loader-section.section-left {
  -webkit-transform: translateX(-100%); /* Chrome, Opera 15+, Safari 3.1+ */
  -ms-transform: translateX(-100%); /* IE 9 */
  transform: translateX(-100%); /* Firefox 16+, IE 10+, Opera */

  -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loaded #loader-wrapper .loader-section.section-right {
  -webkit-transform: translateX(100%); /* Chrome, Opera 15+, Safari 3.1+ */
  -ms-transform: translateX(100%); /* IE 9 */
  transform: translateX(100%); /* Firefox 16+, IE 10+, Opera */

  -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loaded #loader {
  opacity: 0;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
.loaded #loader-wrapper {
  visibility: hidden;

  -webkit-transform: translateY(-100%); /* Chrome, Opera 15+, Safari 3.1+ */
  -ms-transform: translateY(-100%); /* IE 9 */
  transform: translateY(-100%); /* Firefox 16+, IE 10+, Opera */

  -webkit-transition: all 0.3s 1s ease-out;
  transition: all 0.3s 1s ease-out;
}

/* JavaScript Turned Off */
.no-js #loader-wrapper {
  display: none;
}

@media screen and (max-width: 1199px) {
  .tm-2col-l {
    padding-right: 30px;
  }
  .tm-2col-r {
    padding-left: 30px;
  }
}

@media screen and (max-width: 991px) {
  .tm-img-container {
    max-width: 490px;
    width: 90%;
  }
  .tm-address-box {
    padding-left: 10px;
  }
  .fit {
    margin-bottom: 50px;
  }
  .tm-slider-caption {
    font-size: 1rem;
    padding: 8px 10px;
  }
  .tm-2col-l {
    padding-right: 20px;
  }
  .tm-2col-r {
    padding-left: 20px;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    justify-content: flex-end;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
    flex-direction: column;
    align-items: end;
  }
  #mainNav {
    top: 90px;
    right: 30px;
  }

  .tm-2col-l {
    padding-right: 15px;
  }
  .tm-2col-r {
    padding-left: 15px;
  }
  .tm-address-box {
    padding-left: 0;
    padding-top: 40px;
  }
  .tm-form-section {
    padding-top: 80px;
    padding-bottom: 100px;
  }
  .tm-box-5 {
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .tm-section-mb {
    margin-bottom: 60px;
  }
  .tm-mb-sm-4 {
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 540px) {
  .tm-address-box {
    margin-bottom: 50px;
  }
  .tm-page-4-content {
    margin-bottom: 50px;
  }

  .tm-slider-caption {
    right: 0;
    left: 0;
    bottom: 0;
  }

  .tm-slider-col {
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (max-width: 430px) {
  .tm-media {
    flex-direction: column;
  }
  .navbar {
    padding: 0;
  }
}

@media (min-width: 768px) {
  .tm-contact-right {
    padding-left: 40px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1310px;
  }
}
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Regular.woff2') format('woff2'),
         url('../fonts/Vazir-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2'),
         url('../fonts/Vazir-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* اعمال فونت روی کل سایت */
body {
    font-family: 'Vazir', sans-serif;
    direction: rtl;
    text-align: right;
}
.tm-img-slider {
  direction: ltr !important;
}
/* منوی سفارشی */
.custom-navbar {
  background-color: #003366; /* آبی تیره */
  padding: 10px 0;
  text-align: right;
}

/* تنظیم لیست منو */
.custom-navbar .navbar-nav {
  display: flex;
  justify-content: center;
  direction: rtl; /* برای فارسی */
}

/* لینک‌های منو */
.custom-navbar .nav-link {
  color: white !important;
  margin: 0 2px;
  font-family: 'Vazir', sans-serif;
  font-size: 1rem;
  transition: color 0.3s ease;
}

/* افکت hover */
.custom-navbar .nav-link:hover {
  color: #f8f8f8 !important; /* آبی روشن هنگام هاور */
}

/* وقتی منو بالاست، محتوا نیفته زیرش */
body {
  padding-top: 90px;
}
.team-section {
  background-color: #f7f9fc;
  direction: rtl;
  text-align: center;
}

.team-section h2 {
  font-family: 'Vazir', sans-serif;
  font-weight: 700;
  color: #003366;
}

.team-member {
  background-color: #fff;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.member-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
}

.member-name {
  margin-top: 10px;
  font-weight: bold;
  color: #003366;
  font-family: 'Vazir', sans-serif;
}

.member-role {
  color: #555;
  font-size: 0.9rem;
  font-family: 'Vazir', sans-serif;

}

.social-link {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #f5f6f7;
}
html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}



.custom-navbar {
  width: 100%;
  background-color: #003366; /* آبی تیره */
  padding: 0.8rem 2rem;
  font-family: 'Vazir', sans-serif;
  direction: rtl;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

/* Flex کانتینر اصلی */
.navbar-container {
  display: flex;
  justify-content: space-between; /* فاصله بین راست و چپ */
  align-items: center;
  flex-wrap: nowrap;
}

/* کانتینر منو راست */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 0; /* فاصله بین اسم کانون و منو صفر شد */
}

/* منو */
.navbar-menu {
  display: flex;        /* کنار هم قرار گرفتن آیتم‌ها */
  flex-wrap: nowrap;    /* جلوگیری از افتادن زیر هم */
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu li {
  margin-right: 15px;   /* فاصله بین آیتم‌ها */
  white-space: nowrap;  /* جلوگیری از شکستن خط */
}

.navbar-menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar-menu a:hover {
  color: #00bfff;
}


.contact-left button {
    align-self: flex-end; /* چپ چین کردن دکمه */
    margin-top: 10px;
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
}
.contact-left button:hover {
    background-color: #00bfff;
    color: #003366;
}
.contact-left button {
    align-self: flex-start; /* چپ چین کردن دکمه */
    margin-top: 10px;
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
}
.contact-left button:hover {
    background-color: #00bfff;
    color: #003366;
}
/* کانتینر فرم دو ستونه */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* فاصله بین ستون‌ها */
}

/* ستون سمت راست */
.contact-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px; /* فاصله بین input ها */
}

/* ستون سمت چپ */
.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* textarea هم اندازه سه input ستون راست */
.contact-left textarea {
    height: calc(3 * 50px + 2 * 15px); /* 3 input × ارتفاع + فاصله بین input ها */
    resize: none;
}

/* دکمه ارسال زیر textarea و چسبیده به چپ */
.contact-left button {
    align-self: flex-end;
    margin-top: 10px;
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
}
.contact-left button:hover {
    background-color: #00bfff;
    color: #003366;
}

/* Input ها و textarea */
.contact-right input,
.contact-left textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* ریسپانسیو موبایل */
@media screen and (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    .contact-left textarea {
        height: auto; /* ارتفاع طبیعی در موبایل */
    }
    .contact-left button {
        align-self: center;
    }
}

.custom-footer-isolated {
  position: relative;
  width: 100vw;              /* تمام عرض صفحه */
  left: 50%;
  right: 50%;
  margin-left: -50vw;        /* ایزوله از container */
  margin-right: -50vw;
  background-color: #003366; /* آبی تیره */
  color: #fff;
  padding: 40px 0;
  box-sizing: border-box;
  overflow-x: hidden;
  z-index: 10;
}

.custom-footer-isolated .footer-inner {
  width: 100%;
  max-width: 1400px; /* برای نظم وسط محتوا */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 40px;
  box-sizing: border-box;
}

.custom-footer-isolated h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.custom-footer-isolated a {
  color: #fff;
  text-decoration: none;
  margin-left: 10px;
}

.custom-footer-isolated a:hover {
  color: #ccc;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.footer-copy {
  text-align: center; /* وسط‌چین کردن متن */
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
}
@media (max-width: 768px) {
    /* پنهان کردن منوی اصلی */
    .navbar-menu {
        display: none !important;
    }

    /* نوار بالایی جمع‌وجور */
    .custom-navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 8px 16px;
        background-color: #003366;
    }

    /* برند (کانون رانندگان) */
    .navbar-brand {
        font-size: 1rem;
        color: white;
        margin: 0;
        white-space: nowrap;
    }

    /* لینک‌های ورود و ثبت‌نام */
    .auth-links {
    display: flex;
    gap: 4px;
   
    justify-content: flex-start; /* افقی به چپ بچسبد */
    margin-left: 0; /* حذف فاصله اضافی */
    margin-right:10px;شار از سمت راست برای چسبیدن به چپ */
}

.auth-links a {
    font-size: 0.8rem; /* کمی بزرگتر از قبل برای خوانایی */
    color: white;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}




    /* جلوگیری از شکستن خطوط */
    .navbar-right {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
}
#tm-section-1 {
    margin-top: 80px; /* حدود ارتفاع منو */
}
.navbar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu a {
  display: block;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
}

.navbar-menu a:hover {
  background-color: #002b5c;
  transition: 0.3s;
}

/* Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #003366;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 0 0 8px 8px;
  z-index: 1000;
}

.dropdown-content li a {
  padding: 10px 15px;
  font-size: 0.9rem;
}

.dropdown:hover .dropdown-content {
  display: block;
}
/* دکمه سه‌خطی */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 1px;
  position: absolute;
  right: 360px;  /* بچسبه به سمت چپ */
  top: 5px;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: white;
  margin: 4px 0;
  border-radius: 3px;
}

/* تنظیمات پایه منو */
.navbar-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

/* در حالت موبایل */
@media (max-width: 768px) {
  .navbar-container {
    position: relative;
  }

  .navbar-right {
    width: 100%;
    text-align: right;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    background-color: #003366;
    position: absolute;
    top: 60px;
    right: 0;
    width: 65%;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    z-index: 1000;
  }

 @media (max-width: 768px) {
  .navbar-menu.active {
    display: flex !important;
    flex-direction: column;
    background-color: #003366;
    position: absolute;
    top: 60px;
    right: 0;
    width: 70%;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
  }
}


  .menu-toggle {
    display: flex;
  }

  .auth-links.desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}

/* در دسکتاپ آیتم‌های مخصوص موبایل نباشن */
@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }
}
