/* --- Header dropdown layering fixes --- */
.header .dropdown-menu,
.topbar-profile__menu,
.lang-dropdown .dropdown-menu {
  z-index: 2000;
  /* above sticky navbar and other header layers */
}

.header .header-topbar {
  position: relative;
  z-index: 1100;
  /* keep topbar above base header background */
  overflow: visible;
  /* allow dropdowns to flow out */
}

/* Be explicit for wrappers that may inherit hidden overflow */
.topbar-profile-wrapper,
.lang-dropdown {
  position: relative;
  overflow: visible;
}

/* If Bootstrap is present, it handles display via .show. These are safe no-ops otherwise. */
.lang-dropdown .dropdown-menu.show,
.topbar-profile-wrapper .dropdown-menu.show {
  display: block;
}

/* Vacuum Enhanced Slider Styles */
.vacuum-enhanced-slider {
  position: relative;
  padding: 0;
}

.vacuum-model-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#vacuumCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.slick-carousel {
  position: relative;
  z-index: 2;
}

/* Ensure proper spacing for the slider section */
.vacuum-enhanced-slider .slide-item {
  position: relative;
  z-index: 2;
}

/* make video-bg container fill parent so absolute children can cover */
.vacuum-enhanced-slider .slide-item .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* when a video is used as slide background, make it cover fully */
.vacuum-enhanced-slider .slide-item .video-bg video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile responsiveness for vacuum slider */
@media (max-width: 767px) {
  .vacuum-model-container {
    display: none;
  }

  .vacuum-enhanced-slider {
    background-color: #f9f9f9;
  }
}


/* === Header logo styling (logo-dark only) === */
.header .navbar-brand {
  display: flex;
  align-items: center;
}

/* Main desktop size + modern look */
.header .navbar-brand img.logo-dark {
  height: 100px;
  /* a bit bigger, tweak if needed */
  max-height: 60px;
  width: auto;
  display: block;
  object-fit: contain;

  /* modern, eye-catching touch */
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* Subtle hover effect so it feels “alive” */
.header .navbar-brand:hover img.logo-dark {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
}

/* Slightly smaller on tablets/phones so it still fits nicely */
@media (max-width: 991.98px) {
  .header .navbar-brand img.logo-dark {
    height: 44px;
    max-height: 44px;
  }
}

/* ===== Topbar Account dropdown: position + styling ===== */

/* Make sure the top bar can show dropdowns outside its height */
.header-topbar {
  position: relative;
  z-index: 1200;
  overflow: visible;
}

/* The <li> that holds the profile dropdown */
.header .topbar-profile-wrapper {
  position: relative;
}

/* Base chip */
.header .topbar-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 16px;
  min-height: 46px;
  min-width: 150px;
  margin-left: 0;
  margin-right: 18px;
  border-radius: 12px;
  border: 2px solid #fee023;
  /* yellow outline */
  background: #01244a;
  /* dark blue */
  color: #ffffff;
  /* white text */
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
}

/* Avatar circle */
.header .topbar-profile__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fee023;
  /* yellow */
  color: #01244a;
  /* dark blue icon */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 2px rgba(1, 36, 74, 0.3);
}

/* Label text */
.header .topbar-profile__label {
  white-space: nowrap;
}

/* Hide Bootstrap dropdown caret for the Account button */
.header .topbar-profile.dropdown-toggle::after {
  display: none;
}

@media (max-width: 575.98px) {
  .header .topbar-profile {
    padding: 0 10px;
    min-width: auto;
    min-height: 40px;
  }
}

/* DROPDOWN PANEL ITSELF */
.header .topbar-profile__menu {
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;

  margin-top: 0.75rem;
  min-width: 260px;

  background-color: #01244a;
  /* dark blue panel */
  border: 2px solid #fee023;
  /* yellow outline */
  border-radius: 18px;

  box-shadow: 0 18px 40px rgba(1, 36, 74, 0.55);
  padding: 0.75rem 0;
  z-index: 5000;
  /* ensure above navbar */
  color: #ffffff;
}

