/* Trang chủ — bố cục từ website-tach/index.html. */
.company-home {
    display: flow-root;
    width: 100%;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.68;
}

.company-home .section {
    float: none;
    padding: 56px 0;
    border-bottom: 1px solid var(--rule);
}

.company-home .section:last-child {
    border-bottom: 0;
}

.company-home p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.company-home .ct > * + * {
    margin-top: 14px;
}

.company-home .ct p {
    text-align: justify;
    text-justify: inter-word;
    color: var(--ink-2);
    font-size: 16px;
}

.company-home h1,
.company-home h2,
.company-home h3 {
    margin: 0;
    font-family: var(--font-heading);
    text-wrap: balance;
}

.company-home h1 {
    color: var(--teal-900);
    font-size: clamp(32px, 4.4vw, 50px);
    font-weight: 800;
}

.company-home h3 {
    font-size: 17px;
    font-weight: 700;
}

.company-home a {
    color: var(--green-600);
    text-decoration: none;
}

.company-home a:focus-visible,
.company-home button:focus-visible {
    outline: 2px solid var(--green-500);
    outline-offset: 4px;
}

.company-home img {
    max-width: 100%;
    height: auto;
}

.company-home .sub-title {
    color: var(--green-600);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.6;
    text-transform: uppercase;
}

.home-partnership .sub-title {
    color: var(--ink-2);
}

.company-home .home-section-heading {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 30px;
}

/* Giới thiệu */
.company-home .home-intro {
    padding: 0;
    background: radial-gradient(80% 120% at 100% 0%, var(--leaf-200), transparent 60%), var(--surface);
}

.home-intro .noidung {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 52px 0 58px;
}

.home-intro .nd {
    min-width: 0;
}

.home-intro-content > .sub-title {
    margin-bottom: 14px;
}

.company-home .home-intro-content .ct > h2:first-child {
    color: var(--teal-900);
    font-size: clamp(32px, 4.4vw, 50px);
    font-weight: 800;
}

.home-intro-content .ct > p {
    max-width: 52ch;
    color: var(--ink-2);
    font-size: 17px;
}

.home-intro-content .ct h1 + p,
.home-intro-content .ct h2 + p {
    margin-top: 20px;
}

/* Liên kết giới thiệu — hai nút như .hero-copy .btnrow trong mẫu. */
.company-home .home-intro-content ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.company-home .home-intro-content ul li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.company-home .home-intro-content ul li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border: 1.5px solid var(--green-500);
    border-radius: 4px;
    background: var(--green-500);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s;
}

.company-home .home-intro-content ul li a:hover {
    transform: translateY(-3px);
    border-color: var(--green-600);
    background: var(--green-600);
}

.company-home .home-intro-content ul li:nth-child(2) a {
    border-color: var(--teal-700);
    background: transparent;
    color: var(--teal-700);
}

.company-home .home-intro-content ul li:nth-child(2) a:hover {
    background: var(--teal-700);
    color: #fff;
}

.home-intro-images {
    position: relative;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: 12px;
    box-shadow: var(--shadow-lift);
    background: var(--leaf-200);
}

.home-intro-image {
    position: relative;
    margin: 0;
    aspect-ratio: 5 / 4;
}

/* Giữ một khung ảnh trước khi Slick chạy, tránh ba ảnh xếp dọc làm nhảy bố cục. */
.home-intro-images:not(.slick-initialized) > .home-intro-image ~ .home-intro-image {
    display: none;
}

.home-intro-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-intro-image figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 5px 10px;
    border-radius: 16px;
    background: rgba(4, 53, 44, .72);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    backdrop-filter: blur(3px);
}

.home-intro-images.slick-initialized figcaption {
    bottom: 42px;
}

.company-home .home-intro-images .slick-dots {
    position: absolute;
    right: 48px;
    bottom: 9px;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.company-home .home-intro-images .slick-dots li {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
}

.company-home .home-intro-images .slick-dots button,
.company-home .home-intro-images .home-slide-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(4, 53, 44, .65);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.company-home .home-intro-images .slick-dots button {
    font-size: 0;
}

.home-intro-images .slick-dots button::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .5);
    transition: width .2s, background .2s;
}

.home-intro-images .slick-dots .slick-active button::before {
    width: 20px;
    background: #fff;
}

.home-intro-images .home-slide-toggle {
    position: absolute;
    right: 12px;
    bottom: 9px;
}

.company-home .home-intro-images .home-slide-toggle[hidden] {
    display: none;
}

