@layer reset, var, header, footer, contents-header, contents-tabs;

@import url('config.css');

.index {
  width: 100%;
  height: 18.75rem;
  background-image: url('../css/img/greet_idx_bg.jpg');
  background-position: center;
  background-size: cover;
  padding-top: 17.155rem;
} /* end of .index */

.index .spotNav {
  width: 17rem;
  background-color: #000;
  padding: 0 10px;
} /* end of .index .spotNav */

.index .spotNav span {
  color: var(--bg-color5);
  font-weight: 600;
  font-size: var(--font-size5);
} /* end of .index .spotNav span */

@layer contents-header{ 
  .contents-header {
    padding-top: 3.75rem;
  } /* end of .contents */

  .contents-header .row h1 {
    font-size: var(--font-size2);
    font-weight: 700;
  } /* end of . */
}

.article {
  margin-bottom: 6.25rem;
} /* end of ..article */

@layer contents-tabs { 
  .inner-header {
    padding: 3.75rem 0;
    display: flex;
  } /* end of .inner-header */

  .inner-header > div {
    font-size: var(--font-size4);
    font-weight: 500;
    color: var(--font-color2);
    margin-right: 4rem;
    cursor: pointer;
    position: relative;
    transition: color .5s ease-in-out;
  } /* end of .inner-header */

  .inner-header > div:hover {
    color: var(--color-primary);
  } /* end of .inner-header > div:hover */

  .inner-header > div:after {
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
    height: 5px;
    background-color: var(--color-primary);
    bottom: -15px;
    display: none;
    transition: all 0.3s ease-in-out;
  } /* end of .inner-header div::after */

  .inner-header > div.active:after {
    display: block;
  } /* end of .inner-header > div.active:after */

  .inner-body > div {
    border: 2px solid var(--border-color1);
    display: none;
  } /* end of .inner-body > div */

  .inner-body > div.active {
    display: block;
  } /* end of .inner-body > div.active */
}

.article .inner-body > div:nth-child(1) {
  padding: 1.875rem 0;
  text-align: center;
  vertical-align: middle;
  height: 77.5rem;
} /* end of .article .inner-body > div */

#pdfFile {
  width: 70%;
  height: 72.9rem;
} /* end of #pdfFile */

.article .inner-body .history {
  padding: 2.5rem 2.5rem;
} /* end of .article .innerbody > div:nth-child(2) */

.article .inner-body .history .history-title {
  display: flex;
  justify-content: center;
  padding: 1.5rem 2.5rem;
  background-color: var(--bg-color7);
} /* end of .article .inner-body .history .history-title */

.article .inner-body .history .history-title div {
  margin: 0 20px;
  font-weight: 400;
  color: var(--font-color1);
  cursor: pointer;
} /* end of .article .inner-body .history .history-title */

.article .inner-body .history .history-title div.active {
  font-weight: 600;
  border-bottom: 2px solid var(--font-color1);
} /* end of .article .inner-body .history .history-title.open */

.article .inner-body .history .history-body > div {
  display: none;
  padding: 15px 10px;
} /* end of .article .inner-body .history .history-body div */

.article .inner-body .history .history-body > div.active {
  display: block;
} /* end of .article .inner-body .history .history-body div.active */

.article .inner-body .history .history-body > div > div {
  display: grid;
  border-bottom: 1px solid var(--border-color1);
  padding: 10px 10px;
  grid-template-columns: 2fr 8fr;
} /* end of .article .inner-body .history .history-body > div > div */

.article .inner-body .history .history-body > div > div > .date {
  font-size: var(--font-size16);
  font-weight: 500;
  color: var(--font-color1);
  width: 5.9375rem;
} /* end of .article .inner-body .history .history-body > div > div > .year */

.article .inner-body .history .history-body > div > div > .activities {
  color: var(--font-color1);
  font-size: var(--font-size16);
} /* end of .article .inner-body .history .history-body > div > div > .activites */

/* ========== Resposive ========== */ 
/* 테블릿 가로 */
@media (max-width: 992px) {
  .container {
    padding: 0 0.9375rem;
  } /* end of .container */
}
/* 테블릿 세로 */
@media (max-width: 768px) {
  .contents-header {
    padding-top: 3rem;
  } /* end of .contents */

  .contents-header .row h1 {
    font-size: var(--font-size11);
    font-weight: 700;
  } /* end of . */

  .inner-header {
    padding: 2.75rem 0;
  } /* end of .inner-header */

  .inner-header > div {
    margin-right: 2.7rem;
    font-size: var(--font-size13);
  } /* end of .inner-header */
}

@media (max-width: 575px){ 
  .article .container .inner-body .active iframe {
    width: 90% !important;
  } /* end of .article .container .inner-body .active ifram */
}

/* 모바일 */ 
@media (min-width: 360px) and (max-width: 574px){
  .article .inner-body .history .history-title {
    padding: 1.5rem 0.2rem;
  } /* end of .article .inner-body .history .history-title */

  .article .inner-body .history {
    padding: 2.5rem 0.5rem;
  } /* end of .article .innerbody > div:nth-child(2) */
}
