:root {
  --background-hero: #0606068a;
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #c6c6c6; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #32353a; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #e31f26; /* 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. */
  --link-color: #414042;
  --font-color: #575757;
  --bcolor-babyborn: #6d3b5e;
  --bcolor-candid: #5c2f68;
  --bcolor-cb: #2b358e;
  --bcolor-dermagor: #5198b4;
  --bcolor-dermatypique: #36b3e9;
  --bcolor-erikeh: #414141;
  --bcolor-gilbeaute: #3d3d3d;
  --bcolor-hegor: #00694b;
  --bcolor-matilda: #000000;
  --bcolor-sebycta: #000000;
  --bcolor-sericate: #00529b;
  --bcolor-skinone: #f04f23;
  --bcolor-synbionyme: #4d5256;
  --bcolor-veronique: #ed1b24;
}

@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazir/Vazir-Thin-FD.woff2") format("woff2"),
    url("../fonts/vazir/Vazir-Thin-FD.woff") format("woff");
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazir/Vazir-light-FD.woff2") format("woff2"),
    url("../fonts/vazir/Vazir-light-FD.woff") format("woff");
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazir/Vazir-Regular-FD.woff2") format("woff2"),
    url("../fonts/vazir/Vazir-Regular-FD.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazir/Vazir-Medium-FD.woff2") format("woff2"),
    url("../fonts/vazir/Vazir-Medium-FD.woff") format("woff");
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazir/Vazir-Bold-FD.woff2") format("woff2"),
    url("../fonts/vazir/Vazir-Bold-FD.woff") format("woff");
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazir/Vazir-Black-FD.woff2") format("woff2"),
    url("../fonts/vazir/Vazir-Black-FD.woff") format("woff");
    font-weight: 900;
    font-style: normal;
}
.text-justify{
  text-align:justify !important;
}

* {
    font-family: 'Vazir', sans-serif;
}

a {
  text-decoration: none !important;
}

body {
  font-family: 'Vazir', sans-serif;
  background-color: #f8f8f8;
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
}

.mt02{
  margin-top: -1.5rem;
}

.container-content {
  margin-left:auto;
  margin-right:auto;
  max-width:1900px;
  padding-left:var(--content-x-padding);
  padding-right:var(--content-x-padding)
 }
 
/* Header Sections */
.top-bar {
  background-color: #fff;
  z-index: 1030;
}

.top-bar input[type="text"] {
  padding-right: 2rem;
  max-width: 120px;
  border-radius: 6px;

}

.top-bar {
  color: var(--heading-color);
}

/* Logo Display */
.main-logo img {
  display: block;
  margin: 0 auto;
}

/* Scrolled Logo */
.scrolled-logo {
  display: none !important;
  transition: all 0.3s ease;
}

.scrolled-logo.show {
  display: block !important;
}

/* Main Menu */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav .nav-link {
  font-weight: 500;
  color: #222;
  transition: color 0.3s;
}

.main-nav .nav-link:hover {
  color: var(--accent-color);
}

/* Responsive Controls */
@media (max-width: 768px) {
  
  /* Hide desktop nav */
  .main-nav {
    display: none !important;
  }
  .main-header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .main-logo {
    order: 2;
  }
  .menu-toggle {
    order: 1;
  }
  .main-logo img {
    height: 45px;
  }
  .top-bar .search-box {
    width: 150px;
  }
  .top-bar img {
    height: 45px;
  }
  .scrolled-logo {
    display: none !important;
  }
}

/* Offcanvas (mobile menu) */
.offcanvas-body .nav-link {
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f1f1;
}

.offcanvas-body .dropdown-menu {
  background-color: #f8f8f8;
  border-radius: 0.25rem;
}

.mobile-nav a {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  color: #222;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.mobile-nav a:hover {
  color: var(--accent-color);
}

.mobile-nav li {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #eee;
}

.has-submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav .has-submenu {
  margin-bottom: 0.5rem;
}

