/* ==========================================================================
   C-Moi-Truong-Lam-Viec Widget
   ========================================================================== */

.c-moi-truong-lam-viec__container {
  width: 100%;
  max-width: 100%;
}

/* ==========================================================================
   Tab Navigation Bar
   ========================================================================== */

.c-moi-truong-lam-viec__tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #eeeeee;
  position: relative;
}

.c-moi-truong-lam-viec__tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 28px 12px 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  color: #8e8e8e;
  transition:
    color 0.3s ease,
    font-weight 0.3s ease,
    border-bottom-color 0.3s ease;
  outline: none;
  border-radius: 0;
  margin-bottom: -1px;
  white-space: nowrap;
  text-align: center;
}

.c-moi-truong-lam-viec__tab-btn:hover {
  color: #d82221;
}

.c-moi-truong-lam-viec__tab-btn:focus {
  outline: 2px solid #d82221;
  outline-offset: -2px;
}

.c-moi-truong-lam-viec__tab-btn.is-active {
  color: #d82221;
  font-weight: 700;
  border-bottom-color: #d82221;
}

/* ==========================================================================
   Tab Panel
   ========================================================================== */

.c-moi-truong-lam-viec__tab-panel {
  display: none;
  padding: 90px 0 0;
  animation: cTrachNhiemFadeIn 0.4s ease forwards;
}

.c-moi-truong-lam-viec__tab-panel.is-active {
  display: block;
}

@keyframes cTrachNhiemFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Items
   ========================================================================== */

.c-moi-truong-lam-viec__items {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Individual Item
   ========================================================================== */

.c-moi-truong-lam-viec__item {
  width: 100%;
}

/* Item Title */
.c-moi-truong-lam-viec__item-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 24px;
  color: #d82221;
  margin: 0 0 20px 0;
}