/* Header block inside dropdown */
.header .topbar-profile__header {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(254, 224, 35, 0.6);
  /* yellow divider */
}

.header .topbar-profile__avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fee023;
  color: #01244a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  font-size: 20px;
}

.header .topbar-profile__name {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
}

.header .topbar-profile__email {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

/* Dropdown items inside profile menu */
.header .topbar-profile__menu .dropdown-item {
  font-size: 14px;
  padding: 0.45rem 1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.header .topbar-profile__menu .dropdown-item i {
  width: 18px;
  text-align: center;
  margin-right: 8px;
}

/* Hover state: green with yellow accent */
.header .topbar-profile__menu .dropdown-item:hover,
.header .topbar-profile__menu .dropdown-item:focus {
  background-color: #4CAF50;
  /* green */
  color: #ffffff;
  border-left: 3px solid #fee023;
  /* yellow accent bar */
}

/* Divider line between sections */
.header .topbar-profile__menu .dropdown-divider {
  border-top-color: rgba(254, 224, 35, 0.7);
}


/* === Make topbar dropdowns sit above the navbar === */
.header-topbar {
  position: relative;
  /* create stacking context */
  z-index: 9999;
  /* higher than sticky navbar */
  overflow: visible;
  /* allow dropdowns to extend downward */
}

/* Any dropdown in the top bar (profile + language) */
.header-topbar .dropdown-menu {
  z-index: 10000;
  /* ensure the menu itself is on top */
}

/* Optional: tighten positioning if needed */
.header-topbar .dropdown-menu.show {
  top: 100% !important;
  margin-top: 0.6rem;
}

/* === Foggy hero slider effect (mirror wipe) === */
.vacuum-enhanced-slider .slide-item {
  position: relative;
  overflow: hidden;
  /* keep fog inside the slide */
}

/* The fog overlay that sits over the background image */
.vacuum-enhanced-slider .fog-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* "fog" look */
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  /* start fully foggy */
  opacity: 1;
  transition: opacity 0.6s ease;

  /* wipe controls (updated from JS) */
  --wipe-x: 50%;
  --wipe-y: 50%;
  --wipe-radius: 0px;

  /* mask so only outside the circle is foggy (inside circle = clear) */
  mask-image: radial-gradient(circle at var(--wipe-x) var(--wipe-y),
      transparent 0,
      transparent var(--wipe-radius),
      black calc(var(--wipe-radius) + 10px),
      black 100%);
  -webkit-mask-image: radial-gradient(circle at var(--wipe-x) var(--wipe-y),
      transparent 0,
      transparent var(--wipe-radius),
      black calc(var(--wipe-radius) + 10px),
      black 100%);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

/* When cleared, fade fog away completely */
.vacuum-enhanced-slider .fog-layer.is-cleared {
  opacity: 0;
}

/* === Mop cursor only while hovering the visible carousel area === */
/* Target the Slick carousel container inside the vacuum slider so the
   custom cursor is active only when the pointer is over the visible
   carousel (`.slick-carousel`), and reverts when the pointer leaves. */
.vacuum-enhanced-slider .slick-carousel:not(.clients-review-ticker):hover,
.vacuum-enhanced-slider .slick-carousel:not(.clients-review-ticker):hover *,
.vacuum-enhanced-slider .slick-carousel:not(.clients-review-ticker):hover canvas {
  cursor: url('../images/cursor/mop-cursor-32.png') 16 16, url('../images/cursor/mop-cursor-48.png') 24 24, url('../images/cursor/mop-cursor.png') 24 24, auto !important;
}

/* === Kleanext "Easy Steps" cards – upgraded styling === */
/* Palette:
   yellow:   #fee023
   white:    #ffffff
   green:    #4CAF50
   dark blue:#01244a
*/

.work-process-layout2 {
  position: relative;
  z-index: 1;
}

.work-process-layout2 .process-row {
  position: relative;
  margin-top: 10px;
}

/* Connecting line between steps on desktop */
@media (min-width: 992px) {
  .work-process-layout2 .process-row::before {
    content: "";
    position: absolute;
    top: 42px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.32),
        rgba(255, 255, 255, 0));
    z-index: 0;
  }
}

