/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/

/* Font Awesome – Regular 400 */
@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/wp-content/plugins/js_composer/assets/lib/vendor/dist/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2") format("woff2"),
       url("/wp-content/plugins/js_composer/assets/lib/vendor/dist/@fortawesome/fontawesome-free/webfonts/fa-regular-400.ttf") format("truetype");
}

/* Font Awesome – Solid 900 */
@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/wp-content/plugins/js_composer/assets/lib/vendor/dist/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2") format("woff2"),
       url("/wp-content/plugins/js_composer/assets/lib/vendor/dist/@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf") format("truetype");
}


/* Blog list tweaks */
.new-badge {
  background: #e7007e; color: #fff; padding: 2px 8px; border-radius: 12px;
  font-size: .75em; font-weight: 700; margin-right: 8px; margin-bottom: 5px;
}
.grid .post-desc-wrapper .post-desc { padding: 0 5px 0 !important; }
.entry-title { font-size: 18px !important; }
.post-footer .post-links { float: left !important; padding-left: 5px !important; }

#Top_bar .menu > li > ul.mfn-megamenu a.mfn-megamenu-title {
	text-transform: none;
}
#Top_bar .menu li ul li a span {
	font-weight: 600 !important;
}
@media (max-width: 768px) {
  #Side_slide #menu ul li a span.description {
    display: none !important;
  }
}
#Top_bar.is-sticky {
	opacity: 1 !important;
}
.theme-color,
p.theme-color,
.theme-color p {
	color: #14192d !important;	
}
.action_button {
	background-color:#3A4051;
	color:white;
	font-size: 12px;
}
/* Centering the buttons container */
.inline-buttons-wrapper {
  text-align: center;
}

/* Display buttons inline */
.inline-buttons {
  display: inline-block;
  margin: 0 10px; /* Add space between buttons */
}
 .vc_tta-color-blue.vc_tta-style-flat .vc_tta-panel.vc_active .vc_tta-panel-heading {
    background-color: #3A4051 !important;
}
.vc_tta-color-blue.vc_tta-style-flat .vc_tta-panel .vc_tta-panel-heading {
   background-color: #3A4051 !important; 
}
.vc_tta.vc_general .vc_tta-panel-title>a {
    padding: 28px 42px !important;
}
/* Responsive */
.no-desktop {
    display: none !important;
}
/* Hide on mobile devices */
@media only screen and (max-width: 991px) {
    .no-mobile {
        display: none !important;
    }
.mob-mt-lg {
margin-top: 50px; /* Adjust this value as needed */
}
.mob-mt-md {
margin-top: 30px; /* Adjust this value as needed */
}
.mob-mt-sm {
margin-top: 15px; /* Adjust this value as needed */
}
}

html {
  scroll-behavior: smooth;
}
.post-links a {
	color: #ffffff;
}
@media (max-width: 768px) {
  .vc_row.intro-margin {
    margin-top: 0px !important;
  }
}

#Top_bar .menu li ul li {
    width: auto !important;
    min-width: max-content !important;
}

/* Ensure the submenu container expands properly */
#Top_bar .menu li ul {
    white-space: nowrap !important;
    width: auto !important;
    min-width: max-content !important;
    width: fit-content !important;
		border-radius:5px;
	
}

#Top_bar .menu li ul li a {
    white-space: nowrap !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#Top_bar .menu li ul {
    width: max-content !important;
    min-width: 200px !important; /* Keep at least the original 200px minimum */
}
#Top_bar .menu > li > ul.mfn-megamenu > li.mfn-megamenu-cols-2 {
	width: 10% !important;
}
@media only screen and (min-width:1240px){
.menuo-right #Top_bar .menu > li > ul.mfn-megamenu {
left: 18%;
width: 70%!important;
}
#Top_bar .menu li ul li .menu-description,
#Top_bar .menu li ul li .menu-item-description,
#Top_bar .menu li ul li .description {
  display: block;
  font-weight: normal !important;
  font-size: 13px;
  margin-top: 5px;
  color: #ffffff;        /* optional: adjust to match brand */
  line-height: 1.4;
}

}
.excerpt-hellip {
	display:none !important;
}
.no-marg-bot {
	margin-bottom: 0px;
}
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #e7007e;
  color: #ffffff;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 5px;
  font-size: 24px;
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s;
}

.back-to-top:hover {
  background: #14192d;
  text-decoration: none;
}
.button-love {display: none !important}
.cat-btn {display: none !important}
/* Blog Category Styling */