.mobile-nav .submenu {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav .has-submenu .submenu {
  padding-right: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav .has-submenu.open .submenu {
  max-height: 500px;
}

.mobile-nav .toggle-submenu {
  background: none;
  border: none;
  font-size: 0.9rem;
  color: #666;
  padding: 0;
}

.mobile-nav .toggle-submenu i {
  transition: transform 0.3s ease;
}

.mobile-nav .has-submenu.open .toggle-submenu i {
  transform: rotate(180deg);
}

/* poober-title */
.poober-highlight-section {
  background-color: #f9f9f9;
  padding: 3rem 1rem;
}

.poober-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.poober-title .text-danger {
  color: var(--accent-color);
}

.read-more {
  font-size: 1rem;
  color: var(--accent-color);
  text-decoration: underline;
  transition: all 0.3s;
}

.read-more:hover {
  color: #000;
  text-decoration: none;
}

/* Hero Section */
.hero-section {
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-section img{
    display: block;
    width: 100%;
    object-fit: fill;
    min-height:100%;
    height: auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-outline-light {
  border-width: 2px;
  font-weight: 500;
  transition: all 0.3s;
}
.btn-outline-light:hover {
  background-color: white;
  color: black;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

}

.btn-primary{
  border-radius: var(--border-radius);
  background: var(--accent-color);
  border: none;
}
.btn-primary:hover{
  background-color: color-mix(in srgb, var(--accent-color), transparent 10%);
}
.btn.show, .btn.show:active, .btn:first-child:active{
	 background-color: color-mix(in srgb, var(--accent-color), transparent 10%);
}

/* swiper */
.swiper {
  width: 100%;
  height: 100%;
}
.swiper-wrapper {
  align-items: stretch
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height:100%;
  height: auto;
}
.swiper-slide img {
  display: block;
  width: 100%;
  object-fit: fill;
  min-height:100%;
  height: auto;
}
.autoplay-progress {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #f9f9f8;
}
.autoplay-progress svg {
  --progress: 0;
  position: absolute;
  left: 0;
  top: 0px;
  z-index: 10;
  width: 100%;
  height: 100%;
  stroke-width: 4px;
  stroke: #f9f9f8;
  fill: none;
  stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
  stroke-dasharray: 125.6;
  transform: rotate(-90deg);
}
.swiper-lazy-preloader{
  stroke: #f9f9f8;
  color: #bbb !important;
}
.swiper-pagination-bullet{
  background:var(--swiper-pagination-bullet-inactive-color,#f9f9f8);
  opacity:var(--swiper-pagination-bullet-inactive-opacity, .4);
}
.swiper-pagination-bullet-active{
  opacity:var(--swiper-pagination-bullet-opacity, 1);
  background:var(--swiper-pagination-color,#f9f9f8);
}
.swiper-button-next, .swiper-button-prev {
  color: #bbb !important;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size:24px !important;
}

@media (max-width:768px) {
  .homeSlider .swiper-slide img {
    display: block;
    object-fit: cover;
	  height: 450px;
	}
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
}
.stat-box {
  text-align: center;
  color: var(--heading-color);
}
.stat-box img {
  max-width: 95px;
  height: auto;
}
.stat-box h5 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  margin: 10px 0 5px;
}
.stat-box p {
  font-size: 1rem;
  color: var(--font-color);
}
@media (max-width: 768px) {
  .stat-box h5 {
    font-size: 1.4rem;
  }
  .stat-box p {
    font-size: 0.9rem;
  }
}

/* poober-card  */
.poober-card {
  width: 195px;
  height: 320px;
  transition: transform 0.3s ease;
  background-color: #000;
}

.poober-card img {
  transition: opacity 0.4s ease;
}

.poober-card .hover-img {
  opacity: 0;
  z-index: 1;
}

.poober-card .caption-bottom {
  z-index: 2;
  font-size: 1.3rem;
  transition: opacity 0.3s ease;
}

.poober-card .caption-hover {
  opacity: 0;
  z-index: 3;
  transition: opacity 0.3s ease;
  font-size: 1rem;
  width: 95%;
}

.poober-card:hover .hover-img {
  opacity: 1;
}

.poober-card:hover .caption-hover {
  opacity: 1;
}

.poober-card:hover .caption-bottom {
  opacity: 0;
}

.poober-section [data-simplebar] {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 10px;
}

.poober-section .simplebar-track.simplebar-horizontal {
  height: 10px;
  background-color: #eee;
  border-radius: 6px;
  margin-top: 5px;
  left: 25%;
}

.poober-section .simplebar-scrollbar:before {
  background: var(--accent-color);
  opacity: 1;
  border-radius: 6px;
  transition: .2s .5s linear !important;
}

/* brands-carousel */
.brand-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.brand-card:hover {
  box-shadow: 0px 0px 5px 2px rgba(255,0,0,0.35);
  -webkit-box-shadow: 0px 0px 5px 2px rgba(255,0,0,0.35);
  -moz-box-shadow: 0px 0px 5px 2px rgba(255,0,0,0.35);
  z-index: 5;
}

.brandSwiper{
  padding: 10px;
}

.brandSwiper .swiper-pagination {
  position: relative;
  bottom: 0;
  margin-top: 1rem;
  z-index: 1;
}

.brandSwiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  opacity: 1;
  margin: 0 4px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.brandSwiper .swiper-pagination-bullet-active {
  background-color: #dc3545;
}



.testimonial-card {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.04);
  max-width: 1000px;
  background-repeat:no-repeat;
  background-position: 20px 20px;
  background-size: 30px 28px;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='0 0 46 36'%3E%3Cpath d='M21,23.412C21,28.771,16.724,33,11.207,33C5.276,33,1,28.629,1,21.58C1,14.391,5.414,6.779,13.689,1l3.724,4.371c-3.311,2.537-5.379,5.497-6.207,8.739C17.276,14.11,21,17.917,21,23.412z M35.207,14.11c0.827-3.242,2.896-6.203,6.207-8.739L37.69,1C29.413,6.78,25,14.391,25,21.582C25,28.629,29.275,33,35.207,33C40.725,33,45,28.771,45,23.414C45,17.917,41.275,14.11,35.207,14.11z'/%3E%3C/svg%3E")
}

@media (min-width: 768px) {
  .testimonial-card {
    background-position: 48px 42px;
  }
}

@media (min-width: 576px) {
  .testimonial-card {
    background-position: 30px 42px;
    background-size: 40px 30px;
  }
}
.testimonial-content{
  margin-bottom: 30px;
}
.testimonial-text{
  padding-top: 20px;
  padding-left: 45px;

}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  opacity: 1;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: #dc3545;
  transform: scale(1.2);
}


.footer-video-wrap {
  max-width: 1900px;
  margin: 1rem auto 1rem;
  padding: 0 1rem;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 500px;
  height: auto;
  overflow: hidden;
  background: #000;
}
.video-el, .video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-el {
  opacity: 0;
  transition: opacity .3s ease;
}
.video-el.is-ready {
  opacity: 1;
}

/* لینک‌های بیشتر/بستن مطابق استایل پروژه */
.seo-more{
  color: var(--accent-color);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.seo-more:hover{ border-color: currentColor; }


/* footer */
.footer a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-color);
}

.social-icons a {
  width: 36px;
  height: 36px;
  background: #f5f5f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.scroll-top {
  width: 44px;
  height: 44px;
  z-index: 999;
}

/* dermatalk */
/* Header with overlay */
.page-header {
  height: 300px;
  overflow: hidden;
}

.page-header img {
  object-fit: cover;
  height: 100%;
  filter: brightness(90%);
}



.breadcrumb-wrapper {
  position: absolute;
  margin-top: -2rem;
  background: transparent;
  z-index: 2;
}

.breadcrumb-wrapper .breadcrumb {
  background: transparent;
  padding: 0.5rem 1rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}
.breadcrumb-item a{
  color: #fff;
}
.breadcrumb-item + .breadcrumb-item::before{
  color: #fff;
}
.breadcrumb-item.active{
  color: #bdbdbd;
}

/* Floating Box */
.floating-box {
  margin-top: -1.5rem;
  position: relative;
  z-index: 1;
}
.floating-box .btn.show {
  background-color:transparent !important;
} 
.input-underline {
  border: none;
  border-bottom: 2px solid var(--default-color); 
  border-radius: 0;
  box-shadow: none;
  padding-right: 0.5rem;
}

.input-underline:focus {
  box-shadow: none;
  border-bottom: 2px solid var(--default-color); 
}

.input-group .input-group-text {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--default-color); 
  border-radius: 0;
}

.custom-placeholder::placeholder {
  color: #dc3545; 
  opacity: 1; 
}

.btn-underline {
  border: none;
  border-bottom: 2px solid var(--default-color);
  border-radius: 0;
  background-color: transparent;
  padding: 0.375rem 0.75rem;
  color: var(--default-color);
}
.btn-underline:hover,
.btn-underline:focus,
.btn-underline:active,
.btn-underline.show {
  border-bottom: 2px solid var(--default-color);
  box-shadow: none;
  background-color: transparent;
  color: var(--default-color);
}

/* Card Styles */
.internal-card img {
  box-shadow: 0 0 0 0 transparent;
  transition: 0.3s ease;
  width: 100%;
}

.internal-card img:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

/* Jobs */
.custom-btn-red {
  display: inline-block;
  background-color: #e32222; 
  color: #fff;
  padding: 8px 30px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 8px rgba(227, 34, 34, 0.4); 
  transition: all 0.2s ease-in-out;
}

.custom-btn-red:hover {
  background-color: #c31414; 
  box-shadow: 0 0 10px rgba(227, 34, 34, 0.6);
  text-decoration: none;
  color: #fff;
}

.poober-inner-card {
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  height: 320px;
  border-radius: 1rem;
  transition: transform 0.3s ease, background-size 0.3s ease;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: end;
}

.poober-link-card:hover .poober-inner-card {
  transform: translateY(-8px);
  background-size: 110%;
}


.card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.418), transparent 80%);
  width: 100%;
}

