/* ===========================
   ✨ Base Styles
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f7f7f7;
  color: #000;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

/* ===========================
   ✨ Header Styles
   =========================== */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 20px;
  background-color: #fff;
  color: rgba(0, 0, 0, 0.9);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.logo {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
}

.logo a {
  text-decoration: none; /* 밑줄 제거 */
  color: inherit;         /* 부모 요소의 색상 유지 (검정색 등) */
}

.logo-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1;
}

.logo-roman {
  font-size: 0.75rem;
  margin-left: 0.3rem;
  padding-bottom: 1px;
  color: rgba(0, 0, 0, 0.6);
}

.logo-korean {
  font-size: 0.7rem;
  margin-left: 0.2rem;
  padding-bottom: 1px;
  color: rgba(0, 0, 0, 0.6);
}

.search-icon {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  padding-right: 10px;
}

@media (max-width: 600px) {
  .search-icon {
    font-size: 1rem;
    padding-right: 10px;
  }

  .logo-brand {
    font-size: 1.2rem;
  }
}

/* ===========================
   ✨ Search Styles
   =========================== */
#search-bar {
  position: fixed;
  top: 46px;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 999;
  padding: 15px 20px 5px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 36px;
}

#search-bar.hidden {
  display: none;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

#search-input {
  width: 100%;
  padding: 10px 36px 10px 10px;
  font-size: 0.8rem;
  border: 0.8px solid #ccc;
  border-radius: 2px;
  height: 32px;
  box-sizing: border-box;
}

#search-input:focus {
  outline: 1px solid #ccc;
  outline-offset: 0;
  border-color: #ccc;
}

.clear-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #999;
  cursor: pointer;
  display: none;
  line-height: 1;
}

#search-results {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 998;
  padding: 10px 5px 10px;
  margin-top: 17px;
  margin-bottom: 10px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(1, 130px);
  gap: 8px;
}

.search-results-images {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  max-height: 410px;
  overflow-y: auto;
  padding: 3px;
}

.recommend-item {
  padding: 6px 8px;
  font-size: 0.6rem;
  line-height: 0.3;
  border-radius: 4px;
  text-align: left;
  color: #999;
  font-weight: 500;
  cursor: pointer;
}

.recommend-item:hover {
  background-color: transparent; /* ✅ 배경색 없음 */
  color: #000;                   /* ✅ 글씨만 검정 */
}


.search-card {
  background-color: transparent;
  border-radius: 0px;
  text-align: left;
  cursor: pointer;
  transition: none;
  padding: 16px 0px 10px 0px;  /* 위 오른쪽 아래 왼쪽 */
}

.search-card:hover {
  background-color: transparent;
}

.search-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.card-title {
  text-align: left;
  font-size: 0.6rem;
  color: #999;
  margin-top: 6px;
}

.search-card:hover .card-title {
  color: #000;
}

.recommend-item.highlighted {
  background-color: white;
  color: #000;
}

.search-card.highlighted .card-title {
  color: #000;
}

/* ===========================
   ✨ Section Styles
   =========================== */
section {
  padding: 140px 20px 40px;
  min-height: 100vh;
  border-bottom: 1px solid #ccc;
}

.clickable-section {
  cursor: pointer;
}

.clickable-section:hover {
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

/* ===========================
   ✨ Section 1
   =========================== */

#section1 {
  background-image: url('../assets/Profile.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px 20px 40px;
  min-height: 100vh;
  color: #000;
}

#section1 h2 {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 1px;
  letter-spacing: 0.02em;
}

#section1 .subtitle {
  font-size: 0.6rem;
  color: rgba(0, 0, 0, 0.6);
  margin-top: -2px;
  line-height: 1.0;
}


/* ===========================
   ✨ Contact Section
   =========================== */
#contact {
  background-color: white;
  padding: 90px 40px 22px 40px;
  min-height: 20vh;
  text-align: left;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.8;
  letter-spacing: 0.03em;
}

#contact h2 {
  font-size: 0.6rem;
  margin-bottom: 10px;
}

#contact p,
#contact a {
  font-size: 0.6rem;
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  margin: 0;
  padding: 0;
}

#contact a:hover {
  color: #000;
}

#contact .contact-columns {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 140px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 40px;
}

#contact .contact-left,
#contact .contact-right {
  flex: none;
  min-width: auto;
  padding: 0;
  margin: 0;
}

#contact .contact-left > *,
#contact .contact-right > * {
  margin: 0;
  padding: 0;
}

#contact .contact-left h2,
#contact .contact-right h2 {
  margin-bottom: 16px;
}

#contact .contact-right p,
#contact .contact-right a,
#contact .subscribe-btn {
  font-size: 0.6rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.8;
  letter-spacing: 0.03em;
  text-decoration: none;
}

#contact .contact-right a:hover {
  color: #000;
}

#contact .subscribe-btn {
  background-color: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.7);
}

#contact .subscribe-btn:hover {
  color: #000;
  background-color: transparent;
  text-decoration: none;
  font-weight: normal; /* ✅ 굵기 고정 (600 ➝ normal) */
}


#contact .contact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  padding-top: 50px;
  border-top: none;
  font-size: 0.55rem;
  color: #999;
}

#contact .last-touched {
  margin: 0;
  font-weight: normal;
  font-size: 0.55rem;
  color: #999;
}

#contact .last-touched a {
  font-size: 0.55rem;
  font-weight: normal;
  color: #999;
  text-decoration: none;
}


#contact .last-touched a:hover {
  color: rgba(0, 0, 0, 0.7);
}

#contact .copyright {
  margin: 0;
  font-size: 0.55rem;
  color: #999;
}

/* contact 마지막 줄 아래 여백만 최소화 */
#contact{
  padding-bottom: 16px;            /* 22px → 6px (원하면 0~10px로 조절) */
  min-height: 0 !important;       /* 20vh 최소높이 효과 제거 */
}
#contact .contact-footer,
#contact .copyright{ margin-bottom: 0; padding-bottom: 0; }
#contact :where(.contact-columns, .contact-footer, .copyright) :last-child{ margin-bottom: 0; }


/* ===========================
   ✨ Popup Newsletter Styles
   =========================== */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.popup-box {
  background: #fff;
  border: 1px solid #999;
  padding: 20px;
  width: 300px;
  font-family: system-ui, sans-serif;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

.newsletter-title {
  font-size: 1.1rem;
  letter-spacing: -0.5px;  /* 🎯 자간 좁게 */
  margin-bottom: 8px;
  color: rgba(0, 0, 0, 0.9);
}

.newsletter-subtext {
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.6);
  margin: 3px 0 4px 0;  /* 위/오른/아래/왼 */
}

#newsletter-email {
  width: 100%;
  padding: 5.7px;
  margin: -4px 0 20px;
  font-size: 0.8rem;
}

.popup-buttons {
  display: flex;
  justify-content: space-between;
}

.popup-buttons button {
  padding: 4.5px 14px;
  font-size: 0.7rem;
  cursor: pointer;
}



