.lang-dropdown {
  position: relative;
}

.lang-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 14px;
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  min-width: 100px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);

  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}

.lang-menu li a {
  display: block;
  padding: 6px 12px;
  white-space: nowrap;
}

.lang-dropdown:hover .lang-menu {
  opacity: 1;
  visibility: visible;
}

.lang-menu {
  background: #fff;
}

.lang-menu li a {
  color: #000; /* or your theme color */
}

.lang-menu li a:hover {
  background: #f5f5f5;
  color: #000;
}

@media (max-width: 991px) {
  .rs-lang-switch {
    display: none;
  }
}

.banner-btn {
  border: white 2px solid;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.box-heading {
  color: #ffd125;
}

.box-p {
  color: white;
}

.text-white {
  color: white;
}

.text-yellow {
  color: #ffd125;
}

.text-blue {
  color: var(--rs-theme-blue);
}

.rs-blog-item {
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  overflow: hidden;
  /* important for image corners */
  background: #fff;
  /* ensures shadow looks clean */
}

/* Only affects this blog slider */
.blog-swiper-fix .swiper-slide {
  padding: 15px;
  box-sizing: border-box;
}

.blog-swiper-fix .rs-blog-item {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background: #fff;
  height: 100%;
  transition: all 0.3s ease;
}

.blog-swiper-fix .rs-blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.rs-postbox-btn .rs-btn:hover {
  color: #fff;
  background-color: var(--rs-theme-yellow);
}

.custom-blog-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  /* 2 equal columns */
  gap: 30px;
}

.custom-blog-grid > div {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .custom-blog-grid {
    grid-template-columns: 1fr;
  }
}

.rs-postbox-details-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.product-btn {
  border: 2px solid #003a77;
  color: #003a77;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.product-btn:hover {
  background-color: #003a77;
  color: #fff !important;
}

/* =========================
   HEADER CLEAN LAYOUT
========================= */

.rs-header-inner {
  display: flex;
  align-items: center;
}

.rs-header-left {
  flex-shrink: 0;
}

.rs-header-menu {
  flex: 1;
  min-width: 0;
}

.rs-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

/* =========================
   MENU (SAFE - SUBMENU OK)
========================= */

.main-menu > ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.main-menu > ul li a {
  white-space: nowrap;
}

/* =========================
   SUBMENU FIX (FINAL)
========================= */

.main-menu ul ul {
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 260px;
  width: auto;

  background: #fff;
  z-index: 9999;
}

/* ensure submenu not clipped */
.main-menu,
.rs-header-area,
.rs-header-inner {
  overflow: visible;
}

/* =========================
   RIGHT SIDE ELEMENTS
========================= */

.rs-header-btn .rs-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.rs-header-hamburger {
  display: none;
}

/* =========================
   PREVENT HERO OVERLAY
========================= */

.rs-banner-area,
.rs-hero-area,
.rs-slider-area {
  position: relative;
  z-index: 1;
}

/* =========================
   RESPONSIVE LOGIC
========================= */

/* free space before collapse */
@media (max-width: 1700px) {
  .rs-header-search-wrapper {
    display: none;
  }

  .main-menu > ul li {
    margin: 0 6px;
  }

  .main-menu > ul li a {
    font-size: 16px;
  }
}

/* collapse to hamburger */
@media (max-width: 1500px) {
  .rs-header-menu {
    display: none !important;
  }

  .rs-header-hamburger {
    display: block !important;
  }

  .rs-header-right {
    margin-left: auto;
  }
}

/* override fixed width */
.main-menu .submenu {
  width: auto;
  min-width: 260px;
  max-width: 400px; /* adjust if needed */
}
.main-menu .submenu li a {
  white-space: normal; /* allow wrapping */
  line-height: 1.4;
}
.main-menu .submenu li a {
  display: block;
  padding: 8px 16px;
}

/* ===== STICKY HEADER FIX ===== */

/* keep layout consistent */
.rs-sticky-header .rs-header-inner {
  display: flex;
  align-items: center;
}

/* ensure right side still works */
.rs-sticky-header .rs-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.rs-work-step-six .rs-work-step-icon img {
  filter: invert(33%) sepia(0%) saturate(2562%) hue-rotate(136deg)
    brightness(110%) contrast(87%);
  width: 60px;
  height: 60px;
  transition: all 0.5s ease;
}

.rs-work-step-six .rs-work-step-item:hover .rs-work-step-icon img {
  filter: invert(92%) sepia(29%) saturate(6920%) hue-rotate(339deg)
    brightness(89%) contrast(93%);
  animation: rs-fold linear 0.3s;
}

.rs-feature-six .rs-feature-item:hover .rs-feature-icon img {
    animation: rs-fold linear 0.3s;
}

/* ===== RESPONSIVE (match main header) ===== */

@media (max-width: 1700px) {
  .rs-sticky-header .rs-header-search-wrapper {
    display: none;
  }

  .rs-sticky-header .main-menu > ul li {
    margin: 0 6px;
  }

  .rs-sticky-header .main-menu > ul li a {
    font-size: 14px;
  }
}

@media (max-width: 1500px) {
  .rs-sticky-header .rs-header-menu {
    display: none !important;
  }

  .rs-sticky-header .rs-header-hamburger {
    display: block !important;
  }

  .rs-sticky-header .rs-header-search-wrapper {
    display: none !important;
  }
}

/* hide by default (desktop + sticky) */
.mobile-only {
  display: none;
}

/* show only on mobile */
@media (max-width: 1500px) {
  .mobile-only {
    display: block;
  }
}
