/* Breakpoint-specific tweaks (phones/tablets) */
@media (max-width: 575.98px) {
  .product-control-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .control-bar-brands {
    order: 1;
    width: 100%;
    justify-content: flex-start;
  }
  .control-bar-search {
    order: 2;
    width: 100%;
    min-width: 0;
  }
  .product-sidebar {
    margin-bottom: 1rem;
  }

  .product-card-ui {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .product-img-box {
    flex: 0 0 auto;
    padding: 0.5rem 0;
    text-align: center;
  }
  .product-img-box img {
    /* increased by 50% for improved visibility on small screens */
    max-height: 180px;
    object-fit: contain;
    margin: 0 auto;
  }
  .product-footer {
    margin-top: auto;
  }

  .brand-img {
    max-height: 48px;
  }
  /* Mobile full-width fixes to prevent side gaps/centered narrow layout */
  html, body { width: 100%; overflow-x: hidden; }
  /* Make bootstrap containers behave full width on small screens */
  .container, .container-fluid { max-width: 100% !important; padding-left: 12px !important; padding-right: 12px !important; }
  /* Ensure main content stretches edge-to-edge within padding */
  .product-page-container, .header-area, .footer-area { width: 100%; }
  /* Remove extra horizontal margins introduced by template */
  .tempaltemo-carousel, .product-sidebar { margin-left: 0 !important; margin-right: 0 !important; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .product-img-box img {
    max-height: 160px;
  }
  .brand-img {
    max-height: 64px;
  }
}

/* Ensure long product titles wrap nicely */
.product-title-top {
  white-space: normal;
  word-break: break-word;
}

/* Navbar scroll/shrink behavior (performant using transforms)
   - top bar slides up via translateY(-100%)
   - header translates up by topbar height and scales vertically by 0.90
   - CSS var `--site-topbar-height` is set by JS to match actual top bar height
*/
.top-bar-area {
  transition: transform 0.35s ease-in-out, opacity 0.35s ease-in-out;
  transform: translateY(0);
  will-change: transform, opacity;
}
.top-bar-area.top-bar-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.header-area {
  transition: transform 0.35s ease-in-out, box-shadow 0.35s ease-in-out;
  transform-origin: top center;
  will-change: transform, box-shadow;
}
.header-area.nav-shrink {
  /* move up by the topbar height - remove scaleY to prevent blurring/distortion */
  transform: translateY(calc(-1 * var(--site-topbar-height, 0px)));
}
.header-area.nav-shadow {
  box-shadow: 0 4px 20px rgba(15,19,65,0.12);
}

/* Ensure the toggler icon remains visible and transitions smoothly */
.navbar-toggler { transition: opacity 0.25s ease-in-out; }

@media (max-width: 767.98px) {
  /* On small screens the top-bar is already hidden by layout classes; keep safe fallback */
  .top-bar-area { transform: translateY(-100%); opacity: 0; }
}
/* responsive-fixes.css
   Small, non-invasive responsive tweaks to maintain original design
   while ensuring elements wrap/scale cleanly on small screens.
*/

/* Make navbar brand image responsive */
.univentis-logo {
  max-height: 60px;
  height: auto;
  width: auto;
}

/* Product control bar wraps on small screens */
.product-control-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.control-bar-brands {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.control-bar-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-width: 200px;
  flex: 1 1 250px;
}
.control-search-input {
  min-width: 0;
  width: 100%;
}

/* Ensure product cards images stay contained */
.product-img-box img,
.brand-img,
.footer-logo-main {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Small adjustments for spacing without changing visual hierarchy */
@media (max-width: 767.98px) {
  .top-bar-area {
    padding: 0.25rem 0;
  }
  .header-area .navbar {
    padding: 0.25rem 0;
  }
  .product-sidebar {
    margin-bottom: 1rem;
  }
  .product-footer {
    font-size: 0.92rem;
  }
}

@media (min-width: 768px) {
  .univentis-logo {
    max-height: 72px;
  }
}

/* Toggler small visual fix in case template lacks default icon */
.navbar-toggler .toggler-icon {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #333;
  position: relative;
}
.navbar-toggler .toggler-icon::before,
.navbar-toggler .toggler-icon::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  position: absolute;
  left: 0;
}
.navbar-toggler .toggler-icon::before {
  top: -7px;
}
.navbar-toggler .toggler-icon::after {
  top: 7px;
}

/* Small card spacing adjustments so grid wraps cleanly on very small screens */
@media (max-width: 420px) {
  .product-footer {
    font-size: 0.88rem;
  }
  .product-card-col {
    padding-left: 6px;
    padding-right: 6px;
  }
}


/* Equal-height product cards and centered content + 4:5 aspect ratio on large screens */
.product-card-col { display: flex; align-items: stretch; }
.product-card-ui {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.product-card-header { text-align: center; padding-bottom: 0.5rem; }
.product-img-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  padding: 0;
}
.product-img-box img {
  width: 95%;
  height: auto;
  max-height: 78%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.product-title-top { font-size: 1rem; margin: 0 0 0.5rem; }
.product-footer { margin-top: auto; display:flex; justify-content:space-between; gap:0.5rem; align-items:center; padding-top:0.5rem; }

@media (max-width: 575.98px) {
  /* ensure one card per row on smallest screens */
  .product-card-col { flex: 0 0 100%; max-width: 100%; }
  .product-card-ui { padding: 0.75rem; aspect-ratio: auto; }
}


/* External classes replacing inline styles to resolve HTML warnings */
.hero-slide-1 {
  background-image: url("../img/hero_slider 1.webp");
}
.hero-slide-2 {
  background-image: url("../img/hero_slider 2.webp");
}
.hero-slide-3 {
  background-image: url("../img/hero_slider 3.webp");
}
.hero-slide-4 {
  background-image: url("../img/hero_slider 4.webp");
}
.blog-headline {
  color: #111;
  letter-spacing: 0.5px;
}
.blog-subtitle {
  max-width: 600px;
  font-size: 14px;
  font-weight: 500;
}
.footer-company-desc {
  line-height: 1.8;
  color: #a0a6b5 !important;
}

/* Premium Careers Page & Form Makeover */
.careers-hero {
  background: linear-gradient(rgba(15, 19, 65, 0.85), rgba(15, 19, 65, 0.65)), url('../img/hero_slider 3.jpg') !important;
  padding: 140px 0 100px !important;
}

.careers-hero-content {
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 50px 40px;
  display: inline-block;
  width: 100%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out;
}

#application-form {
  background: linear-gradient(135deg, #f5f8fc 0%, #e9eef5 100%) !important;
  position: relative;
  z-index: 1;
}

.premium-form-container {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px !important;
  box-shadow: 0 35px 70px rgba(15, 19, 65, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  padding: 55px 50px !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.premium-form-container:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 85px rgba(15, 19, 65, 0.18) !important;
}

.premium-form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--teal-accent), var(--blue-brand));
}

.careers-form-title {
  position: relative;
  display: inline-block;
  color: var(--blue-brand) !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  margin-bottom: 35px !important;
}

.careers-form-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 60px;
  height: 3px;
  background: var(--teal-accent);
  border-radius: 2px;
}

