/* =========================================================
   ENGLISH FONTS
========================================================= */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   PERSIAN FONT - ESTEDAD VARIABLE
========================================================= */

@font-face {
  font-family: 'Estedad';
  src: url('../fonts/Estedad-master/fonts/webfonts/Estedad[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   PERSIAN FONT - VAZIRMATN VARIABLE
========================================================= */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn-master/fonts/webfonts/Vazirmatn[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   GLOBAL TYPOGRAPHY - ENGLISH
========================================================= */

html[lang="en"] body {
  font-family: 'Geist', 'Roboto', sans-serif;
  font-weight: 500;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6 {
  font-family: 'Geist', 'Roboto', sans-serif;
  font-weight: 600;
}


/* =========================================================
   GLOBAL TYPOGRAPHY - PERSIAN
========================================================= */

html[lang="fa"] body {
  font-family: 'Estedad', sans-serif;
  font-weight: 400;
}

html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3,
html[lang="fa"] h4,
html[lang="fa"] h5,
html[lang="fa"] h6 {
  font-family: 'Estedad', sans-serif;
  font-weight: 600;
}


/* =========================================================
   PERSIAN ARTICLE CONTENT
========================================================= */

html[lang="fa"] .article-content {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 400;
}

html[lang="fa"] .article-content h1,
html[lang="fa"] .article-content h2,
html[lang="fa"] .article-content h3,
html[lang="fa"] .article-content h4,
html[lang="fa"] .article-content h5,
html[lang="fa"] .article-content h6 {
  font-family: 'Estedad', sans-serif;
  font-weight: 600;
}

html[lang="fa"] .article-content table,
html[lang="fa"] .article-content th,
html[lang="fa"] .article-content td {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 400;
}


:root {
  --main-color: #00a5e1;
  --accent-color: #3fbbc0;
  --gradsecond-color: #3fbbc0;
  --text-color: #3f3f3f;
  --bg-color: #ffffff;
}

:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --heading-font: "Geist", sans-serif;
  --nav-font: "Geist", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #ffffff;
  /* Background color for the entire website, including individual sections */
  --default-color: #444444;
  /* Default color used for the majority of the text content across the entire website */
  --heading-color: #555555;
  /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff;
  /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff;
  /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #444444;
  /* The default color of the main navmenu links */
  --nav-hover-color: #00a5e1;
  /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff;
  /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff;
  /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #444444;
  /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #00a5e1;
  /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

:root {
  /* Headings */
  --font-h1: clamp(27px, 1.65vw + 16.5px, 43.5px);
  --font-h2: clamp(21px, 1.2vw + 12px, 33px);
  --font-h3: clamp(18px, 0.9vw + 10.5px, 27px);
  --font-h4: clamp(16.5px, 0.6vw + 10.5px, 22.5px);
  --font-h5: clamp(15px, 0.6vw + 9px, 19.5px);
  --font-h6: clamp(13.5px, 0.45vw + 9px, 16.5px);

  /* Body */
  --font-body: clamp(21px, 0.375vw + 19.5px, 25.5px);
  --font-article: clamp(22.5px, 0.375vw + 21px, 27px);

  /* UI */
  --font-menu: clamp(19.5px, 0.3vw + 18px, 24px);
  --font-button: clamp(19.5px, 0.3vw + 18px, 24px);
}

body {
  font-size: var(--font-body);
  line-height: 1.8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.5;
}

:root {
  /* Paragraph */
  --font-paragraph: clamp(18px, 0.375vw + 16.5px, 22.5px);
}

p {
  font-size: var(--font-paragraph);
  line-height: 1.9;
}

/* =========================================================
   GLOBAL ARTICLE TABLE TYPOGRAPHY
========================================================= */

:root {
  --font-table: clamp(12px, 0.2vw + 11px, 14px);
  --font-table-header: clamp(13px, 0.2vw + 12px, 15px);
}

/* Table */
article table {
  width: 100%;
  font-size: var(--font-table);
}

/* Table Header */
article table th {
  font-size: var(--font-table-header);
  font-weight: 600;
  line-height: 1.6;
}

/* Table Cells */
article table td {
  font-size: var(--font-table);
  line-height: 1.7;
}

/* Table Content */
article table th,
article table td {
  vertical-align: middle;
  padding: 10px 12px;
}


/* =========================================================
   GLOBAL ARTICLE CONTENT TYPOGRAPHY
========================================================= */

:root {
  --font-table: clamp(12px, 0.2vw + 11px, 14px);
  --font-table-header: clamp(13px, 0.2vw + 12px, 15px);
  --font-div: clamp(13px, 0.2vw + 12px, 15px);
}

/* Text inside article divs */
article div {
  font-size: var(--font-div);
  line-height: 1.8;
}

/* Tables */
article table {
  width: 100%;
  font-size: var(--font-table);
}

article table th {
  font-size: var(--font-table-header);
  font-weight: 600;
  line-height: 1.6;
}

article table td {
  font-size: var(--font-table);
  line-height: 1.7;
}

article table th,
article table td {
  vertical-align: middle;
  padding: 10px 12px;
}


.light-background {
  --background-color: #f7fcfc;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

.accent-background {
  --background-color: #3fbbc0;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #65c9cd;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

body {
  line-height: 1.7;
  font-family: var(--default-font);
  -webkit-font-smoothing: antialiased;
  color: var(--text-color);
  font-size: var(--font-body);
}

/* Keep form controls and interactive elements consistent with the site font. */
button,
input,
select,
textarea {
  font: inherit;
}

.home-section-faq {
  min-height: 50vh;
  /* در صورت عدم پشتیبانی مرورگرهای قدیمی */
  min-height: 50dvh;
  /* دقیق‌ترین ارتفاع برای موبایل (بدون باگ نوار آدرس مرورگر) */
  scroll-snap-align: start;
  /* هنگام اسکرول، بالای سکشن روی بالای صفحه قفل شود */
  scroll-snap-stop: always;
  /* اختیاری: مانع رد شدن سریع از روی سکشن‌ها در اسکرول تند */

}

.title-color {
  color: var(--main-color);
}

p,
.paragraph {
  font-weight: 400;
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.7;
  font-family: var(--default-font);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-color);
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.2;
}

h1,
.h1 {
  font-size: var(--font-h1);
}

h2,
.h2 {
  font-size: var(--font-h2);
}

h3,
.h3 {
  font-size: var(--font-h3);
}

h4,
.h4 {
  font-size: var(--font-h4);
}

h5,
.h5 {
  font-size: var(--font-h5);
}

h6,
.h6 {
  font-size: var(--font-h6);
}

/* Button style */
.btn {
  font-size: 14px;
  font-family: var(--default-font);
  text-transform: capitalize;
  padding: 8px 25px;
  border-radius: 50px;
  border: 1px solid;
  position: relative;
  z-index: 1;
  transition: 0.2s ease;
}

.btn:hover,
.btn:active,
.btn:focus {
  outline: 0;
  box-shadow: none !important;
}

.btn-primary {
  background: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
}

.btn-primary:active,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary.focus,
.btn-primary.active {
  background: var(--main-color) !important;
  border-color: var(--main-color) !important;
}

.btn-outline-primary {
  background: transparent;
  color: var(--text-color);
  border-color: var(--main-color);
}

.btn-outline-primary:active,
.btn-outline-primary:hover,
.btn-outline-primary.focus,
.btn-outline-primary.active {
  background: var(--main-color) !important;
  border-color: var(--main-color) !important;
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: var(--text-color);
  border-color: #ddd;
}

.btn-outline-light:active,
.btn-outline-light:hover,
.btn-outline-light.focus,
.btn-outline-light.active {
  background: #f0f0f0 !important;
  border-color: #ddd !important;
}

body {
  background-color: var(--bg-color);
  overflow-x: hidden;
}

/* preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

img {
  vertical-align: middle;
  border: 0;
}

a,
a:hover,
a:focus {
  text-decoration: none;
}

a,
button,
select {
  cursor: pointer;
  transition: 0.2s ease;
}

a:focus,
button:focus,
select:focus {
  outline: 0;
}

a:hover {
  color: var(--main-color);
}

.slick-slide {
  outline: 0;
}

.bg-cover {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.border-primary {
  border-color: #ddd !important;
}

/* overlay */
.overlay {
  position: relative;
}

.overlay::before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: #000;
  opacity: 0.5;
}

.outline-0 {
  outline: 0 !important;
}

.d-unset {
  display: unset !important;
}

.bg-primary {
  background: var(--main-color) !important;
}

.text-primary {
  color: var(--main-color) !important;
}

.text-color {
  color: var(--text-color);
}

.mb-10 {
  margin-bottom: 10px !important;
}

.mb-20 {
  margin-bottom: 20px !important;
}

.mb-30 {
  margin-bottom: 30px !important;
}

.mb-40 {
  margin-bottom: 40px !important;
}

.mb-50 {
  margin-bottom: 50px !important;
}

.mb-60 {
  margin-bottom: 60px !important;
}

.mb-70 {
  margin-bottom: 70px !important;
}

.mb-80 {
  margin-bottom: 80px !important;
}

.mb-90 {
  margin-bottom: 90px !important;
}

.mb-100 {
  margin-bottom: 100px !important;
}

.zindex-1 {
  z-index: 1;
}

.overflow-hidden {
  overflow: hidden;
}

.rounded-lg {
  border-radius: 10px !important;
}

.border-default {
  border-color: #ddd !important;
}

.form-control:focus {
  outline: 0;
  box-shadow: none;
}

.form-control::-moz-placeholder {
  font-size: 80%;
}

.form-control::placeholder {
  font-size: 80%;
}

.nav-item {
  margin: 0;
}

.nav-item .nav-link {
  text-transform: capitalize;
}

.navbar-white .navbar-nav .nav-link {
  color: var(--text-color);
}

.navbar-white .navbar-nav .nav-link:hover {
  color: var(--main-color);
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding: 15px 20px;
}

.navbar .dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: scaleX(1);
}

.navbar .dropdown-menu {
  box-shadow: 0px 3px 9px 0px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  border: 0;
  top: 50px;
  left: 0px;
  border-radius: 0;
  display: block;
  visibility: hidden;
  transition: 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
  background: var(--bg-color);
  border-radius: 10px;
}

@media (max-width: 991px) {
  .navbar .dropdown-menu {
    display: none;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transform-origin: unset;
  }
}

.navbar .dropdown-menu.show {
  visibility: hidden;
}

@media (max-width: 991px) {
  .navbar .dropdown-menu.show {
    visibility: visible;
    display: block;
  }
}

.navbar .dropdown-item {
  position: relative;
  color: var(--text-color);
  transition: 0.2s ease;
  font-size: 14px;
}

@media (max-width: 991px) {
  .navbar .dropdown-item {
    text-align: center;
  }
}

.navbar .dropdown-item:not(:last-child) {
  margin-bottom: 10px;
}

.navbar .dropdown-item:hover {
  color: var(--main-color) !important;
  background: transparent;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: var(--font-h2);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/* search */
.search-btn {
  border: 0;
  background: transparent;
}

.search-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 2;
  visibility: hidden;
  transition: 0.2s ease;
  opacity: 0;
}

.search-wrapper.open {
  visibility: visible;
  opacity: 1;
}

.search-box {
  height: 100%;
  width: 100%;
  border: 0;
  background: var(--bg-color);
  font-size: 20px;
  padding: 0;
  padding-right: 35px;
}

.search-box:focus {
  box-shadow: none !important;
  outline: 0;
}

.search-close {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  page-break-after: 10px;
  font-size: 20px;
}

.post-title {
  color: var(--text-color);
}

.post-title:hover {
  color: var(--main-color);
}

.post-meta li {
  margin-right: 10px;
  font-size: 90%;
}

.post-meta a {
  color: var(--text-color);
  border-bottom: 1px dotted #ddd;
}

.post-meta a:hover {
  color: var(--main-color);
}

.recent-thumb-alt {
  font-size: 0;
  height: 60px;
  width: 60px;
  border-radius: 50%;
  background-color: var(--main-color);
  text-align: center;
}

.recent-thumb-alt::first-letter {
  font-size: 40px;
  line-height: 60px;
  color: #fff;
}

.social-icons {
  margin-bottom: 0;
}

.social-icons a {
  display: block;
  color: #888c8e;
  padding: 5px;
  font-size: 14px;
}

.social-icons a:hover {
  color: var(--main-color);
}

.social-icons-rounded {
  margin-bottom: 0;
}

.social-icons-rounded a {
  display: block;
  color: #888c8e;
  font-size: 14px;
  height: 40px;
  width: 40px;
  line-height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
}

.social-icons-rounded a:hover {
  color: var(--main-color);
  border-color: var(--main-color);
}

/** POST IMAGE */
.post-img-box {
  overflow: hidden;
  position: relative;
}

.post-img-box img {
  border-radius: inherit;
}

@media (min-width: 768px) {
  .post-img-box img {
    height: 200px;
    object-fit: cover;
    width: 510px;
  }
}

/** POST IMAGE :: End */
/* حل مشکل موقعیت دکمه‌های اسلایدر در حالت RTL */
[dir="rtl"] .carousel-control-prev {
  left: 20px !important;
  right: auto !important;
}

[dir="rtl"] .carousel-control-next {
  right: 20px !important;
  left: auto !important;
}

.post-slider {
  overflow: hidden;
  margin-bottom: 20px;
}

.post-slider img {
  border-radius: inherit;
}

.post-slider:hover .prevArrow {
  left: 10px;
}

.post-slider:hover .nextArrow {
  right: 10px;
}

.slider-sm .slick-arrow {
  height: 35px;
  width: 35px;
  line-height: 35px;
}

.slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  height: 50px;
  width: 50px;
  line-height: 50px;
  border-radius: 10%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 0;
}

@media (max-width: 575px) {
  .slick-arrow {
    display: none;
  }
}

.slick-arrow:focus {
  outline: 0;
}

.slick-arrow:hover {
  background: var(--main-color);
}

.prevArrow {
  left: -60px;
}

.nextArrow {
  right: -60px;
}

.pagination {
  margin-top: 50px;
}

.pagination .page-item .page-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  text-align: center;
  padding: 0;
  margin-right: 10px;
  border: 0;
  color: var(--text-color);
}

.pagination .page-item .page-link:hover {
  background: var(--main-color);
  color: #fff;
}

.pagination .page-item .page-link:focus {
  box-shadow: none;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  border-radius: 50%;
}

.pagination .page-item.active .page-link {
  background: var(--main-color);
  color: #fff;
}
.content * {
  word-break: break-word;
  overflow-wrap: break-word;
}

.content img {
  max-width: 100%;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  font-weight: 500;
}

.content strong {
  font-weight: 600;
}

.content a {
  color: var(--text-color);
  border-bottom: 1px dotted #ddd;
}

.content a:hover {
  color: var(--main-color);
}

/* =========================================================
   CONTENT LISTS
========================================================= */

.content ol,
.content ul {
  padding-inline-start: 25px;
  margin-bottom: 20px;
}

.content ul {
  list-style-type: disc;
  list-style-position: outside;
}

.content ol {
  list-style-type: decimal;
  list-style-position: outside;
}

.content ul li,
.content ol li {
  display: list-item;
  margin-bottom: 10px;
  padding-inline-start: 0;
  position: static;
}

.content ul ul {
  list-style-type: circle;
}

.content ul ul ul {
  list-style-type: square;
}

/* =========================================================
   CONTENT TABLES
========================================================= */

.content table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
}

