/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: #444444;
  overflow-x: hidden;
}

a {
  color: #1977cc;
  text-decoration: none;
}

a:hover {
  color: #3291e6;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", sans-serif;
}

/*--------------------------------------------------------------
# Top Bar
--------------------------------------------------------------*/
#topbar {
  background: #4150D8;
  height: 40px;
  font-size: 14px;
  transition: all 0.5s;
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

#topbar.topbar-scrolled {
  top: -40px;
}

#topbar .container {
  height: 100%;
}

#topbar .contact-info {
  height: 100%;
  display: flex;
  align-items: center;
}

#topbar .contact-info a {
  line-height: 1;
  color: #ffffff;
  transition: 0.3s;
}

#topbar .contact-info a:hover {
  color: #3fbbc0;
}

#topbar .contact-info i {
  color: #3fbbc0;
  padding-right: 4px;
  margin-left: 15px;
  line-height: 0;
}

#topbar .contact-info i:first-child {
  margin-left: 0;
}

#topbar .social-links {
  height: 100%;
  display: flex;
  align-items: center;
}

#topbar .social-links a {
  color: #f9f9f9;
  padding-left: 15px;
  display: inline-block;
  line-height: 1px;
  transition: 0.3s;
}

#topbar .social-links a:hover {
  color: #1977cc;
}

#topbar .social-links a:first-child {
  border-left: 0;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  background: #fff;
  transition: all 0.5s;
  z-index: 997;
  padding: 15px 0;
  top: 40px;
  box-shadow: 0px 2px 15px rgba(25, 119, 204, 0.1);
  position: fixed;
  left: 0;
  right: 0;
}

#header.header-scrolled {
  top: 0;
}

#header .logo {
  font-size: 30px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: "Poppins", sans-serif;
}

#header .logo a {
  color: #2c4964;
}

#header .logo img {
  max-height: 40px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar > ul > li {
  position: relative;
  white-space: nowrap;
  padding: 8px 0 8px 20px;
}

.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #2c4964;
  white-space: nowrap;
  transition: 0.3s;
  border-bottom: 2px solid #fff;
  padding: 5px 2px;
}

.navbar a i, .navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
  color: #1977cc;
  border-color: #1977cc;
}

.mobile-nav-toggle {
  color: #2c4964;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(28, 47, 65, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile > ul > li {
  padding: 0;
}

.navbar-mobile a {
  padding: 10px 20px;
  font-size: 15px;
  color: #2c4964;
  border: none;
}

.navbar-mobile a:hover, .navbar-mobile .active, .navbar-mobile li:hover > a {
  color: #3fbbc0;
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
  scroll-margin-top: 120px;
}

.section-bg {
  background-color: #f1f7fd;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #2c4964;
}

.section-title h2::before {
  content: '';
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #1977cc;
  bottom: 0;
  left: calc(50% - 20px);
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Home Section
--------------------------------------------------------------*/
#home {
  width: 100%;
  height: 100vh;
  background: url("../img/home.jpg") top center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 80px;
}

#home .container {
  position: relative;
  z-index: 2;
}

#home h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  text-transform: uppercase;
  color: #2c4964;
}

#home h2 {
  color: #2c4964;
  margin: 10px 0 0 0;
  font-size: 24px;
}

#home .btn-get-started {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 35px;
  margin-top: 30px;
  border-radius: 50px;
  transition: 0.5s;
  color: #fff;
  background: #1977cc;
  border: none;
  text-decoration: none;
}

#home .btn-get-started:hover {
  background: #3fbbc0;
  color: #fff;
}

@media (min-width: 1024px) {
  #home {
    background-attachment: fixed;
  }
}

@media (max-width: 992px) {
  #home {
    height: calc(100vh - 80px);
    margin-top: 80px;
  }
  
  #home .container {
    padding-bottom: 0;
  }
  
  #home h1 {
    font-size: 28px;
    line-height: 36px;
  }
  
  #home h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }
}

@media (max-height: 600px) {
  #home {
    height: calc(100vh - 80px);
  }
}

/*--------------------------------------------------------------
# Main Content
--------------------------------------------------------------*/
#main {
  margin-top: 0;
}

/*--------------------------------------------------------------
# Products Section
--------------------------------------------------------------*/
#products {
  padding-top: 80px;
}

