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

body {
    font-family: Arial, sans-serif;
    align-content: center;
}

.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: 0px;
    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: url(/image/service/image.png) no-repeat;
    width: 100%;
    background-size: cover;
    background-position: center;
    height: 80vh;
}

.text {
    display: flex;
    flex-direction: column;
    margin-left: 100px;
    padding: 20px;
    font-size: 40px;
}

.text h1 {
    color: #1e90ff;
}

.text p {
    width: 50%;
    margin-top: 30px;
    font-size: 26;
}

.group-card {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    padding: 50px;
    gap: 50px;

}

.group-card li {
    list-style: none;
    font-size: 20px;
}

.card {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    width: 550px;
    height: 150px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s;
}

.card:hover {
    transform: translateY(-8px);
    background-color: #00b3b3;
    color: #fff;
}

#btn {
    font-size: 40px;
    color: #7b68ee;
}

.service-card {
    width: 300px;
    height: 400px;
    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 img {
    width: 100%;
    height: 250px;
}

.card-server {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.card-1 {
    position: relative;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.card-1:hover {
    transform: translateY(-8px);
}

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

.card-1 {
    width: 350px;
    height: 200px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 8px;
    text-align: center;
}

.card-1 a:hover {
    background-color: #3559a2;
    transform: translate(0.4s);
}

.card-1 span {
    margin-top: 20px;
    font-size: 60px;
    color: #00b3b3;
    font-weight: 600;
}

.card-1 p {
    font-size: 20px;
    font-weight: bold;
}

.card-1 a {
    background-color: #00b3b3;
    padding: 12px;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
}

.flex-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.flex-box h1 {
    font-size: 70px;
}

.flex-box p {
    font-size: 25px;
    width: 60%;
    color: gray;
}

.flex-box img {
    width: 500px;
    height: 500px;
}

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

#box h3 {
    font-size: 32px;
}

.detail {
    margin-top: 16px;
}

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

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

}

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

}

iframe {
    width: 100%;
    height: 300px;
}

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

    .nav-links {
        gap: 15px;
        font-size: 10px;
        justify-content: center;
    }

    .appointment-btn {
        font-size: 10px;
    }

    .background {
        width: 100%;
        height: 300px;
    }

    .text {
        margin-left: 0;
        font-size: 18px;
        padding: 10px;
    }

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

    .main {
        height: auto;
        min-height: 400px;
    }

    .group-card {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .group-card h1 {
        font-size: 20px;
    }

    .card {
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .flex-box {
        flex-direction: column;
        text-align: center;
    }

    .flex-box h1 {
        font-size: 32px;
    }

    .flex-box p {
        font-size: 16px;
        width: 100%;
    }

    .flex-box img {
        width: 100%;
        height: auto;
    }

    .service-card {
        height: auto;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .navbar {
        padding: 12px 30px;
    }

    .nav-links {
        gap: 20px;
        font-size: 16px;
    }

    .background {
        width: 100%;
        height: 540px;
    }

    .text {
        margin-left: 20px;
        font-size: 32px;
    }

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

    .main {
        height: auto;
        min-height: 500px;
    }

    .group-card {
        gap: 30px;
        justify-content: center;
    }

    .card {
        width: 45%;
    }

    .flex-box {
        flex-wrap: wrap;
        gap: 20px;
    }

    .flex-box h1 {
        font-size: 40px;
    }

    .flex-box p {
        font-size: 18px;
        width: 80%;
    }

    .flex-box img {
        width: 80%;
        height: auto;
    }

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