/*# Clients Section --------------------------------------------------------------*/
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.logo-item img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    transition: 0.3s;
}

.logo-item img:hover {
    filter: grayscale(0%);
}


/*# Stats Section --------------------------------------------------------------*/
.stat-card {
    background-color: #fff;
    box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 45px 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.stat-inline {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    line-height: 1.1;
}

.stat-label {
    font-size: 1.5rem;
    color: #333;
    margin-top: 15px;
}

.stat-card:hover {
    transition: 0.5s;
    background: var(--primary);
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

.stat-card:hover .stat-number {
    transition: 0.5s;
    color: #FFFFFF !important;
}

.stat-card:hover .stat-label {
    transition: 0.5s;
    color: #FFFFFF !important;
}

@media (max-width: 576px) {
    .stat-card {
        padding: 30px 10px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

/*# Business Section --------------------------------------------------------------*/
.business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 50vh);
    background-size: cover;
    background-position: center;
    transition: background-image 0.3s ease-in-out;
    transition: all 0.5s ease;
}

.business-item {
    position: relative;
    border-right: 0.5px solid rgba(255, 255, 255, 0.4);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
    color: #fff;
    transition: all 0.5s ease;
}

.business-item:nth-child(2n) {
    border-right: none;
}

.business-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.business-item h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.business-item .content {
    position: absolute;
    bottom: 80px;
    left: 80px;
    color: white;
    text-align: left;
    transition: all 0.5s ease;
}

.business-item .overlay {
    position: absolute;
    top: 80px;
    left: 80px;
    color: white;
    text-align: left;
    transition: all 0.5s ease;
}

.business-item:hover {
    background: #fff;
    transition: all 0.5s ease;
}

.business-item h1 {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1.2;
    color: white;
}

.business-item h2 {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1.2;
    display: none;
}

.business-item:hover h1 {
    transition: all 0.5s ease;
    color: #fff;
}

.business-item:hover h2 {
    display: block;
    color: #000;
}

@media (max-width: 768px) {
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 40vw);
        background-size: cover;
    }

    .business-item {
        padding: 15px;
    }

    .business-item .content {
        bottom: 20px;
        left: 20px;
    }

    .business-item h1 {
        font-size: 1.2rem;
    }

    .business-item h2 {
        font-size: 1.2rem;
    }
}

/*# blogs Section --------------------------------------------------------------*/
.blogs-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--light);
}

.blogs-img {
    position: relative;
    flex-shrink: 0;
}

.blogs-title {
    padding: 20px;
    color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blogs-title h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.4em * 3);
}

.blogs-title .date {
    color: var(--tertiary);
    font-size: 0.875rem;
    opacity: 0.8;
}

.blogs-item:hover .blogs-img a {
    opacity: 1;
}

.blogs-item:hover .blogs-title {
    transition: all 0.5s ease;
    background: var(--primary);
    border-color: var(--primary);
}

.blogs-item .blogs-title h4 {
    transition: .5s;
}

.blogs-item .blogs-title .date {
    transition: .5s;
}

.blogs-item:hover .blogs-title h4, .date {
    color: #FFFFFF;
}

.blogs-item:hover .blogs-title .date {
    color: #FFFFFF;
}

.blogs-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.blogs-carousel .owl-nav .owl-prev,
.blogs-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.blogs-carousel .owl-nav .owl-prev:hover,
.blogs-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}

/* services detail Section --------------------------------------------------------------*/

.service-detail h1,
.service-detail h2,
.service-detail h3 {
    color: #1b2a4e;
}

.service-detail .sidebar a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.service-detail img {
    transition: transform 0.4s ease;
}

.service-detail img:hover {
    transform: scale(1.05);
}

.service-box ul li {
    font-size: 16px;
    transition: color 0.3s ease;
}

.service-box ul li:hover {
    color: #355efc;
    cursor: pointer;
}

.service-detail-content {
    position: relative;
    padding-right: 20px;
}

.service-detail-content::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: #000;
    border-radius: 2px;
    opacity: 0.8;
}

.hero {
    background: linear-gradient(90deg, #0d6efd22, #0dcaf022);
    padding: 6rem 0;
}

.ecosystem-card:hover {
    background-color: var(--primary);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.12);
}