.content table td,
.content table th {
  padding: 0.75rem;
  vertical-align: top;
  margin-bottom: 0;
}

.content tr:not(:last-child) {
  border-bottom: 1px solid #ddd;
}

.content th {
  font-weight: 500;
}

.content thead {
  background: #f0f0f0;
  margin-bottom: 0;
}

.content thead tr {
  border-bottom: 1px solid #ddd;
}

.content tbody {
  background: #fdfdfd;
  margin-bottom: 0;
}

/* =========================================================
   NOTICES
========================================================= */

.content .notices {
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.content .notices p {
  padding: 10px;
  margin-bottom: 0;
}

.content .notices p::before {
  position: absolute;
  top: 2px;
  color: #fff;
  font-family: "themify";
  font-weight: 900;
  content: "\e717";
  left: 10px;
}

.content .notices.note p {
  border-top: 30px solid #6ab0de;
  background: #f0f0f0;
}

.content .notices.note p::after {
  content: "Note";
  position: absolute;
  top: 2px;
  color: #fff;
  left: 2rem;
}

.content .notices.tip p {
  border-top: 30px solid #78C578;
  background: #f0f0f0;
}

.content .notices.tip p::after {
  content: "Tip";
  position: absolute;
  top: 2px;
  color: #fff;
  left: 2rem;
}

.content .notices.info p {
  border-top: 30px solid #F0B37E;
  background: #f0f0f0;
}

.content .notices.info p::after {
  content: "Info";
  position: absolute;
  top: 2px;
  color: #fff;
  left: 2rem;
}

.content .notices.warning p {
  border-top: 30px solid #E06F6C;
  background: #f0f0f0;
}

.content .notices.warning p::after {
  content: "Warning";
  position: absolute;
  top: 2px;
  color: #fff;
  left: 2rem;
}

/* =========================================================
   BLOCKQUOTE
========================================================= */

.content blockquote {
  font-size: 20px !important;
  color: var(--text-color);
  padding: 20px 40px;
  border-left: 2px solid var(--main-color);
  margin: 40px 0;
  font-weight: bold;
  background: #f0f0f0;
}

.content blockquote p {
  margin-bottom: 0 !important;
}

/* =========================================================
   CODE BLOCKS
========================================================= */

.content pre {
  display: block;
  padding: 9.5px;
  margin: 10px 0px 10px;
  white-space: pre-wrap;
}

.content code {
  margin-bottom: 0 !important;
  font-size: 100%;
}

/* =========================================================
   CODE TABS
========================================================= */

.code-tabs {
  border: 1px solid #ddd;
  overflow: hidden;
  margin-bottom: 20px;
}

.code-tabs .nav-tabs {
  margin-bottom: 0;
}

.code-tabs .nav-tabs .nav-item {
  padding-left: 0;
  border-right: 1px solid #ddd;
}

.code-tabs .nav-tabs .nav-item .nav-link {
  text-decoration: none;
  font-weight: 500;
  border: 0;
}

.code-tabs .nav-tabs .nav-item::before {
  display: none;
}

.code-tabs .nav-tabs .nav-item.active {
  background: var(--main-color);
}

.code-tabs .nav-tabs .nav-item.active .nav-link {
  color: #fff;
}

.code-tabs .tab-content {
  padding: 20px 15px;
}

.title-bordered {
  border: 1px solid #ddd;
  border-radius: 40px;
  padding: 2px;
}

.title-bordered h1,
.title-bordered h2,
.title-bordered h3,
.title-bordered h4,
.title-bordered h5,
.title-bordered h6 {
  background: #f0f0f0;
  padding: 10px 25px;
  margin-bottom: 0;
  border-radius: inherit;
  display: inline-block;
}

.form-group label {
  font-size: 13px;
  color: var(--text-color);
}

.form-group .form-control {
  border-color: #ddd;
}

.form-group .form-control:focus {
  outline: 0;
  box-shadow: none;
  border-color: var(--main-color);
}

.form-group textarea.form-control {
  height: 120px;
}

.widget {
  background: var(--bg-color);
  margin-bottom: 40px;
}

.widget-title {
  position: relative;
  margin-bottom: 15px;
}

.widget-title span {
  background: var(--bg-color);
  position: relative;
  padding-right: 5px;
  z-index: 1;
}

.widget-title::before {
  position: absolute;
  content: "";
  right: 0;
  height: 1px;
  width: 100%;
  background: #ddd;
  top: 50%;
}

.widget-search {
  position: relative;
}

.widget-search input {
  border: 0;
  border-bottom: 1px dotted #ddd;
  width: 100%;
  height: 40px;
  padding-left: 22px;
  padding-right: 34px;
}

.widget-search input:focus {
  outline: 0;
}

.widget-search input::-moz-placeholder {
  font-size: 90%;
}

.widget-search input::placeholder {
  font-size: 90%;
}

.widget-search button {
  height: 30px;
  width: 30px;
  line-height: 30px;
  display: inline-block;
  padding: 0;
  background: var(--main-color);
  color: #ffffff;
  text-align: center;
  border-radius: 10%;
  position: absolute;
  right: 0;
  top: 5px;
  border: 0;
  font-size: 12px;
}

.widget-list li {
  padding: 5px 0;
}

.widget-list li:not(:last-child) {
  border-bottom: 1px dotted #ddd;
}

.widget-list li a {
  color: var(--text-color);
}

.widget-list li a:hover {
  color: var(--main-color);
}

.widget-list-inline li {
  margin-bottom: 10px;
}

.widget-list-inline li a {
  padding: 2px 10px;
  border: 1px solid #ddd;
  border-radius: 40px;
  display: block;
  color: var(--text-color);
}

.widget-list-inline li a:hover {
  border-color: var(--main-color);
  background: var(--main-color);
  color: #fff;
}

.widget-post {
  padding: 15px 0 !important;
}

.widget-post img {
  height: 60px;
  width: 60px;
  border-radius: 10%;
  -o-object-fit: cover;
  object-fit: cover;
}

.footer-list a {
  display: block;
  color: #888c8e;
  padding: 5px 0;
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: var(--font-h4);
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 8px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--accent-color);
  border-top-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

.subscription .form-control {
  background-color: #f0f0f0;
  border: 0;
  margin-bottom: 10px;
  padding-left: 40px;
}

.subscription .email-icon {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 18px;
  color: var(--main-color);
}

.quote {
  background-color: #f0f0f0;
  display: flex;
  padding: 20px;
}

.quote i {
  font-size: 24px;
  color: var(--main-color);
  margin-right: 10px;
}

.quote p {
  font-style: italic;
}

.quote-by {
  color: var(--main-color);
}

.scroll-top {
  border-top: 1px solid #ddd;
  position: relative;
  margin: 20px 0 40px;
}

.scroll-top a {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background-color: var(--main-color);
  color: #fff;
  text-align: center;
  line-height: 50px;
  display: block;
}

/** UPDATES */

.post-slider {
  -webkit-transition: opacity 2000s ease-in-out;
  -moz-transition: opacity 2000s ease-in-out;
  -ms-transition: opacity 2000s ease-in-out;
  -o-transition: opacity 2000s ease-in-out;
  opacity: 1;
}

/* PAGINATION */
.pagination .page-item.active .page-link {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: #fff;
}

.pagination .page-link {
  color: var(--main-color);
}

.pagination .page-link:hover {
  color: var(--main-color);
}

.author-card {
  background-color: #fbfbfb;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
}

.author-card img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
}

