/* ==========================================================================
   Century 21st Century Lubricants - Modern Enterprise Industrial Stylesheet
   Compatible with Bootstrap 5.3 & cPanel Static Hosting
   ========================================================================== */

:root {
  --century-blue-dark: #121936;
  --century-blue: #1f2a55;
  --century-blue-light: #2c3b77;
  --century-green: #3f8a27;
  --century-green-light: #52a635;
  --century-green-dark: #2c631a;
  --century-gold: #e58d19;
  --century-gold-hover: #d17c0f;
  --century-bg-light: #f8fafc;
  --century-border: #e2e8f0;
  --century-text-dark: #1e293b;
  --century-text-muted: #64748b;
  --century-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06);
  --century-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  --century-shadow-lg: 0 20px 35px -5px rgba(15, 23, 42, 0.15);
}

html, body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--century-text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ==========================================================================
   Brand Background & Utility Classes
   ========================================================================== */
.bg-century-blue {
  background: linear-gradient(135deg, #0e152e 0%, #1a254d 60%, #1f2f66 100%) !important;
  color: #ffffff !important;
  border-bottom: 3px solid var(--century-green);
}

.bg-century-blue h1,
.bg-century-blue h2,
.bg-century-blue h3,
.bg-century-blue h4,
.bg-century-blue h5,
.bg-century-blue h6,
.bg-century-blue p,
.bg-century-blue span:not(.badge),
.bg-century-blue .lead {
  color: #ffffff !important;
}

.bg-century-blue-dark {
  background-color: var(--century-blue-dark) !important;
  color: #ffffff !important;
}

.bg-century-green {
  background-color: var(--century-green) !important;
  color: #ffffff !important;
}

.bg-century-gold {
  background-color: var(--century-gold) !important;
  color: #ffffff !important;
}

.text-century-blue {
  color: var(--century-blue) !important;
}

.text-century-green {
  color: var(--century-green) !important;
}

.text-century-gold {
  color: var(--century-gold) !important;
}

/* ==========================================================================
   Top Header Bar & Sub-banner
   ========================================================================== */
.top-notice-bar {
  background-color: #171d3d;
  color: #d1d5db;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-notice-bar a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-notice-bar a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Main Navigation
   ========================================================================== */
.navbar-century {
  background-color: #ffffff;
  box-shadow: var(--century-shadow-sm);
  transition: all 0.3s ease;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.navbar-century .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--century-blue-dark);
}

.navbar-century .brand-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.navbar-century .brand-text-container {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.navbar-century .brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--century-blue);
  letter-spacing: -0.5px;
}

.navbar-century .brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--century-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.navbar-century .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
  padding: 0.5rem 0.9rem !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.navbar-century .nav-link:hover {
  color: var(--century-green);
  background-color: #f1f5f9;
}

.navbar-century .nav-link.active {
  color: var(--century-green) !important;
  background-color: rgba(63, 138, 39, 0.08);
  font-weight: 700;
}

.btn-century-primary {
  background-color: var(--century-green);
  border-color: var(--century-green);
  color: #ffffff;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.btn-century-primary:hover, .btn-century-primary:focus {
  background-color: var(--century-green-dark);
  border-color: var(--century-green-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(63, 138, 39, 0.35);
}

.btn-century-gold {
  background-color: var(--century-gold);
  border-color: var(--century-gold);
  color: #ffffff;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.btn-century-gold:hover, .btn-century-gold:focus {
  background-color: var(--century-gold-hover);
  border-color: var(--century-gold-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 141, 25, 0.35);
}

.btn-century-outline {
  border: 2px solid #cbd5e1;
  color: var(--century-blue);
  background-color: #ffffff;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-century-outline:hover {
  border-color: var(--century-blue);
  background-color: var(--century-blue);
  color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #0e152e 0%, #1a254d 60%, #1f2f66 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(63, 138, 39, 0.25) 0%, rgba(31, 42, 85, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #86efac;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: #86efac;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: #facc15;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ==========================================================================
   Hero Master Catalog Carousel Slider
   ========================================================================== */
.hero-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 4px solid rgba(255, 255, 255, 0.15);
  background-color: #0b1120;
}

.hero-carousel-header {
  background-color: #121936;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.65rem 1rem;
}

.hero-carousel-img-container {
  position: relative;
  width: 100%;
  height: 560px;
  background-color: #0b1120;
  display: block;
  overflow: hidden;
  cursor: pointer;
}

.hero-catalog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  margin: 0;
  transition: transform 0.5s ease;
}

