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

body {
    font-family: Arial, sans-serif;
    align-content: center;
    line-height: 1.4;
    overflow-x: hidden;
}

.appointment-btn:hover {
    background-color: #3559a2;
    color: #fff;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo img {
    width: 50px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #00b3b3;
    font-weight: bold;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #00b3b3;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.appointment-btn {
    border: 1px solid #00b3b3;
    padding: 8px 18px;
    border-radius: 5px;
    color: #00b3b3;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.main {
    background-image: url(/image/image.png);
    background-size: cover;
    height: 90vh;
}

.text {
    display: flex;
    flex-direction: column;
    margin-left: 200px;
    padding: 40px;
    gap: 40px;
    font-size: 30px;
}

.text h1 {
    font-size: 84px;
    color: #00b3b3;
}

.text p {
    font-size: 54px;
    color: #333;
}

.family {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 34px;
}

.family a {
    text-decoration: none;
    font-size: large;
    transition: all 0.3s;
    color: #1E90FF;
    font-weight: 600;
}

.family a:hover {
    border-bottom: 2px solid blue;
}

.card-server {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px;
    margin-top: 34px;
}

.server button {
    font-size: 32px;
    padding: 14px 20px;
    background: #00b3b3;
    border: none;
    color: #fff;
    border-radius: 8px;
}

.server button:hover {
    background: #4682B4;
}

img {
    width: 100%;
    height: 250px;
}

.service-card {
    width: 350px;
    height: 480px;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    position: relative;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}

.crad-content,
h1 {
    font-size: 20px;
    margin-top: 20px;
}

.crad-content,
p {
    font-size: 14px;
    margin-top: 25px;
}

.crad-content,
button {
    margin-top: 25px;
    background-color: #1E90FF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.crad-content,
button a {
    text-decoration: none;
    color: white;
}

.crad-content,
button:hover {
    background: #4682B4
}

.detail {
    width: 100%;
    background-color: #00b3b3;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.navbar-box h1 {
    font-size: 50px;
    width: 80%;
    color: #fff;
}

.navbar-box {
    padding: 40px;
}

.navbar-box p {
    font-size: 16px;
    width: 100%;
    color: #fff;
}

.images img {
    width: 500px;
    height: 400px;
    margin-right: 80px;
}

.nav-box h4 {
    font-size: 25px;
    color: #fff;
}

.nav-box {
    background-color: transparent;
    border: 1px solid #fff;
}

.box-niv h3 {
    font-size: 32px;
}

#nivbars {
    width: 100%;
    gap: 25px;
    color: #fff;
    background-color: #333;
    padding: 18px;
    margin-top: 40px;
}

.content-detail {
    margin-top: 16px;
}

#nivbars li {
    list-style: none;
    font-size: 20px;
    padding: 8px;
    transition: all 0.4s;
}

.btn-box {
    display: flex;
    gap: 18px;

}

#nivbars li:hover {
    transform: translateY(-8px);
    color: #ff8c42;
}

#background {
    background-color: transparent;
}


.asidebar {
    display: flex;
}

.asidebar img {
    width: 50%;
    height: auto;
}

.box-image {
    text-align: center;
    background-color: #1E90FF;
    width: 100%;
    font-size: 45px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.box-image p {
    font-size: 28px;
    color: #f0f0f0f0;
    text-align: center;
}
.box-image h2{
    text-align: center;
    width: 80%;
}

@media screen and (max-width: 600px) {
    .navbar {
        padding: 10px 20px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 10px;
    }
    .appointment-btn{
        font-size: 10px;
    }
    .main{
        height: auto;
    }
    .headmain h1 {
        font-size: 28px;
    }

    .headmain p {
        font-size: 16px;
    }

    .text {
        margin-left: 10%;
        font-size: 20px;
        padding: 20px;
        gap: 20px;
    }

    .text h1 {
        font-size: 28px;
        width: 100%;
    }

    .text p {
        font-size: 20px;
    }

    .family {
        flex-direction: column;
        gap: 10px;
    }

    .card-server {
        flex-direction: column;
    }

    .service-card {
        width: 90%;
        height: auto;
    }

    .images img {
        width: 100%;
        flex-direction: column;
        /* padding: 20px; */
        margin: 0;
        height: auto;
    }

    .asidebar {
        flex-direction: column;
    }

    .asidebar img {
        width: 100%;
    }

    .box-image {
        font-size: 28px;
    }

    .box-image p {
        font-size: 18px;
    }
    .detail{
        /* flex-direction: column; */
        flex-wrap: wrap;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .navbar {
        padding: 12px 30px;
    }
    .main{
        height: 540px;
    }
    .nav-links {
        gap: 25px;
    }

    .text {
        margin-left: 50px;
        font-size: 22px;
    }

    .text h1 {
        font-size: 54px;
    }

    .text p {
        font-size: 28px;
    }

    .service-card {
        width: 45%;
        height: auto;
    }

    .detail {
        flex-wrap: wrap;
        /* text-align: center; */
    }

    .images img {
        width: 100%;
        height: auto;
        margin: 20px 0;
    }

    .asidebar {
        flex-wrap: wrap;
    }

    .asidebar img {
        width: 100%;
    }

}