.social-links a {
  color: #333;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--main-color);
}

.post-title {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title:hover {
  color: var(--main-color);
}

/* Basic styling for share buttons */
.share-buttons {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 0 auto;
  margin-bottom: 12px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.share-buttons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 20%;
  background-color: #655087;
  color: #fff;
  transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}

.share-buttons a:hover {
  background-color: #4e3d6d;
}

.share-buttons a i {
  font-size: 16px;
}

/* Sticky styling */
.sticky-share-buttons {
  position: fixed;
  top: 100px;
  left: 20px;
  flex-direction: column;

  opacity: 0;
  transform: translateY(-10px);
}

.share-buttons {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .sticky-share-buttons {
    position: static;
    flex-direction: row;
    justify-content: center;
  }
}

/* FRONTEND USER DETAILS AND DROPDOWN */
/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  transition: all 0.5s;
  z-index: 997;
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.header .topbar {
  background: linear-gradient(135deg, var(--gradsecond-color) 0%, var(--main-color) 100%);
  color: var(--contrast-color);
  height: 40px;
  padding: 0;
  transition: all 0.5s;
}

.header .branding {
  min-height: 60px;
  padding: 10px 0;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: var(--font-h1);
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .cta-btn,
.header .cta-btn:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 8px 20px;
  margin: 0 5px 0 30px;
  border-radius: 4px;
  transition: 0.3s;
}

.header .cta-btn:hover,
.header .cta-btn:focus:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
header .logo-img {
  max-height: 40px;
  margin-right: 8px;
}

/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 13px;
    font-family: var(--nav-font);
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/* استایل دکمه ورود بدون متن */
.nav-auth-item {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.nav-icon-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd !important;
  font-size: 1.15rem !important;
  padding: 0 !important;
  border: 1px solid rgba(13, 110, 253, 0.2);
  transition: all 0.3s ease;
}

.nav-icon-btn:hover {
  background: #0d6efd;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

/* تصویر پروفایل کاربر */
.nav-user-toggle {
  display: flex !important;
  align-items: center;
  padding: 5px !important;
}

.nav-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0d6efd;
}

/* نام کاربر در بالای دراپ‌داون */
.dropdown-header-user {
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #6c757d;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 5px;
}

.adrow {
  display: block;
  width: 100%;
  background-color: teal;
  height: 40px;
}

/* style for ads ad-block-with-four */

.ad-block-with-four img {
  max-height: 10rem;
  width: 100%;
}

/* style for ads ad-block-with-slider-side */
.ad-block-with-slider-side {
  height: 100%;
  width: 100;
}

.ad-block-with-slider-side img {
  height: 100%;
  width: 100;
}

/*--------------------------------------------------------------
# Featured Services Section
--------------------------------------------------------------*/
.featured-categories .category-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0 25px 0 rgba(0, 0, 0, 0.08);
  padding: 40px 30px;
  transition: all 0.3s ease-in-out;
  height: 100%;
  position: relative;
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
  /* برای جلوگیری از بیرون‌زدگی پس‌زمینه هاور */
}