.work-process-layout2 .process-item {
  position: relative;
  background: rgba(1, 36, 74, 0.92);
  /* dark blue glass */
  border-radius: 18px;
  padding: 30px 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 1;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;

  /* Expand to make all cards same height */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work-process-layout2 .process-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(254, 224, 35, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.work-process-layout2 .process-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
  border-color: rgba(254, 224, 35, 0.65);
  /* yellow accent */
}

.work-process-layout2 .process-item:hover::before {
  opacity: 1;
}

/* Step number badge (kept for legacy HTML but visually hidden below) */
.work-process-layout2 .process__number {
  position: relative;
  top: 0;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fee023;
  /* yellow */
  border: 2px solid #ffffff;
  /* white ring */
  color: #01244a;
  /* dark blue text */
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Checkmark badge (appears on hover) */
.work-process-layout2 .check__icon {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) scale(0.6);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #4CAF50;
  /* green */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.work-process-layout2 .process-item:hover .check__icon {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.work-process-layout2 .process__title {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 8px;
}

.work-process-layout2 .process__desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

/* Bottom icon bubble */
.work-process-layout2 .process__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(1, 36, 74, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;

  /* Stick to bottom of card */
  margin-top: auto;
  margin-bottom: 1rem;
}

.work-process-layout2 .process__icon i {
  font-size: 28px;
  color: #ffffff;
  /* white */
  transition: color 0.2s ease, transform 0.2s ease;
}

.work-process-layout2 .process-item:hover .process__icon {
  background: #fee023;
  /* yellow */
  border-color: #fee023;
  /* yellow rim */
  transform: translateY(3px) rotate(-4deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.work-process-layout2 .process-item:hover .process__icon i {
  color: #01244a;
  transform: rotate(4deg);
}

@media (max-width: 767.98px) {
  .work-process-layout2 .process-item {
    margin-bottom: 20px;
  }
}

/* Modern step badges (Step · tag) */
.work-process-layout2 .process__badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 7px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(1, 36, 74, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}

.work-process-layout2 .process__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.3);
  flex-shrink: 0;
}

.work-process-layout2 .process__badge-label {
  font-weight: 700;
  opacity: 0.9;
  line-height: normal;
}

.work-process-layout2 .process__badge-tag {
  font-weight: 500;
  opacity: 0.85;
  line-height: normal;
}

.work-process-layout2 .process-item:hover .process__badge-dot {
  background: #fee023;
  box-shadow: 0 0 0 5px rgba(254, 224, 35, 0.45);
}

/* Hide old circular numbers visually if the HTML still contains them */
.work-process-layout2 .process__number {
  display: none !important;
}


/* ========================================
   Other Services Widget - Text Visibility Fix
   ======================================== */

.widget-services {
  background: linear-gradient(135deg, #1a4d7a 0%, #0d2d47 100%) !important;
  border: 1px solid rgba(254, 224, 35, 0.3) !important;
}

.widget-services .widget__title {
  color: #fee023 !important;
}

.widget-services ul li a {
  background: transparent !important;
  color: #fee023 !important;
  border: 1px solid rgba(254, 224, 35, 0.3) !important;
  padding: 16px 24px !important;
  border-radius: 8px !important;
  margin-bottom: 10px !important;
  transition: all 0.3s ease !important;
}

.widget-services ul li a span {
  color: #fee023 !important;
}

.widget-services ul li a i {
  color: #4CAF50 !important;
}

.widget-services ul li a:hover {
  background: rgba(254, 224, 35, 0.1) !important;
  color: #ffffff !important;
  border-color: rgba(254, 224, 35, 0.6) !important;
  box-shadow: 0 6px 16px rgba(254, 224, 35, 0.2) !important;
  transform: translateX(4px);
}

.widget-services ul li a:hover span {
  color: #ffffff !important;
}

.widget-services ul li a:hover i {
  color: #fee023 !important;
}




.services-layout2 {
  position: relative;
  z-index: 1;
}

/* Whole card */
.services-layout2 .service-item {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;

  /* bright, clean card */
  background: linear-gradient(145deg, #ffffff 0%, #f7fbff 45%, #ffffff 100%);
  border: 1px solid rgba(1, 36, 74, 0.08);
  box-shadow: 0 14px 32px rgba(1, 36, 74, 0.16);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

/* subtle gradient bar at the very top – does not touch icons */
.services-layout2 .service-item::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #fee023, #4CAF50);
  opacity: 0.95;
}

/* safe hover – lift only, no clipping */
.services-layout2 .service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(1, 36, 74, 0.30);
  border-color: rgba(254, 224, 35, 0.75);
}

/* ===== Top body: icon + title + description ===== */
.services-layout2 .service__body {
  padding: 26px 24px 20px;
  background: transparent;
  color: #01244a;
}

/* ICON – always fully visible, no negative margins */
.services-layout2 .service__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;

  background: rgba(1, 36, 74, 0.04);
  box-shadow: 0 6px 14px rgba(1, 36, 74, 0.12);

  /* tiny, safe movement only */
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.services-layout2 .service__icon i {
  font-size: 28px;
  color: #01244a;
}

.services-layout2 .service-item:hover .service__icon {
  background: #fee023;
  box-shadow: 0 12px 24px rgba(1, 36, 74, 0.28);
  transform: translateY(2px);
  /* small, won’t hide the top */
}

.services-layout2 .service-item:hover .service__icon i {
  color: #01244a;
}

/* Title & text – dark and crisp on bright background */
.services-layout2 .service__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #01244a;
  margin-bottom: 8px;
}

.services-layout2 .service__desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(1, 36, 74, 0.82);
  margin-bottom: 0;
}

/* ===== Bottom block: features + image + Read More ===== */
.services-layout2 .service__meta {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid rgba(1, 36, 74, 0.06);
}

/* Features row */
.services-layout2 .service__features {
  padding: 14px 22px 12px;
}

.services-layout2 .service__features ul li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  color: rgba(1, 36, 74, 0.9);
}

/* small green bullet */
.services-layout2 .service__features ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.30);
}

