@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #ffffff;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  background-color: #ffffff;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  gap: 40px;

  border-bottom: 1px solid #ddd;
}

.logo {
  display: block;
  font-size: 18px;
  color: #6b1d75;
  font-weight: bold;
}
.logo a {
  text-decoration: none;
}
.logo:hover {
  display: block;

  left: 0;
}
.main-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-menu > li {
  position: relative;
}
.dropdown-menu li a,
.main-menu > li a {
  display: flex;
  align-items: center; /* 아이콘과 텍스트 중앙 정렬 */
  justify-content: space-between;
}
.main-menu > li > a {
  display: block;
  padding: 10px 15px;
  color: #000000;
  font: bold;
  font-size: 16px;
  transition: color 0.3s;
  text-decoration: none !important; /* 밑줄 제거 */
}

.main-menu > li:hover > a {
  color: #196fe0;
  text-decoration: none !important;
}
/* Dropdown Styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  min-width: 190px;
  /* margin-top: 5px; */
}
/* 드롭다운 메뉴 표시 (hover로 작동) */
.sub-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.dropdown:hover > .dropdown-menu {
  display: block;
  top: 100%;
  left: 0;
  width: 240px;
  border-radius: 5px;
}

.dropdown-menu li {
  position: relative;
  border-bottom: 1px solid #d1d0d0;
  border-radius: 5px;
}

.dropdown-menu li a {
  padding: 8px;
  color: #111111;
  display: flex;
  border-radius: 5px;

  text-decoration: none !important;
}

.dropdown-menu li:hover > a {
  background-color: #f0f0f0;
  color: #943c81;
}

/* 서브 드롭다운 메뉴 (오른쪽으로 표시) */
.sub-dropdown:hover > .sub-dropdown-menu {
  display: block;
  top: 0;
  left: 100%;
  width: 140px;
  border-radius: 5px;
}

.fa-chevron-down,
.fa-chevron-right {
  display: inline-block;
  vertical-align: middle;
  font-size: 12px;
  margin-left: 6px;
  transition: transform 0.3s;
}

.dropdown:hover .fa-chevron-down {
  transform: rotate(180deg);
}

.sub-dropdown:hover .fa-chevron-right {
  transform: rotate(180deg);
}
.sub1-dropdown:hover .fa-chevron-down {
  transform: rotate(0deg);
}

.image-section {
  background-color: #ffffff;
  padding: 10px 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-area img {
  width: 100%;
  max-width: 1920px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 두 번째 섹션 - 내용 */
.content-section {
  background-color: #ffffff;
  padding: 10px 20px;
}

.content-area {
  max-width: 1800px;
  width: 100%;
}

.content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  /* margin-top: 10px; */
}

h2 {
  text-align: center;
  box-sizing: border-box;
}

.p-box {
  width: 240px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 1);
  color: #000000;
  transition: 0.3s;
}
.p-box a {
  text-decoration: none;
}
.p-box:hover {
  background-color: #f0f8ff;
  transform: translateY(-3px);
}

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

.p-exp {
  padding: 12px;
}

.p-exp h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #6b1d75;
}

.p-exp p {
  font-size: 12px;
  color: #000000;
}

.footer-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  background-color: #ffffff;

  gap: 40px;

  border-bottom: 1px solid #ddd;
}
.footer-position {
  list-style: none;
  display: flex;
  gap: 20px;
}
.footer-logo {
  width: 80px; /* 너비 */
  height: auto; /* 높이를 자동으로 비율 유지 */
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }

  .main-menu {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  .dropdown-menu,
  .sub-dropdown-menu {
    position: relative;
    width: 100%;
    box-shadow: none;
  }
  .dropdown:hover .dropdown-menu,
  .sub-dropdown:hover .sub-dropdown-menu {
    left: 0;
    top: 0;
  }

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