/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    word-break: keep-all;
    color: #333;
}

header {
    /* background-color: #f1f1f1; */
    background-color: #f8f8f8;
    padding: 40px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
    font-size: 18px;
}

nav ul li a:hover {
    color: #ff6b6b;
}

#landing {
    position: relative;
    height: 600px;
}

.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s;
}

.carousel img:first-child {
    opacity: 1;
}

#landing h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 48px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

section {
    padding: 100px 40px;
}

#intro,
#hours,
#location {
    padding: 80px 80px;
}

#treatment {
  text-align: center;
}

#treatment h2 {
  font-size: 36px;
  margin-bottom: 30px;
}

.treatment-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  flex: 0 0 300px;
  text-align: left;
}

.card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.intro-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.intro-image {
    flex: 1;
    margin-right: 80px;
}

.intro-image img {
    width: 100%;
    height: auto;
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 18px;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
    }

    nav ul li {
        margin: 10px 6px;
    }

    #landing h1 {
        font-size: 36px;
    }

    .intro-content {
        flex-direction: column;
        align-items: center;
    }

    .intro-image {
        margin-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .intro-image img {
        max-width: 100%;
        height: auto;
    }

    .intro-text {
        text-align: center;
    }

    .intro-text h2 {
        text-align: center;
    }

    .intro-text p {
        text-align: left;
    }

    .map {
        height: 400px;
    }

    section {
        padding: 60px 5px;
    }

    #intro,
    #hours,
    #location {
        padding: 80px 45px;
    }

    .treatment-cards {
        flex-direction: column;
        align-items: center;
    }
      
    .card {
        flex: 0 0 90%;
        width: 90%;
    }

    #hours {
        padding: 60px 40px;
    }
    
    .hours-content {
        flex-direction: column;
    }
    
    .hours-text {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
}


#hours {
  background-color: #f9f9f9;
  padding: 80px;
}

.hours-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hours-text {
  flex: 1;
  padding-right: 40px;
}

.hours-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.hours-text p {
  font-size: 18px;
  line-height: 1.6;
}

.hours-table {
  flex: 1;
}

#hours table {
  width: 100%;
  border-collapse: collapse;
}

#hours th, #hours td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-size: 18px;
}

#hours th {
  background-color: #ff6b6b;
  color: #fff;
}

#location {
    text-align: center;
}

#location h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.map {
    width: 100%;
    height: 500px;
    background-color: #f1f1f1;
    margin-bottom: 40px;
}

#location p {
    font-size: 18px;
}

footer {
    background-color: #222;
    color: #aaa;
    padding: 60px;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
}

.social-icons .icon-background {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #eee;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.social-icons a:hover .icon-background {
    background-color: #111;
}

.social-icons img.naver-blog-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}