/* --------------------------------------------------------------------------
   Top contact bar - cream / brown, clear, tappable and professional
   Loaded last (priority 140) so it wins over the earlier header styles.
   -------------------------------------------------------------------------- */

#site-header.site-header,
header.site-header {
	background: linear-gradient(100deg, #f7efe2 0%, #f1e3cf 55%, #e9d6bb 100%) !important;
	background-color: #f3e8d7 !important;
	border-bottom: 2px solid #6f4a2f;
	box-shadow: 0 6px 18px -12px rgba(74, 47, 29, .45);
	padding: 0 !important;
}

#site-header .container-full > .row {
	min-height: 0;
}

/* The social column is not rendered, so let the contact bar use the full width. */
#site-header .col-lg-9.col-md-9.col-sm-12 {
	flex: 0 0 100%;
	max-width: 100%;
}

#site-header .theme-contact-block {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .5rem .65rem;
	margin: 0 auto;
	padding: .55rem 0;
	list-style: none;
}

#site-header .theme-contact-block li {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	min-height: 40px;
	margin: 0 !important;
	padding: .35rem .95rem;
	border-radius: 999px;
	background: #fffaf2;
	border: 1px solid rgba(111, 74, 47, .22);
	color: #3a2718 !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: .01em;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(74, 47, 29, .06);
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

#site-header .theme-contact-block li:hover {
	background: #6f4a2f;
	border-color: #6f4a2f;
	color: #fff7ec !important;
	transform: translateY(-1px);
}

/* Kill the old thin separators; the pills space themselves. */
#site-header .theme-contact-block li::after,
#site-header .theme-contact-block li:not(:last-child)::after {
	display: none !important;
	content: none !important;
}

#site-header .theme-contact-block li:not(:last-child) {
	margin-right: 0 !important;
}

#site-header .theme-contact-block i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	margin: 0 !important;
	border-radius: 50%;
	background: #6f4a2f;
	color: #fff7ec !important;
	font-size: .78rem;
	line-height: 1;
	transition: background-color .2s ease, color .2s ease;
}

#site-header .theme-contact-block li:hover i {
	background: #fff7ec;
	color: #6f4a2f !important;
}

#site-header .theme-contact-block a {
	color: #3a2718 !important;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}

/* Make the whole pill (not just the text) a comfortable tap target. */
#site-header .theme-contact-block li:has(> a) {
	padding: 0;
}
#site-header .theme-contact-block li:has(> a) > i {
	margin-left: .95rem !important;
}
#site-header .theme-contact-block li:has(> a) > a {
	display: inline-flex;
	align-items: center;
	align-self: stretch;
	min-height: 40px;
	padding: 0 .95rem 0 .15rem;
	border-radius: inherit;
}

#site-header .theme-contact-block a:hover,
#site-header .theme-contact-block a:focus,
#site-header .theme-contact-block li:hover a,
#site-header .theme-contact-block li:focus-within a {
	color: #fff7ec !important;
	border-bottom-color: rgba(255, 247, 236, .7);
}

#site-header .theme-contact-block li:focus-within {
	outline: 2px solid #6f4a2f;
	outline-offset: 2px;
}

@media (max-width: 991px) {
	#site-header .theme-contact-block li {
		font-size: 12.5px;
		padding: .3rem .8rem;
	}
	#site-header .theme-contact-block li:has(> a) {
		padding: 0;
	}
	#site-header .theme-contact-block li:has(> a) > a {
		padding: 0 .8rem 0 .15rem;
	}
}

@media (max-width: 575px) {
	#site-header .theme-contact-block {
		flex-direction: column;
		align-items: stretch;
		gap: .45rem;
		padding: .6rem .5rem;
	}
	#site-header .theme-contact-block li {
		width: 100%;
		justify-content: flex-start;
		min-height: 42px;
		font-size: 13px;
		white-space: normal;
		text-align: left;
	}
	#site-header .theme-contact-block li:has(> a) > a {
		min-height: 42px;
		flex: 1 1 auto;
	}
}

