@media (hover: hover) and (pointer: fine) {
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px #4169e1;
  }
.contact-card a:hover {
  color: #4169e1;
  }
.submit-btn:hover {
  background-color: #4169e1;
  color: #fff;
  }
}



@media (max-width: 1050px) {
  .test {
    display: none;
  }
  .container_menu_img {
    margin: 3rem auto;
  }
}
@media (max-width: 1024px) {
  .bckbe{
    grid-template-columns: auto !important;
    gap: 1rem !important;
  }
  .container_menu_img{
    order: 1;
  }
}



@media (max-width:820px) {
  .slider{
    overflow-x: auto;
    margin: 3rem 1rem;
  }
}

@media (max-width: 507px) {
  .container_menu_img {
    column-gap: 54px !important;
  }
}
@media (max-width: 507px) {
  .container_menu_img a img {
    width: 80px;
  }
}
@media (max-width: 445px) {
  .container_menu_img {
    column-gap: 50px !important;
    row-gap: 40px !important;
  }
}
@media (max-width:600px) {
  .brand{
  display: grid !important;
  grid-template-columns: repeat(3,1fr) !important;
  gap: 0 !important;
  }
}
@media (max-width:483px) {
  .brand img{
    width: 30vw;
  }
}


@media (max-width: 420px) {
  .container_menu_img {
    column-gap: 40px !important;
  }
}
@media (max-width: 365px) {
  .container_menu_img {
    column-gap: 30px !important;
  }
}

@media (max-width: 845px) {
  .contact_cards_container {
    grid-template-columns: auto;
  }
  .contact_cards_container .contact-card:last-child{
    grid-column: 1/2;
  }
}


@media (max-width:486px) {
  .fas + h3 + div{
    grid-template-columns: auto;
    margin-top: 1.5rem;
  }
}

@media (max-width:990px) {
  .main-box{
    grid-auto-columns: 421px !important;
    gap: 50px;
  }
}
@media (max-width:432px) {
  .main-box{
    grid-auto-columns: 368px !important;
  }
  .article_text1 + .toggle_btn{
    right: 306px !important;
    bottom: 23px !important;
  }
  .article_text2 + .toggle_btn{
    right: 281px !important;
  }
  .article_text3 + .toggle_btn3{
    right: 288px !important;
    bottom: 21px !important;
  }

  .article_text1.expanded1 + button{
    right: 223px !important;
    bottom: 31px !important;
  }
.article_text3.expanded3 + button{
    bottom: 30px !important;
  }
}
@media (max-width:390px) {
  .main-box{
    grid-auto-columns: 345px !important;
  }
  .article_text1 + .toggle_btn{
    right: 262px !important;
    bottom: 24px !important;
  }
  .article_text2 + .toggle_btn {
    right: 271px !important;
  }
  .article_text3 + .toggle_btn3 {
    right: 268px !important;
    bottom: 26px !important;
  }

  .article_text1.expanded1 + button{
    right: 259px !important;
  }
  .article_text2.expanded2 + button{
    right: 232px !important;
  }
  .article_text3.expanded3 + button{
    right: 206px !important;
  }
}
@media (max-width:366px) {
  .main-box{
    grid-auto-columns: 334px !important;
  }
  .article_text2 + .toggle_btn {
    right: 257px !important;
    bottom: 25px !important;
  }
  .article_text3 + .toggle_btn3 {
    right: 260px !important;
  }

  .article_text1.expanded1 + button{
    right: 164px !important;
  }
  .article_text2.expanded2 + button{
    right: 189px !important;
    bottom: 30px !important;
  }
  .article_text3.expanded3 + button{
    right: 220px !important;
  }  
}

