.view-switch {
  display: inline-flex;
  background: #f1f3f5;
  border-radius: 50px;
  padding: 4px;
  gap: 4px;
}
.view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: all 0.25s ease;
}
.view-btn:hover {
  background: #e9ecef;
}
.view-btn.active {
  background: #1f3d36; /* match your site green */
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hidden-view {
	display:none;
}

/* ICONS */
.icon {
  display: inline-block;
}

/* Grid icon */
.grid-icon {
  width: 14px;
  height: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.grid-icon::before,
.grid-icon::after {
  content: '';
}

.grid-icon div,
.grid-icon::before,
.grid-icon::after {
  background: currentColor;
  width: 100%;
  height: 100%;
}

/* simple grid squares */
.grid-icon {
  position: relative;
}
.grid-icon::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: currentColor;
}
.grid-icon::after {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 6px;
  height: 6px;
  background: currentColor;
}

/* List icon */
.list-icon {
  width: 16px;
  height: 12px;
  position: relative;
}

.list-icon::before,
.list-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.list-icon::before {
  top: 0;
}

.list-icon::after {
  bottom: 0;
}
.list-icon {
  border-top: 2px solid currentColor;
}

/* IOS SAFE MODE */
.ios-safe-mode * {
  animation: none !important;
  transition: none !important;
}

.ios-safe-mode .nectar-parallax,
.ios-safe-mode .wpb_row {
  transform: none !important;
  background-attachment: scroll !important;
}

.logged-in .menu-item-5154 {
     display: none !important;
}

#nectar-user-account img.avatar, .logged-in .mobile-only .menu-item-5154 .menu-title-text img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#nectar-user-account {
	margin:0px !important;
}

#chapters ol {
    display: flex !important;
    gap: 34px;
    margin-bottom: 14px;
}

#chapters .nectar-fancy-ul {
   display: flex;
   align-items: center;
   gap: 12px;	
}

@media (max-width: 768px) {
  .view-switch {
    display: none !important;
  }

  #chapters ol {
    flex-direction: column;
    gap: 14px; /* reduce spacing for mobile */
  }

  #chapters .nectar-fancy-ul {
    flex-direction: column;
    align-items: flex-start; /* better for vertical layout */
    gap: 8px;
  }

  .logged-in .menu-item-5154 {
	display: block !important;
  }

  /* Mobile menu only */
  .logged-in .mobile-only .menu-item-5154 .nectar-menu-icon {
	display: none !important;
  }

  .logged-in .mobile-only .menu-item-5154 .menu-title-text{
    display: flex;
	gap: 12px;
	align-items: center;
  }
}