:root {
  --white: #fff;
  --black: #000;
  --gray: #f5f5f5;
}
/* 
* Header
*/
.header-nav .has-dropdown.header-language-dropdown > a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: unset;
  gap: 10px;
  line-height: 40px !important;
}
.header-nav .has-dropdown.header-language-dropdown .nav-dropdown {
  min-width: 150px !important;
}
i.icon-image img {
  margin-top: -5px;
}
/* i.image-icon img {
  margin-top: 3px;
} */

#footer > .section {
  padding-bottom: 20px !important;
}
/* .absolute-footer .footer-primary {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}
.absolute-footer ul {
  border-bottom: unset !important;
} */

.home-news-row .post-item .col-inner{
  border: 1px solid #e0e0e0;
  border-radius: 10px;
}

.home-news-row .post-item .col-inner .box-image{
  border-radius: 10px;
}

.home-news-row .post-item .col-inner .box-text {
  padding: 20px;
}

.home-news-row .post-item .col-inner .is-divider {
  display: none;
}
/* Homepage */
.service-item .box-image {
  border-radius: 10px;
}
.home-projects .portfolio-box .box-image {
  border-radius: 10px;
}


/* Tùy chỉnh accordion giống theo mẫu */
.reason-accordior {
  margin-bottom: 0;
}


.reason-accordior .accordion-item {
  border: none !important;
  margin-bottom: 0;
}


.reason-accordior .accordion-item a.accordion-title {
  font-size: 24px;
  color: var(--fs-color-secondary);
  font-weight: 600;
  padding: 20px 40px 20px 0 !important;
  border: none;
  border-bottom: 1px solid #e0e0e0 !important;
  position: relative !important;
  background-color: transparent !important;
}

.reason-accordior .accordion-inner {
  padding: 15px 0 !important;
  border-bottom: 1px solid #e0e0e0 !important;
  color: #666666;
}

.reason-accordior .accordion-inner {
  border-top: none !important;
}

.reason-accordior .accordion-item a.accordion-title:hover {
  background-color: transparent !important;
  color: #a6c63b !important;
}
.reason-accordior.accordion .toggle {
  right: 0 !important;
  left: unset !important;
}

.reason-accordior .accordion-item.active a.accordion-title {
  background-color: transparent !important;
  color: #a6c63b !important;
}

.reason-accordior .accordion-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}


.reason-accordior .accordion-inner p {
  margin-bottom: 0;
  color: #666666;
}

.reason-accordior,
.reason-accordior .accordion-item:last-child {
  border-bottom: none !important;
}

.technologies .banner,
.technologies .banner-inner,
.technologies .banner-bg {
  border-radius: 20px;
}

.custom-field input,
.custom-field textarea {
  background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid silver !important;
    box-shadow: none !important;
    border-radius: 0px !important;
}
.rounded-md,
.rounded-md div {
  border-radius: 10px;
}
.gform-footer input {
  background-color: transparent !important;
  color: #000 !important;
  border: 1px solid #8AC52B !important;
  border-radius: 20px !important;
}
.gform-footer input:hover {
  background-color: #8AC52B !important;
  color:white !important;
}
.custom-field input,
.custom-field textarea {
  background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid silver !important;
    box-shadow: none !important;
    border-radius: 0px !important;
}
.rounded-md,
.rounded-md div {
  border-radius: 10px;
}
.gform-footer input {
  background-color: transparent !important;
  color: #000 !important;
  border: 1px solid #8AC52B !important;
  border-radius: 20px !important;
}
.gform-footer input:hover {
  background-color: #8AC52B !important;
  color:white !important;
}


@media screen and (max-width: 767px) {
  .reason-accordior .accordion-item a.accordion-title {
    font-size: 18px;
  }
}

.portfolio-archive .portfolio-box .box-image {
  border-radius: 10px;
}
.portfolio-archive .portfolio-box .portfolio-box-title {
  font-size: 20px !important;
}
.page-title-inner {
  min-height: 200px !important;
}
.page-title-inner .entry-title {
  font-size: 2em !important;
}