@media (max-width: 649px) {
  .nav-menu {
    display: none;
  }
  .main_change_language {
    display: none;
  }
  #menu_icon {
    display: block;
  }
  .navbar0 {
    grid-template-columns: repeat(2, auto);
  }
  .jak_img_top {
    display: grid !important;
  }
  .text_left h4 {
    display: block !important;
  }


  .btn-primary:not(.main_change_language){
    padding: 14px 17px !important;
    font-size: 2.8vw !important;
  }
  .button_hero_content{
    margin-right: 0 !important;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 28px;
    column-gap: 6px;
    text-align: center;
    align-items: end;
    height: 27vw;
    max-width: 100%;
  }
  .text_button{
    position: absolute;
    z-index: 3;
    padding: 10vw 0 !important;
  }
  .text_button p{
    font-size: 14px !important;
    font-weight: 600;
    line-height: 7vw;
    color: #3e3e3e;
  }
  .text_button h1{
    font-size: 25px !important;
    line-height: 200%;
    margin-bottom: 2vw;
  }
  .text_jak{
    max-width: none !important;
    justify-self: center !important;
    text-align: center;
    line-height: 6.5vw !important;
    padding: 4vw !important;
  }
  .jak_img_text{
    grid-template-columns: 1fr !important;
    height: 100svh;
  }
  .jak img{
    margin-right: 0 !important;
  }

  .jak{
    justify-self: center;
    animation: showJak ease-in 3s backwards;
    -webkit-animation: showJak ease-in 3s backwards;
    opacity: 0;
}
@keyframes showJak {
  from{
    opacity: 1;
  }
  to{
    opacity: 0;
  }
}
@media (max-width: 500px) {
  .button_hero_content{
    grid-template-columns: repeat(2,1fr);
  }
  .btn-primary:not(.main_change_language) {
    font-size: 3.2vw !important;
  }
}

.text_jak{
  opacity: 0;
  animation: showTexts 2s linear forwards;
  -webkit-animation: showTexts 2s linear forwards;
  animation-delay: 2s;
}
@keyframes showTexts {
  to{
    opacity: 1;
  }
}
}
@media (min-width: 649px) {
  #menu_icon {
    display: none;
  }
  .nav-menu {
    margin-bottom: 1.5rem;
    font-size: 15px;
  }
}
@media (max-width:512px) {
  .text_left h4{
    line-height: 27px !important;
  }
}
@media (max-width:470px) {
  .text_left h4{
    line-height: 25px !important;
  }
}

@media (max-width: 521px){
  .article_text1 , .article_text2 , .article_text3{
  line-clamp: 2;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 5.2em;
  transition: all .3s ease;
  -webkit-transition: all .3s ease;
  -moz-transition: all .3s ease;
  -ms-transition: all .3s ease;
  -o-transition: all .3s ease;
  }
  .article_text1.expanded1 {
  line-clamp: unset;
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;
  }
.article_text2.expanded2 {
  line-clamp: unset;
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;
  }
.article_text3.expanded3 {
  line-clamp: unset;
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;
  }
.article_text1.expanded1 + button{
  bottom: 30px;
  right: 348px;
  }
.article_text2.expanded2 + button{
  bottom: 30px;
  right: 290px;
  }
.article_text3.expanded3 + button{
  bottom: 31px;
  right: 282px;
  }

.toggle_btn{
  border: none;
  background-color: transparent;
  font-size: 21px;
  font-weight: 600;
  color: #7b7b7b;
  position: relative;
  right: 352px;
  bottom: 22px;
  display: block !important;
  }
.toggle_btn3 {
  border: none;
  background-color: transparent;
  font-size: 21px;
  font-weight: 600;
  color: #7b7b7b;
  position: relative;
  right: 339px;
  bottom: 25px;
  display: block !important;
  }
  .main-box:not(.dots){
    padding: 30px 40px 60px 40px !important;
    -ms-overflow-style: none; /* IE و Edge */
    scrollbar-width: none; /* Firefox */
  }
  .main-box::-webkit-scrollbar {
    display: none; /* Chrome و Safari */
  }
  .dots{
    display: block !important;
  }
}
.toggle_btn3 , .toggle_btn{
  display: none;
}

