:root {
  --primary-color: #0F4CC0;
  --primary-color-dark: #154F24;
  --primary-color-light: #63B0CD;
  --secondary-color: #D9D9D9;
  --text-color: #052F5F;
  --background-color: #33C75A;
  --card-bg: white;
  --border-radius: 8px;
  --bs-primary: #33C75A;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* Header Carousel */
.carousel-caption .bg-dark {
  background-color: rgba(0, 0, 0, 0.6) !important;
}
.carousel-caption .rounded {
  border-radius: var(--border-radius);
}

/* Cards */
.service-card {
  transition: transform 0.3s ease-in-out;
}
.service-card:hover {
  transform: translateY(-5px);
}
.card {
  border: none;
  border-radius: var(--border-radius);
}

/* Buttons */
.btn-primary {
  background-color: var(--text-color);
  color: white;
  border: none;
  transition: background 0.3s;
}
.btn-primary:hover {
  background-color: var(--primary-color);
}

/* Sections */
.section-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
}

/* Footer */
.footer {
  background-color: #f1f1f1;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Hero Slider Fade */
.hero-slider {
  background-color: var(--primary-color);
  min-height: 480px;
  position: relative;
}
.slider-fade {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 1s ease;
  z-index: 1;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 2;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.slider-btn:hover {
  background: rgba(0,0,0,0.6);
}
.slider-btn.prev {
  right: 10px;
}

.slider-btn.next {
  left: 10px;
}

@media (max-width: 768px) {
  .slider-btn.prev {
    right: 10px;
  }
  .slider-btn.next {
    left: 10px;
  }
}
/* حذف استایل hero-banner قدیمی */
.hero-banner {
  display: none !important;
}

/* Icon Bar (نوار آیکنی نیمه‌روی بنر) */
.icon-bar-wrapper {
  margin-top: -60px;
  z-index: 5;
  position: relative;
}
.icon-bar-box {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1.5rem;
  padding: 1.5rem 1.5rem;
  width: 75%;
  max-width: 1100px;
  margin: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.5rem;
  border-radius: 12px;
  color: var(--primary-color);
  transition: all 0.2s ease-in-out;
  position: relative;
}
.icon-box:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 5%;
  bottom: 5%;
  width: 1px;
  background-color: #052F5F;
  height: 80%;
}
.icon-box i {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.icon-box .label {
  font-size: 0.9rem;
  font-weight: 500;
}
.icon-box:hover {
  background-color: #e6f4ec;
  transform: translateY(-2px);
}

/* ستون سفارشی برای آیکن‌ها */
@media (min-width: 992px) {
  .col-lg-1-5 {
    flex: 0 0 12.5%;
    max-width: 12.5%;
  }
}

.hoverable {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hoverable:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#backToTopBtn {
  bottom: 20px;
  left: 20px;
  z-index: 999;
  display: none;
  width: 45px;
  height: 45px;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  display: flex;
}

/* نمایش در حالت ریسپانسیو */
@media (max-width: 576px) {
  #backToTopBtn {
    bottom: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* هماهنگی رنگ آیکون‌ها با نوار آیکونی */
.text-primary, .text-success, .text-warning, .text-info, .text-danger, .text-secondary, .text-dark, .text-light, .icon-box, #projects .card .text-primary {
  color: #052F5F !important;
}

/* کاهش ارتفاع کارت‌های بخش رسانه */
#media .card {
  min-height: auto;
  height: auto;
}
#media .card-body {
  padding: 1rem;
}
#media .card-img-top {
  height: 180px;
  object-fit: cover;
}

.navbar, .navbar.bg-white, .navbar-light {
  background-color: var(--background-color) !important;
}
.navbar .navbar-brand, .navbar .nav-link {
  color: var(--text-color) !important;
}
.navbar .nav-link.active, .navbar .nav-link:focus, .navbar .nav-link:hover {
  color: var(--primary-color) !important;
}

/* مخفی کردن دکمه hamburger menu در حالت موبایل و تبلت */
@media (max-width: 991.98px) {
  .navbar-toggler {
    display: none !important;
  }
}
