/* Section Slider Banner */
.home-slider-banner a.button {
  background: var(--cl-linear);
  margin-bottom: 0px;
  margin-right: 0px;
  margin-top: 16px;
  padding: 5px 20px;
}

.home-slider-banner a.button:hover {
  background: var(--cl-linear-hover);
  box-shadow: 0 6px 16px rgba(27, 84, 184, 0.4);
  transform: translateY(-1px);
}

/* Section Lists value */
.home-lists-value .col-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  max-width: 95%;
  margin: 0 auto;
}

.home-lists-value .icon-box {
  padding: 0px 16px;
  position: relative;
}

.home-lists-value .icon-box::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 1px;
  height: 100%;
  background-color: #e5e5e5;
}

.home-lists-value .icon-box:last-child::after {
  content: none;
}

.home-lists-value span.count-up {
  opacity: 1 !important;
}

.home-lists-value .heading-title {
  margin-bottom: 4px;
}

.home-lists-value .text p {
  margin-bottom: 0px;
}

.home-lists-value .icon-box {
  align-items: center;
}

/* Section About us */
.home-about-us .heading-title h2 {
  font-size: 100%;
}

.home-about-us .col-img img {
  border-radius: 50px;
}

.home-about-us .col-content .icon-box {
  position: relative;
  background-color: #f2ddd3;
  padding: 26px 16px 16px;
  margin-top: 30px;
}

.home-about-us .col-content .icon-box .icon-box-img {
  margin: 0;
  position: absolute;
  top: -24px;
  left: 10px;
}

/* Section Thanh vien */
.home-member .lists-content .col-inner,
.home-member .lists-content .row {
  height: 100%;
}

.home-member .lists-content .row .col>.col-inner {
  padding: 30px 20px 16px !important;
}

/* Section Vi sao chon */
.home-why .number {
  margin: 0 auto;
  background: var(--cl-linear);
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

.home-why .row-number {
  border-bottom: 1px solid #ccc;
  margin-bottom: 20px;
}

.home-why .row-number:last-child {
  border-bottom: none;
  margin-bottom: 0px;
}

.home-why .row-number .number p {
  margin-bottom: 0px;
}

.home-why .section-title-container {
  margin-bottom: 6px;
}

.home-why .section-title,
.home-why .section-title span {
  border-bottom: none;
  margin: 0px;
}

.home-why .section-title b {
  display: none;
}

.home-why .section-title-main {
  padding-bottom: 0px;
}

/* Section Services */
.home-services .section-title-container {
  margin-bottom: 10px;
}

.home-services a.button.btn-main {
  margin-top: 0px;
}

.home-services .heading-title h3 {
  font-size: 100%;
}

/* ==========================================
   LEGAL DOCUMENTS CONTAINER
   ========================================== */
.legal-doc-container {
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  font-family: inherit;
}

/* Tabs */
.legal-doc-tabs {
  display: flex;
  flex-wrap: wrap;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
  margin: 0;
}

.legal-doc-tab {
  background: none;
  border: none;
  outline: none;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
}

.legal-doc-tab:hover {
  color: #1b54b8;
  background-color: rgba(27, 84, 184, 0.04);
}

.legal-doc-tab.active {
  color: #ffffff;
  background-color: #1b54b8;
  border-bottom-color: #1b54b8;
  font-weight: 700;
}

/* Search Bar */
.legal-doc-search-bar {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.legal-doc-search-input {
  width: 100%;
  height: 42px !important;
  padding: 0 16px 0 42px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  outline: none !important;
  color: #334155 !important;
  background-color: #f8fafc !important;
  box-shadow: none !important;
  margin: 0 !important;
  transition: all 0.2s ease-in-out !important;
}

.legal-doc-search-input:focus {
  border-color: #1b54b8 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(27, 84, 184, 0.15) !important;
}

.legal-doc-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #1b54b8;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 24px;
  height: 42px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  margin: 0;
}

.legal-doc-search-btn:hover {
  background-color: #15459b;
  box-shadow: 0 4px 12px rgba(27, 84, 184, 0.2);
}

.legal-doc-search-btn svg,
.search-input-wrapper svg {
  display: inline-block;
  vertical-align: middle;
}

/* Document List Wrapper */
.legal-doc-list-wrapper {
  position: relative;
  min-height: 180px;
  background: #ffffff;
}

/* Loader Overlay */
.legal-doc-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(1px);
}

