/*
Theme Name: Astra Child
Template: astra
Author: Hossein Modabber
Author URI: https://drmohandes.com
Description: Child theme for Astra theme
Version: 4.5.1
Text Domain: astra-child
*/

/* Custom Styles for Astra Child Theme */
#wave {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      transform: rotate(180deg);
    }
canvas.custom-wave {
      display: block;
      width: 100% !important;
      max-height: 300px !important;
    }
canvas#wave--hero-2{
	transform: rotate(180deg);
}
canvas#wave--hero-4{
  z-index: 5;
  position: relative;
  transform: rotate(180deg);
}
#footer-wave {
      width: 100% !important;
      pointer-events: none;
      bottom: calc(100% - 1px);
      height: 150px;
    }
/* Port Slider */
.drm-slider-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  color: white;
  transition: 0.25s;
  padding: 0;
  margin: 0;
}
.drm-options {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  max-width: 100vw;
  width: 100%;
  height: 400px;
  gap: 10px;
  padding: 0 10px;
  box-sizing: border-box;
}
.drm-option {
  position: relative;
  overflow: hidden;
  min-width: 60px;
  background: var(--optionBackground, #E6E9ED);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: 0.5s ease;
  border-radius: 20px;
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.drm-option.drm-active {
  flex-grow: 10;
  max-width: 600px;
  margin: 0;
  background-size: cover;
}
.drm-option .drm-shadow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.drm-option .drm-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px;
  transition: all 0.3s ease;
}
.drm-option:not(.drm-active) .drm-label {
  margin: auto;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.drm-option .drm-label .drm-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--defaultBackground);
  flex-shrink: 0;
	color: #1e07b2;
}
.drm-option .drm-label .drm-icon  img{
	width: 20px;
}
.drm-option .drm-label .drm-info {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease, width 0.3s ease;
}
.drm-option:not(.drm-active) .drm-label .drm-info {
  opacity: 0;
  width: 0;
  overflow: hidden;
}
.drm-option .drm-label .drm-info .drm-main {
  font-weight: bold;
  font-size: 1.2rem;
}
/* Home Last Blog */
.custom-posts-wrapper {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: inherit;
  box-sizing: border-box;
}

.custom-posts-wrapper .custom-post-card {
  width: 32%;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.custom-posts-wrapper .custom-post-card:hover {
  transform: translateY(-15px);
}

.custom-posts-wrapper .image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
	display: block;
}

.custom-posts-wrapper .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.custom-posts-wrapper .image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.custom-posts-wrapper .content-box {
  position: relative;
  background: white;
  padding: 16px;
  margin: -30px auto 0;
  border-radius: 10px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
	width: 95%;
}

.custom-posts-wrapper .post-title a{
  font-family: 'Leila';
  font-size: 1.5rem;
	font-weight: bold;
  color: #01000e;
  margin-bottom: 0px;
	text-align: center;
	line-height: 40px;
	display: block;
}

