*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #333;
}

.page-wrapper {
  padding-top: 50px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-strip {
  background-color: #ffffff;
  
}

.top-line {
  height: 10px;
  background-color: #0cb3b3;
  margin: 0 auto;
}

.top-logo {
  height: 42px;
  width: auto;
}

.top-logo.left {
  margin-left: 0.5rem;
}

.top-logo.right {
  margin-right: 0.5rem;
}

.mini-logo-top {
  position: absolute;
  top: 6px;
  left: 24px;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 2px solid #46b978;
  background-color: #ffffff;
}

.top-head {
  max-width: 100%;
}

.logo-box {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
}

.logo-main {
  max-width: 480px;
}

.mini-logo-text {
  font-weight: 700;
  color: #46b978;
}

.main-logo-img {
  max-height: 180px;
}

.brand-heading {
  letter-spacing: 1px;
  color: #46b978;
  font-size: 2.5rem;
}

@media (max-width: 991.98px) {
  .brand-heading {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .brand-heading {
    font-size: 1.5rem;
  }
}

.logo-main .en-caption {
  font-size: 0.75rem;
}

.logo-main .header-text {
  font-size: 1rem;
}

.hero-section {
  margin-bottom: 3rem;
}

.hero-section .carousel {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-section .carousel-inner {
  height: clamp(220px, 32vw, 380px);
}

.hero-section .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section .carousel-caption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 2rem;
  border-radius: 0 0 8px 8px;
  bottom: 0;
  right: 0;
  left: 0;
}

.hero-section .carousel-caption h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero-section .carousel-caption p {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 0;
}

.hero-section .carousel-indicators {
  margin-bottom: 1rem;
}

.hero-section .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-section .carousel-indicators button.active {
  background-color: #46b978;
  border-color: #46b978;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 167, 179, 0.8);
  border-radius: 50%;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.hero-section .carousel-control-prev {
  right: 20px;
  left: auto;
}

.hero-section .carousel-control-next {
  left: 20px;
  right: auto;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(0, 167, 179, 1);
}

@media (max-width: 767.98px) {
  .page-wrapper {
    padding-top: 10px;
  }
  .hero-section {
    padding-left: 0;
    margin-bottom: 0.5rem;
    margin-right: 0;
    margin-left: 0;
  }
  
  .hero-section .container {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-section .carousel-inner {
    height: auto;
  }
  
  .hero-section .carousel {
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
  }
  
  .hero-section .carousel-indicators {
    display: none;
  }
  
  .hero-section .carousel-caption h3 {
    font-size: 1.25rem;
  }
  
  .hero-section .carousel-caption p {
    font-size: 0.875rem;
  }
  
  .hero-section .carousel-control-prev,
  .hero-section .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .hero-section .carousel-control-prev {
    right: 10px;
  }
  
  .hero-section .carousel-control-next {
    left: 10px;
  }
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #46b978;
}

.text-brand {
  color: #46b978;
}

.lab-image img {
  object-fit: cover;
}

.content-section {
  border-bottom: 1px solid #e0f2f5;
  padding-bottom: 2.5rem;
}

.lab-image-wrapper {
  max-width: 420px;
}

.series-title {
  font-weight: 600;
}

.cta-box {
  padding-block: 1.25rem;
  padding-inline: 1.5rem;
  background: linear-gradient(135deg, #e8f9f1 0%, #ffffff 40%, #e8f9f1 100%);
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  font-weight: 600;
  color: #222;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding-left: 10px;
  padding-right: 10px;
}

.cta-box:hover,
.cta-box:focus {
  color: #222;
  text-decoration: none;
  background: linear-gradient(135deg, #dff5eb 0%, #ffffff 30%, #d0f0e0 100%);
  border-color: rgba(70, 185, 120, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background-color: transparent;
}

@media (max-width: 575.98px) {
  .cta-box {
    border-radius: 18px;
    padding-block: 1.1rem;
  }
}

.footer {
  margin-top: auto;
  background-color: #ffffff;
}

.footer .en-caption {
  font-size: 0.75rem;
}

.footer-phones {
  text-align: center !important;
}

.footer-phones a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.footer-phones a:hover {
  text-decoration: underline;
}

.footer-bar {
  height: 10px;
  background-color: #46b978;
}

/* Contact Modal Styles */
.modal-header {
  background-color: #46b978;
  color: white;
  border-bottom: none;
}

.modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-content {
  border-radius: 8px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid #e0e0e0;
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: #46b978;
  box-shadow: 0 0 0 0.2rem rgba(0, 167, 179, 0.25);
}

.btn-primary {
  background-color: #46b978;
  border-color: #46b978;
}

.btn-primary:hover {
  background-color: #008a94;
  border-color: #008a94;
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

@media (max-width: 767.98px) {
  header.container {
    text-align: center;
  }

  .mini-logo-top {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .top-logo.left {
    display: none;
  }

  .top-logo.right {
    height: 28px;
  }
}


