/* Consultation landing sidebar: keep the visa badge inside each compact card. */
body.page-template-page-blank .tintucduhoc > .col-inner {
  padding: 14px !important;
  overflow: hidden;
  border-radius: 12px;
}

body.page-template-page-blank .tintucduhoc > .col-inner > p:first-child {
  margin: 0 0 12px !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
}

body.page-template-page-blank .tintucduhoc .home-blog {
  margin: 0 !important;
}

body.page-template-page-blank .tintucduhoc .home-blog .post-item {
  padding: 0 0 8px !important;
}

body.page-template-page-blank .tintucduhoc .home-blog .post-item > .col-inner {
  min-height: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.page-template-page-blank .tintucduhoc .home-blog .box.box-vertical {
  display: grid;
  grid-template-columns: 47% minmax(0, 1fr);
  align-items: stretch;
  min-height: 112px;
}

body.page-template-page-blank .tintucduhoc .home-blog .box-image {
  width: 100% !important;
  min-height: 112px;
  border-radius: 9px 0 0 9px !important;
}

body.page-template-page-blank .tintucduhoc .home-blog .box-image .image-cover {
  height: 100%;
  min-height: 112px;
  padding-top: 0 !important;
}

body.page-template-page-blank .tintucduhoc .home-blog .box-image img {
  object-fit: cover;
}

body.page-template-page-blank .tintucduhoc .home-blog .box-text {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 112px !important;
  padding: 10px 12px !important;
  border: 0 !important;
  background: #fff !important;
}

body.page-template-page-blank .tintucduhoc .home-blog .box-text-inner {
  display: block !important;
  width: 100%;
  min-width: 0;
  height: auto !important;
}

body.page-template-page-blank .tintucduhoc .home-blog .cat-label {
  position: static !important;
  display: block;
  width: 100%;
  min-width: 0 !important;
  max-width: 100%;
  margin: 0 0 8px !important;
  padding: 4px 7px !important;
  overflow: hidden;
  border-radius: 5px !important;
  background: linear-gradient(90deg, #52bd2f, #25863c) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: normal;
  opacity: 1 !important;
}

body.page-template-page-blank .tintucduhoc .home-blog .post-title {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: visible !important;
  color: #213650 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
}

body.page-template-page-blank .tintucduhoc .home-blog .post-title a {
  color: inherit !important;
}

body.page-template-page-blank .tintucduhoc .home-blog .is-divider {
  display: none !important;
}

/* Full-width landing carousels share one card system; sidebar blocks stay compact. */
body.page-template-page-blank .tintucduhoc.large-12 {
  display: block;
}

body.page-template-page-blank .tintucduhoc.large-12 > .col-inner {
  --edu-landing-card-height: 390px;
  padding: clamp(14px, 2vw, 24px) !important;
  overflow: hidden;
  border: 1px solid rgba(216, 224, 234, 0.92);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.98)) !important;
  box-shadow: 0 12px 34px rgba(30, 48, 70, 0.08);
}

body.page-template-page-blank .tintucduhoc.large-12 > .col-inner > :is(p, h2, h3, h4):first-child {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0 0 18px !important;
  padding: 0 16px 12px;
  color: var(--edu-ink) !important;
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-align: center;
  text-transform: none;
}

body.page-template-page-blank .tintucduhoc.large-12 > .col-inner > :is(p, h2, h3, h4):first-child::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: var(--edu-primary);
  content: "";
  transform: translateX(-50%);
}