.form-label-custom {
  font-weight: 600;
  color: var(--blue-brand) !important;
  margin-bottom: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-control-premium {
  padding: 15px 22px !important;
  border-radius: 12px !important;
  border: 1px solid #dcdfe6 !important;
  background: #f5f8fc !important;
  transition: all 0.3s ease !important;
  font-size: 0.95rem !important;
  color: #333 !important;
}

.form-control-premium:focus {
  border-color: var(--teal-accent) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(70, 195, 232, 0.18) !important;
  outline: none !important;
}

.career-feature-card {
  border-radius: 18px !important;
  border: 1px solid rgba(15, 19, 65, 0.04) !important;
  background: #ffffff !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02) !important;
}

.career-feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--teal-accent) !important;
  box-shadow: 0 25px 50px rgba(15, 19, 65, 0.08) !important;
}

.career-feature-icon {
  border-radius: 14px !important;
  transition: all 0.3s ease !important;
}

.career-feature-card:hover .career-feature-icon {
  background: var(--teal-accent) !important;
  color: #ffffff !important;
  transform: scale(1.05) rotate(5deg);
}

.btn-teal.w-100 {
  background: linear-gradient(135deg, var(--teal-accent), #25a2c4) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 16px 30px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  box-shadow: 0 8px 20px rgba(70, 195, 232, 0.25) !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
}

.btn-teal.w-100:hover {
  background: linear-gradient(135deg, var(--blue-brand), #1b266a) !important;
  box-shadow: 0 8px 25px rgba(15, 19, 65, 0.3) !important;
  transform: translateY(-2px);
}

.careers-hero-badge {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.careers-hero-lead {
  color: var(--teal-accent) !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
}

.map-iframe {
  border: 0 !important;
}

/* Excellence Redesigned PDF Catalogue CTA Section */
.bg-light-soft {
  background-color: #f8fafd;
}

.excellence-card-wrapper {
  background: linear-gradient(135deg, #0f1341 0%, #171d58 100%);
  border-radius: 20px;
  padding: 45px 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(15, 19, 65, 0.15);
}

.z-index-1 {
  z-index: 1;
}

/* Background gradient glows to make it look hyper-modern & premium */
.excellence-card-glow-1 {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(70, 195, 232, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
}

.excellence-card-glow-2 {
  position: absolute;
  bottom: -60px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(70, 195, 232, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(30px);
}

.excellence-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.excellence-badge i {
  color: #ff5c5c !important; /* PDF icon colour */
}

.excellence-title {
  font-size: 2.2rem;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.excellence-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 620px;
  opacity: 0.85;
}

/* Interactive PDF Card */
.pdf-download-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 380px;
  text-align: left;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pdf-download-card:hover {
  transform: translateY(-5px);
  border-color: rgba(70, 195, 232, 0.35);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.pdf-icon-box {
  position: relative;
  width: 52px;
  height: 52px;
  background: rgba(255, 92, 92, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.pdf-download-card:hover .pdf-icon-box {
  background: rgba(255, 92, 92, 0.2);
  transform: scale(1.05);
}

.pdf-pulsing-icon {
  font-size: 1.6rem;
  color: #ff5c5c !important;
  z-index: 2;
  transition: transform 0.3s ease;
}

.pdf-icon-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 2px solid rgba(255, 92, 92, 0.3);
  animation: pdfIconPulse 2s infinite ease-out;
}

@keyframes pdfIconPulse {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.pdf-division-tag {
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #46c3e8 !important; /* using brand teal accent */
  margin-bottom: 2px;
}

.pdf-name {
  font-size: 1.05rem;
  color: #ffffff;
}

.pdf-details {
  font-size: 0.8rem;
  opacity: 0.7;
}

.btn-excellence-download {
  background: linear-gradient(135deg, #46c3e8, #25a2c4) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  border: none !important;
  box-shadow: 0 8px 16px rgba(70, 195, 232, 0.2);
  transition: all 0.3s ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-excellence-download:hover {
  background: #ffffff !important;
  color: #0f1341 !important;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px);
}

/* Responsive adjustments for Excellence CTA */
@media (max-width: 991.98px) {
  .excellence-card-wrapper {
    padding: 35px 30px;
    text-align: center;
  }
  .excellence-desc {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px !important;
  }
  .pdf-download-card {
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .excellence-title {
    font-size: 1.75rem;
  }
  .excellence-card-wrapper {
    padding: 30px 20px;
  }
  .pdf-file-info {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .pdf-icon-box {
    margin-right: 0 !important;
  }
  .pdf-text-box {
    text-align: center !important;
    width: 100%;
  }
}

/* Flagship Brands Redesign Section */
.brands-section {
  background: #fdfefe;
}

.brands-subtitle-badge {
  display: inline-block;
  background: rgba(70, 195, 232, 0.08);
  border: 1px solid rgba(70, 195, 232, 0.15);
  color: #1b7a95; /* solid readable teal */
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 30px;
  letter-spacing: 1.2px;
}

.brands-section-title {
  color: #0f1341; /* deep brand blue */
  font-size: 2.3rem;
  letter-spacing: -0.5px;
}

.brands-title-line {
  width: 50px;
  height: 3px;
  background: #46c3e8; /* teal brand color */
  border-radius: 2px;
}

/* Premium Brand Card Styling */
.premium-brand-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(15, 19, 65, 0.05);
  box-shadow: 0 10px 30px rgba(15, 19, 65, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.premium-brand-card:hover {
  transform: translateY(-8px);
  border-color: rgba(70, 195, 232, 0.25);
  box-shadow: 0 20px 45px rgba(15, 19, 65, 0.08);
}

.brand-card-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* High visibility wrapper for the logo */
.brand-card-img-wrapper {
  width: 100%;
  height: 120px;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid rgba(15, 19, 65, 0.03);
  transition: all 0.3s ease;
}

.premium-brand-card:hover .brand-card-img-wrapper {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(70, 195, 232, 0.1), 0 5px 15px rgba(15, 19, 65, 0.03);
}

.brand-card-logo {
  max-width: 85%;
  max-height: 80px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-brand-card:hover .brand-card-logo {
  transform: scale(1.08);
}

.brand-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.brand-division-title {
  color: #0f1341;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.brand-division-desc {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  min-height: 54px; /* equal height description boxes */
  margin-bottom: 15px;
}

.brand-card-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.premium-brand-card:hover .brand-card-badge {
  background: var(--blue-brand);
  color: #ffffff;
}

/* Premium Brands Carousel Enhancements */
.premium-brands-carousel {
  position: relative;
}

.premium-carousel-indicators {
  position: absolute;
  bottom: -20px !important;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 15;
}

.premium-carousel-indicators button {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background-color: #cbd5e1 !important;
  border: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  opacity: 0.6 !important;
  padding: 0 !important;
}

.premium-carousel-indicators button.active {
  width: 24px !important;
  border-radius: 10px !important;
  background-color: #46c3e8 !important; /* Brand teal */
  opacity: 1 !important;
}

/* Control arrows placed perfectly at the sides */
.premium-carousel-prev,
.premium-carousel-next {
  width: 50px !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
  z-index: 10;
}

.premium-carousel-prev {
  left: -65px !important;
}

.premium-carousel-next {
  right: -65px !important;
}

.brand-arrow-btn {
  width: 48px;
  height: 48px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  color: #0f1341;
}

.brand-arrow-icon {
  width: 24px; /* slightly larger for absolute clarity */
  height: 24px;
  stroke: #0f1341; /* deep brand blue */
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), stroke 0.3s ease;
}

.premium-carousel-prev:hover .brand-arrow-btn {
  background: transparent !important;
  border-color: transparent !important;
  color: #46c3e8 !important; /* brand teal accent */
  transform: scale(1.15) translateX(-4px);
  box-shadow: none !important;
}

.premium-carousel-next:hover .brand-arrow-btn {
  background: transparent !important;
  border-color: transparent !important;
  color: #46c3e8 !important; /* brand teal accent */
  transform: scale(1.15) translateX(4px);
  box-shadow: none !important;
}

.premium-carousel-prev:hover .brand-arrow-icon {
  stroke: #46c3e8 !important;
}

.premium-carousel-next:hover .brand-arrow-icon {
  stroke: #46c3e8 !important;
}

/* Responsive arrows for tablets/phones where they fit inside the container */
@media (max-width: 1200px) {
  .premium-carousel-prev {
    left: -15px !important;
  }
  .premium-carousel-next {
    right: -15px !important;
  }
  .brand-arrow-btn {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 767.98px) {
  .premium-carousel-prev,
  .premium-carousel-next {
    display: none !important; /* Hide arrows on phones and rely on touch swipe + indicators */
  }
}

/* Remove default Bootstrap/browser outlines and border boxes on carousel controls and indicators */
.premium-carousel-prev,
.premium-carousel-next,
.premium-carousel-prev:focus,
.premium-carousel-next:focus,
.premium-carousel-prev:active,
.premium-carousel-next:active,
.premium-carousel-prev:hover,
.premium-carousel-next:hover,
.premium-brands-carousel .carousel-control-prev,
.premium-brands-carousel .carousel-control-next,
.premium-brands-carousel .carousel-control-prev:focus,
.premium-brands-carousel .carousel-control-next:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}

.premium-carousel-indicators button,
.premium-carousel-indicators button:focus,
.premium-carousel-indicators button:active,
.premium-carousel-indicators button:hover {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