.home-intro-images .slick-list {
    margin: 0;
}

.home-intro-images .slick-slide > div {
    line-height: 0;
}

.home-intro-images .slick-slide .home-intro-image {
    display: block !important;
    line-height: 1.5;
}

/* Số liệu */
.home-stats-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--rule);
    box-shadow: var(--shadow);
}

.home-stat {
    padding: 22px 18px;
    background: var(--surface);
    transition: background .25s;
}

.home-stat:hover {
    background: var(--leaf-100);
}

.home-stat .number {
    color: var(--teal-700);
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.home-stat .label {
    margin-top: 7px;
    color: var(--muted);
    font-family: var(--font-heading);
    font-size: 14px;
    line-height: 1.4;
}

.home-stats .ct {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

/* Năng lực */
.home-capabilities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 16px;
}

.company-home .home-capability {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-2);
    box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .25s, transform .25s;
}

.home-capability h3 {
    color: var(--teal-700);
}

.home-capability .ct {
    flex: 1;
    font-size: 15px;
}

.home-capability .go {
    color: var(--green-600);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
}

.company-home a.home-capability:hover {
    transform: translateY(-3px);
    border-color: var(--leaf-400);
    box-shadow: var(--shadow-lift);
}

.home-capabilities > .wrap > .home-link {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
}

.home-capabilities > .wrap > .home-link:hover {
    text-decoration: underline;
}

/* Nhóm điều trị */
.company-home .home-treatment {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--teal-900);
}

.home-treatment-background {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.home-treatment-background .background-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-treatment::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(4, 53, 44, .72), rgba(4, 53, 44, .86)), linear-gradient(105deg, rgba(1, 111, 90, .5), transparent 62%);
}

.company-home .home-treatment h2 {
    color: #fff;
}

.company-home .home-treatment .sub-title {
    color: var(--leaf-400);
}

.company-home .home-taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.company-home .home-taxonomy-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.company-home .home-taxonomy-list a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid var(--rule);
    border-radius: 20px;
    background: var(--surface);
    color: var(--ink-2);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: border-color .2s, color .2s, background .2s , transform .2s;
}

.company-home .home-taxonomy-list a:hover {
    transform: translateY(-3px);
}

.company-home .home-taxonomy-list .home-term-flag {
    display: block;
    flex: none;
    width: 21px;
    height: 14px;
    object-fit: cover;
    border: 1px solid rgba(15, 26, 22, .14);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(1, 111, 90, .12);
}

.company-home .home-taxonomy-list a:hover {
    border-color: var(--leaf-400);
    color: var(--teal-700);
}

.company-home .home-treatment .home-taxonomy-list a {
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    backdrop-filter: blur(3px);
}

.company-home .home-treatment .home-taxonomy-list a:hover {
    border-color: var(--leaf-400);
    background: rgba(255, 255, 255, .16);
    color: var(--leaf-400);
}

/* Xuất xứ */
.home-origin .noidung {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    align-items: center;
}

.home-origin .nd {
    min-width: 0;
}

.home-origin-content .ct {
    margin-bottom: 20px;
}

.company-home .home-origin .home-taxonomy-list a {
    padding: 6px 12px;
    border-color: var(--leaf-400);
    border-radius: 4px;
    background: var(--leaf-200);
    color: var(--teal-700);
    font-weight: 600;
}

.home-origin-image {
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.home-origin-image figure,
.home-origin-image p {
    margin: 0;
}

.home-origin-image img,
.home-origin-image .wp-caption {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.home-origin-image figcaption,
.company-home .home-origin-image .wp-caption-text {
    margin: 0;
    padding: 9px 12px;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-family: var(--font-heading);
    font-size: 12px;
    text-align: center;
}

/* Hợp tác */
.home-partnership-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    overflow: hidden;
    padding: 40px 44px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--leaf-200);
}

.home-partnership-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--green-500);
}

.home-partnership-panel::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--leaf-400), transparent 70%);
    opacity: .4;
    pointer-events: none;
}

.home-partnership-panel .home-section-heading {
    gap: 15px;
    margin: 0;
}

.home-partnership-panel .home-section-heading::before {
    display: none;
}

.company-home .home-partnership h2 {
    color: var(--teal-900);
    text-wrap: nowrap;
}

.home-partnership-panel .ct {
    position: relative;
    max-width: 750px;
}

.company-home .home-partnership .ct > p:last-child > a:only-child {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--green-500);
    font-size: 15px;
    line-height: 1.3;
}