.legal-doc-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #1b54b8;
  border-radius: 50%;
  animation: legalDocSpin 0.7s linear infinite;
}

@keyframes legalDocSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Document Item */
.legal-doc-item {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
  align-items: center;
}

.legal-doc-item:last-child {
  border-bottom: none;
}

.legal-doc-item:hover {
  background-color: #f8fafc;
}

/* Item Left Column */
.legal-doc-item-left {
  display: flex;
  gap: 16px;
  flex: 1;
  padding-right: 24px;
  align-items: flex-start;
}

.legal-doc-badge {
  background-color: #1b54b8;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  height: auto;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  line-height: 1.2;
}

.legal-doc-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-doc-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.legal-doc-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal-doc-title a:hover {
  color: #1b54b8;
}

.legal-doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
}

.legal-doc-action-link {
  color: #1b54b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.legal-doc-action-link:hover {
  color: #0f367a;
  text-decoration: underline;
}

.legal-doc-separator {
  color: #cbd5e1;
}

/* Item Right Column (Metadata) */
.legal-doc-item-right {
  width: 240px;
  flex-shrink: 0;
  padding-left: 16px;
}

.legal-doc-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-row {
  display: flex;
  gap: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #333333;
}

.meta-label {
  font-weight: 500;
}

.meta-value {
  font-weight: 400;
  text-align: left;
}

.meta-value.highlight {
  color: #1b54b8;
  font-weight: 500;
}

/* No Results State */
.legal-doc-no-results {
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* Responsive styles */
@media (max-width: 991px) {
  .legal-doc-item {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .legal-doc-item-left {
    padding-right: 0;
  }

  .legal-doc-item-right {
    width: 100%;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
  }
}

@media (max-width: 600px) {
  .legal-doc-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .legal-doc-tab {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 14px;
  }

  .legal-doc-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .legal-doc-search-btn {
    width: 100%;
  }
}

/* ==========================================
   CATEGORY COLUMNS & GRID LAYOUTS (ACF OPTION)
   ========================================== */
.home-posts .heading-title {
  font-size: 26px;
}

.home-posts .col-left .col-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: auto;
}

.home-posts .col-left .col-inner .left-column {
  display: flex;
  flex-direction: column;
  flex: auto;
  justify-content: space-between;
}

.left-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 24px;
  flex: auto;
}

.left-post-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.left-post-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.left-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.left-post-card:hover .left-post-img {
  transform: scale(1.05);
}

.left-post-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #1b54b8;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.left-post-badge svg,
.right-post-badge svg {
  fill: none;
  stroke: currentColor;
}

.left-post-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #8c9bad;
  margin-bottom: 8px;
}

.left-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.left-post-meta svg,
.right-post-meta svg {
  color: #8c9bad;
}

.left-post-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.left-post-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.left-post-title a:hover {
  color: #1b54b8;
}

.left-post-excerpt {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.left-post-readmore {
  font-size: 13px;
  font-weight: 600;
  color: #1b54b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
  margin-top: 12px;
}

.left-post-readmore:hover {
  color: #15459b;
  gap: 8px;
}

/* RIGHT COLUMN - VERTICAL CARD LIST */
.right-posts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.right-post-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.right-post-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.right-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.right-post-card:hover .right-post-img {
  transform: scale(1.05);
}

.right-post-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #1b54b8;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.right-post-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #8c9bad;
  margin-bottom: 8px;
}

.right-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.right-post-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.right-post-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.right-post-title a:hover {
  color: #1b54b8;
}

/* RESPONSIVE LAYOUT FOR COLUMNS */
@media (max-width: 768px) {
  .left-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-lists-value .col-inner {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
    max-width: 100%;
  }

  .home-lists-value .icon-box {
    flex-direction: column;
  }

  .home-lists-value .icon-box .icon-box-img+.icon-box-text {
    padding-left: 0;
    text-align: center;
  }

  .home-lists-value .icon-box::after {
    content: none;
  }

  .home-why .row-number {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .home-why .section-title-container,
  .home-why .col-inner {
    text-align: center;
  }

  .home-why .section-title {
    justify-content: center;
  }
}