/* ====== RCBO Mega Menu Styles ====== */

/* --- Panel and Overlay --- */
.rcbo-mega-menu-panel {
  position: fixed;
  top: -30px;
  right: -100vw;
  width: 100%;
  max-width: 1200px;
  height: auto;
  color: #fff;
  z-index: 999999999;
  transition: right 0.35s cubic-bezier(0.6,0,0.4,1);
  outline: none;
  visibility: hidden;
}

.rcbo-mega-menu-panel.is-open {
  visibility: visible;
  position: fixed;
  top: 0;
  left: auto;
  right: 5%;
  bottom: 0;
  width: 100%;
  max-width: 1200px;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.rcbo-mega-menu-panel p { margin: 0!important; }

.rcbo-menu-overlay {
  display: none;
  position: fixed;
  z-index: 1;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
}
.rcbo-menu-overlay.is-active { display: block; }

/* --- Mega Menu Layout --- */
.rcbo-mega-menu {
  font-family: 'Inter', Arial, sans-serif;
  color: #FFF;

  min-height: auto;
  width: 100%;
  display: flex;
  flex-direction: row;
}

/* Desktop two-column layout */
@media (min-width: 769px) {
  .rcbo-mega-menu {
    flex-direction: row;
  }
  .rcbo-menu-left {
    width: 50%;
    flex: none;
  }
  .rcbo-menu-right {
    width: 50%;
    flex: none;
  }
  #menu-main-right li {
    margin-bottom: 16px;
  }
}
body.menu-open {
  overflow: hidden;
}

/* --- Left Menu --- */
.rcbo-menu-left {
  flex: 1.1;
  padding: 60px 32px 32px 48px;
  color: #000;
  background-color: #EDE7DB;
  /*
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 25%,     /* solid black at top *
    rgba(0, 0, 0, .2) 100% /* 25% opacity at bottom *
  );
  */
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-weight: 600;
  letter-spacing: 1.2px;
  font-size: 1.25rem;
  text-transform: uppercase;
  list-style: none;
  margin-right: 0;
  text-decoration: none;
}
#menu-main-left li { margin-bottom: 0; }
#menu-main-left a {
  text-decoration: none;
  color: #000;
}
#menu-main-left a:before {
  content: '';
  position: relative;
  display: block;
  top: 33px;
  width: 0;
  height: 1px;
  background: #FFF;
  transition: width 0.3s ease;
}
#menu-main-left a[aria-expanded="true"]:before { width: 100%; }

#menu-main-left .sub-menu {
  max-height: 0;
  overflow: hidden;
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  text-transform: capitalize;
  list-style: none;
  margin-bottom: 0;
  margin-right: 0;
  padding: 0;
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
}
#menu-main-left .sub-menu li { margin: 4px 0; }
#menu-main-left .sub-menu a:after {
  content: '→';
  margin-left: 8px;
  color: #e1b86b;
  font-size: 1.1em;
  font-weight: 700;
}
#menu-main-left a:hover { color: #e1b86b; }
#menu-main-left .sub-menu.open { display: block; }

#menu-main-left .menu-item-has-children > a:after {
  content: '⌵';
  position: relative;
  top: -3px;
  left: 3px;
  font-size: 20px;
}

/* --- Left "Classic" submenu (for rcbo) --- */
.rcbo-menu-heading {
  font-weight: 600;
  letter-spacing: 1.2px;
  font-size: 1.25rem;
  border-bottom: 1px solid #b6b6b6;
  margin-bottom: 14px;
}
.rcbo-submenu {
  margin: 0 0 16px 0;
  padding: 0;
  list-style: none;
}
.rcbo-submenu li a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 10px;
  font-size: 1rem;
}
.rcbo-submenu .arrow {
  margin-left: 8px;
  color: #e1b86b;
  font-size: 1.1em;
  font-weight: 700;
}

