@font-face {
    font-family: utm avo;
    src: url('../css/fonts/utm-avo.ttf')format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: utm avo bold;
    src: url('../css/fonts/utm-avobold.ttf')format('truetype');
    font-weight: 700;
}

body {
    text-decoration: none;
    font-family: utm avo;
}

:root {
    --main-color: #027287;
}

.header,
.header-wrapper {
    background-color: rgba(255, 255, 255, 0.8);
}

.header-main {
    background-color: transparent;
}

.banner {
    position: relative;
    background-color: #fff !important;
}

.banner:before {
    content: "";
    display: block;
}

.banner:before,
.banner .owl-carousel .square-image:before {
    padding-top: 46%;
}

.banner .owl-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.banner .owl-carousel button {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #FFF !important;
    text-shadow: 0 0 5px #000;
}

.banner .owl-carousel button.owl-next {
    left: unset;
    right: 5px;
}

.banner .owl-carousel button i {
    font-size: 1.5em;
}

.introduction {
    margin: auto;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.gp-gallery {
    width: 100%;
    padding: 10px 0;
}

.gp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gp-gallery-item {
    border: 1px solid var(--main-color);
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.gp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.3s;
}

.gp-gallery-item:hover img {
    transform: scale(1.05);
}



.gp-gallery-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gp-gallery-popup.active {
    display: flex;
}

.gp-gallery-popup-img {
    max-width: 90%;
    max-height: 90%;
}

.gp-gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

summary {
    font-size: 0.9em;
    line-height: 1.5;
}

.banner {
    margin-top: 0;
}

.project-layout {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.consult-box {
    background: #fff;
    will-change: transform;
    transition: transform 0.3s linear;
    border: 1px solid #ccc;
}

/* sticky sẽ được JS điều khiển */
.consult-box.is-fixed {
    position: fixed;
    top: 50px;
    width: 300px;
    z-index: 10;
}

.consult-box.is-bottom {
    position: absolute;
    bottom: 0;
    top: auto;
    width: 300px;
}

/* ===== FORM ===== */
.consult-title {
    background: var(--main-color);
    color: #fff;
    padding: 15px;
    font-weight: bold;
    text-align: center;
}

.consult-box form {
    padding: 15px;
}

.consult-box input,
.consult-box textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
}

.consult-box .btn-submit {
    width: 100%;
    background: #ffce17;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    border-radius: 5px;
    padding: 10px;
}

.consult-phone {
    background: var(--main-color);
    color: #fff;
    padding: 12px;
    text-align: center;
}

.project-slider,
.js-elderly {
    position: relative
}

.project-slider .owl-nav,
.js-elderly .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-slider .owl-nav button,
.js-elderly .owl-nav button {
    margin: 0;
}

.project-slider .owl-nav button i,
.js-elderly .owl-nav button i {
    font-size: 30px;

    color: #fff;
}

.project-slider img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.project-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.thumb-item {
    width: 100px;
    cursor: pointer;
}

.thumb-item img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.faq-container {
    width: 100%;
    max-width: 800px;
    margin: auto;
    font-family: Arial;
}

.faq-container h2 {
    font-weight: bold;
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    background: #f5f5f5;
    font-size: 0.9em;
}

.faq-item.active .faq-question {
    background: var(--main-color);
    color: #fff;
}

.faq-question:hover {
    background: #eee;
}

.faq-question .icon {
    position: absolute;
    right: 15px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.faq-item.active .icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    background: #fff;
    transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-item.active .faq-answer {
    padding: 15px;
    max-height: fit-content;
    font-size: 0.9em;
}

.faq-item.active .icon {
    content: "-";
}

.form-dang-ky .wpcf7 {
    background-color: rgb(2, 114, 135);
}

.form-dang-ky .wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"],
button[type="submit"] {
    color: var(--main-color);
}

.elderly-section {
    padding: 40px 15px;
    background: #f5f5f5;
}

.elderly-section.articles {
    background-color: transparent;
    padding: 0;
}

.elderly-section .post-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 0.5em;

}

.elderly-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.elderly-item {
    background: #fff;
    overflow: hidden;
    transition: 0.3s;
}

.elderly-item:hover {
    transform: translateY(-5px);
}

.elderly-item .thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 14/9;
    object-fit: cover;

}

.elderly-item .content {
    padding: 15px;
}

.elderly-item h3 {
    font-size: 15px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elderly-item p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.read-more {
    font-size: 12px;
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
}

.elderly-list.owl-carousel .elderly-item {
    margin: 5px;
}

.content .desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

#section_502459144 .section-bg.bg-loaded {
    background-image: url('/images/footer-bg.jpg');
}

#section_502459144 .section-bg-overlay {
    background-color: rgba(9, 9, 31, 0.7);
}

.info-contact h2 {
    color: #fff;
}

.info-contact span {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-menu li,
.footer-service li {
    list-style: none;
}

.box-faq-right,
.box-faq-left {
    width: 100%;
}

.header-main .nav>li>a {
    line-height: 0;
}

.nav>li.has-icon>a>i {
    font-size: 2em;
}

.medium-logo-center .flex-left {
    flex: none;
    margin: 0;
}

.medium-logo-center {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.project-main-wrapper {
    position: relative;
}

.project-main {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-main.open {
    max-height: 2000px;
}

.project-fade {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
    transition: opacity 0.3s;
}

.project-main.open~.project-fade {
    opacity: 0;
}

.project-toggle {
    text-align: center;
    margin-top: 10px;
}

#toggleProject {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

#toggleProject:hover {
    background: #f5f5f5;
}

#toggleProject .icon {
    display: inline-flex;
    transition: transform 0.3s ease;
}

.project-main.open+.project-fade+.project-toggle #toggleProject .icon {
    transform: rotate(180deg);
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .elderly-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .gp-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .thumb-item {
        width: 150px;
    }

    .box-faq {
        display: flex;
        gap: 20px;
    }

    .box-faq-right {
        width: 35%;
    }

    .box-faq-left {
        width: 65%;
    }
}

@media (min-width: 992px) {
    #row-1500326495 {
        display: flex;
    }

    #col-786968181 {
        width: 50%;
        padding: 0 0 30px;
    }

    #col-2077669565,
    #col-1182614318 {
        width: 25%;
        padding: 0 0 30px;
    }

    .container {
        max-width: 960px;
    }

    .project-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .project-sidebar {
        width: 300px;
        flex-shrink: 0;
        position: relative;
    }

    .project-main-wrapper {
        flex: 1;
        min-width: 0;
    }

    .elderly-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .elderly-item h3 {
        font-size: 16px;
    }

    .elderly-item p {
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .gp-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}