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

/*************** ADD CUSTOM CSS HERE.   ***************/
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
	margin-left: 0!important;
}

.footer-contact-list li i {
  width: 20px;
  text-align: center;
  margin-top: 5px;
}

.footer-contact-list li a {
  color: inherit;
  text-decoration: none;
}

.footer-contact-list li a:hover {
  text-decoration: underline;
}

.row-features {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: stretch;
  padding-top: 20px;
  padding-left: 15px;
  padding-right: 15px;
}

.row-features .col {
  display: flex;
  flex-direction: column;
}

.row-features .col-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.row-features .icon-box,
.row-features .box {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.row-features .box-image img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.row-features .box-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
  width: 100%;
  margin-top: auto;
}

.row-features .box-text-inner {
  width: 100%;
}

.icon-box-shadow {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.column-shadow{
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.icon-box.cs-iconbox-left .icon-box-text {
  display: flex;
  flex-direction: column;
}

.icon-box.cs-iconbox-left .icon-box-text h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.icon-box.cs-iconbox-left .icon-box-text h3 img {
  width: 40px;
  height: auto;
  flex-shrink: 0;
}

.icon-box.cs-iconbox-left .icon-box-text p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Background tròn màu tím cho icon */
.icon-box.item-core .icon-inner {
  background-color: #8B5CF6;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.icon-box.item-core .icon-inner svg {
  width: 100%;
  height: 100%;
}

/* Title wrapper xuống dòng dưới trong page-title-center */
.page-title-center .page-title-inner {
  flex-direction: column !important;
}

.page-title-center .title-wrapper {
  width: 100%;
  text-align: center !important;
  margin-top: 1em;
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-title-center .title-wrapper h1.entry-title {
  text-transform: uppercase;
}

.page-title-center .title-content {
  width: 100%;
  text-align: left !important;
  order: 1;
}

/* Ẩn divider */
.is-divider {
  display: none !important;
}

/* Title và mô tả blog post luôn 2 dòng */
.post-item .post-title,
.post-item .post-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: calc(1.4em * 2);
}

.post-item .from_the_blog_excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  max-height: calc(1.5em * 2);
}