/*
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
*/

/** BEGIN Global **/
.footer_contact {
	text-align: center;
	margin-bottom: 0.5em;
}
.elementor-widget-image a {
    width: 100%;
}
.wordwrap p {
	word-wrap: break-word;
}
.hoverclass.column_image {
	overflow: hidden;
}
.hoverclass img:hover {
	transform: scale(1.1);
	transition: all .3s ease-in-out;
}
/** END Global **/

/** BEGIN Header **/
.langswitcher .cpel-switcher__lang a {
    border-radius: 50px;
    width: 40px;
    height: 40px;
}
.langswitcher .cpel-switcher__toggle.cpel-switcher__lang .cpel-switcher__name {
	padding-left: 6px !important;
}
.bannerline {
	transform: translateX(-50%);
}
@media(max-width:767px) {
	.menuwrap ul li.lang-item {
		display: inline-flex !important;
        width: 48%;
	}
}
.menuwrap ul li.lang-item {
    display: none;
}
.menuwrap ul li.lang-item:first-of-type {
	justify-content: right;
}
/** END Header **/

/** BEGIN Aboutus Hover Box **/
.about_hoverbox.hoverclass:hover {
	transform: scale(1.1);
	transition: all .3s ease-in-out;
}
/** END Aboutus Hover Box **/

/** BEGIN Product/Service **/
.blur_title {
    backdrop-filter: blur(6px);
	min-height: 110px;
	width: calc(100% - 2em);
}
@media(max-width:767px) {
	.blur_title {
		min-height: 80px;
	}
}
/** END Product/Service **/

/** BEGIN Child Categories Sidebar **/
.child-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.child-category-list li {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 4px;
  border-bottom: 1px solid #a5a29f;
}

.child-category-list li a {
  color: #303030;
}

.child-category-list li.item-active a {
  color: #0F2171;
  font-weight: 500;
}
.child-category-list li.item-active:after {
    content: '';
    width: 11px;
    height: 9px;
    background-image: url(/wp-content/uploads/2025/09/next-arrow_02.svg);
    position: absolute;
    margin-top: 8px;
    right: 0;
}
/** END Child Categories Sidebar **/


/** BEGIN Loop Pagination **/
.catloop_wrap .page-numbers {
    border-radius: 30px;
    width: 28px;
    height: 28px;
    display: inline-flex
;
    flex-direction: column;
    align-items: center;
    line-height: 1.75;
}
.catloop_wrap .page-numbers.current,
.catloop_wrap .page-numbers:hover{
    background-color: #21366d;
}
/** END Loop Pagination **/



/** BEGIN Footer Widget **/
#Footer .widget {
    margin: 0px 0px;
    position: relative;
}
#Footer .mcb-column-inner {
	margin-bottom: 0px !important;
}
#Footer .footer_copy .one {
    margin-bottom: 1em;
    padding-top: 1em;
    font-size: 12px;
}
#Footer .textwidget,
#Footer .textwidget p {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}
#Footer .footer_contacts,
#Footer .footer_socials {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
#Footer .footer_socials {
  margin-top: 1em;
}
#Footer .footer_contacts img {
  height: 28px;
  transform: translateY(6px);
}
#Footer .footer_socials img {
  height: 28px;
}
@media (max-width: 767px) {
  #Footer .footer_contacts,
  #Footer .footer_socials {
    flex-wrap: wrap;
    gap: 8px;
  }
}
/** END Footer Widget **/



/** BEGIN subcategories_grid style **/
/* === Subcategory Grid Styling === */
.subcategories-grid {
  width: 100%;
  gap: 40px; /* Desktop default */
}

.subcategory-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  min-height: 500px; /* desktop */
  border-radius: 15px;
  text-decoration: none;
  color: #fff;
}

/* Background image */
.subcategory-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 1;
}

/* Hover zoom effect */
.subcategory-card:hover .subcategory-bg {
  transform: scale(1.1);
}

/* Blurred title box (now with proper 1em margin inside box) */
.blur_title_ {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 1em; /* ✅ real margin around the blur bar */
  min-height: 110px; /* desktop */
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  z-index: 2;
  padding: 1em;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start; /* title aligns top */
  justify-content: flex-start;
  border-radius: 10px;
}

/* Title text */
.subcategory-title {
  font-size: 1.4em;
  color: #fff;
  margin: 0;
  padding: 0;
}

/* --- Tablet --- */
@media (max-width: 1024px) {
  .subcategories-grid {
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
  }
  .subcategory-card {
    min-height: 350px !important;
  }
  .blur_title_ {
    min-height: 80px;
  }
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .subcategories-grid {
    gap: 20px;
    grid-template-columns: 1fr !important; /* 1 box per row */
  }
  .subcategory-card {
    min-height: 250px !important;
  }
  .blur_title_ {
    min-height: 80px;
    margin: 1em; /* still has 1em space on mobile */
  }
}

/** END subcategories_grid style **/