/* Image + button container – keep structure from original theme */
.services-layout2 .service__overlay {
  border-top: 1px solid rgba(1, 36, 74, 0.06);
  background: #01244a;
}

/* image stays as a clean strip above the button */
.services-layout2 .service__overlay .bg-img {
  max-height: 120px;
  overflow: hidden;
}

.services-layout2 .service__overlay .bg-img img {
  width: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.28s ease;
}

.services-layout2 .service-item:hover .service__overlay .bg-img img {
  transform: scale(1.06);
}

/* ===== READ MORE BUTTON – stays centered like default ===== */
/* We only change colors, NOT its position or flex layout */
.services-layout2 .service__overlay .btn.btn__accent {
  border-radius: 0 0 22px 22px;
  /* match card corners */
  border: none;
  background: linear-gradient(135deg, #fee023, #4CAF50);
  color: #01244a;
  font-weight: 600;
  font-size: 0.92rem;

  /* keep d-flex & justify-content-between from HTML/default CSS */
}

.services-layout2 .service__overlay .btn.btn__accent span {
  color: #01244a;
}

.services-layout2 .service__overlay .btn.btn__accent i {
  color: #01244a;
  font-size: 0.9rem;
}

/* gentle hover, no shifting */
.services-layout2 .service__overlay .btn.btn__accent:hover {
  filter: brightness(1.05);
}

/* ===== Responsive tweaks ===== */
@media (max-width: 991.98px) {
  .services-layout2 .service-item {
    margin-bottom: 24px;
  }

  .services-layout2 .service__body {
    padding: 22px 18px 16px;
  }

  .services-layout2 .service__features {
    padding: 12px 18px 10px;
  }
}

.services-layout2 .service__body {
  padding: 40px 24px 24px;
  /* top space for full icon */
  background: transparent;
  color: #01244a;
  overflow: visible;
  /* never clip the icon/text */
}


/* Make the "Read More" button nicely curved,
   but keep it in the same place & width */
.services-layout2 .service__overlay .btn.btn__accent {
  border-radius: 999px;
  /* pill-shaped edges */
}

.services-layout2 .service__icon {
  position: relative !important;
  /* override template absolute/negative top */
  top: 0 !important;
  left: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 18px;
  /* normal spacing under the icon */
}

.services-layout2 .service__icon i {
  font-size: 30px;
  /* slightly bigger, still safe */
  line-height: 1;
  /* no strange font clipping */
}


/* Equal height for all Service cards without shrinking them */
.services-layout2 .service-item {
  min-height: 430px;
  /* makes all cards this tall or taller */
}

/* On mobile let them be natural height so they don't look too tall */
@media (max-width: 991.98px) {
  .services-layout2 .service-item {
    min-height: 0;
  }
}

/* Align center icon over content column (col-lg-7) on lg+ */
@media (min-width: 992px) {
  .pricing-layout3 .nav.nav-tabs {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 24px;
  }

  .pricing-layout3 .nav.nav-tabs .nav__link {
    position: relative;
    top: 0;
  }

  .pricing-layout3 .pricing-package .package__body {
    padding-top: 24px;
  }
}

.pricing-layout3 .pricing-package .package__body>.nav.nav-tabs {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.pricing-layout3 .pricing-package .package__body>.nav.nav-tabs .nav__link {
  margin: 0 12px;
}

@media (max-width: 991.98px) {
  .pricing-layout3 .nav.nav-tabs {
    width: 100%;
    margin-left: 0;
  }

  .pricing-layout3 .pricing-package .package__body {
    padding-top: 12px;
  }
}

@media (max-width: 992px) {
  .pricing-package .package__body .list-horizontal {
    flex-direction: unset;
  }

  .pricing-package .package__body .list-horizontal li {
    max-width: 50% !important;
  }
}

.pricing-layout3 .pricing-package .col-lg-7 {
  display: flex;
  flex-direction: column;
}

.pricing-layout3 .pricing-package .col-lg-7>.nav.nav-tabs {
  order: 0;
  width: 100%;
  margin-bottom: 12px;
  justify-content: center;
}

.pricing-layout3 .pricing-package .col-lg-7>.package__body {
  order: 1;
  padding-top: 0;
}

@media (max-width: 991.98px) {
  .pricing-layout3 .pricing-package .col-lg-7>.nav.nav-tabs {
    margin-bottom: 20px;
  }

  .pricing-layout3 .pricing-package .col-lg-7 {
    align-items: stretch;
  }
}



/* === Extracted from inline <style> blocks === */
/* Extracted from index.html */
.dg,
.dg.ac,
.lil-gui {
  display: none !important;
}

:root {
  --Kleanext-yellow: #fee023;
  --Kleanext-green: #4CAF50;
  --Kleanext-blue: #01244a;
  --Kleanext-white: #ffffff;
  --Kleanext-blue-deep: #00142e;
  --Kleanext-blue-accent: #178adc;
}

/* =====================================================
   BLOG-GRID SECTION – CLEAN, CONSOLIDATED
   ===================================================== */

/* === Section background === */
.blog-grid {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(6, 66, 125, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(41, 131, 253, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #041c3a 0%, #021024 100%);
  padding: 80px 48px 70px;
  border-radius: 32px;
  margin: 70px 40px;
  max-width: calc(100% - 80px);
}

/* Subtle grid/dot pattern overlay for texture */
.blog-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Accent corner glow */
.blog-grid::after {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(254, 224, 35, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content sits above decorative layers */
.blog-grid .container,
.blog-grid .heading,
.blog-grid .row {
  position: relative;
  z-index: 1;
}

/* === Heading styling === */
.blog-grid .heading {
  text-align: center !important;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.blog-grid .heading__subtitle {
  color: var(--Kleanext-yellow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.blog-grid .heading__title {
  color: var(--Kleanext-white);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

/* Accent line under heading */
.blog-grid .heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--Kleanext-yellow), var(--Kleanext-green));
}

/* Healing row — clear overrides */
.blog-grid .row:first-child {
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
}

.blog-grid .row:first-child>[class*="col-"] {
  display: block;
  float: none;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 100% !important;
}

/* === Cards row: equal-height columns === */
.blog-grid .row {
  display: flex;
  flex-wrap: wrap;
}

.blog-grid .row>[class*="col-"] {
  display: flex;
  margin-bottom: 28px;
}

/* Heading row column should not stretch */
.blog-grid .row:first-child>[class*="col-"] {
  display: block;
  margin-bottom: 0;
}

/* === Core blog cards === */
.blog-grid .post-item {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

/* Gradient accent bar at bottom */
.blog-grid .post-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--Kleanext-yellow), var(--Kleanext-green));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.blog-grid .post-item:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(254, 224, 35, 0.2);
  border-color: rgba(254, 224, 35, 0.25);
}

.blog-grid .post-item:hover::after {
  opacity: 1;
}

/* === Image area === */
.blog-grid .post__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0a2a4d, #061a30);
}

.blog-grid .post__img a {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 0;
  color: transparent;
  overflow: hidden;
}

.blog-grid .post__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-grid .post-item:hover .post__img img {
  transform: scale(1.06);
}

/* Subtle vignette on image */
.blog-grid .post__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(2, 16, 36, 0.6) 100%);
  pointer-events: none;
}

/* === Card body === */
.blog-grid .post__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Date badge — moved to top-right of the card image */
.blog-grid .post__meta-date {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 20;
  color: #041c3a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--Kleanext-yellow);
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  line-height: normal;
  display: block !important;
  width: auto !important;
  border: none !important;
  /* Ensure it's relative to the card, not the body content */
  transform: translateY(0);
}

.blog-grid .post__meta-date::before,
.blog-grid .post__meta-date::after {
  display: none !important;
  content: none !important;
}

/* Meta row — tags only (date is on image) */
.blog-grid .post__meta {
  position: static;
  /* Let the date badge position relative to the card (.post-item) */
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Clear any inherited pseudo-elements producing boxes */
.blog-grid .post__meta::before,
.blog-grid .post__meta::after {
  content: none !important;
  display: none !important;
}

/* Category tags */
.blog-grid .post__meta-cat {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: none !important;
  padding: 0 !important;
}

.blog-grid .post__meta-cat::before,
.blog-grid .post__meta-cat::after {
  content: none !important;
  display: none !important;
}

.blog-grid .post__meta-cat a {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  transition: background 0.2s, color 0.2s;
}

.blog-grid .post__meta-cat a:hover {
  background: rgba(254, 224, 35, 0.15);
  color: var(--Kleanext-yellow);
}

.blog-grid .post__meta-cat.has-category-highlight a:first-child {
  background: rgba(254, 224, 35, 0.15);
  color: var(--Kleanext-yellow);
}

/* Title */
.blog-grid .post__title {
  font-size: 1.1rem;
  line-height: 1.45;
  margin-bottom: 8px;
  font-weight: 700;
}

.blog-grid .post__title a {
  color: var(--Kleanext-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-grid .post__title a:hover {
  color: var(--Kleanext-yellow);
}

/* Author */
.blog-grid .post__meta-author {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}

.blog-grid .post__meta-author a {
  color: var(--Kleanext-yellow);
  font-weight: 600;
  text-decoration: none;
}

.blog-grid .post__meta-author a:hover {
  color: var(--Kleanext-green);
}

/* Description text */
.blog-grid .post__desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Keep Read More buttons aligned across cards */
.blog-grid .post__body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* === "Read more" button === */
.blog-grid .post__body .btn.btn__primary {
  margin-top: auto;
  align-self: flex-start;
  /* Revert to standard project button style */
  background-color: var(--Kleanext-blue);
  color: #ffffff;
  border: none;
  /* border-radius removed to use default project style (6px) */
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.blog-grid .post__body .btn.btn__primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--Kleanext-blue-deep);
  z-index: -1;
  transition: transform 0.3s ease;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.blog-grid .post__body .btn.btn__primary:hover::before {
  transform: scaleX(1);
}

.blog-grid .post__body .btn.btn__primary span,
.blog-grid .post__body .btn.btn__primary i {
  color: #ffffff;
}

.blog-grid .post__body .btn.btn__primary:hover {
  color: #ffffff;
}

.blog-grid .post__body .btn.btn__primary i {
  transition: transform 0.3s ease;
  font-size: 0.85rem;
  margin-right: -4px;
  /* Adjust spacing slightly */
}

.blog-grid .post__body .btn.btn__primary:hover i {
  transform: translateX(4px);
}

/* === Legacy btn__link styles (keep for backward compat) === */
.blog-grid .post__body .btn__link {
  margin-top: auto;
  padding-left: 0;
  padding-right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}

.blog-grid .post__body .btn__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--Kleanext-yellow), var(--Kleanext-green));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

.blog-grid .post__body .btn__link span,
.blog-grid .post__body .btn__link i {
  position: relative;
  z-index: 1;
}

.blog-grid .post__body .btn__link span {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.blog-grid .post__body .btn__link i {
  font-size: 0.9rem;
  color: var(--Kleanext-yellow);
  transition: transform 0.25s ease, color 0.25s ease;
}

.blog-grid .post__body .btn__link:hover::before {
  transform: scaleX(1);
  opacity: 1;
}

.blog-grid .post__body .btn__link:hover span {
  color: var(--Kleanext-blue);
}

.blog-grid .post__body .btn__link:hover i {
  transform: translateX(4px);
  color: var(--Kleanext-blue);
}


/* =====================================================
   BLOG-GRID – RESPONSIVE
   ===================================================== */

/* Tablet */
@media (max-width: 991.98px) {
  .blog-grid {
    padding: 60px 24px 50px;
    margin: 40px 20px;
    max-width: calc(100% - 40px);
    border-radius: 24px;
  }

  .blog-grid .heading__title {
    font-size: 1.8rem;
    text-align: center;
  }

  .blog-grid .heading__subtitle {
    text-align: center;
  }

  .blog-grid .row>[class*="col-"] {
    margin-bottom: 20px;
  }

  .blog-grid .post__body {
    padding: 18px 18px 20px;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .blog-grid {
    padding: 48px 16px 40px;
    margin: 24px 10px;
    max-width: calc(100% - 20px);
    border-radius: 20px;
  }

  .blog-grid .heading {
    text-align: center !important;
    margin-bottom: 24px !important;
  }

  .blog-grid .heading__title {
    font-size: 1.5rem;
    text-align: center;
  }

  .blog-grid .heading__subtitle {
    text-align: center;
  }

  .blog-grid .post-item {
    border-radius: 14px;
  }

  .blog-grid .post__title {
    font-size: 1rem;
  }

  .blog-grid .post__desc {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .blog-grid .row>[class*="col-"] {
    margin-bottom: 16px;
  }

  .blog-grid .post__img {
    aspect-ratio: 16 / 9;
  }

  .blog-grid .post__body {
    padding: 16px 16px 18px;
  }

  .blog-grid .post__meta-cat a {
    font-size: 0.62rem;
    padding: 4px 10px;
  }

  .blog-grid .post__meta-date {
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    padding: 4px 10px;
  }
}

/* Top row content within boxes */
.top-row-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tab-pane {
  transition: opacity 0.25s ease
}

.select-dropdown-label {
  padding: 0 20px !important;
}

/* =====================================================
   GLOBAL SECTION OVERRIDES
   ===================================================== */

section {
  padding-top: 3rem;
  padding-bottom: 0;
}

.pt-130 {
  padding-top: 3.5rem;
}

span.current {
    line-height: 34px !important;
}