/*
Theme Name: Hapco
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   **************
.single .large-8 {
    width: 72%; !important /* 8.5 / 12 * 100 
}

.single .large-4 {
    width: 28%; !important /* 3.5 / 12 * 100
} 
/*************************************** Section Page Banner ***************************************/
.global-page-banner {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.global-page-banner .banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.global-page-banner .banner-inner-left {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
}

.global-page-banner .banner-breadcrumbs {
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}

.global-page-banner .banner-breadcrumbs a {
    color: #fff !important;
    font-weight: 400;
}

.global-page-banner .banner-breadcrumbs span {
    color: #fff;
}

.global-page-banner .banner-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0;
}

/*************************************** Author ***************************************/

.author-page .author-position {
    font-size: 18px;
    font-weight: 600;
    color: #0077b6;        /* xanh đậm nhẹ */
    margin-top: 6px;
    text-align: center;
    letter-spacing: 0.3px;
}

/************************************** *Blog Author ***************************************/

.author-page #post-list.row {
    margin-left: -15px !important;
    margin-right: -15px !important;
}
.author-page #post-list .col {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: -20px; /* khoảng cách giữa hàng */
}
.author-page .box.box-blog-post .box-text {
    padding: 10px 14px 14px 14px;
	font-size: 17px;         
    line-height: 1.6;  
}
.author-page .box.box-blog-post {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
	box-shadow: 0px 8px 12px 0px #5151511A !important;
    transition: all 0.25s ease;
}

/* .author-page .box.box-blog-post:hover {
    box-shadow: 0 5px 16px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
 */
.author-page .box.box-blog-post .post-excerpt {
    font-size: 14px;           /* nhỏ hơn text tổng thể một chút */
    line-height: 1.6;
    margin-top: 8px;
    margin-bottom: 10px;
}
/* Meta ngày tháng — nhỏ vừa */
.author-page .box.box-blog-post .post-meta {
	line-height: 1.6;
    font-size: 14px;
    opacity: 0.7;
}

.section-author-area {
    background: #f2f9ff;     
    padding: 40px 0;           
    border-radius: 8px;        
}
.section-author-area .author-posts-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 30px;
    font-weight: 600;
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
}
.blog-archive .post-item .box-text {
    padding: 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.blog-archive .post-item .box-image {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.blog-archive .post-item .col-inner {
     border-radius: 15px;
/*     box-shadow: 0px 0px 30px 0px rgb(160 160 160 / 20%) !important; */
	box-shadow: 0px 8px 12px 0px #5151511A !important;
}

/* .box-blog-post .is-divider,
.is-divider {
    display: none
}
 */
.blog-archive .post-item .post-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px
}

/* .blog-archive .page-title {
    text-transform: none;
    letter-spacing: 0;
    font-size: 30px;
} */

/* .blog-archive .large-12 {
    padding-bottom: 20px
} */

/* #breadcrumbs {
    font-weight: normal;
    font-size: 14px;
    margin-bottom: 5px;
} */

/* .blog-single .entry-title {
    font-weight: 600;
    color: #1e1666;
    font-size: 24px;
} */

.entry-content {
    padding-top: 0;
    padding-bottom: 0;
}

.blog-archive h1.page-title {
    margin: 10px 0 25px 0;
    font-size: 35px !important;
    text-align: center;
}

.post-date-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #777;
}

.post-date-wrap i {
    font-size: 14px;
    line-height: 1;
}

.post-date-wrap .post-date {
    font-weight: 500;
}

/*************************************** Author trong Bài viết ***************************************/
.meta-box {
    display: flex;
    align-items: center;
	gap: 70px;
 	padding: 12px 15px;
 	background: #f7f7f7;
    border-radius: 4px;
/*     margin-top: 30px; */
	margin-bottom: -15px;
}

@media (max-width: 768px) {
    .meta-box {
        display: block;
        gap: 0; /* Không cần gap trong block */
    }
	.meta-author-block {
    display: block;
    gap: 0;
}
}

/* KHỐI TÁC GIẢ */
.meta-author-block {
    display: flex;
    align-items: center;
    gap: 10px; /* Khoảng cách nhỏ giữa avatar và tên */
    font-size: 15px;
}

/* KHỐI NGÀY CẬP NHẬT */
.meta-date-block {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #444;
}

/* TEXT LABEL */
.meta-label {
    font-weight: 600;
}

/* AVATAR */
.meta-author-avatar img {
    border-radius: 50%;
    object-fit: cover;
}

/* TÊN TÁC GIẢ */
.meta-author-name a {
    font-weight: 600;
    font-size: 15px;
    color: #036080; 
    text-decoration: none;
}

.meta-author-name a:hover {
    color: #d42019;
}

.meta-date-block .icon-clock {
    font-size: 14px;
}
.meta-date {
    font-size: 15px;
}

/*************************************** Bài viết liên quan ***************************************/

.bai-viet-lien-quan ul li .box-image img {
    border-radius: 7px;
	height: auto !important;
}
.bai-viet-lien-quan h4 {
	color: #036080 !important;
	font-weight: bold !important;
}
/* .article-inner {
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
} */