.custom-posts-wrapper .dot-divider {
  color: #01000e;
  font-size: 10px;
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.custom-posts-wrapper .post-excerpt {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
	text-align: center;
}

.custom-posts-wrapper .post-category {
  display: block;
	margin: 0 auto;
	text-align: center;
  background: #01000e;
  color: white;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
}
.custom-posts-wrapper .post-category i {
  font-size: 12px;
	margin: 0px 0 0 2px;
}
/* Footer */
.footer-wrapper {
  position: relative;
}
#footer-logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  pointer-events: none;
	z-index: 2;
}
#footer-wave{
	width: 100% !important;
	height: 150px !important;
}
/* Header */
.drm-main-header {
  direction: rtl;
}
.drm-main-header .top-header {
  background-color: #01000e;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  align-items: center;
  font-size: 14px;
}
.drm-main-header .top-header .right-icons img, .drm-main-header .top-header .left-contact img{
  width: 15px;
}
.drm-main-header .top-header a {
  color: #fff;
  text-decoration: none;
  margin-left: 10px;
}
.drm-main-header .bottom-header {
  background-color: #fff;
  color: #01000e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  flex-wrap: wrap;
  position: relative; /* برای مکان‌دهی مطلق لوگو */
}
.drm-main-header .bottom-header .section {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.drm-main-header .bottom-header .section img{
	width: 15px;
}
.drm-main-header .bottom-header a {
  color: #01000e;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}

.drm-main-header .bottom-header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
	top: 14px;
	z-index: 9;
}

.drm-main-header .bottom-header .logo img {
  width: 170px;
}

.drm-main-header .bottom-header .consult-button {
  background-color: #01000e;
  color: #fff;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 15px;
}
.drm-mobile-menu {
      background-color: #fff;
      padding: 15px 15px 15px 3px;
      border-top: 1px solid #ddd;
      position: relative;
      z-index: 999;
      display: flex !important;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
			margin: 0 0 -12px;
			overflow: visible;
    }

    .drm-mobile-item {
      flex: 1;
      text-align: center;
      color: #01000e;
      font-size: 14px;
      z-index: 1;
      cursor: pointer;
    }

    .drm-mobile-right {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 5px;
    }
.drm-mobile-right img{
	width: 20px;
}
    .drm-mobile-left {
      display: flex;
      justify-content: flex-end;
			z-index: 20;
    }

    .drm-mobile-left button {
      background-color: #01000e;
      color: #fff !important;
      border: none !important;
      padding: 7px 10px;
      font-size: 0.9rem;
      border-radius: 5px;
      cursor: pointer;
    }
    .drm-mobile-center {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      z-index: 2;
      top: 9px;
    }
    .drm-mobile-center img {
      width: 135px;
    }
    /* Fullscreen Menu */
    .drm-fullscreen-menu {
      position: fixed;
      top: -100%;
      right: 0;
      width: 100%;
      height: 100%;
      background-color: #01000e;
      color: #fff;
      z-index: 1000;
      transition: top 0.4s ease-in-out;
    }
    .drm-fullscreen-menu.active {
      top: 0;
    }
    .drm-menu-header {
      display: flex;
      justify-content: flex-end;
      padding: 20px;
    }
    .drm-close-btn {
      background: none;
      border: 1px solid #fff !important;
      font-size: 1rem;
      color: #fff !important;
      cursor: pointer;
			padding: 7px 10px;
			border-radius: 59%;
    }
    .drm-menu-content {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      height: 70%;
      padding-bottom: 40px;
			overflow-y: auto; /* فعال کردن اسکرول عمودی */
  -webkit-overflow-scrolling: touch; /* برای smooth scroll در iOS */
  scrollbar-width: none; /* مخفی کردن اسکرول در فایرفاکس */
    }
.drm-menu-content::-webkit-scrollbar {
  display: none; /* مخفی کردن اسکرول در کروم و سافاری */
}
    .drm-menu-content ul {
      list-style: none;
      padding: 0 5px;
      margin: 0;
      text-align: center;
			width: 100%;
    }
    .drm-menu-content li {
      margin: 10px 0;
    }
    .drm-menu-content a{
      text-decoration: none;
      color: #fff;
      font-size: 1rem;
			display: block;
			border-bottom: 1px solid #30336b;
			padding-bottom: 10px
    }
/* Blog */
.drm-blog-toc .elementor-toc__list-wrapper{
	margin: 0;
}
.drm-blog-toc .elementor-toc__list-item{
	margin: 0;
}
.drm-blog-toc .elementor-toc__list-wrapper .elementor-toc__list-item-text-wrapper{
	background: #f6f9fe;
	padding: 10px;
	border-radius: 10px;
	box-shadow: 0 0 10px #cccccc30;
	margin: 5px 0;
}
#comments{
	border: none;
	margin: 0;
	padding: 0;
}
/* Table */
.so-table-responsive{
    display: block;
    width: 100%;
    overflow-x: auto; /* اسکرول افقی */
    -webkit-overflow-scrolling: touch; /* اسکرول روان در موبایل */
}
.so-table-responsive table{
    width: 100%; /* جدول باید عرض 100% داشته باشد */
    border-collapse: collapse; /* حذف فاصله بین سلول‌ها */
}
.so-table-responsive th, 
.so-table-responsive td{
    padding: 8px; /* فاصله داخلی سلول‌ها */
    text-align: right; /* تنظیم ترازبندی متن */
    border: 1px solid #ddd; /* مرزبندی سلول‌ها */
    white-space: nowrap; /* جلوگیری از شکستن متن */
}
/* Responsive */
@media screen and (max-width: 768px) {
	.custom-posts-wrapper .custom-post-card {
		width: 100%;
	}
	canvas.custom-wave {
      max-height: 100px !important;
    }
/* Header */
	.drm-header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .drm-desktop-menu {
    display: none;
  }

  .drm-header-logo {
    display: none; /* حذف لوگو در موبایل */
  }
  .drm-mobile-toggle {
    display: block;
  }
  .drm-header-button {
    text-align: left;
  }
  .drm-mobile-menu {
    display: block;
  }
  .drm-menu-list {
    flex-direction: column;
    align-items: center;
  }
	.drm-header {
		padding: 20px 20px 20px 5px;
	}
/* دکمه مشاوره */
.drm-header-button .drm-consult-btn {
  padding: 10px 20px;
	font-size: 0.9rem;
	}
/* Slider */
	.drm-slider-wrapper {
    flex-direction: column;
    height: auto;
    padding: 1rem 0.5rem;
  }
  .drm-options {
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    height: auto;
  }
  .drm-option.drm-active {
    width: 100%;
    height: 300px;
  }
  .drm-option:not(.drm-active) {
    width: 100%;
    height: 70px;
    flex-grow: 0;
    border-radius: 10px;
    margin-top: 10px;
  }
/* Footer */
	#footer-logo-container{
		width: 150px;
		top: 3px !important;
	}
	#footer-wave{
		height: 50px !important;
		width: 100% !important;
	}
	#footer-wave{
		height: 100px !important;
	}
}