@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap");

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

.service-list {
    justify-content: center;
}

.page-service-single {
    padding: 20px 0;
}

.page-single-sidebar {
    position: sticky;
    top: 20px;
    margin-right: 20px;
}

.page-catagery-list {
    background-color: #F7F3ED;
    border-radius: 20px;
    margin-bottom: 60px;
    padding: 30px;
}

.page-catagery-list h3 {
    font-size: 20px;
    text-transform: capitalize;
    margin-bottom: 30px;
}

.page-catagery-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-catagery-list ul li {
    margin-bottom: 20px;
}

.page-catagery-list ul li:last-child {
    margin: 0;
}

.page-catagery-list ul li a {
    position: relative;
    display: block;
    text-decoration: none;
    line-height: 1.5em;
    text-transform: capitalize;
    color: #868686;
    background-color: #EFE7DA;
    border-radius: 10px;
    padding: 18px 40px 18px 20px;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    z-index: 1;
}

.page-catagery-list ul li:hover a {
    color: #F7F3ED;
}

.page-catagery-list ul li a::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: url('../images/arrow-text.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 14px;
    height: 14px;
    transition: all 0.3s ease-in-out;
}

.page-catagery-list ul li a:hover::before {
    filter: brightness(0) invert(1);
    transform: translateY(-50%) rotate(45deg);
}

.page-catagery-list ul li a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #8E714F;
    transition: all 0.4s ease-in-out;
    z-index: -1;
}

.page-catagery-list ul li:hover a::after {
    top: 0;
    height: 100%;
}

.sidebar-cta-box {
    background: #F7F3ED;
    text-align: center;
    border-radius: 20px;
    padding: 30px;
}

.sidebar-cta-content {
    margin-bottom: 30px;
}

.sidebar-cta-content h3 {
    font-size: 20px;
    line-height: 1.4em;
    margin-bottom: 30px;
}

.sidebar-cta-content .btn-default {
    padding: 16px;
    width: 100%;
}

.sidebar-cta-content .btn-default::before {
    display: none;
}

.sidebar-cta-content .btn-default img {
    width: 100%;
    max-width: 20px;
    margin-right: 10px;
}

.sidebar-cta-image figure {
    display: block;
    border-radius: 20px;
}

.sidebar-cta-image img {
    width: 100%;
    aspect-ratio: 1 / 0.623;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.4s ease-in-out;
}

.sidebar-cta-box:hover .sidebar-cta-image img {
    transform: scale(1.1);
}

.page-single-image {
    margin-bottom: 30px;
}

.page-single-image figure {
    display: block;
    border-radius: 20px;
}

.page-single-image img {
    width: 100%;
    aspect-ratio: 1 / 0.598;
    object-fit: cover;
    border-radius: 20px;
}

.service-entry {
    margin-bottom: 60px;
}

.service-entry p {
    margin-bottom: 20px;
}

.service-entry p:last-child {
    margin-bottom: 0;
}

.service-entry h2 {
    font-size: 46px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.service-entry h2 span {
    font-family: "Lora", serif;
    font-style: italic;
    font-weight: 300;
}

.service-entry ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-entry ul li {
    position: relative;
    width: calc(50% - 10px);
    line-height: 1.5em;
    padding-left: 30px;
    transition: all 0.4s ease-in-out;
}

.service-entry ul li:before {
    content: '\f058';
    position: absolute;
    font-family: 'Font Awesome 6 Free';
    top: 0;
    left: 0;
    font-weight: 900;
    font-size: 18px;
    color: #8E714F;
    transition: all 0.4s ease-in-out;
}

.service-results-box {
    margin-top: 60px;
}

.service-results-list {
    margin: 40px 0;
}

.service-extend-list {
    background: #F7F3ED;
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
}

/*card style /////////*/
.card-container {
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;
    /* flex-wrap: wrap; */
    gap: 50px;
}

.card-container .card-wrapper {
    --color-primary: #00768b;
    --color-secondary: #01a188;
    --box-shadow: 7px 7px 5px 0px rgba(50, 50, 50, 0.5);
    width: 250px;
    flex-direction: column;
    display: flex;
}

.card-container .icon-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-container .icon-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(0) invert(0.2);
}

.card-container .card-header {
    flex-grow: 1;
    width: 90%;
    background: #fff;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: 50px 15px;
    border-top-left-radius: 70px;
    z-index: 2;
    position: relative;
    box-shadow: var(--box-shadow);
}

