@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FFF0F5;
    color: #7A3E48;
}

.wrap {
    width: 1100px;
    margin: auto;
    position: relative;
}

.logo a {
    font-size: 40px;
    font-weight: 700;
    float: left;
    color: #E49BB8;
}

.menu {
    float: right;
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 80px;
    position: sticky;
    top: 0;
    background: #FFE4EC;
    z-index: 1000;
    border-bottom: 2px solid #E49BB8;
    padding: 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #8B4F61;
    font-weight: 600;
    padding: 8px 12px;
    transition: 0.3s;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #FADADD;
}

section {
    margin: auto;
    display: flex;
    margin-bottom: 50px;
}

.kolom {
    margin: 50px 0;
}

.kolom .keterangan {
    font-size: 20px;
    font-weight: 600;
    color: #C96A85;
    text-align: center;
}

h2 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #d4476f;
    line-height: 1.4;
}

a.tbl-biru {
    background: #E49BB8;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

a.tbl-biru:hover {
    background: #D17CA2;
}

p {
    margin: 20px 0;
    line-height: 1.6;
}

.service-list,
.dentist-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* CARD SERVICE - SUDAH DIUBAH */
.card-service {
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    max-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: #7A3E48;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-service:hover {
    transform: translateY(-5px);
}

.card-service img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.card-service p {
    margin: 5px 0;
    font-size: 15px;
    font-weight: 500;
    color: #b0326e;
}

/* CARD DENTIST */
.card-dentist {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    max-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    text-align: center;
}

.card-dentist:hover {
    transform: translateY(-5px);
}

.card-dentist img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
}

.card-dentist h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #b0326e;
}

.card-dentist p {
    font-size: 13px;
    font-weight: normal;
    color: #7A3E48;
    margin: 3px 0;
}

/* CONTACT & FOOTER */
#contact {
    background: #FFE4EC;
    padding: 50px 20px;
    text-align: center;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.footer-section {
    width: 200px;
}

h3 {
    font-size: 24px;
    font-weight: 700;
    color: #C96A85;
    margin-bottom: 20px;
}

#copyright {
    text-align: center;
    background: #F8D6E5;
    padding: 30px 20px;
    color: #7A3E48;
}

/* FORM & INPUT */
table {
    width: 600px;
}

@media screen and (max-width: 700px) {
    table {
        width: 90%;
    }
}

table td {
    padding: 5px;
}

td.label {
    width: 40%;
}

.input {
    border: 1px solid #cccccc;
    background-color: #dfdfdf;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
}

input.tbl-pink {
    border: none;
    background-color: #3f72af;
    border-radius: 20px;
    margin-top: 20px;
    padding: 15px 20px;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
}

input.tbl-pink:hover {
    background-color: rgb(209, 19, 161);
    text-decoration: none;
}

.error {
    padding: 20px;
    background-color: #f44336;
    color: #ffffff;
    margin-bottom: 15px;
}

.sukses {
    padding: 20px;
    background-color: #2196f3;
    color: #ffffff;
    margin-bottom: 15px;
}

.error ul {
    margin-left: 10px;
}

/* RESPONSIVE */
@media screen and (max-width: 991.98px) {
    .wrap {
        width: 90%;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: left;
        margin: 10px 0;
    }

    .card-service,
    .card-dentist {
        width: 80%;
    }
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
/* Layout Flex untuk section home */
.home-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap; /* agar responsif */
  padding: 40px 20px;
}

.home-img {
  flex: 1 1 300px;
  text-align: center;
}

.home-img img {
  max-width: 100%;
  height: auto;
}

.home-text {
  flex: 1 1 400px;
  max-width: 500px;
}

.home-text .keterangan {
  font-size: 24px;
  font-weight: bold;
  color: #C96A85;
  margin-bottom: 10px;
}

.home-text p {
  font-size: 16px;
  margin-bottom: 12px;
  color: #444;
}

.tbl-biru {
  display: inline-block;
  padding: 10px 20px;
  background-color: #C96A85;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.tbl-biru:hover {
  background-color: #a94b6e;
}
.home-section {
  padding: 60px 20px;
  background-color: #ffeef4;
}

.home-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap; /* responsif */
  max-width: 1200px;
  margin: auto;
}

.home-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.home-text {
  max-width: 500px;
}

.home-text .keterangan {
  font-size: 24px;
  font-weight: bold;
  color: #C96A85;
  margin-bottom: 16px;
}

.home-text p {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.6;
}

.tbl-biru {
  display: inline-block;
  padding: 10px 22px;
  background-color: #C96A85;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.tbl-biru:hover {
  background-color: #a84b6c;
}