.hero-carousel-img-container:hover .hero-catalog-img {
  transform: scale(1.03);
}

.hero-carousel-overlay-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #86efac;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  z-index: 10;
  transition: all 0.25s ease;
}

.hero-carousel-img-container:hover .hero-carousel-overlay-badge {
  background: var(--century-green);
  color: #ffffff;
}

.hero-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0.75) 60%, transparent 100%);
  padding: 2.2rem 1.25rem 0.85rem;
  text-align: left;
  z-index: 10;
  pointer-events: none;
}

.hero-carousel-caption h6 {
  font-size: 0.95rem;
  line-height: 1.3;
}

.hero-image-wrapper .carousel-control-prev,
.hero-image-wrapper .carousel-control-next {
  position: absolute;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  z-index: 25;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.hero-image-wrapper .carousel-control-prev {
  left: 16px;
  right: auto;
}

.hero-image-wrapper .carousel-control-next {
  right: 16px;
  left: auto;
}

.hero-image-wrapper .carousel-control-prev:hover,
.hero-image-wrapper .carousel-control-next:hover {
  background-color: var(--century-green);
  border-color: #86efac;
  opacity: 1;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 8px 25px rgba(63, 138, 39, 0.6);
}

.hero-image-wrapper .carousel-control-prev-icon,
.hero-image-wrapper .carousel-control-next-icon {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

@media (max-width: 991.98px) {
  .hero-carousel-img-container {
    height: 480px;
  }
  .hero-image-wrapper .carousel-control-prev,
  .hero-image-wrapper .carousel-control-next {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 575.98px) {
  .hero-carousel-img-container {
    height: 380px;
  }
  .hero-image-wrapper .carousel-control-prev {
    left: 10px;
  }
  .hero-image-wrapper .carousel-control-next {
    right: 10px;
  }
  .hero-image-wrapper .carousel-control-prev,
  .hero-image-wrapper .carousel-control-next {
    width: 36px;
    height: 36px;
  }
}

/* ==========================================================================
   Original 18 Categories Ribbon / Grid
   ========================================================================== */
.categories-ribbon-section {
  background-color: #171d3b;
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--century-green);
}

.categories-ribbon-title {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.category-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-pill:hover {
  background-color: var(--century-green);
  border-color: var(--century-green);
  color: #ffffff;
  transform: translateY(-2px);
}

.category-pill i {
  color: #facc15;
  margin-right: 6px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-padding {
  padding: 4.5rem 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--century-green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--century-blue-dark);
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--century-text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Table of Contents Divisions Grid
   ========================================================================== */
.division-card {
  background: #ffffff;
  border: 1px solid var(--century-border);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: var(--century-shadow-sm);
  display: flex;
  flex-direction: column;
}

.division-card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: var(--century-shadow);
}

.division-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(63, 138, 39, 0.1);
  color: var(--century-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.15rem;
}

.division-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--century-blue-dark);
  margin-bottom: 0.75rem;
}

.division-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.division-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 0.45rem;
  line-height: 1.4;
}

.division-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--century-green);
  font-weight: bold;
}

/* ==========================================================================
   Interactive Product Tables
   ========================================================================== */
.table-century-container {
  background-color: #ffffff;
  border: 1px solid var(--century-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--century-shadow-sm);
  margin-bottom: 2.5rem;
}

.table-century-header {
  background: linear-gradient(135deg, var(--century-blue-dark) 0%, var(--century-blue) 100%);
  color: #ffffff;
  padding: 1.15rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.table-century-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-century-header .table-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-top: 3px;
  margin-bottom: 0;
}

.table-responsive {
  margin-bottom: 0;
}