/* Item Body: content (left) + image (right), stretch to match height */
.c-moi-truong-lam-viec__item-body {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

/* Item Content (left side) */
.c-moi-truong-lam-viec__item-content {
  flex: 1;
  font-size: 15px;
  line-height: 1.75;
  color: #252525;
  font-weight: 400 !important;
}

.c-moi-truong-lam-viec__item-content p {
  margin: 0 0 12px 0;
  color: #252525;
  font-weight: 400 !important;
}

.c-moi-truong-lam-viec__item-content p:last-child {
  margin-bottom: 0;
}

.c-moi-truong-lam-viec__item-content strong,
.c-moi-truong-lam-viec__item-content b {
  font-weight: 700;
  color: #061a53;
  font-size: 20px;
}

.c-moi-truong-lam-viec__item-content ul,
.c-moi-truong-lam-viec__item-content ol {
  padding-left: 20px;
  margin: 0 0 12px 0;
}

.c-moi-truong-lam-viec__item-content li {
  margin-bottom: 6px;
}

/* Item Image (right side) */
.c-moi-truong-lam-viec__item-image {
  flex: 0 0 300px;
  overflow: hidden;
  max-width: 520px;
}

.c-moi-truong-lam-viec__item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

/* .c-moi-truong-lam-viec__item-image img:hover {
  transform: scale(1.03);
} */

/* ==========================================================================
   Ratio Variants (set via data-ratio + CSS custom props)
   ========================================================================== */

/* 50 : 50 */
.c-moi-truong-lam-viec__item[data-ratio="50_50"]
  .c-moi-truong-lam-viec__item-content,
.c-moi-truong-lam-viec__item[data-ratio="50_50"]
  .c-moi-truong-lam-viec__item-image {
  flex: 1 1 50%;
}

/* 40 : 60 */
.c-moi-truong-lam-viec__item[data-ratio="40_60"]
  .c-moi-truong-lam-viec__item-content {
  flex: 0 0 40%;
}
.c-moi-truong-lam-viec__item[data-ratio="40_60"]
  .c-moi-truong-lam-viec__item-image {
  flex: 0 0 60%;
}

/* 30 : 70 */
.c-moi-truong-lam-viec__item[data-ratio="30_70"]
  .c-moi-truong-lam-viec__item-content {
  flex: 0 0 30%;
}
.c-moi-truong-lam-viec__item[data-ratio="30_70"]
  .c-moi-truong-lam-viec__item-image {
  flex: 0 0 70%;
}

/* 60 : 40 */
.c-moi-truong-lam-viec__item[data-ratio="60_40"]
  .c-moi-truong-lam-viec__item-content {
  flex: 0 0 60%;
}
.c-moi-truong-lam-viec__item[data-ratio="60_40"]
  .c-moi-truong-lam-viec__item-image {
  flex: 0 0 40%;
}

/* 70 : 30 */
.c-moi-truong-lam-viec__item[data-ratio="70_30"]
  .c-moi-truong-lam-viec__item-content {
  flex: 0 0 70%;
}
.c-moi-truong-lam-viec__item[data-ratio="70_30"]
  .c-moi-truong-lam-viec__item-image {
  flex: 0 0 30%;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .c-moi-truong-lam-viec__tab-btn {
    flex: 1 1 auto;
    padding: 10px 16px;
    font-size: 20px;
  }

  .c-moi-truong-lam-viec__tab-panel {
    padding: 24px 0 0;
  }

  .c-moi-truong-lam-viec__item-title {
    font-size: 16px;
  }

  /* Stack content + image vertically on tablet */
  .c-moi-truong-lam-viec__item-body {
    flex-direction: column;
    gap: 16px;
  }

  .c-moi-truong-lam-viec__item-content,
  .c-moi-truong-lam-viec__item-image {
    flex: 0 0 auto !important;
  }

  .item-t2__card .c-moi-truong-lam-viec__item-content,
  .item-t2__card .c-moi-truong-lam-viec__item-image {
    flex: 0 0 160px !important;
  }

  .c-moi-truong-lam-viec__item-image img {
    height: auto;
  }
}

@media (max-width: 480px) {
  .c-moi-truong-lam-viec__tab-btn {
    padding: 8px 10px;
    font-size: 20px;
  }
}

.c-moi-truong-lam-viec__tab-description-text p {
  margin-bottom: 0;
}

.c-moi-truong-lam-viec__tab-description {
  border-radius: 20px;
}

/* ==========================================================================
   Template 2 — Zigzag Icon Layout
   ========================================================================== */

.c-moi-truong-lam-viec__items-t2 {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Individual item wrapper */
.item-t2 {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.item-t2--left {
  justify-content: flex-start;
  padding-right: 60px;
  margin-top: -40px;
}

.item-t2--left:first-child {
  margin-top: 0;
}

.item-t2--right {
  justify-content: flex-end;
  padding-left: 60px;
  margin-top: -40px;
}

/* Connector line between items */
.item-t2__line {
  position: absolute;
  width: 40px;
  border-top: 2px dashed #d82221;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
}

.item-t2--left .item-t2__line {
  right: calc(50% - 20px + 60px);
  left: auto;
  transform: none;
}

.item-t2--right .item-t2__line {
  left: calc(50% - 20px);
  transform: none;
}

/* Card — contains content + icon */
.item-t2__card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #ffffff;
  border-radius: 16px;
  /* padding: 24px; */
  /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); */
  width: 100%;
  max-width: 680px;
}

/* Content block */
.item-t2__content {
  flex: 1;
  min-width: 0;
}

.item-t2__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #061a53;
  margin: 0 0 12px 0;
}

.item-t2__text {
  font-size: 15px;
  line-height: 1.75;
  color: #555555;
}

.item-t2__text p {
  margin: 0 0 8px 0;
  font-weight: 400 !important;
}

.item-t2__text p:last-child {
  margin-bottom: 0;
}

.item-t2__text strong,
.item-t2__text b {
  font-weight: 700;
  color: #061a53;
}

.item-t2__text ul,
.item-t2__text ol {
  padding-left: 20px;
  margin: 0 0 8px 0;
}

.item-t2__text li {
  margin-bottom: 4px;
}

/* Icon block — number circle */
.item-t2__icon {
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-t2__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  background-color: #fdf2f2;
  color: #d82221;
  line-height: 1;
  text-align: center;
}

/* Responsive — mobile: stack vertically, center everything */
@media (max-width: 768px) {
  .item-t2--left,
  .item-t2--right {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0 !important;
  }

  .item-t2__card {
    max-width: 100%;
    /* flex-direction: column; */
    text-align: left;
    padding: 20px 16px;
    gap: 16px;
  }

  .item-t2__content{
    flex-shrink: 0;
  }

  .item-t2__icon {
    order: -1;
    flex: 0 0 auto;
  }

  .item-t2__title {
    font-size: 18px;
  }

  .item-t2__line {
    display: none;
  }
}

@media (max-width: 480px) {
  .item-t2__card {
    padding: 16px 12px;
  }

  .item-t2__title {
    font-size: 16px;
  }
}
