/* ==========================================
   Custom Header Styles
   ========================================== */

/* Header container */
.rx-header {
  width: 100%;
  position: relative;
  z-index: 999;
}

/* Inner flex layout */
.rx-inner-menu-desk {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo fix */
.rx-header-btn img {
  height: 100px;
  /* control logo size */
  width: auto;
  object-fit: contain;
}

/* Navbar alignment */
.rx-main-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Menu list */
.rx-main-menu .navbar-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
}

/* Nav links */
.navbar-nav .nav-link {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  transition: 0.3s;
}

.navbar-nav .nav-link:hover {
  color: #f5c518;
  /* gold hover */
}

/* Dropdown */
.rx-dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  padding: 10px 0;
  border-radius: 6px;
  min-width: 180px;
}

.rx-dropdown:hover .rx-dropdown-menu {
  display: block;
}

/* Dropdown items */
.rx-dropdown-menu .dropdown-item {
  padding: 8px 15px;
  color: #333;
  font-size: 14px;
}

.rx-dropdown-menu .dropdown-item:hover {
  background: #f5f5f5;
}

/* Button */
.header-button {
  margin-left: 20px;
}

/* Default (transparent header) */
header .rx-header .rx-btn-one {
  padding: 8px 18px;
  background: #2f3e34;
  color: #f5f5f5;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #2f3e34;
}

/* Hover (transparent) */
header .rx-header .rx-btn-one:hover {
  background: #2f3e34;
  color: #f5f5f5;
  border: 1px solid #2f3e34;
}

/* Fixed header ke time */
header .header-fixed .rx-btn-one {
  background: #2f3e34;
  color: white;
  border: 0;
}

/* Hover when fixed */
header .header-fixed .rx-btn-one:hover {
  background: #f2ede6;
  color: black;
  border: 1px solid #2f3e34;
}

/* Mobile toggle */
.rx-toggle-menu {
  display: none;
}

/* Responsive */
@media (max-width: 991px) {
  .rx-toggle-menu {
    display: block;
  }

  .rx-main-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .header-button {
    width: 100%;
    margin-top: 10px;
  }

  .rx-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #1f2d26;
    /* Dark green background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
  }

  .loader-gif {
    width: 20%;
    /* Adjust as needed */
    height: auto;
  }
}

.rx-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #1f2d26;
  /* Dark green background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.loader-gif {
  width: 40%;
  /* Adjust as needed */
  height: auto;
}

/* ===== Mobile sidebar redesign: slides down from top ===== */
.rx-mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.rx-mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.rx-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  overflow-y: auto;
  background: #f8f3eb;
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 15px 20px 25px;
}

.rx-mobile-menu.active {
  transform: translateY(0);
}

.rx-mobile-menu .rx-menu-title {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.rx-mobile-menu .rx-close-menu {
  background: transparent;
  border: none;
  color: #24382b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.rx-mobile-menu .rx-menu-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rx-mobile-menu .rx-menu-contact ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rx-mobile-menu .rx-menu-contact ul li a {
  display: block;
  padding: 12px 4px;
  color: #f5f5f5;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rx-mobile-menu .rx-menu-contact ul li a:hover {
  color: #f5c518;
}

.rx-mobile-menu .header-res-lan-curr {
  margin-top: 15px;
  padding-top: 15px;
}

.rx-mobile-menu .header-top-social ul {
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.rx-mobile-menu .header-top-social ul li a {
  color: #f5f5f5;
  font-size: 18px;
}

.rx-mobile-menu .header-top-social ul li a:hover {
  color: #f5c518;
}

@media (min-width: 992px) {

  .rx-mobile-menu,
  .rx-mobile-menu-overlay {
    display: none !important;
  }
}

.rx-mobile-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/banner/texture-bg.png") no-repeat center center;
  background-size: cover;
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}

/* Header */
.rx-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-logo img {
  height: 60px;
}

.rx-close-menu {
  border: 0;
  background: none;
  font-size: 34px;
  color: #b78b54;
  line-height: 1;
}

/* Body */
.rx-mobile-body {
  flex: 1;
  overflow: auto;
  padding: 12px 10px;
}

.mobile-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav li {
  border-bottom: 1px solid rgba(183, 139, 84, .25);
}

.mobile-nav a {
  display: block;
  padding: 18px 0;
  color: #24382b;
  font-size: 20px;
  font-family: var(--heading-font);
  text-decoration: none;
}

/* Footer elements in mobile header modal */
.mobile-btns {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.mobile-btns a {
  flex: 1;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
}

.btn-dark {
  background: #24382b;
  color: #fff;
}

.btn-light {
  border: 1px solid #cba36c;
  color: #24382b;
  background: #fff;
}

.mobile-certification {
  text-align: center;
  margin-bottom: 20px;
}

.mobile-certification img {
  max-width: 60px;
}

.copyright1 {
  text-align: center;
  font-size: 13px;
  color: #B7956A !important;
  margin: 0;
}