/* ==========================================================================
   C-Trach-Nhiem-Xa-Hoi Widget
   ========================================================================== */

.c-trach-nhiem-xa-hoi__container {
  width: 100%;
  max-width: 100%;
}

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

.c-trach-nhiem-xa-hoi__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-trach-nhiem-xa-hoi__tabs-nav button:focus{
  border: none;
}

.c-trach-nhiem-xa-hoi__tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 0px;
  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: left;
  margin-right: 60px;
}

.c-trach-nhiem-xa-hoi__tab-btn:hover {
  color: #d82221;
}

.c-trach-nhiem-xa-hoi__tab-btn:focus {
  outline: 2px solid #d82221;
  outline-offset: -2px;
}

.c-trach-nhiem-xa-hoi__tab-btn.is-active {
  color: #d82221;
  font-weight: 700;
  border-bottom-color: #d82221;
}

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

.c-trach-nhiem-xa-hoi__tab-panel {
  display: none;
  padding: 60px 0 0;
  animation: cTrachNhiemFadeIn 0.4s ease forwards;
}

.c-trach-nhiem-xa-hoi__tab-panel.is-active {
  display: block;
}

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

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

.c-trach-nhiem-xa-hoi__items {
  display: flex;
  flex-direction: column;
}

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

.c-trach-nhiem-xa-hoi__item {
  width: 100%;
}

/* Item Title */
.c-trach-nhiem-xa-hoi__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-trach-nhiem-xa-hoi__item-body {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

/* Item Content (left side) */
.c-trach-nhiem-xa-hoi__item-content {
  flex: 1;
  font-size: 18px;
  line-height: 24px;
  color: #000000;
  font-weight: 400;
}

.c-trach-nhiem-xa-hoi__item-content p {
  margin: 0 0 12px 0;
  color: #000000;
  font-weight: 400;
}

.c-trach-nhiem-xa-hoi__item-content p:last-child {
  margin-bottom: 0;
}

.c-trach-nhiem-xa-hoi__item-content strong,
.c-trach-nhiem-xa-hoi__item-content b {
  font-weight: 700;
  color: #061a53;
  font-size: 20px;
}

.c-trach-nhiem-xa-hoi__item-content ul,
.c-trach-nhiem-xa-hoi__item-content ol {
  padding-left: 20px;
  margin: 0 0 12px 0;
}

.c-trach-nhiem-xa-hoi__item-content li {
  margin-bottom: 6px;
}

/* Item Image (right side) */
.c-trach-nhiem-xa-hoi__item-image {
  flex: 0 0 360px;
  overflow: hidden;
}

.c-trach-nhiem-xa-hoi__item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.c-trach-nhiem-xa-hoi__item-image img:hover {
  /*transform: scale(1.03);*/
}

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

/* 50 : 50 */
.c-trach-nhiem-xa-hoi__item[data-ratio="50_50"]
.c-trach-nhiem-xa-hoi__item-content,
.c-trach-nhiem-xa-hoi__item[data-ratio="50_50"]
.c-trach-nhiem-xa-hoi__item-image {
  flex: 1 1 50%;
}

/* 40 : 60 */
.c-trach-nhiem-xa-hoi__item[data-ratio="40_60"]
.c-trach-nhiem-xa-hoi__item-content {
  flex: 0 0 40%;
}
.c-trach-nhiem-xa-hoi__item[data-ratio="40_60"]
.c-trach-nhiem-xa-hoi__item-image {
  flex: 0 0 60%;
}

/* 30 : 70 */
.c-trach-nhiem-xa-hoi__item[data-ratio="30_70"]
.c-trach-nhiem-xa-hoi__item-content {
  flex: 0 0 30%;
}
.c-trach-nhiem-xa-hoi__item[data-ratio="30_70"]
.c-trach-nhiem-xa-hoi__item-image {
  flex: 0 0 70%;
}

/* 60 : 40 */
.c-trach-nhiem-xa-hoi__item[data-ratio="60_40"]
.c-trach-nhiem-xa-hoi__item-content {
  flex: 0 0 60%;
}
.c-trach-nhiem-xa-hoi__item[data-ratio="60_40"]
.c-trach-nhiem-xa-hoi__item-image {
  flex: 0 0 40%;
}

/* 70 : 30 */
.c-trach-nhiem-xa-hoi__item[data-ratio="70_30"]
.c-trach-nhiem-xa-hoi__item-content {
  flex: 0 0 70%;
}
.c-trach-nhiem-xa-hoi__item[data-ratio="70_30"]
.c-trach-nhiem-xa-hoi__item-image {
  flex: 0 0 30%;
}

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

@media (max-width: 768px) {
  .c-trach-nhiem-xa-hoi__tab-btn {
    flex: 1 1 auto;
    padding: 10px 16px;
    font-size: 14px;
  }

  .c-trach-nhiem-xa-hoi__tab-panel {
    padding: 24px 0 0;
  }

  .c-trach-nhiem-xa-hoi__item-title {
    font-size: 16px;
  }

  /* Stack content + image vertically on tablet */
  .c-trach-nhiem-xa-hoi__item-body {
    flex-direction: column;
    gap: 16px;
  }

  .c-trach-nhiem-xa-hoi__item-content,
  .c-trach-nhiem-xa-hoi__item-image {
    flex: 1 1 100% !important;
  }

  .c-trach-nhiem-xa-hoi__item-image img {
    height: auto;
  }
}

@media (max-width: 480px) {
  .c-trach-nhiem-xa-hoi__tab-btn {
    padding: 8px 10px;
    font-size: 13px;
  }
}

.c-trach-nhiem-xa-hoi__tab-description-text p {
  margin-bottom: 0;
}

.c-trach-nhiem-xa-hoi__tab-description {
  border-radius: 20px;
}
