/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

body {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	background-color: #f1f5f94d;
}

h3.text-2x{
	font-size: 24px;
	line-height: 1.3;
}

/* Header  */

header nav li a{
	display: flex;
	align-items: center;
	line-height: 1.4;
}

header nav li.nav_resources a:before{
	content: url("./assets/resources.svg");
	width:16px;
	height: 16px;
	margin-right: 8px;
}

header nav li.nav_video a:before{
	content: url("./assets/video.svg");
	width:16px;
	height: 16px;
	margin-right: 8px;
}

header nav li.nav_knowledge a:before{
	content: url("./assets/knowledge.svg");
	width:16px;
	height: 16px;
	margin-right: 8px;
}

/* Ẩn menu ban đầu */
.brx-nav-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
}

/* --- Cấu hình menu mobile mặc định --- */
header .bricks-mobile-menu-wrapper {
  position: absolute;
  top: 100%;
  width: 100%;
  height: max-content;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  transform: translateY(-100%);
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  z-index: 9999;
}

/* --- Khi menu mở --- */
header .show-mobile-menu .bricks-mobile-menu-wrapper {
  transform: translateY(0);
  opacity: 1;
}

header .bricks-mobile-menu-overlay{
	display: none;
}

@media (max-width: 477px){
	/* 	Header  */
	header nav.bricks-mobile-menu-wrapper{
		padding: 16px 0;
	}
	
	header nav.bricks-mobile-menu-wrapper ul.bricks-mobile-menu{
		font-size: 16px;
		font-weight: 500;
		display: flex;
		flex-direction: column ;
		gap: 24px ; 
	}
	
	header .brxe-nav-menu .bricks-mobile-menu-wrapper:before{
		background: rgba(255, 255, 255, 0.2);
	 	backdrop-filter: blur(10px) saturate(250%);
	 	-webkit-backdrop-filter: blur(10px) saturate(250%) ;
	}
	
	header .brxe-nav-menu .bricks-mobile-menu-wrapper{
		background: rgba(255, 255, 255, 0.2);
	 	backdrop-filter: blur(10px) saturate(250%);
	 	-webkit-backdrop-filter: blur(10px) saturate(250%) ;
	}
	
	header nav ul.bricks-mobile-menu li.nav_resources a:before{
		content: url("./assets/resources20px.svg");

	}

	header nav ul.bricks-mobile-menu li.nav_video a:before{
		content: url("./assets/video20px.svg");

	}

	header nav ul.bricks-mobile-menu li.nav_knowledge a:before{
		content: url("./assets/knowledge20px.svg");
	}
}


/* custom  */

.thumnail_custom img, .thumnail_custom iframe {
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
	height: auto;
}

.bricks-layout-wrapper .content-wrapper .dynamic{
	width: 100%;
}

/* CSS Wiget-Select element */

.block-custom-img{
	position: relative;
}

.block-custom-img img{
	aspect-ratio: 322/256;
	object-fit: cover;
	border-radius: 5px;
}

.block-absolute_custom {
	position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
}

.block-absolute_custom .text-basic_tag{
	width: max-content;
	padding-top: 2px;
    padding-right: 10px;
    padding-bottom: 2px;
    padding-left: 10px;
    border: 1px solid var(--bricks-color-jxysjz);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
}

.block-absolute_custom .block-category_post-item{
	display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.block-absolute_custom .category_post-item{
	padding-top: 2px;
    padding-right: 10px;
    padding-bottom: 2px;
    padding-left: 10px;
    background-color: var(--bricks-color-ogehgc);
    border-radius: 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
	width: max-content;
}

.block-absolute_custom .block-icon_post-featured{
	display: flex;
    font-weight: 500;
    gap: 5px;
    color: #ed7c35;
}

.heading_post-item{
	font-size: 18px;
    text-transform: capitalize;
    margin: 12px 0;
}

.excerpt_post-item{
	margin-bottom: 12px;
    font-size: 12px;
}

.block-bottom_custom{
	display: flex;
    align-items: center;
    justify-content: space-between;
	padding: 12px 0;
    border-top: 1px solid #e1e7ee;
    margin-top: 12px;
}

.block-bottom_custom .icon_box{
	display: flex;
	gap: 5px;
}

.button__read-next{
	color: var(--bricks-color-wntbod);
    text-transform: capitalize;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s;
}