/* Brands Page */
.brand-box {
  max-width: 355px;
}
.brand-logo-box {
  background-color: #fff;
  border-radius: 1rem;
  border: 1px solid #eee;
  transition: 0.3s ease;
}

.brand-logo-box:hover {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.brand-logo-box i {
  font-size: 1.1rem;
  transition: 0.3s;
}

.brand-logo-box i:hover {
  color: #dc3545; /* رنگ هاور آیکون‌ها */
}

/* Brand Text Colors */
.text-babyborn     { color: var(--bcolor-babyborn); }
.text-candid       { color: var(--bcolor-candid); }
.text-cb           { color: var(--bcolor-cb); }
.text-dermagor     { color: var(--bcolor-dermagor); }
.text-dermatypique { color: var(--bcolor-dermatypique); }
.text-erikeh       { color: var(--bcolor-erikeh); }
.text-gilbeaute    { color: var(--bcolor-gilbeaute); }
.text-hegor        { color: var(--bcolor-hegor); }
.text-matilda      { color: var(--bcolor-matilda); }
.text-sebycta      { color: var(--bcolor-sebycta); }
.text-sericate     { color: var(--bcolor-sericate); }
.text-skinone      { color: var(--bcolor-skinone); }
.text-synbionyme   { color: var(--bcolor-synbionyme); }
.text-veronique    { color: var(--bcolor-veronique); }

/* Talk-Zone */
.talk-card {
  transition: transform 0.3s ease;
}

.talk-card:hover {
  transform: translateY(-5px);
}

.talk-card img {
  transition: transform 0.4s ease;
}

.talk-card:hover img {
  transform: scale(1.05);
}

.card-overlay-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 2;
}