/* WhatsApp: the floating Click-to-Chat bubble is retired. WhatsApp contact
   lives on the Contact page and in the footer card instead. Chatway stays. */
.qlwapp, .qlwapp__container, .qlwapp__button { display: none !important; }

/* WhatsApp contact button - Contact page + footer card */
.rx-wa-contact,
.rx-wa-card { text-align: center; }
.rx-wa-contact { margin: 2.4rem auto; }
.rx-wa-contact h3,
.rx-wa-card h4 { margin-bottom: .4rem; }
.rx-wa-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: linear-gradient(180deg, #2fe06f 0%, #25D366 100%);
  color: #fff !important; text-decoration: none;
  padding: .8rem 1.7rem; border-radius: 999px; font-weight: 600;
  box-shadow: 0 8px 18px -8px rgba(37, 211, 102, .75), inset 0 1px 0 rgba(255,255,255,.35);
}
.rx-wa-btn:hover { background: linear-gradient(180deg, #29d160 0%, #1fbf57 100%); color: #fff !important; }
.rx-wa-btn svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.rx-wa-card {
  background: #FFFDF8; border: 1px solid #EDDFC2; border-radius: 10px;
  padding: 1.2rem; margin-bottom: 1.4rem;
}
.rx-wa-card p { margin: .3rem 0 .9rem; }

/* Corner split: WhatsApp (Chaty) sits bottom-LEFT, Chatway live chat keeps the bottom-RIGHT corner. */
/* Mirrors Chaty's own .left-position rules on the .right-position widget: */
.chaty-widget.right-position { left: 20px !important; right: auto !important; }
.chaty-widget.right-position .chaty-channel-list { left: 0 !important; right: auto !important; }
.chaty-widget.right-position .chaty-i-trigger .chaty-channel { left: 4px !important; right: auto !important; }
/* The WhatsApp popup panel opens beside the left-corner icon instead of under Chatway */
.chaty-outer-forms.chaty-whatsapp-form.pos-right { left: 20px !important; right: auto !important; }
/* Hover bubble text faces right (away from the screen edge) */
.chaty-widget.right-position .chaty-i-trigger .chaty-tooltip.pos-left:after { right: auto !important; left: calc(100% + 10px) !important; transform: translate(.5em, -50%) !important; }
.chaty-widget.right-position .chaty-i-trigger .chaty-tooltip.pos-left:before { border-right-width: 0 !important; border-left-color: #fff !important; left: auto !important; right: calc(0em - 5px) !important; }

/* Cap the size of the open chat windows so the texting area is not too wide */
/* Chatway live chat window (bottom-right) */
.chatway--frame-container, .chatway--widget-frame { max-width: 380px !important; }
@media (max-width: 480px) {
  .chatway--frame-container, .chatway--widget-frame { max-width: calc(100vw - 60px) !important; }
}
/* WhatsApp (Chaty) popup panel */
.chaty-outer-forms.chaty-whatsapp-form { max-width: min(320px, calc(100vw - 48px)) !important; }

/* Homepage slider Previous / Next arrows: draw the arrows in plain CSS so they
   always render as clearly visible next & previous arrows (no icon font needed) */
.owl-nav button.owl-prev,
.owl-nav button.owl-next {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
}
.owl-nav .owl-prev i,
.owl-nav .owl-next i { display: none !important; }
.owl-nav .owl-prev::before,
.owl-nav .owl-next::before {
  content: "" ;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
  color: #ffffff;
}

.owl-nav .owl-prev::before { content: "\276E" !important; }
.owl-nav .owl-next::before { content: "\276F" !important; }

/* smaller arrows */
.owl-nav button.owl-prev,
.owl-nav button.owl-next { width: 32px !important; height: 32px !important; }
.owl-nav .owl-prev::before,
.owl-nav .owl-next::before { font-size: 14px !important; }

/* bigger, rexalist.com-style menu items: larger labels & comfortable hover areas */
/* replaces the slim "pass 2 / pass 3" sizes; scales with screen width so the row always fits */
@media (min-width: 1200px) {
  #navbarNavDropdown .navbar-nav > li > .nav-link,
  .navbar .nav .menu-item .nav-link {
    font-size: .95rem !important;
    padding: 1rem clamp(.55rem, 1vw, 1.1rem) !important;
    letter-spacing: .01em !important;
    margin: 0 !important;
  }
  #navbarNavDropdown .navbar-nav > li#menu-item-763 > .nav-link { padding: 1rem clamp(.75rem, 1.2vw, 1.35rem) !important; }
  .navbar .site-title { font-size: 1.05rem !important; }
  .navbar .site-description { font-size: .78rem !important; }
}
@media (min-width: 1500px) {
  #navbarNavDropdown .navbar-nav > li > .nav-link,
  .navbar .nav .menu-item .nav-link {
    font-size: 1rem !important;
    padding: 1.5rem clamp(1rem, 1.35vw, 1.55rem) !important;
  }
  #navbarNavDropdown .navbar-nav > li#menu-item-763 > .nav-link { padding: 1.5rem clamp(1.2rem, 1.5vw, 1.75rem) !important; }
}

/* Client Portal: green button at the end of the Join Membership dropdown */
/* (moved out of the main menu row into that sub-menu via WP Menus) */
#navbarNavDropdown li#menu-item-766 > a,
.navbar .nav li#menu-item-766 > a {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  margin: .45rem .7rem .35rem !important;
  padding: .55rem 1.15rem !important;
  border-radius: 999px !important;
  background: linear-gradient(140deg, var(--gb-green-dark, #00794a) 0%, var(--gb-jade, #00ab6b) 75%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(0, 171, 107, .65) !important;
  text-align: center;
}
#navbarNavDropdown li#menu-item-766 > a:hover,
.navbar .nav li#menu-item-766 > a:hover,
#navbarNavDropdown li#menu-item-766 > a:focus,
.navbar .nav li#menu-item-766 > a:focus {
  background: var(--gb-green-dark, #00794a) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 14px -8px rgba(0, 121, 74, .8) !important;
}
#navbarNavDropdown li#menu-item-766 .sub-arrow,
.navbar .nav li#menu-item-766 .sub-arrow { display: none !important; }

/* quieter money layer: tint down the falling money animation so it
   stays a background accent instead of dominating the menu bar */
.rxm-layer { opacity: .4 !important; }

/* gold hover: the menu hover highlight now uses the same gold/brown as the
   theme's CTA buttons (slider buttons, LOANS FORM button) = #B98A3C */
.navbar .navbar-nav > li > .nav-link:hover,
.navbar .navbar-nav > li > .nav-link:focus {
  background:
    linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.06) 40%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #b98a3c 0%, #8f671f 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .45), 0 0 14px -4px rgba(233, 196, 116, .55), inset 0 1px 0 rgba(255, 255, 255, .30) !important;
}
.navbar .navbar-nav > li > .nav-link:hover > i._mi,
.navbar .navbar-nav > li > .nav-link:focus > i._mi {
  color: #8f671f !important;
  background: #f6e8c8 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8) !important;
}
@media (min-width: 1200px) {
  .navbar .navbar-nav > li:hover::after,
  .navbar .navbar-nav > li:focus-within::after {
    background:
      linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.06) 40%, rgba(255,255,255,0) 70%),
      linear-gradient(180deg, #b98a3c 0%, #8f671f 100%) !important;
  }
}

/* cream PAGE body: content pages use the site cream instead of the big white box */
article.post, article.page, .theme-blog .post { background-color: #fbf6ec !important; }
body.page article.post .post-content, body.single article.post .post-content { background-color: transparent !important; }

/* Contact Us (page-id-123): align the contact info blocks centered on the page */
body.page-id-123 .post-content .entry-content { text-align: center; margin-left: auto; margin-right: auto; }
body.page-id-123 .post-content .entry-content .wp-block-buttons { justify-content: center !important; align-items: center; }
body.page-id-123 .post-content .entry-content ul, body.page-id-123 .post-content .entry-content ol { padding-inline-start: 0; list-style-position: inside; }
body.page-id-123 .post-content .entry-content img { margin-left: auto; margin-right: auto; }