@media (max-width: 895px) {
  #animationSection {
    display: none;
  }
  .img_center_phone {
    display: grid !important;
  }
}
@media (max-width: 659px) {
  .img_center_phone {
    grid-template-columns: auto !important;
    text-align: center;
  }
  .container_img_center1{
    grid-template-columns: auto !important;
    gap: 20px !important;
  }
  .container_img_center2{
    grid-template-columns: auto !important;
    gap: 20px !important;
  }
  .img_center_phone p {
    justify-self: center;
    line-height: 36px;
    margin: 0 10px;
  }
  .img_center_1 + p {
    margin-bottom: 25px;
  }
  #mag{
    font-size: 32px !important;
    text-align: start !important;
    margin-right: 1.4rem !important;
    margin-bottom: -132px !important;
  }
  .text_slider{
    display: block !important;
  }
}

@media (max-width: 575px) {
  .jak_text_container {
    grid-template-columns: 1fr !important;
  }
  .text_left h4 {
    margin: 0 5% 0 4px;
    font-size: 18px !important; 
    font-weight: 700;
  }
  .hidden_about{
    display: none;
  }
}

/*  */

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.change_language > a {
  margin-right: 1.5rem;
  position: absolute;
  bottom: 20px;
}

.side_bar > ul li a {
  color: #323232;
}

.side_bar ul {
  position: absolute;
  right: 1.5rem;
  top: 95px;
  font-weight: 600;
  line-height: 40px;
  font-size: 18px;
}
#close_icon {
  position: relative;
}

.jak_img_text{
  background-color: #eef5ff;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.text_jak{
  max-width: 82%;
  justify-self: flex-end;
}
.text_button{
  padding: 4vw 0;
  line-height: 3.7vw;
}
.text_button h1{
  font-size: 2vw;
  color: #333;
}
.text_button p{
  font-size: 1.2vw;
}

.jak{
  max-width: 80%;
}
@media (max-width:580px) {
  .jak{
  max-width: 78% ;
}
}
.jak img{
  max-width: 100%;
  margin-right: 3rem;
}

.button_hero_content{
  margin-right: 8.8vw;
}


.container_menu_img {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 78px;
}

.container_menu_img a {
  text-decoration: none;
  color: #000;
  text-align: center;
}

.bckbe {
  display: grid;
  grid-template-columns: repeat(2, auto);
  align-items: center;
  max-width: 100%;
  justify-content: space-around;
  /* height: 118svh; */
}

.jak_img_top {
  width: 100%;
  padding: 16px 0;
  display: none;
  scale: 0;
  opacity: 0;
  transform: translateY(200px);
  -webkit-transform: translateY(200px);
  -moz-transform: translateY(200px);
  -ms-transform: translateY(200px);
  -o-transform: translateY(200px);
  animation: scrol both;
  -webkit-animation: scrol both;
  animation-timeline: view();
  animation-range: entry 60%;
}
@keyframes scrol {
  to {
    scale: 1;
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
  }
}
.jak_text_container {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: baseline;
}
.jak_img_top img {
  max-width: 95%;
  height: 95svh;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
  -webkit-filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  margin: -16rem auto -4rem auto;
}
.text_left {
  overflow: clip;
  max-width: 97%;
}
.text_left h4 {
  font-weight: 500;
  font-size: clamp(5px, 3.5vw, 4rem);
  line-height: 34px;
  display: none;
  opacity: 0.8;
  scale: 0.7;
  transform: translateX(-350px);
  -webkit-transform: translateX(-350px);
  -moz-transform: translateX(-350px);
  -ms-transform: translateX(-350px);
  -o-transform: translateX(-350px);
  animation: show_text linear both;
  -webkit-animation: show_text linear both;
  animation-timeline: view(90% 2%);
}
@keyframes show_text {
  to {
    opacity: 1;
    scale: 1;
    transform: translateX(0);
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
  }
}

