/* === IRANSansWeb Font Family === */

@font-face {
  font-family: 'IRANSansWeb';
  src: url('fonts/iransans/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'),
       url('fonts/iransans/woff/IRANSansWeb_UltraLight.woff') format('woff'),
       url('fonts/iransans/ttf/IRANSansWeb_UltraLight.ttf') format('truetype'),
       url('fonts/iransans/eot/IRANSansWeb_UltraLight.eot');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansWeb';
  src: url('fonts/iransans/woff2/IRANSansWeb_Light.woff2') format('woff2'),
       url('fonts/iransans/woff/IRANSansWeb_Light.woff') format('woff'),
       url('fonts/iransans/ttf/IRANSansWeb_Light.ttf') format('truetype'),
       url('fonts/iransans/eot/IRANSansWeb_Light.eot');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansWeb';
  src: url('fonts/iransans/woff2/IRANSansWeb.woff2') format('woff2'),
       url('fonts/iransans/woff/IRANSansWeb.woff') format('woff'),
       url('fonts/iransans/ttf/IRANSansWeb.ttf') format('truetype'),
       url('fonts/iransans/eot/IRANSansWeb.eot');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansWeb';
  src: url('fonts/iransans/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
       url('fonts/iransans/woff/IRANSansWeb_Medium.woff') format('woff'),
       url('fonts/iransans/ttf/IRANSansWeb_Medium.ttf') format('truetype'),
       url('fonts/iransans/eot/IRANSansWeb_Medium.eot');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansWeb';
  src: url('fonts/iransans/woff2/IRANSansWeb_Bold.woff2') format('woff2'),
       url('fonts/iransans/woff/IRANSansWeb_Bold.woff') format('woff'),
       url('fonts/iransans/ttf/IRANSansWeb_Bold.ttf') format('truetype'),
       url('fonts/iransans/eot/IRANSansWeb_Bold.eot');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansWeb';
  src: url('fonts/iransans/woff2/IRANSansWeb_Black.woff2') format('woff2'),
       url('fonts/iransans/woff/IRANSansWeb_Black.woff') format('woff'),
       url('fonts/iransans/ttf/IRANSansWeb_Black.ttf') format('truetype'),
       url('fonts/iransans/eot/IRANSansWeb_Black.eot');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* === Global Font Apply === */

html, body {
  font-family: 'IRANSansWeb';
  font-weight: 400;
  direction: rtl;
  text-align: right;
  color: #212529;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, textarea, select {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'IRANSansWeb';
  font-weight: 700;
}
/* ================================
   Header Base
================================ */
.main-header {
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  z-index: 100;
}

/* ===== Transparent Mode ===== */
.header-transparent .navbar {
  background: transparent !important;
}

.header-transparent .nav-link,
.header-transparent .ti-menu-2,
.header-transparent .ti-search {
  color: #fff !important;
}

.header-transparent .logo-light { display: inline-block; }
.header-transparent .logo-dark { display: none; }

/* ===== White Mode ===== */
.header-white .navbar {
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-white .nav-link,
.header-white .ti-menu-2,
.header-white .ti-search {
  color: #222 !important;
}

.header-white .logo-light { display: none; }
.header-white .logo-dark { display: inline-block; }

/* ================================
   Navbar Links
================================ */
.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 8px 12px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--bs-primary);
}

/* ================================
   Dropdown Menu
================================ */
.navbar .dropdown-menu {
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px;
  animation: fadeIn 0.2s ease;
  min-width: 180px;
}

.dropdown-item {
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 400;
}

.dropdown-item:hover {
  background-color: var(--bs-primary);
  color: #fff;
}

/* انیمیشن باز شدن */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================
   Sub Dropdown (سطح دوم)
================================ */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > a::after {
  content: "\eab2"; /* Tabler icon - chevron-left */
  font-family: "tabler-icons";
  float: left;
  margin-left: 6px;
  font-size: 13px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.dropdown-submenu:hover > a::after {
  transform: translateX(-2px);
  opacity: 1;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  right: 100%;
  margin-top: 0;
  margin-right: -1px;
  display: none;
  position: absolute;
  border-radius: 10px;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Transparent Dropdowns */
.header-transparent .dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

/* ================================
   Search Box
================================ */
.search-box {
  display: none;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  width: 260px;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.25s ease;
  z-index: 999;
}

.search-box.show {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.search-box form {
  width: 100%;
}

.search-box input {
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  font-size: 14px;
  padding: 6px 10px;
}

.search-box input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.search-box button {
  border-radius: 8px;
  padding: 6px 10px;
}

/* حالت Transparent */
.header-transparent .search-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

/* ================================
   Appointment Button
================================ */
.btn-gradient {
  background: linear-gradient(135deg, #1a8cff, #00c6ff);
  color: #fff !important;
  border: none;
  border-radius: 30px;
  padding: 10px 22px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 198, 255, 0.3);
  color: #fff;
}

/* ================================
   Responsive (Mobile)
================================ */
@media (max-width: 991.98px) {
  .navbar-nav {
    gap: 0 !important;
  }

  .navbar .dropdown-menu {
    position: static !important;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 10px;
    background: transparent !important;
  }

  .navbar .dropdown-menu.show {
    display: block;
  }

  .dropdown-submenu > .dropdown-menu {
    margin: 0;
    padding-left: 15px;
  }

  .nav-link {
    color: #333 !important;
    padding: 10px 0;
  }

  .btn-gradient {
    width: 100%;
    margin-top: 10px;
  }

  .search-box {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
}
/* ======================
   Mobile Menu Modal
====================== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 999;
}

.mobile-menu {
  position: absolute;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  padding: 20px;
  box-shadow: -4px 0 10px rgba(0,0,0,0.1);
  transition: right 0.35s ease;
}

.mobile-menu-overlay.show {
  display: block;
}

.mobile-menu-overlay.show .mobile-menu {
  right: 0;
}

/* دکمه بستن */
.close-menu {
  background: none;
  border: none;
  position: absolute;
  top: 15px;
  left: 15px;
  color: #222;
  cursor: pointer;
}

/* لینک‌ها */
.mobile-menu a {
  color: #222;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: block;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--bs-primary);
}

/* زیرمنو */
.mobile-menu .submenu {
  display: none;
  margin-top: 4px;
}

.mobile-menu li.open > .submenu {
  display: block;
}

/* در موبایل فقط */
@media (min-width: 992px) {
  .mobile-menu-overlay { display: none !important; }
}


/* Gradient Appointment Button */
.btn-gradient {
  background: linear-gradient(135deg, #1a8cff, #00c6ff);
  color: #fff !important;
  border: none;
  border-radius: 30px;
  padding: 10px 22px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 198, 255, 0.3);
  color: #fff;
}

/* Mobile Menu */
@media (max-width: 991.98px) {
  .navbar {
    background: #fff !important;
  }
  .logo-light { display: none !important; }
  .logo-dark { display: inline-block !important; }
  .nav-link {
    color: #333 !important;
    padding: 10px 0;
  }
  .btn-gradient {
    margin-top: 10px;
    width: 100%;
  }
}
.header-transparent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  z-index: 100;
}

/* ======================
   Mobile Menu - Enhanced
====================== */
.mobile-menu {
  background: #fff;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  transition: right 0.35s ease;
}

/* === Header === */
.menu-header img {
  height: 36px;
}
.menu-header span {
  font-size: 17px;
}

/* === Search === */
.menu-search {
  background: #f7f9fc;
  border-radius: 10px;
  padding: 8px 10px;
}

.search-form {
  position: relative;
}

.search-icon {
  color: #7d7d7d;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.search-input {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 8px 36px 8px 40px;
  background: transparent;
  font-size: 14px;
  color: #333;
  transition: all 0.2s ease;
}

.search-input:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
  outline: none;
}

.search-btn {
  background: transparent;
  border: none;
  color: var(--bs-primary);
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px;
  transition: all 0.2s ease;
}

.search-btn:hover {
  transform: translateY(-50%) translateX(-2px);
}

/* === Menu Items === */
.mobile-nav li {
  border-bottom: 1px solid #f0f0f0;
  padding: 4px 0;
}

.nav-link-item {
  color: #333;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-right: 3px solid transparent;
  transition: all 0.25s ease;
  padding-right: 8px;
}

.nav-link-item:hover {
  color: var(--bs-primary);
  border-right-color: var(--bs-primary);
  background: rgba(0, 132, 255, 0.05);
  border-radius: 6px;
  padding-right: 12px;
}

/* زیرمنو */
.mobile-nav .submenu {
  display: none;
  padding-top: 6px;
}

.mobile-nav li.open > .submenu {
  display: block;
}

.submenu a {
  font-size: 14px;
  color: #555;
  display: block;
  padding: 5px 0;
  transition: all 0.2s;
}

.submenu a:hover {
  color: var(--bs-primary);
  transform: translateX(-4px);
}

/* Scroll */
.mobile-menu::-webkit-scrollbar {
  width: 6px;
}
.mobile-menu::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 6px;
}

/* Button Gradient (already defined, just polish) */
.btn-gradient {
  background: linear-gradient(135deg, #1a8cff, #00c6ff);
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 198, 255, 0.35);
}
/* ==========================
   Footer - Flat Gradient Version
========================== */
.site-footer {
  background: linear-gradient(135deg, #0b2d66 0%, #12489d 60%, #007bff 100%);
  position: relative;
  color: #fff;
  overflow: hidden;
  line-height: 1.8;
}

/* لایه داخلی */
.footer-inner {
  position: relative;
  z-index: 2;
  padding-top: 5rem !important;
  padding-bottom: 4rem !important;
}

/* لینک‌ها */
.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
  padding: 4px 0;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(-4px);
}

/* آیکون‌ها */
.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #fff;
  color: #007bff;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(255,255,255,0.25);
}

/* بخش پایین */
.footer-bottom {
  border-color: rgba(255, 255, 255, 0.25) !important;
  margin-top: 3rem !important;
  padding-top: 1.5rem !important;
}

/* ریسپانسیو */
@media (max-width: 767.98px) {
  .site-footer {
    text-align: center;
  }
  .footer-inner {
    padding-top: 4rem !important;
    padding-bottom: 3rem !important;
  }
  .social-icons {
    justify-content: center;
  }
}
/* ==========================
   Hero Section (Main)
========================== */
.hero-section {
  /* min-height: 100vh; */
  padding-top: 8rem; /* فاصله از بالا برای هدر ترنسپرنت */
  background: linear-gradient(135deg, #0b2d66 0%, #12489d 60%, #007bff 100%);
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 60%);
  z-index: 1;
}

/* محتوای درون سکشن */
.hero-section .container {
  z-index: 2;
  position: relative;
}

.hero-section h1 {
  line-height: 1.4;
}

.hero-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================
   Buttons
========================== */
.hero-section .btn-warning {
  background-color: #ffc107;
  border: none;
  color: #1a1a1a;
  transition: all 0.3s ease;
}

.hero-section .btn-warning:hover {
  background-color: #ffb300;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255,193,7,0.3);
}

.hero-section .btn-outline-light {
  border: 2px solid rgba(255,255,255,0.8);
  color: #fff;
  transition: all 0.3s ease;
}

.hero-section .btn-outline-light:hover {
  background-color: rgba(255,255,255,0.15);
  box-shadow: 0 6px 16px rgba(255,255,255,0.25);
}

/* ==========================
   Hero Image
========================== */
.hero-image-wrapper {
  position: relative;
  display: inline-block;
}

.hero-image-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15), transparent 70%);
  filter: blur(25px);
  border-radius: 50%;
  z-index: -1;
}