/****************************************Shortcode logo slider*******************************************/
.dnw-gallery-slider-logo .mySwiper-logo{
    padding-bottom: 1px;
}
.dnw-gallery-slider-logo .box-logo{
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: block;
    position: relative;
    overflow: hidden;
}
.dnw-gallery-slider-logo .box-logo .box-img{
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}
.dnw-gallery-slider-logo .box-logo .box-img img{
    margin: 0 auto;
    display: block;
    transition: transform .4s
    ease-in-out;
}
.dnw-gallery-slider-logo .box-logo:hover .box-img img {
    transform: scale(1.05);
}
.dnw-gallery-slider-logo .box-logo p{
    text-align: center;
    padding: 8px 15px;
    font-size: 13px;
    margin-bottom: 0;
}

/*************************************** CSS Header Menu ***************************************/

#header-contact li a i {
    color: #036080 !important;
}

.header:not(.transparent) .header-nav-main.nav > li > a:hover {
	 color: #036080 !important;
}

.header:not(.transparent) .header-nav-main.nav > li.active > a {
		 color: #036080 !important;
}

/*************************************** Post Sidebar ***************************************/
/* .post-sidebar {
    padding: 5px !important;
}
 @media (max-width: 1024px) {
	.post-sidebar {
    	padding: 15px !important;
}
} */
.box-newpost-sidebar > .col-inner{
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.box-newpost-sidebar .title-box-newsidebar{
    background: linear-gradient(90deg, #2791ba 0%, #036080 100%);
    color: #fff;
    padding: 10px;
    font-weight: 700;
    font-size: 20px;
}
.box-newpost-sidebar .title-box-newsidebar *{
    margin: 0;
}

.box-newpost-sidebar .row{
   margin: 0 !important;
	 padding: 10px 10px;
}

.box-newpost-sidebar .row .post-item:not(:last-child) .col-inner{
    border-bottom: 1px solid #DDDDDD;
}
.box-newpost-sidebar .row .post-item{
    padding-bottom: 0;
}
.box-newpost-sidebar  .box-image img {
    border-radius: 5px;
}
.box-newpost-sidebar .post-title{
    display: -webkit-box;
    -webkit-line-clamp: 2;    
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    letter-spacing: 0;
}

.box-newpost-sidebar .post-title:hover {
	color: #d42019;
}
.box-newpost-sidebar .post-meta:before {
	 content: '\f073';
   font-family: 'Font Awesome 5 Free';
	margin-right: 5px;
}
.box-newpost-sidebar .post-meta {
		font-size: 12px;
		margin-top: 5px;
		color: #333;
}

/*************************************** DNW Title ***************************************/
.dnw-title{
    font-weight: 700;
    font-size: 30px;
    line-height: 56px;
    background: linear-gradient(90deg, #2791ba 0%, #036080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

/*************************************** CSS Author ***************************************/

.author-box {
    display: flex;
    gap: 30px;
		padding: 30px 0;
}

.author-box .author-avatar {
    text-align: center;
    max-width: 300px;
    border: 2px solid #036080;
    border-radius: 10px;
    padding: 10px;
    background: #dfeaee;
    flex: 1;
}

.author-avatar img {
    width: 100%;
    border-radius: 6px;
}

.author-box .author-name {
    background: #036080;
    color: #fff;
    font-weight: bold;
    padding: 10px;
    margin-top: -5px;
    border-radius: 4px;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.author-box .author-info {
    flex: 1;
}

.author-box .author-desc {
    font-size: 18px;
}

@media (max-width: 1023px){
    .author-box{
        display: block;
        text-align: center;
    }
    .author-box .author-avatar{
        margin: 0 auto 15px;
    }
}

/*************************************** Footer ***************************************/
.custom-footer {
    max-width: 97%;
		margin: 40px auto 0 auto;     
/*     background: linear-gradient(0deg, #036080 20%, #437c92 100%); */
background: #036080;
    border-radius: 30px;     
    padding: 20px 20px ;     
    overflow: hidden;        
}

@media (min-width: 1024px) {
    .custom-footer .row {
        display: flex !important;
        flex-wrap: nowrap !important;
    }

/*     .custom-footer .row > .col {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        box-sizing: border-box !important;
    } */
}


/*************************************** Blog Trang Chủ **************************************
.row.right-posts .col.post-item {
    margin-bottom: -20px !important;   
}

.row.right-posts .col.post-item:last-child {
    margin-bottom: -40px !important;
}
.row.right-posts .box-image img {
    border-radius: 10px;
    overflow: hidden;
}
.row.right-posts .col.post-item .box {
    background: #fff;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.row.right-posts .col.post-item .box .box-text {
    padding: 0 15px !important;
}

.row.right-posts .col.post-item .box .box-image {
    margin-bottom: 6px !important;
}

.row.blog-row > .col {
    padding-left: 8px;
    padding-right: 8px;
}

/*************************************** FAQ Trang Chủ ***************************************/

/*************************************** Section Title Bold ***************************************/
.section-title-bold-center span{
    background: linear-gradient(90deg, #2791ba 0%, #036080 100%);
    border: 0;
    padding: 10px 30px;
    color: #fff;
    position: relative;
    min-height: 52px;
    border-radius: 50px;
}

.section-title span {
    text-transform: none;
}
.section-title b {
    background-color: 	currentColor;
    display: block;
    flex: 1;
    height: 2px;
    opacity: .1;
}
