/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: 'Paperlogy', 'Malgun Gothic', '맑은 고딕', sans-serif;
  color: #222;
  line-height: 1.6;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #fff;
  /*border-bottom: 1px solid #e0e0e0;*/
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 101;
}

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

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-section img {
  height: 40px;
  object-fit: contain;
}

.logo-sy {
  height: 30px;
}

nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-item {
  position: relative;
}

nav a {
  color: #222;
  text-decoration: none;
  font-size: 16px;
  padding: 5px 10px;
  position: relative;
  display: block;
  margin-right: 20px;
}

.nav-item > a::after {
  content: '|';
  position: absolute;
  left: -3px;
  color: #156082;
}

nav a:hover, nav a.active {
  color: #0066cc;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
  padding: 8px 0;
  margin-top: 5px;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 10px 19px;
  font-size: 14px;
  color: #555;
  cursor: default;
  transition: background-color 0.2s ease;
}

.dropdown-menu a::after,
.dropdown-item::after {
  content: none !important;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
  color: #222;
}

.logo-a {
  text-decoration-line: none;
  color: black;
}

/* Footer */
footer {
  background: #58636A;
  /*border-top: 1px solid #e0e0e0;*/
  padding: 10px 0 10px 0;
  margin-top: 55px;
  margin-bottom: 3px;
  color: white;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-content-bottom {
  display: flex;
  justify-content: center;
}

.footer-content a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
}

.footer-content a:hover {
  color: #0066cc;
}

/* Common Content Styles */
.content {
  padding: 60px 0;
  flex: 1;
}

.page-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 40px;
}

.page-subtitle {
  font-size: 18px;
  margin-bottom: 40px;
}

.section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2744A0;
}

.section-content {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

.section-content p {
  font-family: Paperlogy-4Regular;
  font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid #e0e0e0;
    margin-top: 0;
    transform: none;
  }
  
  .nav-item:hover .dropdown-menu,
  .nav-item.active .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