/* لایه پس‌زمینه هاور */
.featured-categories .category-item:before {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, var(--gradsecond-color), var(--main-color));
  inset: 100% 0 0 0;
  transition: all 0.35s ease-in-out;
  z-index: -1;
}

.featured-categories .category-item .icon {
  margin-bottom: 20px;
}

.featured-categories .category-item .icon i {
  color: var(--accent-color);
  font-size: 36px;
  transition: all 0.3s ease-in-out;
}

.featured-categories .category-item h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: var(--font-h4);
}

.featured-categories .category-item h4 a {
  color: var(--heading-color);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.featured-categories .category-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
  color: var(--default-color, #444444);
  transition: all 0.3s ease-in-out;
}

/* -----------------------------------------------------------
   استایل هنگام هاور
----------------------------------------------------------- */
.featured-categories .category-item:hover {
  transform: translateY(-5px);
  /* حرکت ملایم رو به بالا */
  box-shadow: 0px 10px 30px 0 rgba(0, 0, 0, 0.15);
}

/* باز شدن لایه رنگی فیروزه‌ای */
.featured-categories .category-item:hover:before {
  inset: 0;
}

.featured-categories p {
  text-align: center !important;
}

/* سفید شدن تمام متن‌ها و آیکون */
.featured-categories .category-item:hover .icon i,
.featured-categories .category-item:hover h4 a,
.featured-categories .category-item:hover p {
  color: var(--contrast-color, #ffffff) !important;
}

/* Search Section Gradient & Layout */
.subscribe-section {
  background: linear-gradient(135deg, var(--gradsecond-color) 0%, var(--main-color) 100%);
  padding: 70px 0;
  position: relative;
}

/* Header Typography */
.subscribe-title {
  font-size: var(--font-h2);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.subscribe-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Rounded Search Bar */
.subscribe-form .input-group {
  background: var(--bg-color);
  border-radius: 50px;
  padding: 6px;
  transition: box-shadow 0.3s ease;
}

.subscribe-form .input-group:focus-within {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
}

.subscribe-form .form-control {
  font-size: 1rem;
  color: var(--text-color);
}

.subscribe-form .form-control::placeholder {
  color: #9aa0a6;
}

/* Search Button */
.btn-subscribe {
  background: var(--accent-color);
  color: #ffffff;
  border-radius: 50px;
  padding: 12px 28px;
  border: none;
  transition: all 0.3s ease;
}

.btn-subscribe:hover {
  background: var(--main-color);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Search Section Gradient & Layout */
.search-section {
  background: linear-gradient(135deg, var(--gradsecond-color) 0%, var(--main-color) 100%);
  padding: 70px 0;
  position: relative;
}

/* Header Typography */
.search-title {
  font-size: var(--font-h2);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.search-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Rounded Search Bar */
.search-form .input-group {
  background: var(--bg-color);
  border-radius: 50px;
  padding: 6px;
  transition: box-shadow 0.3s ease;
}

.search-form .input-group:focus-within {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
}

.search-form .form-control {
  font-size: 1rem;
  color: var(--text-color);
}

.search-form .form-control::placeholder {
  color: #9aa0a6;
}

/* Search Button */
.btn-search {
  background: var(--accent-color);
  color: #ffffff;
  border-radius: 50px;
  padding: 12px 28px;
  border: none;
  transition: all 0.3s ease;
}

.btn-search:hover {
  background: var(--main-color);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Tag Links */
.popular-searches .tag-link {
  color: #ffffff;
  text-decoration: underline;
  margin: 0 4px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.popular-searches .tag-link:hover {
  opacity: 1;
}

/* Responsive adjust for mobile */
@media (max-width: 576px) {
  .search-title {
    font-size: var(--font-h2);
  }

  .search-section {
    padding: 45px 0;
  }

  .btn-search {
    padding: 10px 18px;
  }
}

/* Sidebar Search Widget */
.widget-search-box .widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  position: relative;
  padding-bottom: 8px;
}

.widget-search-box .widget-title span {
  position: relative;
}

.widget-search-box .widget-title span::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 35px;
  height: 3px;
  background: linear-gradient(90deg, var(--gradsecond-color), var(--main-color));
  border-radius: 2px;
}

.widget-search .search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.widget-search input#search-query {
  width: 100%;
  padding: 10px 45px 10px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: all 0.3s ease;
}

.widget-search input#search-query:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(63, 187, 192, 0.15);
  outline: none;
}

.widget-search .search-submit-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradsecond-color), var(--main-color));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.widget-search .search-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-50%) scale(1.05);
}

.widget-search .search-submit-btn i {
  font-size: 0.85rem;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-tile {
  background-color: var(--surface-color);
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.3s ease;
  height: 100%;
}

.contact .info-tile:hover {
  border-color: var(--accent-color);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent-color), transparent 85%);
  transform: translateY(-4px);
}

.contact .info-tile:hover .tile-icon {
  background-color: var(--accent-color);
}

.contact .info-tile:hover .tile-icon i {
  color: var(--contrast-color);
}