.services .icon-box {
  text-align: center;
  border: 1px solid #d5e1ed;
  padding: 80px 20px;
  transition: all ease-in-out 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.services .icon-box .icon {
  margin: 0 auto;
  width: 64px;
  height: 64px;
  background: #1977cc;
  border-radius: 5px;
  transition: all .3s ease-out 0s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transform-style: preserve-3d;
}

.services .icon-box .icon i {
  color: #fff;
  font-size: 28px;
}

.services .icon-box .icon::before {
  position: absolute;
  content: '';
  left: -8px;
  top: -8px;
  height: 100%;
  width: 100%;
  background: #badaf7;
  border-radius: 5px;
  transition: all .3s ease-out 0s;
  transform: translateZ(-1px);
}

.services .icon-box h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 24px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services .icon-box h4 a {
  color: #2c4964;
  text-decoration: none;
}

.services .icon-box h4 a:hover {
  color: #1977cc;
}

.services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1977cc;
}

.services .icon-box:hover {
  border-color: #1977cc;
  box-shadow: 0 0 25px 0 rgba(25, 119, 204, 0.1);
}

.services .icon-box:hover .icon {
  background: #fff;
}

.services .icon-box:hover .icon i {
  color: #1977cc;
}

.services .icon-box:hover .icon::before {
  background: #3291e6;
}

/* Product Button */
.btn-product {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 30px;
  margin-top: 20px;
  border-radius: 50px;
  transition: 0.5s;
  color: #fff;
  background: #1977cc;
  border: 2px solid #1977cc;
  text-decoration: none;
  text-align: center;
}

.btn-product:hover {
  background: #3fbbc0;
  border-color: #3fbbc0;
  color: #fff;
}

.view-all-btn {
  margin-top: 40px;
  text-align: center;
  width: 100%;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
#about {
  background: #f8f9fa;
}

.about .about-title {
  font-size: 32px;
  color: #2c4964;
  margin-bottom: 30px;
  font-weight: bold;
  text-align: left;
}

.about .row {
  align-items: center;
}

.about img {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about p {
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.about b {
  color: #1977cc;
}

/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
#clients {
  background: #fff;
}

.client-review {
  text-align: center;
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555;
  line-height: 1.6;
  font-family: 'Segoe UI', sans-serif;
}

.doctors .member {
  position: relative;
  box-shadow: 0px 2px 15px rgba(44, 73, 100, 0.08);
  padding: 30px;
  border-radius: 10px;
  height: 100%;
}

.doctors .member .pic {
  overflow: hidden;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex-shrink: 0;
}

.doctors .member .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: ease-in-out 0.3s;
}

.doctors .member:hover img {
  transform: scale(1.1);
}

.doctors .member .member-info {
  padding-left: 30px;
}

.doctors .member h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 20px;
  color: #2c4964;
}

.doctors .member span {
  display: block;
  font-size: 15px;
  padding-bottom: 10px;
  position: relative;
  font-weight: 500;
  color: #1977cc;
}

.doctors .member span::after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 1px;
  background: #b2c8dd;
  bottom: 0;
  left: 0;
}

.doctors .member p {
  margin: 10px 0 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  font-style: italic;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
#contact {
  background: #f8f9fa;
}

.contact-description {
  text-align: center;
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555;
  line-height: 1.6;
  font-family: 'Segoe UI', sans-serif;
}

/* Map Styles */
.mapouter {
  position: relative;
  text-align: right;
  width: 100%;
  height: 363px;
  margin-bottom: 30px;
}

.gmap_canvas {
  overflow: hidden;
  background: none !important;
  width: 100%;
  height: 363px;
}

.gmap_iframe {
  height: 363px !important;
  border-radius: 10px;
}

.contact .info {
  width: 100%;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact .info i {
  font-size: 20px;
  color: #1977cc;
  float: left;
  width: 44px;
  height: 44px;
  background: #d6e9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #2c4964;
}

.contact .info p {
  padding: 0 0 0 60px;
  margin-bottom: 0;
  font-size: 14px;
  color: #4b7dab;
  line-height: 1.6;
}

.contact .info .email, .contact .info .phone {
  margin-top: 25px;
}

.contact .info .email:hover i, .contact .info .address:hover i, .contact .info .phone:hover i {
  background: #3fbbc0;
  color: #fff;
}

.contact .php-email-form {
  width: 100%;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form input, .contact .php-email-form textarea {
  border-radius: 5px;
  box-shadow: none;
  font-size: 14px;
  border: 1px solid #dee2e6;
}

.contact .php-email-form input:focus, .contact .php-email-form textarea:focus {
  border-color: #1977cc;
  box-shadow: 0 0 0 0.2rem rgba(25, 119, 204, 0.25);
}

.contact .php-email-form input {
  height: 44px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
  min-height: 120px;
}

.contact .php-email-form button[type="submit"] {
  background: #1977cc;
  border: 0;
  padding: 12px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
  font-weight: 600;
}

.contact .php-email-form button[type="submit"]:hover {
  background: #3fbbc0;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: #2c4964;
  padding: 0 0 30px 0;
  color: #fff;
  font-size: 14px;
}

#footer .footer-top {
  background: #2c4964;
  padding: 60px 0 30px 0;
}

#footer .footer-top .footer-info {
  margin-bottom: 30px;
}