/* Remove margin from post-categories list */
.post-categories {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Make category links white */
.post-categories li a {
  color: white !important;
}

/* Show only the first category */
.post-categories li:not(:first-child) {
  display: none !important;
}

/* Hide the category dropdown button */
.post-meta .category .cat-btn {
  display: none !important;
}

/* Hide the category dropdown wrapper */
.post-meta .category .cat-wrapper {
  display: block !important;
}
.author-date {color: #ffffff !important }
/* ===== General ===== */
.home-intro { 
font-size: 45px;
}
@media (max-width: 768px) {
  .home-intro { 
    line-height: 1em !important;
  }
}
.stat-center{ text-align: center !important;}
.intro-stat { margin-bottom: 0px; }
.hero-image { z-index: 99 !important; }
.hero-video-trigger,
img[src*="mentor-software-for-childrens-homes-dashboard"] {
  cursor: pointer !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.hero-video-trigger:hover,
img[src*="mentor-software-for-childrens-homes-dashboard"]:hover {
  transform: scale(1.02);
  opacity: 0.9;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.banner-img { height: 587px; width: 391px; }
.vc_tta-title-text { font-size: 12px; }
.vc_tta.vc_general .vc_tta-tab > a { padding: 4px 20px !important; }
.vc_tta-color-grey.vc_tta-style-flat .vc_tta-tab > a {
  background-color: #474E64 !important;
  color: #ffffff !important;
}
.vc_tta.vc_tta-spacing-1 .vc_tta-tab { margin: 1px 0 0 5px !important; }
.vc_tta-color-grey.vc_tta-style-flat .vc_tta-tab.vc_active > a { background-color: #38246F !important; }
.vc_tta-tabs.vc_tta-has-pagination .vc_pagination { margin-top: 0px !important; margin-bottom: 15px !important; }

.logos { z-index: 0 !important; }
.view-demo { z-index: 0 !important; }

/* ===== Tab scroll buttons (desktop) ===== */
.vc_tta-container { position: relative; }
.tab-scroll-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #3a4052; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 10;
}
.tab-scroll-btn:hover {
  background: #1a2038; transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.tab-scroll-btn:active { transform: translateY(-50%) scale(.95); }
.tab-scroll-left { left: 10px; }
.tab-scroll-right { right: 10px; }
.tab-scroll-btn .chev {
  pointer-events: none; color: #fff; font-size: 22px; line-height: 1; font-weight: 700; display: block; margin-top: -1px;
}

/* ===== Desktop: allow chevrons to sit outside without clipping ===== */
@media (min-width: 769px) {
  .vc_tta-container,
  .vc_tta .vc_tta-tabs-container,
  .vc_tta .vc_tta-tabs-list { overflow: visible !important; }

  .tab-scroll-left  { left: -90px !important; }
  .tab-scroll-right { right: -90px !important; }

  @media (max-width: 1400px) {
    .tab-scroll-left  { left: -60px !important; }
    .tab-scroll-right { right: -60px !important; }
  }
  @media (max-width: 1200px) {
    .tab-scroll-left  { left: -40px !important; }
    .tab-scroll-right { right: -40px !important; }
  }
}

/* ===== Mobile: swipeable tabs + hidden scrollbar + edge fade hint ===== */
@media (max-width: 768px) {
  /* Container must scroll horizontally */
  .vc_tta.vc_tta-tabs .vc_tta-tabs-container {
    display: block !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    position: relative;
  }

  /* Edge fade hint (supported browsers only) */
  @supports (mask-image: linear-gradient(#000, #000)) or (-webkit-mask-image: linear-gradient(#000, #000)) {
    .vc_tta.vc_tta-tabs .vc_tta-tabs-container {
      /* fade 12px at edges to hint more content */
      mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
      -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    }
  }

  /* Hide redundant panel headings on mobile */
  .vc_tta.vc_tta-tabs .vc_tta-panels .vc_tta-panel-heading { display: none !important; }

  /* Make the list one long row and hide scrollbar visuals */
  .vc_tta.vc_tta-tabs .vc_tta-tabs-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    width: max-content !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;             /* Firefox */
  }
  .vc_tta.vc_tta-tabs .vc_tta-tabs-list::-webkit-scrollbar { display: none; } /* WebKit */

  /* Prevent tab items from shrinking/wrapping */
  .vc_tta.vc_tta-tabs .vc_tta-tabs-list > .vc_tta-tab { flex: 0 0 auto; }

  /* Only the active panel shows */
  .vc_tta.vc_tta-tabs .vc_tta-panels .vc_tta-panel { display: none; }
  .vc_tta.vc_tta-tabs .vc_tta-panels .vc_tta-panel.vc_active { display: block; }

  /* Hide desktop chevrons on mobile */
  .tab-scroll-btn { display: none !important; }
}

/* ===== Other content you had ===== */
.cta-home { margin-bottom: 0px; }
.cta-home-bg { background-color: #474E64; }

.hover-background { transition: background-color .3s ease; cursor: pointer; }
.hover-background:hover { background-color: #5A348B; }

/* ===== YouTube Lightbox ===== */
#youtube-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#youtube-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 900px;
}

#youtube-lightbox iframe,
#youtube-video {
  width: 100%;
  height: 500px;
  border: none;
}

.close-lightbox {
  position: absolute;
  top: -40px;
  right: -10px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease;
}

.close-lightbox:hover {
  background: rgba(220, 38, 38, 0.9);
}

@media (max-width: 768px) {
  #youtube-lightbox iframe,
  #youtube-video {
    height: 250px;
  }
  .close-lightbox {
    top: -35px;
    right: 0;
    font-size: 32px;
    width: 35px;
    height: 35px;
  }
}