.contact .info-tile .tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--accent-color), transparent 88%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.contact .info-tile .tile-icon i {
  font-size: 24px;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.contact .info-tile h4 {
  font-size: var(--font-h4);
  font-weight: 700;
  margin-bottom: 8px;
}

.contact .info-tile p {
  font-size: 14px;
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  line-height: 1.5;
}

.contact .map-wrapper {
  width: 100%;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--default-color), transparent 92%);
}

.contact .map-wrapper iframe {
  display: block;
}

.contact .connect-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 18px 24px;
  margin-top: 20px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.contact .connect-bar .connect-label {
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--heading-color);
}

.contact .connect-bar .connect-icons {
  display: flex;
  gap: 10px;
}

.contact .connect-bar .connect-icons a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  font-size: 16px;
  transition: all 0.3s ease;
}

.contact .connect-bar .connect-icons a:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: scale(1.1);
}

@media (max-width: 576px) {
  .contact .connect-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.contact .form-card {
  background-color: var(--surface-color);
  border-radius: 16px;
  padding: 40px 35px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--default-color), transparent 92%);
  height: 100%;
}

@media (max-width: 768px) {
  .contact .form-card {
    padding: 30px 20px;
  }
}

.contact .form-header {
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 20px;
}

.contact .form-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.contact .form-header h3 {
  font-size: var(--font-h3);
  font-weight: 700;
  margin-bottom: 10px;
}

.contact .form-header p {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 0;
  line-height: 1.6;
}

.contact .php-email-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact .php-email-form .form-control {
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  padding: 12px 16px;
  font-size: 14px;
  background-color: var(--surface-color);
  color: var(--default-color);
  transition: all 0.3s ease;
}

.contact .php-email-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 88%);
}

.contact .php-email-form .form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.contact .btn-dispatch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact .btn-dispatch i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.contact .btn-dispatch:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000 15%);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent-color), transparent 60%);
}

.contact .btn-dispatch:hover i {
  transform: translateX(4px);
}

/* استایل برای زیبایی بیشتر و انیمیشن */
.subcategory-card {
  transition: all 0.3s ease;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

.subcategory-card:hover {
  transform: translateY(-5px);
  border-color: var(--bs-primary) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.transition-all {
  transition: all 0.3s ease;
}

/* برای نمایش بهتر در موبایل */
@media (max-width: 576px) {
  .subcategory-card {
    padding: 10px !important;
  }

  .icon-box {
    width: 35px !important;
    height: 35px !important;
  }
}

/* =========================================================
   HERO SECTION
========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 60px 0;
  background: #eaf8fd;
}

@media (min-width: 992px) {
  .hero {
    min-height: 70vh;
  }
}

#hero-carousel {
  position: relative;
  z-index: 2;
  overflow: visible;
}

#hero-carousel .carousel-inner {
  overflow: hidden;
}

#hero-carousel .carousel-item {
  padding: 0;
}

/* =========================================================
   ANIMATED BACKGROUND
========================================================= */

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  pointer-events: none;
  filter: blur(55px);
  will-change: transform;
}

.hero::before {
  background:
    radial-gradient(ellipse 30% 25% at 15% 30%,
      rgba(0, 165, 225, .65), transparent 75%),
    radial-gradient(ellipse 35% 30% at 80% 20%,
      rgba(90, 110, 230, .42), transparent 75%),
    radial-gradient(ellipse 32% 28% at 65% 85%,
      rgba(0, 190, 190, .45), transparent 75%),
    radial-gradient(ellipse 30% 35% at 30% 75%,
      rgba(180, 160, 245, .45), transparent 75%);

  animation: tekapharmedWave1 18s ease-in-out infinite alternate;
}

.hero::after {
  background:
    radial-gradient(ellipse 30% 25% at 75% 65%,
      rgba(0, 135, 205, .42), transparent 75%),
    radial-gradient(ellipse 35% 25% at 20% 15%,
      rgba(190, 225, 250, .85), transparent 75%),
    radial-gradient(ellipse 25% 30% at 90% 90%,
      rgba(115, 135, 225, .35), transparent 75%);

  animation: tekapharmedWave2 23s ease-in-out infinite alternate;
}

@keyframes tekapharmedWave1 {
  0% {
    transform: translate(-5%, -3%) rotate(-5deg) scale(1);
  }

  35% {
    transform: translate(4%, 5%) rotate(8deg) scale(1.12);
  }

  70% {
    transform: translate(-3%, 7%) rotate(-8deg) scale(1.05);
  }

  100% {
    transform: translate(6%, -5%) rotate(6deg) scale(1.15);
  }
}

@keyframes tekapharmedWave2 {
  0% {
    transform: translate(5%, 4%) rotate(8deg) scale(1.1);
  }

  40% {
    transform: translate(-6%, -3%) rotate(-10deg) scale(1);
  }

  75% {
    transform: translate(3%, -6%) rotate(5deg) scale(1.16);
  }

  100% {
    transform: translate(-5%, 5%) rotate(-7deg) scale(1.05);
  }
}

/* =========================================================
   HERO CAROUSEL - SMOOTH FADE
========================================================= */

#hero-carousel .carousel-item {
  transition: opacity 0.6s ease-in-out !important;
  backface-visibility: hidden;
  transform: translateZ(0);
}

#hero-carousel .carousel-item.active,
#hero-carousel .carousel-item-next,
#hero-carousel .carousel-item-prev {
  display: block;
}

#hero-carousel .carousel-item:not(.active) {
  pointer-events: none;
}

#hero-carousel .carousel-item img {
  backface-visibility: hidden;
}

/* =========================================================
   HERO CONTENT - DESKTOP
========================================================= */

#hero-carousel .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "image text";
  align-items: center;
  gap: 40px;
  min-height: 400px;
  direction: ltr !important;
}

html[dir="rtl"] #hero-carousel .hero-content {
  grid-template-areas: "image text";
}

html[dir="ltr"] #hero-carousel .hero-content {
  grid-template-areas: "text image";
}

/* =========================================================
   HERO IMAGE
========================================================= */

#hero-carousel .hero-image {
  position: relative;
  isolation: isolate;
  grid-area: image;
  display: block !important;
  width: 100%;
  max-width: 30rem;
  height: 20rem;
  margin: 0 auto;
  padding: 5px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg,
      #00a5e1 0%,
      #65d8e8 35%,
      #ffffff 55%,
      #4779d8 100%);
  box-shadow:
    0 12px 30px rgba(0, 120, 180, .16),
    0 4px 12px rgba(0, 165, 225, .12);
  transition: box-shadow .4s ease, transform .4s ease;
}

#hero-carousel .hero-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  border-radius: 15px;
  object-fit: cover;
  object-position: center;
}

#hero-carousel .hero-image:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 38px rgba(0, 120, 180, .23),
    0 5px 18px rgba(0, 165, 225, .2);
}

/* =========================================================
   HERO TEXT
========================================================= */

#hero-carousel .hero-text {
  grid-area: text;
  display: grid;
  grid-template-rows: 96px 130px auto;
  align-content: start;
  width: 100%;
  min-width: 0;
  direction: inherit;
}

html[dir="rtl"] #hero-carousel .hero-text {
  text-align: right;
}

html[dir="ltr"] #hero-carousel .hero-text {
  text-align: left;
}

#hero-carousel .hero-text h2 {
  width: 100%;
  height: 96px;
  min-width: 0;
  overflow: hidden;
  margin: 0 0 15px;
  font-size: var(--font-h2);
  font-weight: 700;
  line-height: 1.5;
}

#hero-carousel .hero-text p {
  width: 100%;
  height: 130px;
  min-width: 0;
  overflow: hidden;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.9;
}

/* =========================================================
   READ MORE BUTTON
========================================================= */

#hero-carousel .hero-text .btn-get-started {
  display: inline-block;
  width: fit-content;
  justify-self: start;
  align-self: start;
  margin: 0 !important;
  padding: 11px 28px;
  border-radius: 6px;
  background: var(--accent-color);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
}