#footer .footer-top .footer-info h3 {
  font-size: 24px;
  margin: 0 0 20px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

#footer .footer-top .footer-info p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  font-family: "Roboto", sans-serif;
  color: rgba(255,255,255,0.8);
}

#footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 4px;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
  background: #1977cc;
  text-decoration: none;
}

#footer .footer-top h4 {
  font-size: 16px;
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
  color: #fff;
}

#footer .footer-top h4::after {
  content: '';
  position: absolute;
  display: block;
  width: 40px;
  height: 2px;
  background: #1977cc;
  bottom: 0;
  left: 0;
}

#footer .footer-top .footer-links {
  margin-bottom: 30px;
}

#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-top .footer-links ul i {
  padding-right: 2px;
  color: #3fbbc0;
  font-size: 18px;
  line-height: 1;
}

#footer .footer-top .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-top .footer-links ul a {
  color: rgba(255,255,255,0.8);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

#footer .footer-top .footer-links ul a:hover {
  color: #3fbbc0;
}

#footer .copyright {
  text-align: center;
  padding-top: 30px;
  color: rgba(255,255,255,0.8);
  border-top: 1px solid rgba(255,255,255,0.1);
}

#footer .credits {
  padding-top: 10px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

#footer .credits a {
  color: #3fbbc0;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #1977cc;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #298ce5;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #1977cc;
  border-top-color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}


@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Product Page Styles
--------------------------------------------------------------*/
.product-page {
  padding: 100px 0 60px 0;
  margin-top: 80px;
}

.product-image {
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

.product-title {
  color: #2c4964;
  margin-bottom: 20px;
  border-bottom: 2px solid #1977cc;
  padding-bottom: 10px;
}

.product-price {
  font-size: 28px;
  color: #1977cc;
  font-weight: 700;
  margin: 20px 0;
}

.product-description {
  line-height: 1.8;
  margin-bottom: 30px;
}

.product-specs {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
}

.product-specs h3 {
  color: #2c4964;
  margin-bottom: 20px;
}

.product-specs ul {
  list-style: none;
  padding: 0;
}

.product-specs li {
  padding: 8px 0;
  border-bottom: 1px solid #dee2e6;
  position: relative;
  padding-left: 20px;
}

.product-specs li:before {
  content: "•";
  color: #1977cc;
  position: absolute;
  left: 0;
}

.product-specs li:last-child {
  border-bottom: none;
}

.product-warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 30px 0;
  border-radius: 5px;
  color: #856404;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 30px;
}

.breadcrumb-item a {
  color: #1977cc;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* Product Cards */
.product-card {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-5px);
  border-color: #1977cc;
}

.product-card .card-img-top {
  height: 250px;
  object-fit: contain;
  padding: 20px;
  background: #f8f9fa;
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.product-card .price {
  font-size: 20px;
  color: #1977cc;
  font-weight: 700;
  margin: 10px 0;
}

/* Related Products */
.related-products {
  margin-top: 60px;
}

.related-product-card {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.related-product-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-5px);
  border-color: #1977cc;
}

.related-product-card img {
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  section {
    padding: 40px 0;
    scroll-margin-top: 100px;
  }
  
  .product-page {
    padding: 80px 0 40px 0;
    margin-top: 60px;
  }
  
  .product-image {
    max-width: 250px;
  }
  
  .services .icon-box {
    padding: 40px 20px;
    margin-bottom: 30px;
  }
  
  .product-card .card-img-top {
    height: 200px;
  }
  
  .doctors .member {
    flex-direction: column;
    text-align: center;
  }
  
  .doctors .member .pic {
    margin: 0 auto 20px;
  }
  
  .doctors .member .member-info {
    padding-left: 0;
  }
  
  #home {
    margin-top: 60px;
    height: calc(100vh - 60px);
  }
  
  #header {
    top: 40px;
  }
}

@media (max-width: 576px) {
  #topbar {
    height: 35px;
    font-size: 12px;
  }
  
  #header {
    top: 35px;
    padding: 10px 0;
  }
  
  #home {
    margin-top: 55px;
    height: calc(100vh - 55px);
  }
  
  .section-title h2 {
    font-size: 24px;
  }
}


/*add*/

/* Product Image Container */
.product-image-container {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.product-image-container img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Fix for icon-box height */
.services .icon-box {
  min-height: 450px;
}

/* Additional responsive fixes */
@media (max-width: 1200px) {
  .product-image-container {
    height: 220px;
  }
}

@media (max-width: 992px) {
  .product-image-container {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .product-image-container {
    height: 180px;
  }
  
  .services .icon-box {
    min-height: 400px;
  }
}