/* dermatology-consultation */
.consultation-bar {
  background-color: #fff;
}

/* دکمه سمت چپ */
.ask-btn {
  background-color: #e52b2b;
  color: #fff;
  padding: 0.60rem 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(229, 43, 43, 0.4);
  transition: all 0.3s ease;
}

.ask-btn:hover {
  background-color: #c82323;
}

/* سرچ */
.search-bar {
  max-width: 100%;
  border: 2px solid #e53935;
  border-radius: 10px;
  overflow: hidden;
  background: white;
}

.search-bar input.form-control {
  border: none;
  box-shadow: none;
}

.search-bar input.form-control:focus {
  border: none;
  box-shadow: none;
}

.search-btn {
  background-color: #e53935; /* قرمز */
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e53935;
  border-radius: 0 10px 10px 0;
  transition: background-color 0.3s;
}

.search-btn:hover {
  background-color: #d32f2f;
}


/* فیلترها */
.filter-tags .filter-tag {
  border: 1px solid #aaa;
  background-color: #fff;
  color: #333;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tags .filter-tag:hover {
  background-color: #f3f3f3;
}

.filter-tags .filter-tag.active {
  background-color: #e52b2b;
  color: #fff;
  border-color: #e52b2b;
}
.question-block{
   transition: all 0.3s ease;
}
.question-block:hover{
    transform: translateY(-4px);
}