html[dir="rtl"] #hero-carousel .hero-text .btn-get-started {
  justify-self: end !important;
  align-self: flex-end !important;
}

html[dir="ltr"] #hero-carousel .hero-text .btn-get-started {
  justify-self: start !important;
  align-self: flex-start !important;
}

#hero-carousel .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color), #000 15%);
  color: #fff;
}

/* =========================================================
   INDICATORS
========================================================= */

#hero-carousel .desktop-indicators {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: -18px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateX(-50%);
  z-index: 15;
}

#hero-carousel .desktop-indicators button,
#hero-carousel .mobile-indicators button {
  width: 9px;
  height: 9px;
  margin: 0 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #999;
  opacity: .5;
  transition: all .3s ease;
}

#hero-carousel .desktop-indicators button.active,
#hero-carousel .mobile-indicators button.active {
  width: 22px;
  border-radius: 10px;
  background-color: var(--accent-color);
  opacity: 1;
}

#hero-carousel .mobile-indicators {
  display: none;
}

/* =========================================================
   CAROUSEL CONTROLS - DESKTOP
========================================================= */

#hero-carousel .carousel-control-prev,
#hero-carousel .carousel-control-next {
  position: absolute !important;
  top: auto !important;
  bottom: -25px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 35px !important;
  height: 25px !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  opacity: .8;
  transform: none !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  z-index: 20;
  transition: opacity .3s ease;
}

#hero-carousel .carousel-control-prev {
  left: calc(50% - 85px) !important;
  right: auto !important;
}

#hero-carousel .carousel-control-next {
  right: calc(50% - 85px) !important;
  left: auto !important;
}

#hero-carousel .hero-arrow {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 0 3px !important;
  color: var(--accent-color) !important;
  font-family: Arial, sans-serif !important;
  font-size: 30px !important;
  font-weight: 400;
  line-height: 1 !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  transition: color .3s ease;
}

#hero-carousel .carousel-control-prev:hover,
#hero-carousel .carousel-control-next:hover {
  opacity: 1;
}

#hero-carousel .carousel-control-prev:hover .hero-arrow,
#hero-carousel .carousel-control-next:hover .hero-arrow {
  color: #fff !important;
}

/* =========================================================
   MEDICAL DECORATIONS
========================================================= */

#hero .medical-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

#hero .medical-item {
  position: absolute;
  pointer-events: none;
  opacity: .65;
  will-change: transform;
}

/* Molecules */

#hero .molecule {
  width: 75px;
  height: 75px;
  color: #00a5e1;
}

#hero .molecule.one {
  top: 10%;
  left: 5%;
  animation: driftOne 17s ease-in-out infinite;
}

#hero .molecule.two {
  bottom: 12%;
  right: 7%;
  width: 100px;
  height: 100px;
  animation: driftTwo 23s ease-in-out infinite;
}

/* Capsules */

#hero .capsule {
  width: 65px;
  height: 28px;
  border: 2px solid rgba(0, 165, 225, .65);
  border-radius: 30px;
  background: linear-gradient(90deg, #fff 50%, #8de2f3 50%);
}

#hero .capsule.one {
  top: 20%;
  right: 12%;
  animation: driftThree 19s ease-in-out infinite;
}

#hero .capsule.two {
  bottom: 18%;
  left: 10%;
  animation: driftFour 15s ease-in-out infinite;
}

/* Pills */

#hero .pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(0, 165, 225, .5);
  background: radial-gradient(circle at 30% 30%, #fff, #8bdcf0);
}

#hero .pill.one {
  top: 65%;
  left: 30%;
  animation: driftFive 21s ease-in-out infinite;
}

#hero .pill.two {
  top: 12%;
  right: 35%;
  width: 23px;
  height: 23px;
  animation: driftSix 13s ease-in-out infinite;
}

/* Irregular movement */

@keyframes driftOne {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  18% {
    transform: translate(45px, -30px) rotate(85deg) scale(1.1);
  }

  37% {
    transform: translate(90px, 25px) rotate(170deg) scale(.9);
  }

  58% {
    transform: translate(30px, 75px) rotate(260deg) scale(1.15);
  }

  79% {
    transform: translate(-35px, 20px) rotate(320deg) scale(.95);
  }

  100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
  }
}

@keyframes driftTwo {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  22% {
    transform: translate(-65px, 40px) rotate(-100deg);
  }

  45% {
    transform: translate(-20px, -55px) rotate(-210deg);
  }

  68% {
    transform: translate(55px, -20px) rotate(-300deg);
  }

  85% {
    transform: translate(20px, 60px) rotate(-350deg);
  }

  100% {
    transform: translate(0, 0) rotate(-360deg);
  }
}

@keyframes driftThree {
  0% {
    transform: translate(0, 0) rotate(-35deg);
  }

  25% {
    transform: translate(-55px, -45px) rotate(75deg);
  }

  50% {
    transform: translate(35px, -85px) rotate(190deg);
  }

  75% {
    transform: translate(75px, 20px) rotate(280deg);
  }

  100% {
    transform: translate(0, 0) rotate(325deg);
  }
}

@keyframes driftFour {
  0% {
    transform: translate(0, 0) rotate(35deg);
  }

  20% {
    transform: translate(40px, 55px) rotate(150deg);
  }

  43% {
    transform: translate(-45px, 85px) rotate(250deg);
  }

  70% {
    transform: translate(-80px, 10px) rotate(390deg);
  }

  100% {
    transform: translate(0, 0) rotate(395deg);
  }
}

@keyframes driftFive {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  30% {
    transform: translate(55px, -65px) rotate(140deg);
  }

  55% {
    transform: translate(-25px, -95px) rotate(260deg);
  }

  80% {
    transform: translate(-65px, 25px) rotate(330deg);
  }

  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

@keyframes driftSix {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-35px, -50px) rotate(-110deg);
  }

  50% {
    transform: translate(60px, -30px) rotate(-230deg);
  }

  75% {
    transform: translate(35px, 65px) rotate(-310deg);
  }

  100% {
    transform: translate(0, 0) rotate(-360deg);
  }
}

/* Different animation start times */

#hero .molecule.one {
  animation-delay: -7s;
}

#hero .molecule.two {
  animation-delay: -15s;
}

#hero .capsule.one {
  animation-delay: -11s;
}

#hero .capsule.two {
  animation-delay: -4s;
}

#hero .pill.one {
  animation-delay: -17s;
}

