html {
  scroll-padding-top: 130px;
  /* 헤더 높이(112px) + 여유공간(18px) */
}

#mission {
  padding: 20px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

#mission .container {
  max-width: none;
  height: 780px;
  border-radius: 40px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('../img/about-main-img.jpg');
  background-size: cover;
  background-position: center 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 40px;
}

.about-description {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
}

.subsection-title {
  font-size: 42px;
  font-weight: 700;
  color: #000;
}

.subsection-description {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 20px;
  margin-bottom: 80px;
  color: #000;
}

.certification-item {
  border-top: 1px solid #ddd;
  color: #000;
  display: flex;
  align-items: flex-start;
}

.certification-details {
  width: 50%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.certification-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
}

.certification-list {
  display: flex;
  align-items: center;
  gap: 20px;
}

.certification-box {
  background-color: #0066FF;
  padding: 6px 10px;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.Selected-box {
  background-color: #CDFFBC;
  padding: 6px 10px;
  border-radius: 5px;
  color: #000;
  font-size: 14px;
  font-weight: 600;
}

.certification-span {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}


/* 연혁 */
#certificate,
#history,
#contact {
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

#certificate {
  margin-top: 120px;
  color: #000;
  width: 100%;
  margin-bottom: 179px;
}

#history .container {
  width: 100%;
  margin-bottom: 180px;
}

#history .history-image {
  width: 100%;
  max-width: 600px;
  margin-top: 20px;
  display: block;
}

.history-image-preview {
  width: 100%;
  max-width: 600px;
  height: 300px;
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  display: none;
}

.history-timeline {
  display: flex;
  align-items: flex-start;
  width: 100%;
  color: #000;
}

.history-certification {
  color: #000;
  font-weight: 700;
  font-size: 42px;
}

.timeline-list-container {
  width: 100%;
  height: 800px;
  overflow-y: auto;
}

.timeline-img {
  min-width: 400px;
  margin-right: 106px;
  display: flex;
  flex-direction: column;
  gap: 43px;
}

.history-image-preview {
  border-radius: 30px;
  border: 1px solid #ddd;
  width: 400px;
}

.timeline-list {
  height: 120px;
  border-top: 1px solid #ddd;
  width: 100%;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 52px 0 20px;
}

.timeline-list:hover {
  background-color: #f9f9f9;

  .circle {
    background-color: #0066FF;
  }
}

.circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #eeeeee;
}

.list-box {
  display: flex;
  gap: 60px;
  font-size: 20px;
}

.location-details {
  color: #000;
  margin-top: 80px;
  display: flex;
  margin-bottom: 250px;
}

.location-title {
  padding-left: 115px;
  font-size: 42px;
  font-weight: 700;
  width: 50%;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 50%;
}

.location-info div {
  display: flex;
}

.location-info div strong {
  width: 100px;
  font-size: 20px;
}

.location-info div p {
  font-size: 20px;
}

.goggle-map {
  height: 550px;
}

@media (max-width: 1800px) {
  .list-box {
    font-size: 1.5vw;
  }
}

@media (max-width: 1600px) {
  .timeline-img {
    margin-right: 70px;
  }

  .history-image-preview {
    width: 300px;
    height: 250px;
  }

  .timeline-img {
    min-width: 300px;
  }

  .timeline-list {
    padding: 0 30px 0 20px;
  }

  .list-box {
    gap: 30px;
  }
}

@media (max-width: 1200px) {

  .timeline-img {
    margin-right: 0;
  }

  .history-image-preview {
    width: 400px;
    height: 250px;
  }

  .timeline-img {
    min-width: 100%;
  }

  .history-timeline {
    flex-direction: column;
  }

  .list-box {
    font-size: 1.5vw;
  }

  .timeline-list {
    height: 90px;
  }

  .location-title {
    padding-left: 0;
  }

  .location-info div strong {
    font-size: 1.5vw;
    width: 80px;
  }

  .location-info div p {
    font-size: 1.5vw;
  }

  .timeline-list-container {
    margin-top: 20px;
  }

  .certification-span {
    font-size: 1.5vw;
  }
}