/* ==========================
   Responsive
========================== */
@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 6rem;
    text-align: center;
  }
  .hero-section h1 {
    font-size: 1.9rem;
  }
  .hero-section .btn {
    width: auto;
  }
}
.hero-image-wrapper img {
    width: 480px;
}
#services {
  background: #f8fafc;
  position: relative;
}

#services h2 {
  font-size: 2rem;
  letter-spacing: -0.3px;
}

.service-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
  cursor: pointer;
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 140, 255, 0.15);
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 4px 12px rgba(0, 198, 255, 0.35);
  transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 198, 255, 0.45);
}

.service-card i {
  font-size: 2.2rem;
}

.service-card h5 {
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
}

.service-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.service-card {
  z-index: 2;
}

/* ==========================
   Responsive
========================== */
@media (max-width: 767.98px) {
  #services h2 {
    font-size: 1.6rem;
  }
  .service-card {
    padding: 2rem 1rem;
  }
  .icon-wrapper {
    width: 60px;
    height: 60px;
  }
}
.icon-wrapper svg { transition: transform .3s ease, filter .3s ease; }
.service-card:hover .icon-wrapper svg { transform: scale(1.08); filter: drop-shadow(0 6px 14px rgba(0,198,255,.25)); }

.about-image-wrapper {
  position: relative;
  display: inline-block;
}

