/* =============================================================================
   RoboMed Innovations - Centralized CSS Styles
   ============================================================================= */

/* -----------------------------------------------------------------------------
   CSS RESET & BASE STYLES
   -------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------
   NAVIGATION & HEADER STYLES
   -------------------------------------------------------------------------- */

/* Navigation transition */
nav {
  transition: padding-top 0.5s ease;
}

/* Active link */
a.active {
  color: #ef4444;
  font-weight: bold;
  border-bottom: 2px solid #ef4444;
}

/* Dropdown hover styles */
.group:hover .group-hover\:block {
  display: block;
}

/* Products dropdown positioning */
#productsDropdown {
  top: 100%;
  left: 0;
  min-width: 300px;
  transform: translateY(0);
}

/* -----------------------------------------------------------------------------
   ANIMATIONS & EFFECTS
   -------------------------------------------------------------------------- */


/* -----------------------------------------------------------------------------
   UTILITY CLASSES
   -------------------------------------------------------------------------- */

/* White backdrop for text readability */
.bg-white-backdrop {
  background-color: #ffffff;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #1f293b;
}

/* Download button styling */
.download-btn {
  color: white;
  gap: 2px;
  background: #f22c46;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.download-btn:hover {
  background: #1e40af;
}



/* -----------------------------------------------------------------------------
   SWIPER & CAROUSEL STYLES
   -------------------------------------------------------------------------- */

/* Swiper product carousel fixes */
.productsSwiper {
  width: 100%;
  overflow: hidden;
  padding-bottom: 25px;
}

.productsSwiper .swiper-wrapper {
  display: flex;
}

.productsSwiper .swiper-slide {
  height: auto;
}

.productsSwiper article {
  height: 100%;
}

.productsSwiper h3 {
  min-height: 40px;
}

.productsSwiper p {
  min-height: 65px;
}

.productsSwiper img {
  height: 180px;
  object-fit: contain;
}

/* Swiper arrow buttons */
.productsSwiper .swiper-button-prev,
.productsSwiper .swiper-button-next {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  color: #2563eb;
  transition: all 0.2s ease;
}

.productsSwiper .swiper-button-prev::after,
.productsSwiper .swiper-button-next::after {
  font-size: 12px;
  font-weight: bold;
}

.productsSwiper .swiper-button-prev:hover,
.productsSwiper .swiper-button-next:hover {
  background: #2563eb;
  color: #ffffff;
  transform: scale(1.05);
}

.productsSwiper .swiper-button-prev {
  left: -50px;
}

.productsSwiper .swiper-button-next {
  right: -8px;
}

/* Products wrapper positioning */
.products-wrapper {
  position: relative;
}

.products-wrapper .swiper-button-prev,
.products-wrapper .swiper-button-next {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #2563eb;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

.products-wrapper .swiper-button-prev::after,
.products-wrapper .swiper-button-next::after {
  font-size: 14px;
  font-weight: bold;
}

.products-wrapper .swiper-button-prev {
  left: -50px;
}

.products-wrapper .swiper-button-next {
  right: -50px;
}

/* Pagination */
.products-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 20px;
}

/* Carousel for events */
.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-out;
  width: 300%;
}

.carousel-slide {
  width: 100%;
}

/* -----------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */

section.hero{
  margin-top: 140px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  section.hero{
  margin-top: 120px;
}
}

/* -----------------------------------------------------------------------------
   MAIN CONTENT MAX-WIDTH CONSTRAINT
   -------------------------------------------------------------------------- */

/* Main content wrapper - constrain to 1290px */
.main-content {
  max-width: 1290px;
  margin-left: auto;
  margin-right: auto;
}

/* -----------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */

/* Mobile fine-tune for swiper */
@media (max-width: 640px) {
  .productsSwiper .swiper-button-prev,
  .productsSwiper .swiper-button-next {
    width: 24px;
    height: 24px;
  }

  .productsSwiper .swiper-button-prev::after,
  .productsSwiper .swiper-button-next::after {
    font-size: 10px;
  }

  .productsSwiper .swiper-button-prev {
    left: 6px;
  }

  .productsSwiper .swiper-button-next {
    right: 6px;
  }
}

@media (max-width: 768px) {
  .products-wrapper .swiper-button-prev {
    left: -20px;
  }
  .products-wrapper .swiper-button-next {
    right: -20px;
  }
}

/* -----------------------------------------------------------------------------
   PAGE-SPECIFIC STYLES
   -------------------------------------------------------------------------- */

/* Smooth scrolling for anchor links */
#about-us {
  scroll-margin-top: 100px;
}

/* Product sections scroll offset to account for fixed navbar */
#infection-control,
#obg-diagnostics,
#ortho-rehab,
#breast-cancer,
#anaemia-pulse,
#labour-pain-management,
#others {
  scroll-margin-top: 140px;
}

body.homepage .hero h1{
  color: #2d579c;
}

.homepage .productsSwiper{
  padding: 20px 15px;
}

/* Product grid centering */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: start;
  max-width: 100%;
}

/* 4-Column Grid Layout for Products with true centering */
.products-grid-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-self: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.products-grid-flex > * {
  width: 100%;
  max-width: 280px;
  min-width: 250px;
}

.products-grid-flex p, .productsSwiper .swiper-slide article p{
  text-align: justify;
}

/* Responsive product grid */
@media (max-width: 1023px) {
  .products-grid-flex {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 900px;
  }
}

@media (max-width: 767px) {
  .products-grid-flex {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    max-width: 600px;
  }
}

@media (max-width: 640px) {
  .products-grid-flex {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1.5rem;
  }
  
  .products-grid-flex > * {
    max-width: 100%;
  }
}

/* Privacy Policy Section */
body .main-content.privacy-policy, .main-content.terms-and-conditions {
  margin-top: 140px;
  margin-bottom: 20px;
}

/* ------------------------------------------------------------------------------
   LOGO WIDTH ENFORCEMENT
   ---------------------------------------------------------------------------- */

/* Main navigation logo width - 320px */
nav a img[src*="logo-refreshed"],
.navbar-container a img[src*="logo-refreshed"] {
  width: 400px;
  height: auto;
}

/* Sidebar/mobile menu logo width - 240px */
.navbar-menu a img[src*="logo-refreshed"] {
  width: 240px;
  height: auto;
}