body.page-template-page-blank .tintucduhoc.large-12 > .col-inner > :is(p, h2, h3, h4):first-child a {
  color: inherit !important;
  text-decoration: none !important;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog {
  margin: 0 -7px !important;
  padding: 2px 0 4px !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog::-webkit-scrollbar {
  display: none;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .post-item {
  height: var(--edu-landing-card-height);
  margin: 0 !important;
  padding: 0 7px 8px !important;
  vertical-align: top;
  scroll-snap-align: start;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .post-item > .col-inner {
  height: 100%;
  min-height: 0 !important;
  overflow: hidden;
  border: 1px solid #dfe6ee !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 7px 20px rgba(30, 48, 70, 0.07) !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease !important;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .box-blog-post {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #fff !important;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .box-image {
  flex: 0 0 auto;
  width: 100% !important;
  height: 172px;
  min-height: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 12px 12px 0 0 !important;
  background: #edf2f6;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog.large-columns-3 .box-image {
  height: 184px;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog.large-columns-4 .box-image {
  height: 156px;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .box-image .image-cover {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding-top: 0 !important;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .box-image img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center !important;
  transition: transform 260ms ease;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .box-text {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  min-width: 0;
  min-height: 0 !important;
  padding: 24px 15px 13px !important;
  border: 0 !important;
  background: #fff !important;
  text-align: left !important;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .box-text-inner {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  flex-wrap: nowrap !important;
  width: 100%;
  min-width: 0;
  height: 100% !important;
  min-height: 0;
  text-align: left !important;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .cat-label {
  position: absolute !important;
  z-index: 2;
  top: -14px !important;
  left: 14px;
  display: block;
  width: auto;
  max-width: calc(100% - 28px);
  min-width: 0 !important;
  margin: 0 !important;
  padding: 10px 11px !important;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #4fbd2d, #2b8d3c) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(33, 115, 57, 0.16) !important;
  font-size: 9px !important;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.015em;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1 !important;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .post-title {
  order: 1;
  display: -webkit-box !important;
  height: auto !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 0 7px !important;
  overflow: hidden !important;
  color: var(--edu-ink) !important;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.45 !important;
  letter-spacing: -0.005em;
  text-align: left !important;
  text-overflow: ellipsis !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2 !important;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .post-title a {
  color: inherit !important;
  text-decoration: none !important;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .post-meta {
  order: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  margin: 0 0 8px !important;
  color: #7a8799 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.4;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .post-meta::before {
  display: inline-block;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin: 0 !important;
  background: currentColor;
  content: "" !important;
  font-family: inherit !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm1 3h-2v6l5 3 1-1.7-4-2.3V7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm1 3h-2v6l5 3 1-1.7-4-2.3V7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .from_the_blog_excerpt {
  order: 3;
  display: -webkit-box;
  max-height: 63px;
  margin: 0 !important;
  overflow: hidden;
  color: #667489 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  letter-spacing: normal !important;
  text-align: left !important;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .button.is-link {
  order: 4;
  align-self: flex-start;
  min-height: 24px;
  margin: auto 0 0 !important;
  padding: 2px 0 !important;
  color: #2f8745 !important;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .is-divider {
  display: none !important;
}

body.page-template-page-blank .tintucduhoc.large-12 .home-blog .flickity-prev-next-button {
  width: 38px;
  height: 38px;
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  color: #34445c;
  box-shadow: 0 7px 18px rgba(30, 48, 70, 0.13);
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  body.page-template-page-blank .tintucduhoc.large-12 .home-blog .post-item > .col-inner:hover {
    border-color: rgba(201, 8, 5, 0.28) !important;
    box-shadow: 0 13px 28px rgba(30, 48, 70, 0.12) !important;
    transform: translateY(-3px);
  }

  body.page-template-page-blank .tintucduhoc.large-12 .home-blog .post-item > .col-inner:hover .box-image img {
    transform: scale(1.035);
  }
}

@media (max-width: 849px) {
  body.page-template-page-blank .tintucduhoc.large-12 {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  body.page-template-page-blank .tintucduhoc.large-12 > .col-inner {
    --edu-landing-card-height: auto;
    padding: 12px !important;
    border-radius: 14px;
  }

  body.page-template-page-blank .tintucduhoc.large-12 > .col-inner > :is(p, h2, h3, h4):first-child {
    min-height: 32px;
    margin-bottom: 14px !important;
    padding-right: 8px;
    padding-bottom: 10px;
    padding-left: 8px;
    font-size: 17px !important;
  }

  body.page-template-page-blank .tintucduhoc.large-12 .home-blog {
    margin-right: -5px !important;
    margin-left: -5px !important;
  }

  body.page-template-page-blank .tintucduhoc.large-12 .home-blog .post-item {
    height: auto;
    min-height: 390px;
    padding-right: 5px !important;
    padding-left: 5px !important;
  }

  body.page-template-page-blank .tintucduhoc.large-12 .home-blog .box-blog-post {
    min-height: 390px;
  }

  body.page-template-page-blank .tintucduhoc.large-12 .home-blog .box-image,
  body.page-template-page-blank .tintucduhoc.large-12 .home-blog.large-columns-3 .box-image,
  body.page-template-page-blank .tintucduhoc.large-12 .home-blog.large-columns-4 .box-image {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  body.page-template-page-blank .tintucduhoc.large-12 .home-blog .box-text {
    padding: 24px 14px 13px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-template-page-blank .tintucduhoc.large-12 .home-blog .post-item > .col-inner,
  body.page-template-page-blank .tintucduhoc.large-12 .home-blog .box-image img {
    transition: none !important;
  }
}

/* Full-width UX Builder landing pages need a contained transition into the hero. */
body.page-template-page-blank #content > .edu-rankmath-breadcrumb {
  box-sizing: border-box;
  width: min(var(--edu-layout-max), calc(100% - (var(--edu-layout-gutter) * 2)));
  margin: 12px auto 14px;
  padding: 9px 14px 9px 16px;
  border: 1px solid #dde6ef;
  border-left: 3px solid var(--edu-primary);
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, #f7faff 100%);
  box-shadow: 0 7px 20px rgba(30, 48, 70, 0.07);
}

body.page-template-page-blank #content > .edu-rankmath-breadcrumb .rank-math-breadcrumb {
  min-width: max-content;
}

@media (max-width: 849px) {
  body.page-template-page-blank #content > .edu-rankmath-breadcrumb {
    width: calc(100% - 24px);
    margin: 8px auto 10px;
    padding: 8px 10px 8px 12px;
    border-radius: 8px;
    font-size: 11px;
  }
}