.single-featured_item .portfolio-top {
  padding-top: 50px;
}
.archive #post-list .post-item .col-inner {
  height: 100%;
  border: 1px solid #dddd;
  border-radius: 10px;
}
.archive #post-list .post-item .col-inner .box-image {
  border-radius: 10px;
}
.archive #post-list .post-item .col-inner .is-divider {
  display: none;
}
.archive-page-header .page-title {
  font-size: 2em !important;
}

/* CSS tùy chỉnh cho widget Bài viết mới */
.widget_recent_entries {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 22px 25px;
  border-left: 3px solid #a6c63b;
  transition: all 0.3s ease;
}
.widget_recent_entries .is-divider {
  display: none;
}
.widget_recent_entries:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.widget_recent_entries h3.widget-title,
.widget_recent_entries .widget-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid #f2f2f2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.widget_recent_entries h3.widget-title:after,
.widget_recent_entries .widget-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 50px;
  height: 2px;
  background-color: #a6c63b;
}

.widget_recent_entries ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_recent_entries ul li {
  position: relative;
  padding: 8px 0 8px 20px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #f0f0f0;
  transition: all 0.2s ease;
}

.widget_recent_entries ul li:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.widget_recent_entries ul li:before {
  content: "›";
  position: absolute;
  left: 0;
  top: 8px;
  color: #a6c63b;
  font-size: 18px;
  font-weight: bold;
}

.widget_recent_entries ul li a {
  color: #666666;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

.widget_recent_entries ul li a:hover {
  color: #a6c63b;
  padding-left: 3px;
}

.widget_recent_entries .post-date {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 3px;
}


@media (max-width: 767px) {
  .widget_recent_entries {
      padding: 18px 20px;
  }
  
  .widget_recent_entries h3.widget-title,
  .widget_recent_entries .widget-title {
      font-size: 16px;
  }
  
  .widget_recent_entries ul li a {
      font-size: 14px;
  }
}

.single-post .entry-header-text {
  padding-left: 0 !important;
}
.single-post .entry-category {
  margin-bottom: 20px;
  text-align: left;
}
.single-post .entry-category a {
  background: var(--fs-color-primary);
  padding: 5px 20px;
  border-radius: 99px;
  color: #fff;
  font-size: 16px;
}
.single-post  .entry-title {
  text-align: left;
  font-size: 2.5rem;
}
.single-post  .entry-divider.is-divider {
  margin: 0 !important;
  background-color: var(--fs-color-primary);
  height: 4px;
  max-width: 100px;
}


.related-posts-title h4 {
	font-size: 24px;
}
.related-posts__main .post-item .col-inner {
	border-radius: 12px;
}
.related-posts__main .post-item .col-inner .box-image {
	border-radius: 12px;
}
.related-posts__main .post-item .col-inner .box-text {
	padding-bottom: 0 !important;
}
.related-posts__main .post-item .col-inner .box-text .from_the_blog_excerpt  {
	margin-bottom: 0 !important;
}
.related-posts__loop .post-item .col-inner {
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}
.related-posts__loop .post-item .col-inner .box-text{
  padding: 20px !important;
}

.related-posts__loop .post-item .col-inner .box-text .is-divider{
  display: none !important;
}
.related-posts__loop .post-item .col-inner .box-text .post-title{
  font-size: 1.2rem;
}

.post-tags-section {
	margin: 20px 0;
	padding: 20px;
	border: 1px solid #ddd;
}
.tags-title {
	font-size: 20px;
	margin-bottom: 15px;
	color: #333;
	font-weight: 500;
}
.tags-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.tag-link {
	display: inline-block;
	padding: 3px 16px;
	background-color: #f8f7ff;
	border-radius: 25px;
	color: #333;
	text-decoration: none;
	font-size: 16px;
	transition: all 0.3s ease;
}
.tag-link:hover {
	background-color: #f0f0ff;
	transform: translateY(-2px);
}

.social-share-container {
	display: flex;
	align-items: center;
	gap: 15px;
	margin: 20px 0;
}
.share-text {
	font-size: 15px;
	font-weight: 500;
	color: #333;
}
.social-share-buttons {
	display: flex;
	gap: 10px;
}
.social-share-buttons a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	transition: transform 0.3s, opacity 0.3s;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.social-share-buttons a:hover {
	transform: translateY(-2px);
	opacity: 0.8;
}
.social-share-buttons svg {
	width: 20px;
	height: 20px;
}
.share-zalo {
	border: 1px solid #0068ff !important;
}
.zalo-text {
	font-family: Arial, sans-serif;
	font-size: 14px;
	font-weight: bold;
	color: #0068ff;
}

.process-item {
  width: 100%;
  margin-bottom: 40px;
  position: relative;
  padding: 25px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
  align-items: center;
  justify-content: flex-start;
}

.item-number {
  font-size: 42px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.item-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
}

.process-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(93, 194, 100, 0.15);
  border-left: 4px solid var(--primary-color);
}