.img_center_phone {
  display: none;
  grid-template-columns: auto;
  padding: 20px;
  row-gap: 20px;
  overflow-x: clip;
}
.img_center_phone img {
  width: 225px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: drop-shadow(0 0 10px #005fcc);
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}
.img_center_1,
.img_center_2 {
  width: 100%;
}
.img_center_phone p {
  max-width: 90%;
  font-size: 18px;
  font-weight: 700;
  align-self: center;
}
.container_img_center1{
  display: grid;
  grid-template-columns: auto auto;
  gap: 60px;
  transform: translateX(900px);
  -webkit-transform: translateX(900px);
  -moz-transform: translateX(900px);
  -ms-transform: translateX(900px);
  -o-transform: translateX(900px);
  opacity: .3;
  animation: showFromRight linear both;
  -webkit-animation: showFromRight linear both;
  animation-timeline: view();
  animation-range: entry 3%;
}
@keyframes showFromRight {
  to{
    transform: translateX(0);
    opacity: 1;
}
}

.container_img_center2{
  display: grid;
  grid-template-columns: auto auto;
  gap: 60px;
  transform: translateX(-900px);
  -webkit-transform: translateX(-900px);
  -moz-transform: translateX(-900px);
  -ms-transform: translateX(-900px);
  -o-transform: translateX(-900px);
  opacity: .3;
  animation: showFromLeft linear both;
  -webkit-animation: showFromLeft linear both;
  animation-timeline: view();
  animation-range: entry 3%;
}
@keyframes showFromLeft {
  to{
    transform: translateX(0);
    opacity: 1;
}
}

.text_slider{
  text-align: start;
  margin-top: 3rem;
  display: none;
  margin-right: 2rem;
}
.text_slider h4{
  font-size: 22px;
  font-weight: 500;
  color: #323232;
}


.main-box:not(.dots) {
  background: white;
  padding: 30px 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  display: grid;
  grid-auto-columns: auto;
  grid-auto-flow: column;
  justify-content: space-between;
  width: 95%;
  box-sizing: border-box;
  margin: 9rem auto;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;

}



.dots {
  margin: 10px 0;
  position: absolute;
  top: 92%;
  right: 43%;
  display: none;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: background 0.3s;
  -webkit-transition: background 0.3s;
  -moz-transition: background 0.3s;
  -ms-transition: background 0.3s;
  -o-transition: background 0.3s;
}

.dot.active {
  background: #000;
}

/* باکس‌های عمودی داخل main-box */
.article {
  background: white;
  box-shadow: 0 6px 15px #0078ff;
  border-radius: 20px;
  overflow: hidden;
  padding: 33px;
  box-sizing: border-box;
  /* transform: translateX(100%); */
  /* opacity: 0; */
  transition: transform 4s ease, opacity 4s ease;
  -webkit-transition: transform 4s ease, opacity 4s ease;
  -moz-transition: transform 4s ease, opacity 4s ease;
  -ms-transition: transform 4s ease, opacity 4s ease;
  -o-transition: transform 4s ease, opacity 4s ease;
  scroll-snap-align: center;
}

/* وقتی فعال شد */
.article.active {
  transform: translateX(0);
  opacity: 1;
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
}

/* تصویر داخل مقاله */
.article img {
  max-width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  margin: 0 auto 2rem auto;
  border-radius: 30px;
  object-fit: cover;
}



/* متن زیر عکس */
.article p {
    margin: 0;
    text-align: center;
    font-size: 18px;
    color: #636363;
    font-weight: 600;
    line-height: 33px;
}

.main-box::-webkit-scrollbar {
  height: 8px;
}

.main-box::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 10px;
}

.main-box::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 10px;
}

.slider::-webkit-scrollbar {
  height: 5px;
  margin-top: 10px;
}

.slider::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 10px;
}

.slider::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 10px;
}

.scrol_box{
  position: relative;
}




/*  */
/*  */
/*  */