.question-card {
  border: 1px solid #eee;
}

.question-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Form Section Styling */
textarea.form-control {
  resize: none;
}
button.btn-danger {
  transition: all 0.3s ease;
}
button.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.2);
}

/* FAQ Icon */
.faq-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-left: 0.5rem;
}
.accordion-button:focus{
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) ,.accordion-button:hover {
  color: var(--accent-color) !important;
}
.accordion-button:not(.collapsed) img , .accordion-button:hover img{
  filter: brightness(0) saturate(100%) invert(41%) sepia(90%) saturate(7441%) hue-rotate(348deg) brightness(92%) contrast(102%);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  color: #dc3545; /* قرمز Bootstrap (text-danger) */
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  font-size: 20px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background-color: #dc3545;
  color: #ffffff;
}

.audio-player-container {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  max-width: 900px;
  margin: auto;
  direction: ltr;
}

.audio-player-container .btn-icon {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #dc3545;
  cursor: pointer;
}

.audio-player-container input[type="range"] {
  appearance: none;
  height: 4px;
  background: #dee2e6;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

#progress {
  width: 300px;
}
#volume {
  width: 80px;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid #dc3545;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: #dc3545;
  height: 4px;
  border-radius: 5px;
}

.time {
  font-size: 0.875rem;
  color: #6c757d;
  white-space: nowrap;
}

/* Article card */
.article-card {
  border: 1px solid #eee;
  background: #fff;
}

/* Top image */
.article-thumb {
  width: 100%;
  height: 190px;                /* نزدیک به نمونه */
  object-fit: cover;
  display: block;
}

/* Soft danger pill like the screenshot */
.badge-soft-danger{
  --c:#e53935;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, white);
  border: 1px solid color-mix(in srgb, var(--c) 35%, white);
  padding: .25rem .6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .75rem;
}

/* Thin divider look */
.meta-row{
  border-bottom: 1px solid #eee;
}