/* --- Menu List --- */
.rcbo-menu-list,
#menu-main-left {
  list-style: none;
	margin: 0;
	padding: 0;
}
.rcbo-menu-list li { margin-bottom: 16px; }
.rcbo-menu-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: 0.8px;
  transition: color 0.2s;
}
.rcbo-menu-list a:hover { color: #e1b86b; }

/* --- Right Menu --- */
.rcbo-menu-right {
  /*
  background: linear-gradient(
    to bottom,
    rgba(155, 184, 97, 201) 25%,     /* solid black at top *
    rgba(4, 74, 97, 0.2) 100% /* 25% opacity at bottom *
  );
  */
  background-color: #d2c8ad;
  padding: 5%;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  letter-spacing: 1.2px;
  font-size: 1.25rem;
  list-style: none;
  margin: 0;
  text-decoration: none;
}
#menu-main-right {
	padding: 0;
	margin: 0;
}
#menu-main-right a { text-decoration: none; }
#menu-main-right li {
  display: flex;
  align-items: center;
}
#menu-main-right li a {
	display: flex;
	justify-content: flex-start;
	align-content: center;
	align-items: center;
  width: 100%;
  color: var(--text-color);
  background: var(--btn-color);
  border-radius: 25px;
  padding: 24px 28px;
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  transition: filter .2s ease;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
  position: relative;
}
#menu-main-right li a:hover {
  filter: brightness(1.2);
}
@media (min-width: 768px) {
  #menu-main-right li a:after {
    content: '→';
    margin-left: 15px;
    color: #ffffff;
    opacity: .5;
    font-size: 30px;
    font-weight: 700;
  }
}

#menu-main-right li a img {
  max-width: 60px;
  height: auto;
  margin-right: 15px;
}

.navigation-label-mobile { display: none; }
@media (max-width: 768px) {
  .navigation-label { display: none; }
  .navigation-label-mobile { display: inline; }
}


/* --- Card Styles (Used in Right menu) --- */
.rcbo-action-cards { display: flex; flex-direction: column; gap: 22px; }
.rcbo-card {
  display: flex;
  align-items: center;
  background: #7c5454;
  border-radius: 16px;
  padding: 24px 28px;
  color: #fff;
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
  justify-content: space-between;
  gap: 16px;
  position: relative;
  margin-bottom: 16px;
}
.rcbo-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.14);
  opacity: 0.97;
}
.card-arrow {
  color: #e1b86b;
  font-size: 1.5em;
  margin-left: 12px;
}
.rcbo-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
}

/* --- Search Styles --- */
.rcbo-search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 30px;
  padding: 0 12px 0 18px;
  margin: 35px 0 16px;
}
.rcbo-search input {
  border: none;
  background: none;
  font-size: 1.05rem;
  outline: none;
  flex: 1;
  padding: 7px 0;
}
.rcbo-search button {
  background: none;
  border: none;
  font-size: 1.13rem;
  color: #333;
  padding: 0 4px;
  cursor: pointer;
  width: 40px;
  height: 40px;
}
.rcbo-search button svg {
  width: 20px;
  height: 20px;
}

/* --- Responsive --- */
@media only screen and (max-width: 768px) {
  .rcbo-mega-menu {
    width: 100%;
    flex-direction: column;
    flex-flow: column wrap;
		padding: 0;
  }
  .rcbo-menu-left,
  .rcbo-menu-right {
    width: 100%;
  }
	.rcbo-menu-right {
		padding: 0 30px 30px;
		gap: 0;
	}
  #menu-main-right {
    display: flex;
    flex-flow: row wrap;
		padding: 0;
  }
  #menu-main-right li {
    width: calc(50% - 5px);
		margin-bottom: 10px;
  }
	#menu-main-right li:nth-child(1) {
		margin-right:10px;
	}
	#menu-main-right li:nth-child(3) {
		margin-right:10px;
	}
  #menu-main-right li a {
		flex-flow: column;
    height: 100%;
		border-radius: 45px;
		font-size: 18px;
		text-align: center;
		padding: 16px 20px;
  }
	#menu-main-right a:before {
		margin: 10px;
	}
	#menu-main-right li a:after {
		position: relative;
    right: 0;
    top: 0;
    transform: unset;
    margin-left: 0;
	}
	.rcbo-action-cards {
		margin-top: 30px;
	}
	@media only screen and (max-width: 380px) {
		#menu-main-right {
			flex-flow: row wrap;
		}
		#menu-main-right li{
			width: calc(50% - 5px);
		}
	}
}
