/* Header */
header {
  background-color: #ffffff;
  color: var(--cal-red);
  padding: 10px 0;
  position: relative;
  z-index: 1001;
}

header .header-container {
  align-items: center;
  display: flex;
  margin: 0 auto;
  max-width: 1200px;
  padding: 15px;
  position: relative;
}

header .logo {
  align-items: center;
  display: flex;
  margin-right: 30px;
}

.logo-icon-1 {
  height: 50px;
  margin-left: 20px;
}

header .main-nav {
  margin-left: auto;
}

header .main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

header .main-nav ul li {
  margin-left: 15px;
}

header .main-nav ul li a {
  color: #000000;
  font-size: 20px;
  padding: 5px 10px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

header .main-nav ul li a:hover,
header .main-nav ul li a.active {
  background-color: var(--cal-pink);
  border-radius: 4px;
  color: var(--cal-title);
}

.header-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  margin-left: 16px;
}

.header-language-field {
  align-items: center;
  display: flex;
}

.header-language-field select {
  appearance: none;
  background-color: var(--cal-red);
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M218.8%2094.8L128%20185.6%2037.2%2094.8%2050.4%2081.6%20128%20159.2%20205.6%2081.6z%22%2F%3E%3C%2Fsvg%3E");
  background-position: right 9px center;
  background-repeat: no-repeat;
  background-size: 13px;
  border: 1px solid var(--cal-red);
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  min-height: 36px;
  min-width: 112px;
  outline: none;
  padding: 0 30px 0 12px;
}

.header-language-field select:hover,
.header-language-field select:focus-visible {
  background-color: var(--cal-title);
  border-color: var(--cal-title);
}

.hamburger-menu {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  height: 30px;
  padding: 0;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  z-index: 1001;
}

.hamburger-menu .line {
  background-color: var(--cal-dark2);
  border-radius: 2px;
  display: block;
  height: 2px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
  width: 100%;
}

.hamburger-menu .line:last-child {
  margin-bottom: 0;
}

.hamburger-menu.active .line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger-menu.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Carousel and lightbox */
.carousel-container {
  align-items: center;
  border-radius: 12px;
  display: flex;
  height: 420px;
  justify-content: center;
  margin: 25px 0;
  max-width: 1200px;
  overflow: hidden;
  padding: 20px;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 8px;
  height: 100%;
  padding: 16px;
  transition: transform 0.5s ease-in-out;
  visibility: hidden;
}

.carousel-slide {
  align-items: center;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  flex-basis: calc(33.333% - 5.333px);
  flex-shrink: 0;
  height: 100%;
  justify-content: center;
  overflow: hidden;
}

.carousel-slide a,
.carousel-slide picture {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
}

.carousel-slide img {
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  display: block;
  height: 100%;
  object-fit: contain;
  width: auto;
}

.carousel-btn {
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 1.5rem;
  height: 48px;
  justify-content: center;
  padding: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.3s ease;
  width: 48px;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  bottom: 15px;
  display: flex;
  gap: 8px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 10;
}

.dot {
  background-color: var(--cal-dark3);
  border-radius: 50%;
  cursor: pointer;
  height: 12px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: 12px;
}

.dot.active {
  background-color: var(--cal-red);
  transform: scale(1.2);
}