@media (max-width: 992px) {

  /* 태블릿에서 헤더 높이 조정 */
  html {
    scroll-padding-top: 100px;
  }

  #certificate {
    margin-top: 80px;
    margin-bottom: 80px;
  }

  #history .container {
    margin-bottom: 80px;
  }

  .location-details {
    margin-bottom: 100px;
  }

  .about-title {
    font-size: 4.0vw;
  }

  .about-description {
    font-size: 2.2vw;
  }

  #mission .container {
    height: 500px;
  }

  .subsection-title {
    font-size: 3.5vw;
  }

  .subsection-description {
    font-size: 1.8vw;
    margin-bottom: 50px;
  }

  .list-box {
    font-size: 1.8vw;
  }

  .location-info div strong {
    font-size: 1.8vw;
    width: 50px;
  }

  .location-info div p {
    font-size: 1.8vw;
  }

  .timeline-list-container {
    margin-top: 20px;
  }

  .certification-span {
    font-size: 1.5vw;
  }

  .certification-title {
    font-size: 2.5vw;
  }

  .Selected-box {
    font-size: 1.5vw;
  }

  .certification-box {
    font-size: 1.5vw;
  }

  .history-certification {
    font-size: 3.5vw;
  }

  .goggle-map {
    height: 400px;
  }
}

@media (max-width: 768px) {

  /* 모바일에서 헤더 높이 조정 */
  html {
    scroll-padding-top: 80px;
  }

  #certificate {
    margin-top: 50px;
    margin-bottom: 50px;
  }

  #history .container {
    margin-bottom: 50px;
  }

  #mission .container {
    height: 400px;
  }

  .subsection-title {
    font-size: 3.5vw;
  }

  .subsection-description {
    font-size: 1.8vw;
    margin-bottom: 50px;
  }

  .history-image-preview {
    width: 300px;
    height: 200px;
  }

  .list-box {
    font-size: 2.1vw;
  }

  .location-title {
    font-size: 4.1vw;
  }

  .goggle-map {
    height: 300px;
  }
}

@media (max-width: 480px) {

  /* 소형 모바일에서 헤더 높이 조정 */
  html {
    scroll-padding-top: 70px;
  }

  #certificate {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  #history .container {
    margin-bottom: 30px;
  }

  #mission .container {
    margin-top: 70px;
    height: 300px;
    width: 100vw;
    margin-left: -20px;
    border-radius: 0;
  }

  .about-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .about-description {
    font-size: 0.9rem;
    padding: 0 10px;
  }


  .subsection-title {
    font-size: 1.4rem;
  }

  .subsection-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .certification-item {
    flex-direction: column;
  }

  .certification-title {
    margin-bottom: 10px;
    font-size: 1.2rem;
  }

  .certification-span {
    font-size: 0.8rem;
  }

  .Selected-box {
    font-size: 0.8rem;
  }

  .certification-box {
    font-size: 0.8rem;
  }

  .certification-details {
    width: 100%;
  }

  .certification-details {
    padding: 20px 0;
    gap: 10px;
  }

  .history-image-preview {
    width: 100vw;
    height: 200px;
    margin-left: -20px;
    border-radius: 0;
  }

  .timeline-list {
    height: 60px;
    padding: 0 10px;
  }

  .list-box {
    font-size: 0.7rem;
    gap: 8px;
  }

  .timeline-list-container {
    height: 400px;
  }

  .circle {
    width: 12px;
    height: 12px;
  }

  .location-title {
    font-size: 4.1vw;
  }

  .goggle-map {
    height: 200px;
    width: 100vw;
    margin-left: -20px;
    border-radius: 0;
  }

  .location-info {
    gap: 10px;
  }

  .location-details {
    margin-top: 50px;
  }

  .location-info div strong {
    font-size: 0.7rem;
  }

  .location-info div p {
    font-size: 0.7rem;
  }

  .location-title {
    width: 40%;
  }
}

/* 통일된 반응형 padding */
@media (max-width: 1600px) {
  #about-section .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 1200px) {
  #about-section .container {
    padding-left: 60px;
    padding-right: 60px;
  }
}

@media (max-width: 992px) {
  #about-section .container {
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (max-width: 768px) {
  #about-section .container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 480px) {
  #about-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}