.card-container .card-header:after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: 20%;
    width: 30px;
    height: 30px;
    background: #fff;
    box-shadow: var(--box-shadow);
    transform: rotate(45deg);
    z-index: 1;
}

.card-container .card-header i {
    font-size: 80px;
    color: var(--color-primary);
}

.card-container .card-header h1,
.card-container .card-header h2 {
    text-transform: uppercase;
    color: var(--color-primary);
}

.card-container .card-header h1 {
    font-size: 16px;
    text-align: center;
}

.card-container .card-header h2 {
    font-size: 14px;
    margin-top: 15px;
}

.card-container .card-header p {
    font-size: 12px;
    text-align: justify;
    margin-top: 10px;
}

.card-container .card-footer {
    width: 100%;
    height: 250px;
    background-image: linear-gradient(to right bottom,
            var(--color-secondary),
            var(--color-primary));
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: start;
    margin-top: -150px;
    border-radius: 5px 5px 70px 0px;
    color: #fff;
    overflow: hidden;
}

.card-container .card-footer .footer-content-wrap {
    padding: 0 30px 10px 20px;

    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.card-container .card-footer .footer-text-wrap {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
}

.card-container .card-footer i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.7);
}

.card-container .card-footer h1 {
    font-size: 60px;
    line-height: 0.85;
    font-weight: 400;
}

.card-container .card-footer p {
    font-size: 12px;
    text-transform: uppercase;
}

/*set card color ///////*/
.card-wrapper.one {
    --color-primary: #6e5847;
    /* Nâu đất nhạt */
    --color-secondary: #a68b75;
    /* Be ấm */
}

.card-wrapper.two {
    --color-primary: #7d8f69;
    /* Xanh olive */
    --color-secondary: #a9ba9d;
    /* Xanh rêu nhạt */
}

.card-wrapper.three {
    --color-primary: #bfa980;
    /* Vàng nâu nhạt */
    --color-secondary: #e0c097;
    /* Vàng cát sáng */
}

.card-wrapper.four {
    --color-primary: #556b2f;
    /* Xanh rêu đậm */
    --color-secondary: #8fbc8f;
    /* Xanh lục nhạt */
}

.card-wrapper.five {
    --color-primary: #a47148;
    /* Nâu caramel */
    --color-secondary: #c1a17b;
    /* Nâu be sáng */
}

.card-wrapper.six {
    --color-primary: #4e6e5d;
    /* Xanh lục cổ điển */
    --color-secondary: #90a18b;
    /* Xanh bạc hà nhạt */
}

/* Trên desktop: Hiện full list, ẩn nút */
@media (min-width: 769px) {
    #serviceList {
        max-height: none !important;
        overflow: visible !important;
    }

    #btnShowMore {
        display: none !important;
    }
}

/* Trên mobile: Ẩn các item thừa mặc định */
@media (max-width: 768px) {
    .more-item {
        display: list-item;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-single-sidebar {
        position: static;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .sidebar-cta-image {
        display: none;
    }

    .page-catagery-list {
        padding: 20px;
    }

    .page-catagery-list h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .page-catagery-list ul li a {
        padding: 15px 30px 15px 15px;
    }

    .page-catagery-list ul li a::before {
        width: 12px;
        height: 12px;
    }

    .sidebar-cta-box {
        padding: 20px;
    }

    .sidebar-cta-content h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .sidebar-cta-content .btn-default {
        padding: 12px;
    }

    .sidebar-cta-content .btn-default img {
        max-width: 18px;
        margin-right: 8px;
    }

    .sidebar-cta-image img {
        aspect-ratio: 1 / 0.623;
    }

    .page-single-image {
        margin-bottom: 20px;
    }

    .page-single-image img {
        aspect-ratio: 1 / 0.598;
    }

    .service-entry h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .card-container .card-wrapper {
        width: 100%;
    }

    .card-container .card-header {
        padding: 30px 15px;
    }

    .card-container .card-header h1 {
        font-size: 24px;
    }

    .card-container .card-header h2 {
        font-size: 20px;
        margin-top: 10px;
    }

    .card-container .card-header p {
        font-size: 14px;
        margin-top: 5px;
    }

    .card-container .card-footer i {
        transform: rotate(90deg);
    }

}