#hero .pill.two {
  animation-delay: -9s;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) and (min-width: 768px) {

  #hero-carousel .hero-content {
    gap: 25px;
    min-height: 280px;
  }

  #hero-carousel .hero-image {
    height: 17rem;
  }

  #hero-carousel .hero-text {
    grid-template-rows: 78px 125px auto;
  }

  #hero-carousel .hero-text h2 {
    height: 78px;
  }

  #hero-carousel .hero-text p {
    height: 125px;
    font-size: 15px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

  .hero {
    padding: 5px 0 25px;
  }

  .hero::before,
  .hero::after {
    filter: blur(35px);
  }

  #hero-carousel .carousel-item {
    padding: 0 10px;
  }

  #hero-carousel .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100%;
    min-height: auto !important;
    direction: ltr !important;
  }

  /* Image */

  #hero-carousel .hero-image {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 0 auto !important;
    padding: 4px;
    border-radius: 15px;
  }

  #hero-carousel .hero-image img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    border-radius: 11px;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* Mobile indicators */

  #hero-carousel .mobile-indicators {
    position: relative !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 25px;
    margin: 10px 0 15px !important;
    padding: 0 !important;
    z-index: 15;
  }

  #hero-carousel .mobile-indicators button {
    width: 8px;
    height: 8px;
  }

  #hero-carousel .mobile-indicators button.active {
    width: 20px;
  }

  /* Hide desktop indicators and controls */

  #hero-carousel .desktop-indicators,
  #hero-carousel .carousel-control-prev,
  #hero-carousel .carousel-control-next {
    display: none !important;
  }

  /* Mobile text layout */

  #hero-carousel .hero-text {
    display: grid !important;
    grid-template-rows: 75px 108px 48px;
    justify-items: center !important;
    align-content: start;
    width: 100%;
    min-width: 0;
    padding: 0 10px 20px !important;
    text-align: center !important;
    overflow: visible;
  }

  #hero-carousel .hero-text h2 {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 75px;
    overflow: hidden;
    margin: 0 !important;
    font-size: var(--font-h2);
    line-height: 1.5;
    text-align: center !important;
  }

  #hero-carousel .hero-text p {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 108px;
    overflow: hidden;
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.8;
    text-align: center !important;
  }

  #hero-carousel .hero-text .btn-get-started {
    display: inline-block;
    width: fit-content;
    height: fit-content;
    justify-self: center !important;
    align-self: center !important;
    flex-shrink: 0;
    margin: 8px auto 0 !important;
    white-space: nowrap;
  }

  /* Medical decorations */

  #hero .medical-item {
    opacity: .35;
    transform: scale(.7);
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

  #hero-carousel .carousel-item {
    padding: 0 8px;
  }

  #hero-carousel .hero-text {
    grid-template-rows: 65px 100px 44px;
  }

  #hero-carousel .hero-text h2 {
    max-height: 65px;
  }

  #hero-carousel .hero-text p {
    max-height: 100px;
    font-size: 13px;
  }

  #hero-carousel .btn-get-started {
    padding: 9px 23px;
    font-size: 13px;
  }
}

/* =========================================================
   HERO - VERTICAL CENTER ALIGNMENT
========================================================= */

@media (min-width: 992px) {

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #hero-carousel {
    width: 100%;
    margin: auto 0;
  }

  #hero-carousel .carousel-inner {
    display: flex;
    align-items: center;
  }

  #hero-carousel .carousel-item {
    width: 100%;
  }

  #hero-carousel .hero-content {
    min-height: 400px;
    align-content: center;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .hero::before,
  .hero::after,
  #hero .medical-item {
    animation: none !important;
  }
}

/* =========================================================
   FEATURED CATEGORIES
========================================================= */

.featured-categories .categories-showcase {
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================================
   DEPARTMENT SECTION
========================================================= */

.featured-categories .featured-department {
  margin-bottom: 120px;
}

.featured-categories .department-content {
  padding-right: 40px;
}

.featured-categories .department-category {
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.featured-categories .department-title {
  font-size: var(--font-h1);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--heading-color);
}

.featured-categories .department-description {
  font-size: 18px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 32px;
}

.featured-categories .department-features {
  margin-bottom: 40px;
}

.featured-categories .feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.featured-categories .feature-item i {
  color: var(--accent-color);
  font-size: 18px;
  margin-right: 12px;
}

.featured-categories .feature-item span {
  font-size: 16px;
  color: var(--default-color);
}

/* =========================================================
   DEPARTMENT LINKS
========================================================= */

.featured-categories .cta-link {
  color: var(--heading-color);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.featured-categories .cta-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.featured-categories .cta-link:hover {
  color: var(--accent-color);
}

.featured-categories .cta-link:hover i {
  transform: translateX(4px);
}

/* =========================================================
   DEPARTMENT VISUAL
========================================================= */

.featured-categories .department-visual {
  position: relative;
}

.featured-categories .image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.featured-categories .image-wrapper::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  border-radius: 8px;
  z-index: 2;
  pointer-events: none;
}

.featured-categories .image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-categories .image-wrapper:hover img {
  transform: scale(1.02);
}

/* =========================================================
   CATEGORIES GRID
========================================================= */

.featured-categories .categories-grid {
  margin-bottom: 100px;
}

/* =========================================================
   DEPARTMENT CARDS
========================================================= */

.featured-categories .department-card {
  background: var(--surface-color);
  padding: 28px 32px;
  min-height: 15rem;
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 82%) !important;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 80, 120, 0.045);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.featured-categories .department-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.featured-categories .department-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 55%) !important;
  box-shadow: 0 10px 28px rgba(0, 100, 150, 0.10);
}

.featured-categories .department-card:hover::before {
  transform: scaleX(1);
}

/* =========================================================
   CARD ICON
========================================================= */

.featured-categories .card-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 88%);
  border-radius: 50%;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.featured-categories .card-icon i {
  font-size: 30px;
  color: var(--accent-color);
}

.featured-categories .department-card:hover .card-icon {
  transform: scale(1.08);
}

/* =========================================================
   CARD CONTENT
========================================================= */

.featured-categories .card-title {
  font-size: var(--font-h3);
  font-weight: 500;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.featured-categories .card-description {
  font-size: 15px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 0;
}

/* =========================================================
   CARD STATS
========================================================= */

.featured-categories .card-stats {
  display: flex;
  gap: 32px;
}

.featured-categories .stat-item {
  text-align: center;
}

.featured-categories .stat-item .stat-number {
  display: block;
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-color);
  line-height: 1;
}

.featured-categories .stat-item .stat-label {
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* =========================================================
   CATEGORIES CTA
========================================================= */

.featured-categories .categories-cta {
  text-align: center;
  padding: 80px 40px;
  background: color-mix(in srgb, var(--accent-color), transparent 96%);
  border-radius: 8px;
}

.featured-categories .cta-title {
  font-size: var(--font-h2);
  font-weight: 300;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.featured-categories .cta-description {
  font-size: 18px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.featured-categories .btn-primary {
  background-color: var(--accent-color);
  border: 2px solid var(--accent-color);
  color: var(--contrast-color);
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 0;
  text-transform: none;
  transition: all 0.3s ease;
}

.featured-categories .btn-primary:hover {
  background-color: transparent;
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

  .featured-categories .featured-department {
    margin-bottom: 80px;
  }

  .featured-categories .department-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .featured-categories .department-visual {
    margin-top: 40px;
  }

  .featured-categories .categories-grid {
    margin-bottom: 80px;
  }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

  .featured-categories .department-title {
    font-size: var(--font-h1);
  }

  .featured-categories .image-wrapper img {
    height: 350px;
  }

  .featured-categories .categories-cta {
    padding: 60px 24px;
  }

  .featured-categories .cta-title {
    font-size: var(--font-h2);
  }

  .featured-categories .department-card {
    min-height: 15rem;
    padding: 24px 20px;
  }

}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

  .featured-categories .department-card {
    min-height: 14rem;
    padding: 22px 18px;
  }

  .featured-categories .card-icon {
    width: 64px;
    height: 64px;
  }

  .featured-categories .card-icon i {
    font-size: 27px;
  }

  .featured-categories .card-title {
    font-size: var(--font-h3);
  }

  .featured-categories .card-description {
    font-size: 14px;
  }

}

/*--------------------------------------------------------------
# Doctors Section & Slick Slider
--------------------------------------------------------------*/

.doctors {
  background-color: var(--background-color) !important;
}

.doctors .team-member {
  background-color: var(--surface-color);
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  width: 100%;
}

.doctors .team-member .member-img {
  position: relative;
  overflow: hidden;
}

.doctors .team-member .social {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  opacity: 0;
  text-align: center;
  transition: ease-in-out 0.3s;
}

.doctors .team-member:hover .social {
  opacity: 1;
  bottom: 15px;
}

.doctors .team-member .social a {
  background: color-mix(in srgb, var(--contrast-color), transparent 25%);
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0 3px;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: ease-in-out 0.3s;
}

.doctors .team-member .social a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

.doctors .team-member .social i {
  font-size: 18px;
  line-height: 0;
}

.doctors .team-member .member-info {
  padding: 25px 15px;
}

.doctors .team-member .member-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: var(--font-h4);
}

.doctors .team-member .member-info span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/* Slick Controls & Spacing */
.doctors-slider {
  position: relative;
  padding-bottom: 35px;
}

.doctors-slider .doctor-item {
  padding: 12px 12px;
}

.doctors-slider .slick-prev,
.doctors-slider .slick-next {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #333;
  transition: all 0.3s ease;
}

.doctors-slider .slick-prev {
  left: -20px;
}

.doctors-slider .slick-next {
  right: -20px;
}

.doctors-slider .slick-prev:hover,
.doctors-slider .slick-next:hover {
  background: var(--accent-color, #1977cc);
  color: #fff;
  border-color: var(--accent-color, #1977cc);
}

.doctors-slider .slick-dots {
  display: flex !important;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
  gap: 8px;
}

.doctors-slider .slick-dots li button {
  font-size: 0;
  width: 12px;
  height: 12px;
  background: #ccc;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.doctors-slider .slick-dots li.slick-active button {
  background: var(--accent-color, #1977cc);
}
/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/

.faq .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 5px;
  overflow: hidden;
}

.faq .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-container .faq-item h4 {
  font-weight: 600;
  line-height: 1.5;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.faq .faq-container .faq-item h4 .num {
  color: var(--accent-color);
  padding-right: 5px;
}

.faq .faq-container .faq-item h4:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
}

.faq .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-active {
  border-color: var(--accent-color);
}

.faq .faq-container .faq-active h4 {
  color: var(--accent-color);
}

.faq .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}
/* =========================================
   News Section
========================================= */

.news {
  background-color: var(--background-color) !important;
}

/* عنوان در یک یا دو خط کوتاه شود */
.news-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 10;
  /* تعداد خط مجاز */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card-content {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  /* تعداد خط مجاز */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news .news-card-title {
  font-size: 1rem !important;
}

.news .highlight mark {
  background-color: red;
  line-height: 1.8;
  color: white;
}

.news-slider {
  position: relative;
  padding: 0 35px 45px;
}

.news-slider .news-item {
  padding: 12px;
  height: auto;
}

/* News Card */

.news-slider .news-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  min-height: 320px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--surface-color);
}

.news-slider .news-card-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-slider .news-card:hover .news-card-image {
  transform: scale(1.06);
}

/* Card Overlay */

.news-slider .news-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  color: #fff;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.55) 45%,
      rgba(0, 0, 0, 0.05) 100%);
}

