@import url('fonts.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'NanumSquareNeo', 'NanumSquareNeoVariable', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #00000069;
  z-index: 100;
}

#overlay.hidden {
  display: none;
}

header {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  color: #fff;
  width: 100%;
  z-index: 1000;
}

header.dropdown {
  background-color: #fff;
  box-shadow: 0 2px 4px #0000001a;
}

#logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
}

#logo img {
  width: auto;
  height: 3.5em;
  margin-right: 8px;
}

#main-nav-list {
  list-style: none;
  display: flex;
  gap: 10px;
}

.main-nav-item {
  position: relative;
  padding: 1em 12px;
  cursor: pointer;
  font-size: 1.1em;
  width: 7.4em;
  text-align: center;
}

.main-nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: #1e69aa;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.main-nav-item.active::after {
  transform: scaleX(1);
}

.main-nav-item a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.2s ease;
  user-select: none;
}

.main .main-nav-item a {
  color: #fff;
}

.dropdown .main-nav-item a {
  color: #333;
}

.main-nav-item a:hover, .main-nav-item.active a {
  color: #1e69aa;
}

header hr {
  display: none;
  grid-column: 1 / span 3;
  border: none;
  height: 1px;
  background-color: #909090;
  margin: 0;
}

header.dropdown hr {
  display: block;
}

#dropdown {
  display: none;
  height: 15em;
  grid-column: 2 / span 1;
  color: #333;
}

.dropdown #dropdown {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.dropdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0.7em;
}

/* .dropdown-list.hidden {
  opacity: 0;
} */

.dropdown-list.hidden .dropdown-item {
  display: none;
}

.dropdown-item {
  padding: 8px 0;
  width: 7.4em;
}

.dropdown-item a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* 1111111111111111111111111111111 */

#margin {
  width: 100%;
  height: 4em;
}

#contents {
  width: 100%;
  background-color: #fff;
  overflow: hidden;
  min-height: calc(100vh - 12rem);
}

#main-banner {
  display: flex;
  transition: translate 0.3s ease, transform 0.3s ease;
}

.slide {
  flex: 0 0 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #000;
  user-select: none;
}

.slide-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.slide-caption * {
  position: absolute;
  color: white;
  cursor:text;
  opacity: 0;
}

.slide-caption.active * {
  opacity: 1;
  translate: 0 0;
}

.slide-title {
  bottom: 23%;
  left: 4%;
  font-size: 3rem;
  font-weight: bold;
  translate: 8em 0;
  transition: translate 1.2s ease, opacity 1s ease;
}

.slide-subtitle {
  bottom: 33%;
  left: 3.5%;
  font-size: 1.5rem;
  font-weight: 300;
  translate: 5em 0;
  transition: translate 0.8s ease, opacity 1s ease;
}
/* 
.slide-title.active, .slide-subtitle.active {
  opacity: 1;
  translate: 0 0;
} */

#dots {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 15px;
  font-size: 0.7em;
  user-select: none;
  color: white;
}

.dot {
  transition: all 0.3s ease;
}

.dot:hover {
  cursor: pointer;
  transform: scale(1.2);
}

#content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 16rem);
}

#content .title {
  font-size: 2.5em;
  font-weight: 900;
  margin: 100px 0 20px;
  color: #333;
  text-align: center;
}

#content .subtitle {
  font-size: 0.5em;
}

#business {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 50px;
  justify-content: center;
}

.business-item {
  width: 100%;
  max-width: 15em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.business-img {
  overflow: hidden;
  width: 15em;
  height: 15em;
  position: relative;
  /* background: none;  // 필요시 추가 */
}

/* 이미지 숨기기 */
.business-item img:not(.business-inner img) {
  display: none;
}

/* business-div 항상 보이게 */
.business-div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1e69aa;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  transition: none;
  padding: 1em;
}

/* business-inner(로고+텍스트) 항상 흰색 */
.business-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  width: 100%;
  height: 100%;
  border: 1px solid #ffffff;
  box-sizing: border-box;
}