/* Read-more */
.read-more{
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.read-more:hover{
  border-color: currentColor;
}

/* Small polish */
.article-body .bi{
  opacity:.85;
}

.article-cats .card{background:#fff}
.article-cats .bi{vertical-align:middle}

/* search icon padding (end-3 in BS adds ~1rem; مطمئن شو utility داری) */
.article-cats .position-relative .bi-search{right:.9rem}

/* row style */
.cat-item{border-top:1px solid #eee}
.cat-item:first-child{border-top:0}
.cat-toggle{
  background:#f8f9fa;
  border:0;
  outline:0;
  width:100%;
  padding:.8rem .9rem;
  border-radius:.5rem;
  font-weight:600;
  color:#212529;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.cat-toggle:hover{background:#f3f4f5}
.cat-toggle .icons{display:inline-flex; align-items:center; color:#d33}
.cat-toggle .icon-minus{display:none}
.cat-toggle.collapsed .icon-plus{display:inline}
.cat-toggle.collapsed .icon-minus{display:none}
.cat-toggle:not(.collapsed) .icon-plus{display:none}
.cat-toggle:not(.collapsed) .icon-minus{display:inline}

/* sub list */
.subcats{background:#fff; padding:.5rem 1rem 1rem 1rem}
.subcat{padding:.4rem 0; border-bottom:1px dashed #eee}
.subcat:last-child{border-bottom:0}
.form-check-input{margin-left:.5rem; float:none}

.sidebar-sticky{
  position: sticky;
  top: 90px;
}

/* =======================
   Products Category Card
   ======================= */
.pcat-card{
  background: transparent;
  text-decoration: none;
  outline: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}

.pcat-thumb{
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 0 0 0 transparent;
}

.pcat-img{
  display: block;
  width: 100%;
  min-height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}



.pcat-card:hover{
  transform: translateY(-4px);
}

.pcat-title-fa{
  font-size: .95rem;
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.6;
}

.pcat-title-en{
  font-size: .8rem;
  color: var(--font-color);
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.2;
}

.pcat-title-en span{
  display:block;
}



/* ===========================
   Product Detail (PDP) Block
   =========================== */
.pdp-section { background: transparent; }

.pdp-gallery .pdp-main {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
}
.pdp-gallery .pdp-main .swiper-slide {
  aspect-ratio: 16 / 10;
}
.pdp-gallery .pdp-main img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* arrows: قرص سفید با سایه کوچک */
.pdp-gallery .pdp-nav{
  width: 36px; height: 36px;
  border-radius: 999px;
  background: #fff;
  color: #222 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.pdp-gallery .pdp-nav:after{ font-size: 16px; }

/* thumbs */

.pdp-thumbs .swiper-wrapper{
  justify-content: center;
}
.pdp-thumbs .swiper-slide{
  width: 84px; height: 64px;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  opacity: .7;
  transition: opacity .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pdp-thumbs .swiper-slide-thumb-active{
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent-color) inset;
}
.pdp-thumbs img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* pills */
.pdp-pill{
  background: color-mix(in srgb, var(--accent-color) 10%, white);
  border: 1px solid color-mix(in srgb, var(--accent-color) 35%, white);
  color: var(--accent-color);
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}
.pdp-pill-hot{
  background: #fff4f4;
  border-color: #ffd6d6;
  color: #e55;
}

/* stars */
.pdp-stars .bi{ color: #f3b21a; }

/* typography */
.pdp-title{ color: var(--heading-color); font-weight: 800; }
.pdp-lead{ line-height: 1.8; }

/* feature badges */
.pdp-badge{
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #575757;
  padding: .45rem .75rem;
  border-radius: 999px;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
}
.pdp-badge .bi{ opacity: .9; }

/* CTA */
.pdp-buy{
  font-weight: 800;
  letter-spacing: .2px;
}

/* accordion polish */
.pdp-section .accordion-button{ border-radius: 0 !important; }
.pdp-section .accordion-button:not(.collapsed),
.pdp-section .accordion-button:hover{
  color: var(--accent-color);
}

/* responsive tweaks */
@media (max-width: 991.98px){
  .pdp-gallery .pdp-main .swiper-slide{ aspect-ratio: 16 / 11; }
}

.relatedSwiper .swiper-slide{
  display: flex;                 /* تا محتوا واقعاً وسط خود اسلاید بنشیند */
  flex-direction: column;
  align-items: center;           /* افقی */
  justify-content: flex-start;   /* عمودی، اگر خواستی وسط عمودی هم بشه => center */
}

/* ===== Event Card ===== */
.pevt-card{
  border: 1px solid #f1f1f1;
  box-shadow: 0 6px 22px rgba(0,0,0,.05);
}

.pevt-date{
  color: var(--accent-color);
  font-size: .95rem;
}
.pevt-date span{ color: inherit; }

.pevt-desc{
  color: var(--font-color);
  line-height: 2;
}

/* لینک ادامه مطلب (همخوان با استایل پروژه) */
.pevt-more{
  color: var(--accent-color);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
.pevt-more:hover{ border-color: currentColor; }

/* تصویر راست کارت (در RTL) */
.pevt-thumb{
  width: 165px;
  height: 165px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.pevt-thumb img{
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* برچسب روی عکس */
.pevt-thumb::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0) 55%);
}
.pevt-tag{
  position: absolute;
  bottom: .6rem; left: .8rem;  /* در RTL گوشه‌ی چپِ تصویر */
  color: #fff;
  font-weight: 700;
  z-index: 1;
}

/* ریسپانسیو: در موبایل تصویر برود بالا و تمام‌عرض شود */
@media (max-width: 576px){
  .pevt-card{ flex-direction: column-reverse; align-items: stretch; }
  .pevt-thumb{ width: 100%; height: 190px; }
  .pevt-more{ display: inline-block; }
}

