:root {
  --primary-color: #e00;
  --primary-dark: #c00;
  --dark-color: #222;
  --light-color: #fff;
  --gray-color: #f5f5f5;
  --text-color: #333;
  --border-color: #ddd;
}

@font-face {
  font-family: vazir;
  src: url(./assets/fonts/Vazir-Thin-FD-WOL.ttf);
  font-weight: 300;
}

@font-face {
  font-family: vazir;
  src: url(./assets/fonts/Vazir-Light-FD-WOL.ttf);
  font-weight: 500;
}
@font-face {
  font-family: vazir;
  src: url(./assets/fonts/Vazir-FD-WOL.ttf);
  font-weight: 600;
}

@font-face {
  font-family: vazir;
  src: url(./assets/fonts/Vazir-Medium-FD-WOL.ttf);
  font-weight: 700;
}

@font-face {
  font-family: vazir;
  src: url(./assets/fonts/Vazir-Bold-FD-WOL.ttf);
  font-weight: 900;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "vazir";
}

body {
  font-family: "vazir";
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header Styles */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

.header-top {
  padding: 0.5rem 0;
  transform: translateY(20px);
  padding-left: 50px;
  z-index: 20000;
}

.header-social {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0 2rem;
}



.social-icon {
  width: 30px;
  height: 30px;
  background: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #e00;
  color: #fff;
  transform: translateY(-3px);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0rem 0rem;
  position: relative;
}

.logo img {
  max-height: 40px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  padding: 0.5rem;
}

/* Desktop Navigation - Styled like a Professional Menu */
.desktop-nav {
  position: relative;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 0;
  background: #e00;
  padding: 0rem 5rem;
  position: relative;
  transform: translateY(50%);
  border-radius: 0 100000px 0 0;
}

.main-menu > li {
  position: relative;
  padding: 0.2rem 0;
}

.main-menu > li > a {
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.main-menu > li > a:hover {
  color: #ffcccc;
}

.main-menu > li > a i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

/* Sub-menu Styles - Professional Dropdown */
.sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  padding: 0 !important;
  margin: 0 !important;
  background: #e00;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1001;
  overflow: hidden;
  /* border-top: 3px solid #e00; */
}

/* Show sub-menu on hover */
.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Animate chevron icon */
.menu-item-has-children:hover > a i {
  transform: rotate(180deg);
}

.sub-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.sub-menu li:last-child {
  border-bottom: none;
}

.sub-menu a {
  display: block;
  padding: 0.85rem 1.5rem;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.sub-menu a:hover {
  background: #f8f9fa;
  color: #e00;
  padding-right: 2rem;
}

.sub-menu a:hover:before {
  content: "›";
  position: absolute;
  right: 1rem;
  color: #e00;
}

/* Add a triangle pointer to sub-menu */
.sub-menu:before {
  content: "";
  position: absolute;
  top: -10px;
  right: 25px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-container {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 1003;
  transition: right 0.4s ease;
  overflow-y: auto;
}

.mobile-menu-container.active {
  right: 0;
}

.mobile-menu-header {
  background: #e00;
  color: #fff;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-mobile-menu {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  padding: 1rem 0;
}

.mobile-menu .menu-item-has-children {
  position: relative;
}
.mobile-menu .menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 1rem 1.5rem !important;
}
.mobile-menu .menu-item-has-children > a i {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}
.mobile-menu .menu-item-has-children > a.active i {
  transform: rotate(180deg);
}

.mobile-menu > li {
  border-bottom: 1px solid #eee;
}

.mobile-menu > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  color: #333;
  font-weight: 500;
}

.mobile-menu .sub-menu {
  position: static; /* در موبایل مثل آکاردئون عمودی باشد، نه منوی شناور */
  top: auto;
  right: auto;
  background: #f8f9fa;
  padding-right: 0;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu .sub-menu.collapse {
  transition: height 0.35s ease;
}

.mobile-menu .sub-menu.collapsing {
  transition: height 0.35s ease;
}

.mobile-menu .sub-menu li {
  border-bottom: 1px solid #e9ecef;
}
.mobile-menu .sub-menu li:last-child {
  border-bottom: none;
}

.mobile-menu .sub-menu a {
  display: block;
  padding: 0.8rem 2.5rem;
  color: #666;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.mobile-menu .sub-menu a:hover {
  background: #e9ecef;
  color: #e00;
  padding-right: 3rem;
}

/* مثلث بالای زیرمنو که برای دسکتاپ است را در موبایل مخفی کن */
.mobile-menu .sub-menu:before {
  display: none;
}

/* استایل برای آیکون chevron در منوی موبایل */
.mobile-menu .menu-item-has-children > a i {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.mobile-menu .menu-item-has-children > a[aria-expanded="true"] i {
  transform: rotate(180deg);
}
@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    max-height: 500px;
    opacity: 1;
  }
  to {
    max-height: 0;
    opacity: 0;
  }
}
/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("./assets/images/bg-main.png") center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: start;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: #fff;
  color: #222;
}

.btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: #e00;
  color: #fff;
}

.btn-secondary:hover {
  background: #f00;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(224, 0, 0, 0.3);
}
.btn-rel:hover {
  color: #e00 !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .header-main {
    padding: 1rem;
  }
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .main-menu {
    gap: 1.5rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .box-logo-footer {
    background-color: #111;
  }
  .hero-section {
    height: 50vh;
  }
  .box-status-service {
    transform: translateY(0) !important;
  }
  .box-status-services {
    transform: translateY(0) !important;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 80%;
    margin-bottom: 0.5rem;
  }

  .header-social {
    justify-content: center;
    padding: 0.5rem;
  }
}
@media (min-width: 768px) {
  .box-logo-footer {
    background-color: #111;
    left: 0;
    right: 0;
    top: -70px;
    bottom: -70px;
    position: absolute;
  }
  .box-status-service {
    transform: translateY(0);
  }
  .box-status-services {
    transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .mobile-menu-container {
    width: 100%;
  }

  .hero-title {
    font-size: 1.5rem;
  }
}

.box-service1 {
  background: url("./assets/images/bg-main.png") center/cover no-repeat;
  background-color: #2228;
  background-blend-mode: multiply;
  height: 200px;
  cursor: pointer;
  transition: 0.4s;
  border-radius: 10px;
}
.box-service1:hover {
  background-color: #2225;
}
.text-box-service1 {
  transform: translateY(80px);
  transition: 0.4s;
}
.box-service1:hover .text-box-service1 {
  transform: translateY(70px);
}
.box-icon-box-service1 {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  background: #e00;
  padding: 10px;
  transition: 0.4s;
  border-radius: 5px;
}
.icon-box-service1 {
  width: 40px;
  height: 40px;
  background-size: cover;
}
.box-service1:hover .box-icon-box-service1 {
  transform: translate(-50%, 70%);
}
.btn-all-service {
  background-color: #222;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 5px;
  padding-top: 5px;
  transition: 0.4s;
}
.btn-all-service:hover {
  background-color: #e00;
  color: #fff;
}

.counseling-section {
  height: 70vh;
  background-image: url("./assets/images/bg-main.png");
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #2227;
  background-blend-mode: multiply;
  position: relative;
  /* margin-bottom: 100px !important; */
  /* padding-bottom: 4rem; */
}
.arrow-red {
  width: 15px;
  height: 10px;
  background: #e00;
  transform: skewY(-30deg);
}
.btn-more-info-counseling {
  background-color: #e00;
  color: white;
  cursor: pointer;
  transition: 0.4s;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 5px;
  padding-top: 5px;
  border: 1px solid #e00;
}
.btn-more-info-counseling:hover {
  background-color: #e22;
  border: 1px solid #fff;
}
.services-section {
  transform: translateY(-30px);
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 1px 1px 5px 1px #0002;
  background-color: #eee;
}
.btn-contact-counseling {
  background-color: transparent;
  color: white;
  cursor: pointer;
  transition: 0.4s;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 5px;
  padding-top: 5px;
  border: 1px solid #fff;
}
.btn-contact-counseling:hover {
  background-color: #e00;
}
.box-status-service {
  transform: translateY(-50%);
  background-color: white;
  width: 100%;
  margin: auto;
  max-width: 700px;
  display: flex;
  flex-wrap: wrap;
  box-shadow: 0px 0px 10px 2px #0002;
}
.box-status-services {
  transform: translateY(-100px);
  background-color: white;
  width: 100%;
  margin: auto;
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  box-shadow: 0px 0px 10px 2px #0002;
}
.text-box-status-service {
  background-color: #e00;
  padding: 15px;
}
.first-box,
.sec-box {
  height: 200px;
  overflow: hidden;
}
.first-box:hover .img-first-box {
  background-color: #3338;
}
.sec-box:hover .img-sec-box {
  background-color: #fff5;
}
.text-first-box,
.text-sec-box {
  transition: 0.4s;
}
.first-box:hover .text-first-box {
  transform: translateY(50px);
}
.sec-box:hover .text-sec-box {
  transform: translateY(50px);
}
.first-box:hover .box-img-first-box {
  transform: translateX(50px);
}
.sec-box:hover .box-img-sec-box {
  transform: translateX(50px);
}
.img-first-box img {
  width: 20px;
  height: 20px;
}
.img-sec-box img {
  width: 20px;
  height: 20px;
}
.box-img-first-box {
  background-color: #e00;
  padding: 5px;
  border-radius: 5px;
  transition: 0.4s;
}
.box-img-sec-box {
  background-color: #e00;
  padding: 5px;
  border-radius: 5px;
  transition: 0.4s;
}

.img-first-box2 {
  background: url("./assets/images/bg-main.png") center/cover no-repeat;
  background-color: #333;
  background-blend-mode: multiply;
  transition: 0.4s;
  height: 400px;
}
.img-first-box {
  background: url("./assets/images/bg-main.png") center/cover no-repeat;
  background-color: #333;
  background-blend-mode: multiply;
  transition: 0.4s;
}
.img-sec-box {
  background: url("./assets/images/bg-main.png") center/cover no-repeat;
  background-color: #fff9;
  background-blend-mode: overlay;
  transition: 0.4s;
}
.portfolio-section {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}
.img-box-portfolio {
  background: url("./assets/images/bg-main.png") center/cover no-repeat;
  height: 250px;
  width: 100% !important;
  background-color: #2225;
  background-blend-mode: overlay;
  cursor: pointer;
  transition: 0.4s;
}
.text-img-box-portfolio {
  transform: translateY(-50px);
  transition: 0.4s;
}
.img-box-portfolio:hover {
  background-color: #222a;
}
.img-box-portfolio:hover .text-img-box-portfolio {
  transform: translateY(-40px);
}

.btn-more-info-customer {
  background-color: transparent;
  color: #222;
  cursor: pointer;
  transition: 0.4s;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 5px;
  padding-top: 5px;
  border: 1px solid #e00;
  border-radius: 5px;
}
.btn-more-info-customer:hover {
  background-color: #e00;
  color: #fff;
}
.btn-request-customer {
  cursor: pointer;
  font-size: 12px;
  transition: 0.4s;
  font-weight: bold;
}
.btn-request-customer:hover {
  font-size: 14px;
  background-color: #222 !important;
  color: white !important;
}

/* Footer */
.footer {
  background: #222;
  color: #fff;
  padding: 1.5rem 0;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.link-footer {
  cursor: pointer;
  transition: 0.4s;
}
.link-footer:hover {
  color: #e00;
}

.social-media-footer-link {
  border-radius: 50%;
  transition: 0.4s;
}
.social-media-footer-link:hover {
  background-color: #fff !important;
  color: #e00 !important;
}

.sort-label {
  font-weight: 700;
  margin-left: 10px;
}
.btn-more-blog {
  background-color: #222;
  cursor: pointer;
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .box-product,
  .text-box-product,
  .text-box-product2 {
    width: 100%;
  }
  .box-product {
    height: 180px;
  }
}

.sort-label {
  font-weight: 700;
  margin-left: 10px;
}

/* Blog Section Styles */

.btn-more-blog {
  background: none !important;
  padding: 0 !important;
}
/* انیمیشن‌ها */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}
.desc-title-counseling {
  max-width: 240px;
}
.text-group-counseling-section {
  max-width: 700px;
  text-align: justify;
}
.customer-section {
  max-width: 800px;
  transform: translateY(-50px);
  border-radius: 10px;
  overflow: hidden;
}
.img-customer-section {
  width: 80px;
}

.text-14 {
  font-size: 14px;
}
.text-12 {
  font-size: 12px;
}
.text-10 {
  font-size: 10px;
}
.text-35 {
  font-size: 3.5rem;
}
.text-red {
  color: #e00;
}
.bg-red {
  background-color: #e00;
}
.img-logo-footer {
  width: 150px;
}
.logo-footer-box {
  width: 400px;
}
.line-red-footer {
  margin-top: 1rem;
  width: 40px;
  background: #e00;
  height: 3px;
}
.box-socialnetwork-footer {
  left: 0;
  right: 0;
  bottom: 10px;
}
.text-justify {
  text-align: justify;
}
.object-fit-contain {
  object-fit: contain !important;
}
.max-w-1000{
  max-width: 1000px;
}
.max-w-500{
  max-width: 500px;
}
.max-w-400{
  max-width: 400px;
}
.max-w-200{
  max-width: 200px;
}