.ecosystem-card:hover h5,
.ecosystem-card:hover p,
.ecosystem-card:hover a,
.ecosystem-card:hover small,
.ecosystem-card:hover i {
    color: #fff !important;
}

.ecosystem-card {
    transition: all 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ecosystem-card h5,
.ecosystem-card p,
.ecosystem-card a,
.ecosystem-card small,
.ecosystem-card i {
    transition: all 0.5s ease;
}

.logo-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.div-title {
    font-weight: 700;
}

/*# blogs Section --------------------------------------------------------------*/
.blog-posts article {
    background-color: var(--surface-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.blog-posts .post-img {
    height: 240px; 
    margin: -30px -30px 15px -30px;
    overflow: hidden;
}

.blog-posts .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.blog-posts .post-category {
    font-size: 16px;
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    margin-bottom: 10px;
}

.blog-posts .title {
    font-size: 20px;
    font-weight: 700;
    padding: 0;
    margin: 0 0 20px 0;
}

.blog-posts .title a {
    color: var(--heading-color);
    transition: 0.3s;
}

.blog-posts .title a:hover {
    color: var(--accent-color);
}

.blog-posts .post-author-img {
    width: 50px !important;
    border-radius: 50%;
    margin-right: 15px;
}

.blog-posts .post-author {
    font-weight: 600;
    margin-bottom: 5px;
}

.blog-posts .post-date {
    font-size: 14px;
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    margin-bottom: 0;
}

/*# menu toogle --------------------------------------------------------------*/
.navbar .nav-link {
        color: #fff !important;
        font-weight: 600;
        font-size: 1.1rem;
    }

.navbar .navbar-brand h1 {
    color: #fff;
    transition: color 0.3s;
}

.navbar.scrolled .nav-link {
    color: #000 !important;
}

.navbar.scrolled .navbar-brand h1 {
    color: #355efc !important;
}

@media (max-width: 991.98px) {
    .navbar .nav-link,
    .offcanvas .nav-link,
    .offcanvas .dropdown-item {
        color: #000 !important;
        font-weight: 600; /* nếu bạn muốn giữ weight */
}

/* Nếu brand cần giữ màu khác khi collapsed, chỉnh ở đây */
.offcanvas .navbar-brand h1 {
    color: #355efc !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #FFFFFF !important;
}

@media (hover: hover) and (pointer: fine) {
    .navbar .nav-link:hover,
    .navbar .nav-link:focus,
    .offcanvas .nav-link:hover,
    .offcanvas .nav-link:focus,
    .offcanvas .dropdown-item:hover,
    .offcanvas .dropdown-item:focus {
        color: #355efc !important;
    }
}
}

/* --- 3) Nếu bạn muốn màu nền của offcanvas là trắng (để thấy chữ đen) --- */
.offcanvas {
    background-color: #fff;
}

@media (max-width: 991.98px) {
    .offcanvas .navbar-nav .nav-link,
    .offcanvas .navbar-nav .dropdown-item {
        color: #000 !important;
    }
}

.ellipsis-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700 !important;
    font-size: 20px;
}

/* Content detail*/
.text-justify {
    text-align: justify;
}

.content-tintuc img,
.richtext-image {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}


.richtext-image.full-width {
    width: 100% !important;
    max-width: 100% !important;
}
/* End Content detail*/

/* ================================
   FILTER SECTION
================================ */

.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 6px 14px;
  font-size: 16px;
  font-weight: 500;
  margin: 0 8px;
  border-radius: 20px;
  transition: all 0.3s ease;
  color: #555;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  background: var(--accent-color);
  color: #fff;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 4px;
    padding: 5px 10px;
  }
}

/* ================================
   GALLERY ITEMS
================================ */

.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 280px;
  background: #f3f3f3;
}

.portfolio .portfolio-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;/* fill full box */
  transition: transform 0.4s ease;
}

/* Overlay */
.portfolio .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.55);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Caption */
.portfolio .portfolio-info p {
  font-size: 15px;
  margin: 0 0 10px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

/* Zoom icon */
.portfolio .portfolio-info .preview-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: #fff;
  transition: 0.3s;
}

.portfolio .portfolio-info .preview-link:hover {
  color: var(--accent-color);
}

/* Hover effects */
.portfolio .portfolio-content:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.08);
}