.news-slider .news-card-title {
  color: #fff;
  font-size: var(--font-h3);
  font-weight: 700;
  line-height: 1.3;
}

.news-slider .news-card-content {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.9);
}

.news-slider .news-card-date {
  display: block;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.news-slider .news-card-date i {
  margin-right: 5px;
}

.news-slider .news-card-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 8px 16px;
  color: var(--default-color, #333);
  background-color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-slider .news-card-link:hover {
  color: #fff;
  background-color: var(--accent-color, #1977cc);
}

/* =========================================
   Slick Controls
========================================= */

.news-slider .slick-prev,
.news-slider .slick-next {
  position: absolute;
  top: 45%;
  z-index: 10;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.news-slider .slick-prev {
  left: 0;
}

.news-slider .slick-next {
  right: 0;
}

.news-slider .slick-prev:hover,
.news-slider .slick-next:hover {
  color: #fff;
  background-color: var(--accent-color, #1977cc);
  border-color: var(--accent-color, #1977cc);
}

.news-slider .slick-prev::before,
.news-slider .slick-next::before {
  color: inherit;
  font-size: 18px;
  line-height: 1;
  opacity: 1;
}

/* =========================================
   Slick Dots
========================================= */

.news-slider .slick-dots {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex !important;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-slider .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.news-slider .slick-dots li button {
  width: 12px;
  height: 12px;
  padding: 0;
  font-size: 0;
  background-color: #ccc;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.news-slider .slick-dots li button::before {
  display: none;
}

.news-slider .slick-dots li.slick-active button {
  background-color: var(--accent-color, #1977cc);
}

/* =========================================
   Responsive Design
========================================= */

@media (max-width: 991px) {
  .news-slider {
    padding-right: 30px;
    padding-left: 30px;
  }

  .news-slider .news-card-title {
    font-size: var(--font-h3);
  }
}

@media (max-width: 575px) {
  .news-slider {
    padding-right: 25px;
    padding-left: 25px;
  }

  .news-slider .news-item {
    padding: 8px;
  }

  .news-slider .news-card-image {
    height: 300px;
  }

  .news-slider .news-card-overlay {
    padding: 20px;
  }

  .news-slider .news-card-title {}

  .news-slider .news-card-content {
    font-size: 13px;
  }

  .news-slider .slick-prev,
  .news-slider .slick-next {
    width: 34px;
    height: 34px;
  }
}

/* =========================================
   Testimonials Section
========================================= */

.testimonials {
  background-color: var(--background-color) !important;
}

.testimonials-slider {
  position: relative;
  padding: 0 35px 45px;
}

.testimonials-slider .testimonial-item {
  padding: 12px;
  height: auto;
}

/* Testimonial Card */
.testimonials-slider .testimonial-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  min-height: 280px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  background-color: var(--surface-color, #fff);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonials-slider .testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.testimonial-card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Header & Avatar */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.testimonial-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color, #1977cc);
}

.testimonial-user-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--heading-color, #2c4964);
}

.testimonial-company {
  font-size: 0.85rem;
  color: #777;
  display: block;
}

/* Rating Stars */
.testimonial-rating {
  margin-bottom: 12px;
  font-size: 14px;
}

.text-muted-star {
  color: #e0e0e0;
}

/* Content */
.testimonial-card-content {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-card-content .quote-icon-left,
.testimonial-card-content .quote-icon-right {
  color: var(--accent-color, #1977cc);
  font-size: 1.1rem;
  opacity: 0.6;
}

.testimonial-card-content .quote-icon-left {
  display: inline-block;
  transform: rotate(180deg);
  margin-right: 4 !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #333;

  color: #999;
}

.testimonial-card-date i {
  margin-right: 4px;
}

/* =========================================
   Slick Controls (Matched with News)
========================================= */

.testimonials-slider .slick-prev,
.testimonials-slider .slick-next {
  position: absolute;
  top: 45%;
  z-index: 10;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.testimonials-slider .slick-prev {
  left: 0;
}

.testimonials-slider .slick-next {
  right: 0;
}

.testimonials-slider .slick-prev:hover,
.testimonials-slider .slick-next:hover {
  color: #fff;
  background-color: var(--accent-color, #1977cc);
  border-color: var(--accent-color, #1977cc);
}

.testimonials-slider .slick-prev::before,
.testimonials-slider .slick-next::before {
  color: inherit;
  font-size: 18px;
  line-height: 1;
  opacity: 1;
}

/* =========================================
   Slick Dots
========================================= */

.testimonials-slider .slick-dots {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex !important;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.testimonials-slider .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.testimonials-slider .slick-dots li button {
  width: 12px;
  height: 12px;
  padding: 0;
  font-size: 0;
  background-color: #ccc;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.testimonials-slider .slick-dots li button::before {
  display: none;
}

.testimonials-slider .slick-dots li.slick-active button {
  background-color: var(--accent-color, #1977cc);
}

/* =========================================
   Responsive Design
========================================= */

@media (max-width: 991px) {
  .testimonials-slider {
    padding-right: 30px;
    padding-left: 30px;
  }
}

@media (max-width: 575px) {
  .testimonials-slider {
    padding-right: 25px;
    padding-left: 25px;
  }

  .testimonials-slider .testimonial-item {
    padding: 8px;
  }

  .testimonial-card-body {
    padding: 18px;
  }

  .testimonials-slider .slick-prev,
  .testimonials-slider .slick-next {
    width: 34px;
    height: 34px;
  }
}