.table-century {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.table-century thead th {
  background-color: #f1f5f9;
  color: var(--century-blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
  vertical-align: middle;
}

.table-century tbody td {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.table-century tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.table-century tbody tr:hover {
  background-color: #f0fdf4;
}

.product-code-pill {
  font-weight: 700;
  color: var(--century-blue);
  background: rgba(31, 42, 85, 0.08);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  display: inline-block;
}

/* ==========================================================================
   Product Cards
   ========================================================================== */
.product-card {
  background-color: #ffffff;
  border: 1px solid var(--century-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--century-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--century-shadow);
  border-color: #cbd5e1;
}

.product-card-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #f1f5f9;
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img-wrap img {
  transform: scale(1.05);
}

.product-badge-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(31, 42, 85, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--century-blue-dark);
  margin-bottom: 0.4rem;
}

.product-card-category {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--century-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.product-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.82rem;
  border-bottom: 1px dashed #e2e8f0;
}

.spec-key {
  color: var(--century-text-muted);
  font-weight: 500;
}

.spec-val {
  color: var(--century-text-dark);
  font-weight: 600;
  text-align: right;
}

/* ==========================================================================
   Viscosity Guide & Interactive Tool
   ========================================================================== */
.viscosity-converter-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--century-shadow);
}

.viscosity-result-card {
  background: linear-gradient(135deg, var(--century-blue-dark) 0%, var(--century-blue) 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
}

.viscosity-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

.viscosity-metric-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.viscosity-metric-item .v-label {
  font-size: 0.72rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.viscosity-metric-item .v-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #facc15;
}

/* ==========================================================================
   Certifications Badge Grid
   ========================================================================== */
.cert-card {
  background: #ffffff;
  border: 1px solid var(--century-border);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--century-shadow-sm);
  transition: all 0.3s ease;
  border-top: 4px solid var(--century-green);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--century-shadow);
}

.cert-code {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--century-green);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Catalog Brochure Viewer Modal & Thumbs
   ========================================================================== */