.company-home .home-partnership .ct > p:last-child > a:only-child:hover {
    transform: translateY(-3px);
}

/* Tin tức */
.company-home .home-news {
    background: var(--leaf-100);
}

.home-news-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-news-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .25s, transform .25s;
}

.home-news-item:hover {
    transform: translateY(-3px);
    border-color: var(--leaf-400);
    box-shadow: var(--shadow-lift);
}

.home-news-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-bottom: 1px solid var(--rule);
}

.home-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.home-news-item:hover .home-news-image img {
    transform: scale(1.05);
}

.home-news-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 20px 20px;
}

.home-news-date {
    color: var(--green-600);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
}

.company-home .home-news-item h3 {
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.company-home .home-news-item h3,
.company-home .home-news-item h3 a {
    color: var(--teal-900);
    font-size: 16px;
    font-weight: 600;
}

.company-home .home-news-item p {
    font-size: 15px;
    color: var(--ink-2);
}

.home-news-item .ct {
    flex: 1;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.55;
}

.company-home .home-news-more {
    margin-top: 4px;
    padding: 8px 15px;
    border: 1.5px solid var(--rule);
    border-radius: 4px;
    background: var(--surface);
    color: var(--green-600);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    transition: border-color .2s, background .2s;
}

.company-home .home-news-more:hover {
    border-color: var(--leaf-400);
    background: var(--leaf-100);
}

/* Khoảng trống của vòng lặp Genesis đã bỏ trên template này. */
.page-template-page-home .site-inner {
    width: 100%;
    padding: 0;
}

/* Responsive */
@media (min-width: 960px) {

    .company-home .home-intro{
        background: #F6FAF2 !important;
    }

    .home-origin .noidung {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        gap: 44px;
    }
}

@media (min-width: 860px) {
    .home-intro .noidung {
        grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
        gap: 48px;
        padding: 70px 0 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .company-home *,
    .company-home *::before,
    .company-home *::after {
        transition: none !important;
    }
}



@media (max-width: 960px) {
    .company-home .home-intro {
        background: #F6FAF2 !important;
    }

    .home-intro .noidung,
    .company-home .section {
        padding: 35px 0;
    }

    .company-home .sub-title{
        font-size: 10px;
    }

    .company-home .home-intro-content .ct > h2:first-child{
        font-size: 28px;
        text-wrap: auto;
        color: #016f5a;
    }

    .home-intro-content .ct h1 + p, .home-intro-content .ct h2 + p{
        font-size: 16px;
        margin-top: 15px;
    }

    .home-stat{
        padding: 15px;
    }

    .home-stats-list {
        grid-template-columns: repeat(6, 1fr);
    }

    .company-home .home-capability{
        padding: 20px 15px;
    }

    .company-home .home-taxonomy-list a,
    .company-home .home-origin .home-taxonomy-list a{
        padding: 7px 10px;
    }

    .company-home .home-section-heading{
        margin-bottom: 20px;
    }

    .home-partnership-panel .ct{
        width: 100%;
    }

    .company-home .home-partnership h2{
        text-wrap: inherit;
    }

    .home-partnership .home-section-heading{
        margin: 0;
    }
 
}

@media (max-width: 760px) {

    .home-stats-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-home .ct p {
        text-align: justify;
    }

    .home-stat {
        padding: 15px 10px;
    }

    .home-stat .number{
        font-size: 25px;
    }

    .home-stat .label{
        font-size: 13px;
    }

    .company-home .section {
        padding: 30px 0;
    }

    .company-home h1, .company-home h2, .company-home h3 {
        text-wrap: inherit;
    }
}

@media (max-width: 640px) {
    .home-news-list {
        grid-template-columns: minmax(0, 1fr);
    }

    

    .company-home .home-intro {
        padding: 0;
    }

    .home-partnership-panel {
        padding: 30px;
    }
}

@media (width < 500px) {
    .company-home .home-intro-content ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .company-home .home-intro-content ul li { min-width: 0; }

    .company-home .home-intro-content ul li a {
        box-sizing: border-box;
        justify-content: center;
        width: 100%;
        height: 100%;
        text-align: center;
        line-height: 1.4;
        padding: 7px 20px;
        font-weight: 500;
        font-size: 14px;
    }

    .company-home .home-intro-content ul{
        margin: 15px 0 0;
    }
}

@media (max-width: 380px) {
    .home-partnership-panel {
        padding: 24px;
    }
}