/* --- Testimonials Section --- */
.bg-gradient-light {
  background: linear-gradient(180deg, #f8fbff 0%, #fefefe 100%);
}
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 123, 255, 0.15);
}
.testimonial-card i {
  opacity: 0.8;
}

/* Swiper pagination custom */
#testimonials .swiper-pagination-bullet {
  background: #00c6ff;
  opacity: 0.4;
}
#testimonials .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

/* Buttons reused */
.btn-gradient {
  background: linear-gradient(135deg, #1a8cff, #00c6ff);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 198, 255, 0.35);
}
.icon-box {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-input {
  border-radius: 12px;
  border: 1px solid #e3e3e3;
  background: #f9fafc;
  transition: all 0.25s ease;
  font-size: 14px;
}
.contact-input:focus {
  border-color: #00b6ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,182,255,0.15);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}
.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  color: #fff;
}

.icon-box i {
    color: #fff;
}
.googlemapBox {
    margin: 0 auto;
    display: table;
}
.about-section {
    background: #f9fafc;
    padding: 80px 0;
}
.about-section h2 {
    font-size: 2rem;
    color: #1d4ed8;
    margin-bottom: 1rem;
    font-weight: 700;
}
.about-section .lead {
    color: #4b5563;
    line-height: 1.8;
}
.about-section ul {
    padding-left: 0;
    list-style: none;
}
.about-section ul li {
    padding: 5px 0;
    color: #374151;
    font-size: 15px;
}
.about-section ul li::before {
    content: "• ";
    color: #1d4ed8;
    font-weight: bold;
}
.about-section img {
    border-radius: 16px;
    transition: transform 0.3s ease;
}
.about-section img:hover {
    transform: scale(1.02);
}
.about-section .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.about-section .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.about-section .card-title {
    color: #1f2937;
}
.about-section .btn {
    border-radius: 30px;
    font-weight: 500;
}
.about-section .btn-primary {
    background: #1d4ed8;
    border-color: #1d4ed8;
}
.about-section .btn-outline-secondary:hover {
    background: #1d4ed8;
    color: #fff;
}

/* ===== Blog Sidebar Widgets ===== */
.blog-sidebar .sidebar-widget {
    background: #fefefe; /* پس‌زمینه روشن */
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-sidebar .sidebar-widget:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.blog-sidebar .widget-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    border-bottom: 3px solid #007bff;
    display: inline-block;
    padding-bottom: 6px;
    letter-spacing: 0.5px;
}

/* ===== Search Widget ===== */
.search-widget .search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-widget .form-control {
    flex: 1;
    border-radius: 50px;
    padding: 10px 18px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-widget .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0,123,255,0.2);
}

.search-widget button {
    background: #007bff;
    color: #fff;
    border-radius: 50px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-widget button:hover {
    background: #0056b3;
}

/* ===== Recent & Popular Posts ===== */
.recent-posts-widget .recent-post,
.popular-posts-widget .popular-post {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.recent-posts-widget img,
.popular-posts-widget img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.recent-posts-widget .recent-info a,
.popular-posts-widget .popular-info a {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    transition: color 0.3s;
    text-decoration: none;
}

.recent-posts-widget .recent-info a:hover,
.popular-posts-widget .popular-info a:hover {
    color: #007bff;
}

.recent-posts-widget .recent-info .small,
.popular-posts-widget .popular-info .small,
.recent-posts-widget .recent-info .text-muted,
.popular-posts-widget .popular-info .text-muted {
    font-size: 0.8rem;
    color: #666;
    margin-top: 3px;
}

/* ===== Category & Popular Lists ===== */
.category-list li,
.popular-list li {
    margin-bottom: 10px;
}

.category-list li a,
.popular-list li a {
    font-size: 0.93rem;
    color: #333;
    transition: all 0.3s;
    text-decoration: none;
}

.category-list li a:hover,
.popular-list li a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* ===== Tags ===== */
.tag-list .badge {
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 12px;
    background: #007bff;
    color: #fff;
    transition: all 0.2s ease;
}

.tag-list .badge:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .blog-sidebar .sidebar-widget {
        margin-bottom: 20px;
    }
    .recent-posts-widget .recent-post,
    .popular-posts-widget .popular-post {
        gap: 10px;
    }
}

/* ===== Blog Article ===== */
.blog-article {
    background: #fff;
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.blog-article .blog-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.4;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
}

.blog-article .blog-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 25px;
}

.blog-body {
    font-size: 1rem;
    line-height: 1.9;
    color: #333;
}

.blog-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

/* ===== Comments Section ===== */
.comments-section {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.comments-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

/* ===== Single Comment ===== */
.comment {
    background: #f9fafb;
    border-left: 4px solid #007bff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

.comment-author {
    font-weight: 600;
    color: #007bff;
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.comment-content {
    color: #444;
    line-height: 1.7;
}

/* ===== Comment Form ===== */
.comment-form {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-top: 40px;
}

.comment-form h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

.comment-form input,
.comment-form textarea {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px 14px;
    font-size: 0.95rem;
    width: 100%;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0,123,255,0.2);
}

.comment-form button {
    background-color: #007bff;
    border: none;
    color: #fff;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.comment-form button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}
/* ===== Tag Cloud ===== */
.tagcloud {
    margin-top: 35px;
    padding: 20px 25px;
    background: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tagcloud .tag-title {
    font-weight: 700;
    color: #222;
    margin-right: 10px;
    font-size: 0.95rem;
}

.tagcloud .tag-item {
    display: inline-block;
    background: #e9f2ff;
    color: #007bff;
    border: 1px solid #d2e6ff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tagcloud .tag-item:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,123,255,0.3);
}
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-author img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.article-author .author-label {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

.article-author .author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.article-date {
    text-align: right;
}

.article-date .date-label {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

.article-date .date-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #007bff;
}
.breadcrumb-modern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.breadcrumb-modern a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.breadcrumb-modern a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-modern span {
    color: #aaa;
    font-size: 0.9rem;
}

.breadcrumb-modern .current {
    color: #222;
    font-weight: 600;
}
.comments-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    padding-bottom: 4px;
    margin-bottom: 1.5rem;
}

.comment-box {
    background: #fafafa;
    border-left: 4px solid #007bff;
    transition: all 0.2s ease;
}

.comment-box:hover {
    background: #f5f8ff;
}

.comment-avatar i {
    font-size: 1.6rem;
    color: #007bff;
}

.comment-content {
    color: #333;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== Admin Reply ===== */
.admin-reply {
    background: #e9f6ff;
    border-left: 4px solid #00a0ff;
    color: #222;
    font-size: 0.95rem;
    position: relative;
}

.admin-reply::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #e9f6ff;
}

.admin-avatar i {
    font-size: 1.4rem;
    color: #00a0ff;
}

.admin-name {
    font-weight: 600;
    color: #007bff;
}

/* ===== Comment Form ===== */
.comment-form {
    border-top: 3px solid #007bff;
}

.comment-form .form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: 0.2s;
}

.comment-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.1);
}

.comment-form .form-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}
.mag-archive {
    background-color: #f8f9fa;
}

.title-mag-box h1 {
    color: #333;
    font-weight: 700;
}

.total-post {
    margin-top: 4px;
}

/* 🔽 Filter Box */
.filter-box span {
    font-weight: 500;
    color: #555;
}

.filter-box ul li {
    list-style: none;
}

.filter-box ul li a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.filter-box ul li.active a,
.filter-box ul li a:hover {
    color: #6f42c1;
    border-bottom: 2px solid #6f42c1;
}

.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

/* 🖼 Thumbnail */
.blog-thumb img {
    border-bottom: 3px solid #6f42c1;
    transition: transform 0.4s ease;
}


/* 📝 Blog Title */
.blog-card h6 a {
    font-size: 0.95rem;
    line-height: 1.5;
}

.blog-card h6 a:hover {
    color: #6f42c1;
}

/* 📄 Short Description */
.short-description p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 🔢 Pagination */
.mag-pagination {
    text-align: center;
}

.mag-pagination .pagination {
    justify-content: center;
}

.mag-pagination .page-link {
    border: none;
    color: #6f42c1;
    font-weight: 500;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.mag-pagination .page-link:hover {
    background-color: #6f42c1;
    color: #fff;
}

.mag-pagination .active .page-link {
    background-color: #6f42c1;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(111, 66, 193, 0.4);
}

/* 📱 Responsive */
@media (max-width: 992px) {
    .filter-box {
        justify-content: center;
        margin-top: 10px;
    }
    .title-mag-box {
        text-align: center;
    }
    .mag-filter {
        text-align: center;
    }
}

.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: #1499ff;
}

.error-message {
    font-size: 1.25rem;
    color: #4b5563;
}

.error-page a {
    font-weight: 600;
    background: linear-gradient(135deg, #1499ff, #4d62ff);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px; /* گرد و پفکی */
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
}

.error-page a:hover {
    background: linear-gradient(135deg, #0f84de, #181bd7);
}