.thumbnail-container {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: inline-block;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.thumbnail-container:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.thumbnail-img {
  display: block;
  height: auto;
  width: 300px;
}

.lightbox-overlay {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.lightbox-content {
  align-items: center;
  display: flex;
  justify-content: center;
  max-height: 90vh;
  max-width: 90%;
  position: relative;
}

.lightbox-img {
  border-radius: 12px;
  display: block;
  height: auto;
  max-height: 90vh;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.lightbox-close-btn {
  color: white;
  cursor: pointer;
  font-size: 2rem;
  font-weight: bold;
  position: absolute;
  right: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  top: -30px;
  transition: color 0.2s;
}

.lightbox-close-btn:hover {
  color: #dddddd;
}

/* FAQ */
.faq-section {
  border: 0 solid #dddddd;
  margin: 30px auto 0;
  max-width: 90%;
  overflow: hidden;
  padding: 20px;
}

.faq-item {
  border-bottom: 5px solid #ffffff;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  align-items: center;
  background-color: var(--cal-pink);
  border-radius: 8px;
  color: #333333;
  cursor: pointer;
  display: flex;
  font-weight: 600;
  justify-content: flex-start;
  padding: 20px;
  transition: background-color 0.2s ease;
}

.faq-question:hover,
.faq-item.active .faq-question {
  background-color: var(--cal-sky);
  color: var(--cal-dark1);
}

.faq-question .faq-icon {
  font-size: 1em;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question {
  border-bottom: 1px solid var(--cal-sky);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  color: #1a1a1a;
  font-size: 1em;
}

.faq-answer {
  background-color: var(--cal-bg-pink);
  display: none;
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.show {
  display: block;
  font-size: 15px;
  max-height: 100%;
  padding: 20px;
}

.faq-close-button {
  background-color: #f0f0f0;
  border: 1px solid #cccccc;
  border-radius: 5px;
  color: #555555;
  cursor: pointer;
  display: block;
  font-size: 0.9em;
  margin: 15px auto 0;
  padding: 8px 15px;
  transition: background-color 0.2s ease;
}

.faq-close-button:hover {
  background-color: #e0e0e0;
}

.faq-answer:not(.show) .faq-close-button {
  display: none;
}

.search-container {
  display: flex;
  gap: 10px;
  margin: auto auto 20px;
  max-width: 80%;
}

.search-container input[type="text"] {
  border: 1px solid #cccccc;
  border-radius: 5px;
  flex-grow: 1;
  padding: 10px;
}

.search-container button {
  background-color: var(--cal-day);
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  padding: 10px 15px;
  transition: background-color 0.2s ease;
}

.search-container button:hover {
  background-color: #0056b3;
}

/* Footer */
.footer-grid-container {
  background-color: var(--cal-pink);
  color: var(--cal-title);
  display: flex;
  flex-direction: column;
  font-family: "Pretendard-Regular", sans-serif;
  justify-content: space-between;
  padding: 40px 20px;
}

.footer-logo-section,
.footer-top-section,
.footer-bottom-section {
  margin: 0 auto 10px;
  max-width: 1200px;
  width: 100%;
}

.footer-logo-section {
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 15px 15px 10px 25px;
}

.footer-top-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding-bottom: 5px;
}

.footer-left,
.footer-middle,
.footer-right {
  box-sizing: border-box;
  flex: 1;
  margin: 10px;
  min-width: 250px;
  padding: 15px 15px 15px 25px;
  text-align: left;
}

.footer-logo {
  margin-bottom: 20px;
  text-align: center;
}

.footer-logo-img {
  aspect-ratio: 697 / 130;
  height: auto;
  max-width: 150px;
}

.footer-links-group h3,
.footer-links-group h3 a {
  color: #000000;
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
}

.footer-links-group h3 a:hover {
  color: var(--cal-red);
  text-decoration: underline;
}

.footer-links-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links-group ul li {
  margin-bottom: 7px;
}

.footer-links-group ul li a {
  color: var(--cal-dark1);
  font-size: 0.97em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links-group ul li a:hover {
  color: var(--cal-red);
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  margin-top: 15px;
}

.social-icon {
  filter: invert(0%);
  height: 30px;
  transition: transform 0.2s ease;
  width: 30px;
}

.social-icon:hover {
  transform: scale(1.1);
}

.footer-bottom-section {
  padding: 5px 5px 5px 25px;
}

.footer-contact-info {
  margin-bottom: 5px;
  text-align: left;
}

@media (max-width: 1024px) {
  header .header-container {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  header .logo {
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    width: 100%;
  }

  header .main-nav {
    margin-left: 0;
  }

  .logo-icon-1,
  .logo-icon-2 {
    height: 50px;
  }

  .logo-icon-1 {
    margin-right: 8px;
  }

  .header-actions {
    gap: 10px;
    margin-left: 0;
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
  }

  .header-language-field select {
    background-position: right 7px center;
    background-size: 11px;
    font-size: 0.8rem;
    min-height: 34px;
    min-width: 92px;
    padding: 0 24px 0 8px;
  }

  .hamburger-menu {
    display: block;
    height: 40px;
    position: static;
    transform: none;
    width: 40px;
    z-index: 1001;
  }

  .hamburger-menu .line {
    height: 3px;
    margin-bottom: 6px;
  }

  .hamburger-menu.active .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger-menu.active .line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .main-nav {
    background-color: var(--cal-border);
    border-radius: 20px 0 0 20px;
    box-shadow: none;
    display: none;
    flex-direction: column;
    min-height: calc(80vh - 60px);
    padding: 20px 0;
    position: absolute;
    right: 0;
    top: 100%;
    transform: translateX(100%);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    width: 63%;
    z-index: 9;
  }

  .main-nav.active {
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    transform: translateX(0);
    z-index: 10;
  }

  .main-nav ul {
    align-items: center;
    flex-direction: column;
    padding-top: 20px;
    width: 100%;
  }

  .main-nav ul li {
    text-align: center;
    width: 100%;
  }

  .main-nav.active ul li a {
    display: block;
    font-size: 26px;
    padding: 16px 20px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }

  .carousel-slide {
    flex-basis: 50%;
  }

  .carousel-container {
    height: auto;
    overflow: visible;
  }

  .carousel-track {
    height: auto;
  }

  .carousel-slide {
    aspect-ratio: 9 / 16;
    height: auto;
  }

  .carousel-slide a,
  .carousel-slide picture {
    height: auto;
    width: 100%;
  }

  .carousel-slide img {
    height: auto;
    max-height: none;
    object-fit: cover;
    width: 100%;
  }
}

@media (min-width: 1025px) {
  .header-container {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  header .main-nav ul {
    flex-direction: column;
    margin-top: 10px;
  }

  header .main-nav ul li {
    margin: 5px 0;
  }

  .footer-container,
  .footer-top-section {
    flex-direction: column;
  }

  .footer-logo-section {
    align-items: flex-start;
    flex-direction: column;
    padding-left: 25px;
  }

  .footer-top-section {
    align-items: center;
  }

  .footer-left,
  .footer-middle,
  .footer-right {
    margin: 10px 0;
    padding: 5px 5px 5px 35px;
    text-align: left;
    width: 100%;
  }

  .footer-links-group h3,
  .footer-links-group ul li {
    text-align: left;
  }

  .footer-links-group h3 {
    margin-top: 5px;
  }

  .footer-links-group ul {
    padding-left: 0;
  }

  .social-icons {
    justify-content: flex-start;
  }

  .footer-logo {
    margin-bottom: 0;
  }

  .footer-bottom-section {
    font-size: 0.6em;
    margin: 10px 0;
    padding: 5px 5px 5px 35px;
    text-align: left;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-grid-container {
    padding: 22px 10px;
  }

  .footer-top-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .footer-links-group h3 {
    font-size: 1.1em;
  }

  .footer-links-group ul li a {
    font-size: 0.9em;
  }

  .social-icon {
    height: 25px;
    width: 25px;
  }
}