.business-inner img {
  width: 4em;
  height: 4em;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.business-inner p {
  font-size: 1em;
  font-weight: bold;
  margin: 0;
}

.business-item:hover img {
  transform: scale(1.1);
}

.business-text {
  margin-top: 10px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  margin: 10px 1em;
}

.business-more {
  margin-top: 5px;
  font-size: 0.9em;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.business-more p {
  font-weight: 900;
  transition: color 0.2s ease;
}

.business-item:hover .business-more p {
  color: #1e69aa;
}

footer {
  width: 100%;
  height: 12em;
  background-color: #1c1b1b;
  color: #999;
  padding: 60px 50px;
}

#inner-footer {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: auto;
}

.footer-logo {
  width: 3.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  float: left;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-left: 70px;
  float: left;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  /* flex-direction: column; */
  align-items: center;
  gap: 10px;
}

.footer-links ul li {
  margin: 5px 0;
}

.footer-links a {
  text-decoration: none;
  color: #999;
  font-size: 0.9em;
  margin: 5px 0;
  transition: color 0.2s ease;
}

.footer-links p {
  font-size: 0.8em;
  color: #666;
  margin-top: 10px;
}

.footer-links a:hover {
  color: #1e69aa;
}

ul.divider li {
  display: inline;
}

ul.divider li::after {
  content: "|";
  margin: 0 1px 0 10px;
  color: #999;
}

ul.divider li:last-child::after {
  content: "";
}

.footer-extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  float: right;
}

.footer-extra img {
  width: 1.4em;
  height: 1.4em;
  margin-bottom: 10px;
}

.footer-extra button {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-extra button:hover {
  background-color: #444;
}

.lang-select {
  position: relative;
  display: inline-block;
}

.lang-label {
  font-weight: 500;
  width: 4em;
}

.lang-menu {
  display: none;
  position: absolute;
  background-color: #333;
  color: white;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  border-radius: 6px;
  min-width: 120px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 10;
  bottom: 2.5em;
}

.lang-menu.hidden {
  display: none;
}

.language {
  padding: 8px 12px;
  cursor: pointer;
}

.language:hover {
  background-color: #444;
}

.footer-extra ul {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-direction: column;
}

[data-i18n] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* --------------------------------------------------------- */



.message-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.8;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px #0000000d;
}

.message-body .bold-red {
  color: #ff0000;
  font-weight: 600;
}

#president {
  text-align: right;
  font-weight: 700;
  margin-top: 2rem;
  font-family: 'NanumMyeongjo', serif;
  font-size: 1.2rem;
}

#president-name {
  font-size: 1.5rem;
  margin-left: 0.6rem;
}

.history-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 1rem;
}

.login-btn {
  display: inline-block;
  padding: 0.5em 1.5em;
  background: #1e69aa;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #0001;
  margin-left: 1em;
  border: none;
}

.login-btn:hover {
  background: #155080;
  color: #fff;
  box-shadow: 0 4px 12px #0002;
}

/* header.main(메인 배너 위)에서는 배경 없이 파란 글씨 */
header.main .login-btn {
  background: none;
  color: #1e69aa;
  box-shadow: none;
  border: 2px solid #1e69aa;
}

header.main .login-btn:hover {
  background: #1e69aa;
  color: #fff;
}

#certifications {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.certicivantion {
    width: 100%;
}

#map {
    width: 700px;
    height: 500px;
}

#map-data {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    margin: 2em 0.5em;
}

.map-data-title {
    position: relative;
    padding-left: 18px;
}

.map-data-title::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: #1428A0;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.map-marker {
    font-weight: 600;
    padding: 0 8px;
}

.map-marker a {
    text-decoration: none;
    color: #1e69aa;
    transition: color 300ms ease-in;
}

.map-marker a:hover {
    color: #1428A0;
}

.map-marker img {
    width: 100px;
}

#equipments {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    gap: 20px;
}

.equipment {
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.equipment img {
    width: 100%;
    height: 10em;
    object-fit: cover;
}

.equipment-text {
    background-color: #fff;
    width: 100%;
    text-align: center;
    padding: 0.3em 0.1em;
    height: 3.5em;
    line-height: 1.4em;
}