.catalog-thumb-card {
  border: 1px solid var(--century-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: #f1f5f9;
}

.catalog-thumb-card:hover {
  border-color: var(--century-green);
  transform: translateY(-3px);
  box-shadow: var(--century-shadow);
}

.catalog-thumb-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.catalog-thumb-label {
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  background-color: #ffffff;
  color: var(--century-blue-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-century {
  background-color: #0b1120;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 4px solid var(--century-green);
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-brand-subtitle {
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-heading {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--century-green);
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

/* ==========================================================================
   Back To Top & Floating Actions
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--century-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: none;
}

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

.back-to-top:hover {
  background-color: var(--century-green-dark);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.15rem;
  }
  .hero-stats-row {
    flex-wrap: wrap;
    gap: 1.25rem;
  }
}

/* ==========================================================================
   Multicolor Moving Glowing Border Lights for Special Brand Tabs
   ========================================================================== */

@keyframes rotateBorderLight {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes movingGlowLights {
  0% {
    box-shadow: 
      0 0 10px rgba(0, 240, 255, 0.85),
      0 0 22px rgba(0, 255, 128, 0.65),
      0 0 38px rgba(0, 240, 255, 0.45);
  }
  20% {
    box-shadow: 
      0 0 12px rgba(255, 230, 0, 0.9),
      0 0 24px rgba(255, 120, 0, 0.7),
      0 0 38px rgba(255, 200, 0, 0.45);
  }
  40% {
    box-shadow: 
      0 0 14px rgba(255, 0, 90, 0.95),
      0 0 26px rgba(255, 0, 180, 0.7),
      0 0 40px rgba(255, 0, 100, 0.45);
  }
  60% {
    box-shadow: 
      0 0 14px rgba(170, 0, 255, 0.95),
      0 0 26px rgba(90, 0, 255, 0.7),
      0 0 40px rgba(170, 0, 255, 0.45);
  }
  80% {
    box-shadow: 
      0 0 12px rgba(0, 120, 255, 0.9),
      0 0 24px rgba(0, 255, 220, 0.7),
      0 0 38px rgba(0, 150, 255, 0.45);
  }
  100% {
    box-shadow: 
      0 0 10px rgba(0, 240, 255, 0.85),
      0 0 22px rgba(0, 255, 128, 0.65),
      0 0 38px rgba(0, 240, 255, 0.45);
  }
}

.navbar-century .nav-tab-unichem,
.navbar-century .nav-tab-century {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.52rem 1.2rem !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.35px !important;
  text-decoration: none !important;
  border: none !important;
  background: transparent !important;
  overflow: hidden !important;
  isolation: isolate !important;
  animation: movingGlowLights 3.2s linear infinite !important;
  transition: transform 0.25s ease, filter 0.25s ease !important;
  cursor: pointer !important;
  margin-left: 0.85rem;
}

/* The moving multicolor rotating light beam */
.navbar-century .nav-tab-unichem::before,
.navbar-century .nav-tab-century::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 350% !important;
  height: 700% !important;
  transform: translate(-50%, -50%) rotate(0deg) !important;
  background: conic-gradient(
    from 0deg,
    #ff0055 0deg,
    #ff6600 40deg,
    #ffdd00 80deg,
    #00ff66 120deg,
    #00f0ff 160deg,
    #0066ff 200deg,
    #8800ff 240deg,
    #ff00cc 280deg,
    #ff0055 360deg
  ) !important;
  animation: rotateBorderLight 2.5s linear infinite !important;
  z-index: 1 !important;
}

/* The solid inner button body for UNICHEM (with a 3px gap revealing the border lights) */
.navbar-century .nav-tab-unichem::after {
  content: '' !important;
  position: absolute !important;
  inset: 3px !important;
  background: linear-gradient(135deg, #07273d 0%, #0369a1 55%, #0284c7 100%) !important;
  border-radius: 9px !important;
  z-index: 2 !important;
  transition: background 0.3s ease !important;
}

/* The solid inner button body for CENTURY (with a 3px gap revealing the border lights) */
.navbar-century .nav-tab-century::after {
  content: '' !important;
  position: absolute !important;
  inset: 3px !important;
  background: linear-gradient(135deg, #0c3311 0%, #2e7d32 55%, #3f8a27 100%) !important;
  border-radius: 9px !important;
  z-index: 2 !important;
  transition: background 0.3s ease !important;
}

/* Inner text & icon container placed securely at z-index 3 */
.navbar-century .nav-tab-unichem > *,
.navbar-century .nav-tab-century > *,
.navbar-century .nav-tab-unichem .nav-tab-content,
.navbar-century .nav-tab-century .nav-tab-content {
  position: relative !important;
  z-index: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

/* Hover & Active States */
.navbar-century .nav-tab-unichem:hover,
.navbar-century .nav-tab-century:hover {
  transform: translateY(-2px) scale(1.03) !important;
  filter: brightness(1.15) !important;
}

.navbar-century .nav-tab-unichem:hover::after {
  background: linear-gradient(135deg, #0a3d62 0%, #0284c7 100%) !important;
}

.navbar-century .nav-tab-century:hover::after {
  background: linear-gradient(135deg, #114c19 0%, #3f8a27 100%) !important;
}

.navbar-century .nav-tab-unichem:active,
.navbar-century .nav-tab-century:active {
  transform: translateY(0) scale(0.98) !important;
}

/* ==========================================================================
   Secondary Brand Interactive Navigation Button
   (Right-sided full brand logo styled as an interactive button with orbiting glowing dot & tail)
   ========================================================================== */

@keyframes orbitBallWithTail {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.navbar-century .brand-nav-btn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0.35rem 0.95rem 0.35rem 0.55rem !important;
  border-radius: 14px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  margin-left: 1.25rem !important;
  overflow: hidden !important;
  isolation: isolate !important;
  border: none !important;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease !important;
}

/* Outer Border Orbit Tracks (Red border track for both) */
.navbar-century .brand-btn-unichem,
.navbar-century .brand-btn-century {
  background: #fecaca !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.18) !important;
}

/* The Moving Orbiting Ball with Tail (::before) */
.navbar-century .brand-nav-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 550px !important;
  height: 550px !important;
  margin-top: -275px !important;
  margin-left: -275px !important;
  transform-origin: center center !important;
  animation: orbitBallWithTail 2.6s linear infinite !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* Crisp Glowing Dot & Comet Tail: Electric Crimson Red with pure White Core for BOTH Brands */
.navbar-century .brand-btn-unichem::before,
.navbar-century .brand-btn-century::before {
  background: conic-gradient(
    from 0deg,
    transparent 0deg 300deg,
    rgba(239, 68, 68, 0.05) 305deg,
    rgba(244, 63, 94, 0.3) 325deg,
    rgba(239, 68, 68, 0.65) 342deg,
    rgba(255, 23, 68, 0.95) 352deg,
    #ff1744 355.5deg,
    #ffffff 357.5deg,
    #ff1744 359deg,
    transparent 359.5deg 360deg
  ) !important;
  filter: drop-shadow(0 0 9px #ff1744) drop-shadow(0 0 4px #ff5252) drop-shadow(0 0 2px #ffffff) !important;
}

/* Solid Inner Button Body (with 2.5px gap to reveal the orbiting ball & tail border) */
.navbar-century .brand-nav-btn::after {
  content: '' !important;
  position: absolute !important;
  inset: 2.5px !important;
  border-radius: 11.5px !important;
  z-index: 2 !important;
  transition: background 0.3s ease !important;
  pointer-events: none !important;
}

.navbar-century .brand-btn-unichem::after {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
}

.navbar-century .brand-btn-century::after {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
}

/* All direct children (Logo, Brand Text, Arrow Indicator) elevated securely to z-index 3 */
.navbar-century .brand-nav-btn > * {
  position: relative !important;
  z-index: 3 !important;
}

/* Interactive Navigation Hover Effects */
.navbar-century .brand-btn-unichem:hover,
.navbar-century .brand-btn-century:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35), 0 0 16px rgba(255, 23, 68, 0.45) !important;
}

.navbar-century .brand-btn-unichem:hover::before,
.navbar-century .brand-btn-century:hover::before {
  animation-duration: 1.6s !important;
  filter: drop-shadow(0 0 14px #ff1744) drop-shadow(0 0 6px #ff5252) drop-shadow(0 0 3px #ffffff) !important;
}

.navbar-century .brand-btn-unichem:hover::after {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
}

.navbar-century .brand-btn-century:hover::after {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
}

/* Active / Click effect */
.navbar-century .brand-nav-btn:active {
  transform: translateY(0) scale(0.98) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

/* Logo inside button */
.navbar-century .brand-nav-btn .brand-logo-img {
  height: 48px !important;
  width: auto !important;
  transition: transform 0.25s ease !important;
}

.navbar-century .brand-nav-btn:hover .brand-logo-img {
  transform: scale(1.06) !important;
}

/* Text inside button */
.navbar-century .brand-nav-btn .brand-title {
  font-size: 1.22rem !important;
  transition: color 0.25s ease !important;
}

.navbar-century .brand-nav-btn .brand-subtitle {
  font-size: 0.68rem !important;
  transition: color 0.25s ease !important;
}

.navbar-century .brand-btn-unichem:hover .brand-title {
  color: #0369a1 !important;
}

.navbar-century .brand-btn-century:hover .brand-title {
  color: var(--century-blue-dark) !important;
}

/* Interactive Navigation Indicator Arrow */
.navbar-century .brand-btn-indicator {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  font-size: 1.25rem !important;
  margin-left: 2px !important;
  transition: all 0.25s ease !important;
  flex-shrink: 0 !important;
}

.navbar-century .brand-btn-unichem .brand-btn-indicator {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #0284c7 !important;
}

.navbar-century .brand-btn-unichem:hover .brand-btn-indicator {
  background: #0284c7 !important;
  color: #ffffff !important;
  transform: translateX(4px) !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35) !important;
}

.navbar-century .brand-btn-century .brand-btn-indicator {
  background: rgba(22, 163, 74, 0.12) !important;
  color: #16a34a !important;
}

.navbar-century .brand-btn-century:hover .brand-btn-indicator {
  background: #16a34a !important;
  color: #ffffff !important;
  transform: translateX(4px) !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35) !important;
}

@media (min-width: 992px) and (max-width: 1280px) {
  .navbar-century .nav-link {
    padding: 0.45rem 0.55rem !important;
    font-size: 0.85rem !important;
  }
  .navbar-century .brand-nav-btn {
    margin-left: 0.65rem !important;
    padding: 0.28rem 0.75rem 0.28rem 0.45rem !important;
  }
  .navbar-century .brand-nav-btn .brand-logo-img {
    height: 42px !important;
  }
  .navbar-century .brand-nav-btn .brand-title {
    font-size: 1.05rem !important;
  }
  .navbar-century .brand-nav-btn .brand-subtitle {
    font-size: 0.6rem !important;
  }
  .navbar-century .brand-title {
    font-size: 1.15rem !important;
  }
  .navbar-century .brand-subtitle {
    font-size: 0.65rem !important;
  }
}

/* ==========================================================================
   Mobile View Header Layout
   Line 1: Three-line Menu Button (Left-aligned) + Primary Brand (Centered)
   Line 2: Secondary Brand Action Button (Centered in Middle on Next Line)
   Line 3: Collapsible Menu Links
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Container positioning for multi-line layout */
  .navbar-century .container-fluid {
    position: relative !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Three line menu button (Hamburger Toggler): Left-aligned on Primary Brand line */
  .navbar-century .navbar-toggler {
    position: absolute !important;
    left: 1rem !important;
    top: 10px !important;
    z-index: 1050 !important;
    margin: 0 !important;
    padding: 0.38rem 0.58rem !important;
    font-size: 1.25rem !important;
    border-radius: 8px !important;
  }

  /* Primary Brand: Centered horizontally on Line 1 (Slightly Larger on Mobile) */
  .navbar-century .navbar-brand:not(.brand-nav-btn) {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0.2rem 52px !important; /* 52px left & right padding prevents collision with left toggler */
    order: 1 !important;
    text-align: center !important;
  }

  .navbar-century .navbar-brand:not(.brand-nav-btn) .brand-logo-img {
    height: 52px !important;
  }

  .navbar-century .navbar-brand:not(.brand-nav-btn) .brand-title {
    font-size: 1.18rem !important;
  }

  .navbar-century .navbar-brand:not(.brand-nav-btn) .brand-subtitle {
    font-size: 0.65rem !important;
    letter-spacing: 0.5px !important;
  }

  /* Secondary Brand with Action Button: Centered in the middle on Next Line (Line 2) (Slightly Larger on Mobile) */
  .navbar-century .brand-nav-btn {
    order: 2 !important;
    margin: 0.65rem auto 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 95% !important;
    padding: 0.38rem 1.05rem 0.38rem 0.7rem !important;
    border-radius: 12px !important;
  }

  .navbar-century .brand-nav-btn .brand-logo-img {
    height: 46px !important;
  }

  .navbar-century .brand-nav-btn .brand-title {
    font-size: 1.08rem !important;
  }

  .navbar-century .brand-nav-btn .brand-subtitle {
    font-size: 0.64rem !important;
    letter-spacing: 0.4px !important;
  }

  .navbar-century .brand-btn-indicator {
    width: 28px !important;
    height: 28px !important;
    font-size: 1.22rem !important;
  }

  /* Collapsible Navigation Menu: Below Line 2 */
  .navbar-century .navbar-collapse {
    order: 3 !important;
    width: 100% !important;
    margin-top: 0.85rem !important;
    text-align: center !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .navbar-century .navbar-toggler {
    left: 0.75rem !important;
    top: 8px !important;
    padding: 0.32rem 0.5rem !important;
    font-size: 1.12rem !important;
  }

  .navbar-century .navbar-brand:not(.brand-nav-btn) {
    padding: 0.15rem 44px !important;
  }

  .navbar-century .navbar-brand:not(.brand-nav-btn) .brand-logo-img {
    height: 46px !important;
  }

  .navbar-century .navbar-brand:not(.brand-nav-btn) .brand-title {
    font-size: 1.05rem !important;
  }

  .navbar-century .navbar-brand:not(.brand-nav-btn) .brand-subtitle {
    font-size: 0.58rem !important;
    letter-spacing: 0.4px !important;
  }

  .navbar-century .brand-nav-btn {
    margin: 0.5rem auto 0 auto !important;
    padding: 0.32rem 0.85rem 0.32rem 0.55rem !important;
  }

  .navbar-century .brand-nav-btn .brand-logo-img {
    height: 40px !important;
  }

  .navbar-century .brand-nav-btn .brand-title {
    font-size: 0.96rem !important;
  }

  .navbar-century .brand-nav-btn .brand-subtitle {
    font-size: 0.56rem !important;
  }

  .navbar-century .brand-btn-indicator {
    width: 24px !important;
    height: 24px !important;
    font-size: 1.05rem !important;
  }
}

.bg-unichem-aquatech {
  background-color: #0369a1 !important;
  background: linear-gradient(135deg, #082f49 0%, #0369a1 60%, #0284c7 100%) !important;
  color: #ffffff !important;
  border-bottom: 3px solid #38bdf8;
}

.bg-unichem-aquatech h1,
.bg-unichem-aquatech h2,
.bg-unichem-aquatech h3,
.bg-unichem-aquatech h4,
.bg-unichem-aquatech h5,
.bg-unichem-aquatech h6,
.bg-unichem-aquatech p,
.bg-unichem-aquatech span:not(.badge),
.bg-unichem-aquatech .lead {
  color: #ffffff !important;
}

/* Dedicated High-Contrast Pill for UNICHEM Specialized Brand */
.unichem-brand-badge {
  background: rgba(8, 47, 73, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 4px 14px rgba(8, 47, 73, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.unichem-brand-badge .brand-badge-text {
  color: #ffffff !important;
  letter-spacing: 0.5px;
}

/* Water Treatment Hero Slider (Boiler & Chiller) */
.water-treatment-slider-wrapper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(8, 47, 73, 0.5);
  border: 4px solid rgba(56, 189, 248, 0.3);
  background-color: #082f49;
}

.water-slider-img-container {
  position: relative;
  height: 520px;
  width: 100%;
  overflow: hidden;
  background-color: #0b1120;
}

.water-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.water-treatment-slider-wrapper:hover .water-slider-img {
  transform: scale(1.03);
}

.water-slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(8, 47, 73, 0.96) 0%, rgba(8, 47, 73, 0.75) 60%, transparent 100%);
  padding: 3rem 2rem 1.5rem;
  color: #ffffff;
  z-index: 5;
}

.water-slider-caption h3 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.water-treatment-slider-wrapper .carousel-control-prev,
.water-treatment-slider-wrapper .carousel-control-next {
  position: absolute;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(8, 47, 73, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  z-index: 25;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.water-treatment-slider-wrapper .carousel-control-prev {
  left: 20px;
  right: auto;
}

.water-treatment-slider-wrapper .carousel-control-next {
  right: 20px;
  left: auto;
}

.water-treatment-slider-wrapper .carousel-control-prev:hover,
.water-treatment-slider-wrapper .carousel-control-next:hover {
  background-color: #0284c7;
  border-color: #ffffff;
  opacity: 1;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.6);
}

/* UNICHEM Product Poster Cards (1.jpeg to 7.jpeg) */
.unichem-poster-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--century-shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.unichem-poster-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
  box-shadow: 0 15px 35px -5px rgba(2, 132, 199, 0.2);
}

.unichem-poster-img-wrap {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 280px;
  overflow: hidden;
  background-color: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.unichem-poster-img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.unichem-poster-img-wrap:hover .unichem-poster-img {
  transform: scale(1.02);
}

.unichem-poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(8, 47, 73, 0.88);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(4px);
  z-index: 2;
}

@media (max-width: 991.98px) {
  .water-slider-img-container {
    height: 420px;
  }
  .water-slider-caption h3 {
    font-size: 1.45rem;
  }
}

@media (max-width: 575.98px) {
  .water-slider-img-container {
    height: 320px;
  }
  .water-treatment-slider-wrapper .carousel-control-prev,
  .water-treatment-slider-wrapper .carousel-control-next {
    width: 38px;
    height: 38px;
  }
  .unichem-poster-img-wrap {
    height: auto;
    min-height: 220px;
  }
}