/* Desktop lớn hơn 1300px */
@media (min-width: 1301px) {
  .readmore-container .text-justify {
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
  }
  .readmore-container .readmore-toggle {
    display: none;
  }
}

/* Màn hình từ 850px đến 1250px */
@media (min-width: 850px) and (max-width: 1250px) {
  body {
    font-size: 12px;
  }
}

/* Màn hình dưới 1024px */
@media (max-width: 1024px) {
  .custom-column-a {
    width: 100% !important;
    display: block !important;
  }
}

/* Thiết bị di động (dưới 480px) */
@media (max-width: 480px) {
  .process-items-number {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 15px;
  }

  .process-item {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    padding: 20px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    height: 130px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .item-number {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 8px;
  }

  .item-title {
    font-size: 1em;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    padding-left: 0;
    padding-right: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.custom-heading h3:hover {
  color: #8AC52B !important;
}



.banner-card-rounded-md { 
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0; /* Quan trọng: cho phép flex item co lại nhỏ hơn content */
}

.banner-card-rounded-md .text-justify {
  width: 100%;
  text-align: justify;
  box-sizing: border-box;
  overflow: hidden;
  word-wrap: break-word;
  white-space: normal;
  display: block;
  min-width: 0; /* Quan trọng: cho phép text co lại */
  flex: 1; /* Cho phép text co giãn */
}

.banner-card-rounded-md .banner-content {
  position: relative;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  word-wrap: break-word;
  white-space: normal;
  display: flex;
  flex-direction: column;
  min-width: 0; /* Quan trọng: cho phép content co lại */
  flex: 1; /* Cho phép content co giãn */
}

.banner-card-rounded-md img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 100%;
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
  .banner-card-rounded-md .banner-content {
    padding: 15px;
  }
  .banner-card-rounded-md .text-justify {
    font-size: 0.95em;
  }
}

@media screen and (max-width: 992px) {
  .banner-card-rounded-md .banner-content {
    padding: 12px;
  }
  .banner-card-rounded-md .text-justify {
    font-size: 0.9em;
  }
}

@media screen and (max-width: 768px) {
  .banner-card-rounded-md .banner-content {
    padding: 10px;
  }
  .banner-card-rounded-md .text-justify {
    font-size: 0.85em;
  }
}

@media screen and (max-width: 576px) {
  .banner-card-rounded-md .banner-content {
    padding: 8px;
  }
  .banner-card-rounded-md .text-justify {
    font-size: 0.8em;
  }
}

@media screen and (max-width: 480px) {
  .banner-card-rounded-md .banner-content {
    padding: 6px;
  }
  .banner-card-rounded-md .text-justify {
    font-size: 0.75em;
  }
}


@media (min-width : 850px)and (max-width: 1024px) {
  .custom-column {
    width: 100% !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    font-size: 20px;/* Temporary for debugging */
  background :#0068ff ;
  }
}
@media (max-width: 700px) {
  .portfolio__under-three-post{
    flex-direction: column;
  }
  .portfolio__under-three-post .model-item{
    width: 100% !important;
  }
}
