/*
Theme Name: madani theme new
Theme URI: https://kamranesfandiari.ir/
Author: کامران اسفندیاری
Author URI: https://kamranesfandiari.ir/author/kamranesfandiari/
Description: این قالب نمونه‌ای از پورتفلیوی یک متخصص طراحی سایت است که برای نمایش مهارت‌ها و پروژه‌های انجام شده توسط کامران اسفندیاری طراحی شده است.
Version: 1.0.0.0
*/
@font-face {
  font-family: 'IRANSansWeb';
  src: url('fonts/IRANSansWeb.eot');
  src: url('fonts/IRANSansWeb.woff2') format('woff2'),
  url('fonts/IRANSansWeb.woff') format('woff'),
  url('fonts/IRANSansWeb.ttf') format('truetype'),
  url('fonts/IRANSansWeb.svg#IRANSansWeb') format('svg'),
  url('fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype');
  font-weight: normal;
  font-style: normal;
}
*{
  font-family: IRANSansWeb !important;
}
    body { font-family: "Vazirmatn", sans-serif; background: linear-gradient(180deg, #ffffff, #f8f3fa); color: #3d2a42; overflow-x: hidden; }
    header { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 999; }
    .navbar-brand { font-weight: 700; font-size: 1.5rem; color: #a65fd7; letter-spacing: 1px; }
    .btn-custom { background: linear-gradient(90deg,#a65fd7,#f36ca4); color: #fff; border: none; border-radius: 30px; padding: 10px 25px; transition: all 0.3s; font-weight: 600; }
    .btn-custom:hover { opacity: 0.95; box-shadow: 0 6px 20px rgba(243,108,164,0.35); transform: translateY(-2px); }

    .hero { background-image: url('https://www.cdf1.com/wp-content/uploads/2023/01/shutterstock_1184930188.jpg'); background-size: cover; background-position: center; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.5); padding: 160px 0; position: relative; }
    .hero::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(166,95,215,0.55); backdrop-filter: blur(2px); }
    .hero .content { position: relative; z-index: 2; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.25rem; }

    .section-title { color: #6c3483; font-weight: 700; margin-bottom: 50px; position: relative; display: inline-block; font-size: 1.75rem; }
    .section-title::after { content: ""; position: absolute; bottom: -12px; right: 50%; transform: translateX(50%); width: 70px; height: 4px; background: linear-gradient(90deg,#a65fd7,#f36ca4); border-radius: 2px; }

    .product-card { transition: transform 0.4s ease, box-shadow 0.4s ease; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.08); padding: 15px; }
    .product-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 12px 25px rgba(0,0,0,0.15); }
    .product-img { border-radius: 20px; width: 100%; height: 250px; object-fit: cover; margin-bottom: 15px; }

    .brand-logo { transition: transform 0.3s ease, filter 0.3s ease; filter: grayscale(60%); }
    .brand-logo:hover { transform: scale(1.1); filter: grayscale(0%); }

    .contact-form input, .contact-form textarea { border-radius: 12px; border: 1px solid #ccc; padding: 12px; width: 100%; margin-bottom: 15px; }
    .contact-form button { border-radius: 25px; background: linear-gradient(90deg,#a65fd7,#f36ca4); color: #fff; border: none; padding: 10px 30px; font-weight: 600; transition: all 0.3s; }
    .contact-form button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(243,108,164,0.35); }

    footer { background: #f6f2fa; padding: 60px 0; color: #6c3483; }
    footer a { color: #a65fd7; text-decoration: none; }
    footer a:hover { text-decoration: underline; }

    section#brands img, section#exhibitions img { height: 200px; width: 100%; border-radius: 15px; }
    

/* start  single page  */
.single-content {
  font-family: "IranSans", Arial, sans-serif;
  line-height: 1.7; /* افزایش خوانایی */
  color: #2c3e50; /* رنگ متن دلنشین */
  background-color: #ffffff; /* پس‌زمینه سفید تمیز */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); /* سایه نرم و جذاب */
}

.single-content h1, 
.single-content h2, 
.single-content h3, 
.single-content h4 {
  color: #3498db; /* آبی شیک برای عناوین */
  font-weight: bold;
  margin: 20px 0 10px;
  font-size: 1.4rem; /* اندازه متناسب عناوین */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* سایه ظریف */
  border-bottom: 2px solid #ecf0f1;
  padding-bottom: 5px;
}

.single-content p {
  margin-bottom: 15px;
  font-size: 1rem; /* اندازه متن اصلی */
}

.single-content img {
  max-width: 100%;
  border-radius: 10px; /* لبه‌های گرد */
  margin: 15px 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* سایه برای تصاویر */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-content img:hover {
  transform: scale(1.05); /* بزرگ‌نمایی ملایم */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.single-content ul {
  margin: 20px 0;
  padding-left: 30px;
  list-style-type: circle;
}

.single-content ul li {
  margin-bottom: 10px;
  font-size: 0.95rem; /* اندازه لیست‌ها */
  color: #34495e;
  position: relative;
}

.single-content ul li::before {
  content: "✔"; /* نماد برای لیست‌ها */
  color: #2ecc71;
  font-size: 1rem;
  position: absolute;
  left: -20px;
  top: 0;
}

.single-content ol {
  margin: 20px 0;
  padding-left: 30px;
  list-style-type: decimal;
}

.single-content ol li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #34495e;
}

.single-content a {
  color: #e74c3c;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px dashed transparent;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.single-content a:hover {
  color: #c0392b;
  border-bottom: 2px dashed #c0392b;
}

.single-content blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  border-left: 6px solid #3498db;
  background: #f9f9f9;
  font-style: italic;
  color: #7f8c8d;
	display: flex
;
}

.single-content blockquote::before {
  content: "“";
  font-size: 2rem;
  color: #3498db;
  margin-right: 10px;
  vertical-align: top;
}

.single-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #95a5a6;
  text-align: right;
}
/* end single page  */
/* start style top  header  */
  header {
    direction: rtl;
  }

  .madani-logo {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .madani-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .header-top {
    flex-wrap: nowrap !important;
  }

  .site-title {
    white-space: nowrap;
    transition: font-size 0.2s ease;
  }

  /* 🔸 فونت واکنش‌گرا برای نام برندها */
  @media (max-width: 992px) {
    .site-title {
      font-size: 1rem !important;
    }
    .madani-logo {
      height: 45px;
      width: 45px;
    }
  }

  @media (max-width: 768px) {
    .header-top {
      flex-wrap: nowrap !important;
      justify-content: space-between !important;
    }
    .site-title {
      font-size: 0.9rem !important;
    }
    .madani-logo {
      height: 40px;
      width: 40px;
    }
  }

  @media (max-width: 576px) {
    .site-title {
      font-size: 0.8rem !important;
    }
    .madani-logo {
      height: 35px;
      width: 35px;
    }
  }
/* end style top  header  */
    header {
    direction: rtl;
  }
  .madani-logo {
    height: 55px;
    width: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .madani-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  .navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: color 0.2s ease;
  }
  .navbar-nav .nav-link:hover {
    color: #2271b1 !important;
  }
  .modal-content {
    border-radius: 1rem;
  }

  /* ///////////////// نمایشگاهه */
  .album-card {
  cursor: pointer;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.album-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.modal-header {
  border-bottom: none;
}
.carousel-item img {
    width: 100%;       /* تصویر کل عرض کارت را پر کند */
    height: 400px;     /* ارتفاع ثابت */
    object-fit: cover; /* برش هوشمند برای پر کردن ارتفاع و عرض */
}

/* start here  */
.category-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.category-swiper-index .brand-card{
    width: 200px;
    height: 161px;
}
.brand-card {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.brand-card span {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* ریسپانسیو */
@media (max-width: 576px) {
    .brand-card {
        width: 90px;
        height: 90px;
    }
}
/* ////////////////// زیر منو */
/* آیتم‌های منو */
.navbar-nav > li {
  position: relative;
}

/* زیرمنو */
.navbar-nav .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: #fff;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 999;
}

/* آیتم‌های داخل زیرمنو */
.navbar-nav .sub-menu li a {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.navbar-nav .sub-menu li a:hover {
  background: #f5f5f5;
  color: #2271b1;
}

/* نمایش زیرمنو روی hover */
.navbar-nav li.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.menu-item-has-children > a::after {
  content: "▾";
  font-size: 12px;
  margin-right: 6px;
}
@media (max-width: 991px) {
  .navbar-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding-right: 12px;
  }

  .menu-item-has-children > a::after {
    display: none;
  }
}
