/* Reset 기본 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 전체 레이아웃 설정 */
body {
  font-family: Arial, sans-serif;
  /* background-color: #f4f4f9; */
  color: #333;
  background-image: url("../images/back.png");
  background-size: cover;
}

/* 네비게이션 바 스타일 */
.navbar {
  /* background-color: #333; */
  padding: 1rem 0;
  color: #fff;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 0 2rem;
}

.navbar .brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.navbar .nav-links {
  margin-left: auto;
  /* 이 부분 추가 -> 오른쪽 정렬 */
  display: flex;
  /* 가로 정렬 유지 */
  align-items: center;
  /* 세로 정렬 */
}

.navbar .nav-links a {
  margin-left: 1rem;
  padding: 8px 16px;
  /* 버튼처럼 보이게 */
  color: white;
  /* 텍스트 색상 */
  background-color: #333;
  /* 파란색 버튼 */
  border-radius: 5px;
  /* 둥근 모서리 */
  text-decoration: none;
  /* 밑줄 제거 */
  font-weight: bold;
  /* 글자 굵게 */
  transition: background-color 0.3s ease, transform 0.2s ease;
  /* 부드러운 효과 */
  display: inline-block;
  /* 크기 유지 */
}

/* 호버 효과 */
.navbar .nav-links a:hover {
  /* background-color: #0056b3; */
  /* 어두운 파란색 */
  transform: scale(1.05);
  /* 약간 확대 */
}

/* 메인 콘텐츠 영역 */
/* .main-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
} */

.welcome {
  display: flex;
  justify-content: center;
  align-items: center;
  /* 페이지의 60% 높이 중앙에 위치 */
  text-align: center;
}

.welcome p {
  font-size: 1.8rem;
  font-weight: 500;
  padding: 10px 20px;
}

/* 큰 버튼 스타일 */
.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.big-button {
  display: inline-block;
  padding: 20px 40px;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background-color: #333;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.big-button:hover {
  background-color: #555;
}

/* 푸터 스타일 */
footer {
  /* background-color: #333; */
  color: #333;
  padding: 1rem 0;
  text-align: center;
  padding: 1rem 0;
  /* position: fixed; */
  /* 푸터를 고정 */
  bottom: 0;
  /* 화면 하단에 위치 */
  left: 0;
  width: 100%;
  /* 화면 전체 너비 */
  /* z-index: 10; */
  /* 다른 요소 위에 푸터가 위치하도록 설정 */
}

footer p {
  margin: 0;
}

/* 헤더 스타일 */
.custom-header {
  background-color: #333;
  /* 헤더 배경색 */
  color: white;
  /* 텍스트 색상 */
  padding: 15px;
  border-radius: 4px 4px 0 0;
}

/* 버튼 스타일 */
.custom-button {
  background-color: #333 !important;
  /* 버튼 배경색: 검정 */
  color: white !important;
  /* 글자색: 흰색 */
  border: none;
  /* 테두리 제거 */
  padding: 10px 20px;
  /* 버튼 내부 간격 */
  border-radius: 4px;
  /* 모서리를 둥글게 */
  transition: background-color 0.3s ease;
  /* 부드러운 호버 효과 */
}

.custom-button:hover {
  background-color: #555 !important;
  /* 호버 시 배경색: 밝은 회색 */
}

/* SSO 버튼 스타일 */
.sso-button {
  background-color: #007bff !important;
  /* 기본 색상: 부트스트랩 기본 블루 */
  color: white !important;
  /* 텍스트 색상 */
  text-decoration: none;
  /* 링크 밑줄 제거 */
  padding: 10px 20px;
  /* 버튼 내부 간격 */
  border-radius: 4px;
  /* 둥근 모서리 */
  transition: background-color 0.3s ease;
  border: none;
  /* 테두리 제거 */
}

.sso-button:hover {
  background-color: #0056b3 !important;
  /* 호버 시 색상 변경 */
  text-decoration: none;
  /* 링크 밑줄 유지 */
}

/* 설명 텍스트 스타일 */
.form-text {
  font-size: 0.875rem;
  /* 글씨 크기: 작게 */
  color: #6c757d;
  /* 연한 회색 (#6c757d는 부트스트랩 기본 텍스트 색상) */
  margin-top: 0.25rem;
  /* 간격 추가 */
}

/* 에러 메시지 스타일 (유지) */
.alert-danger {
  font-size: 0.875rem;
  /* 작은 글씨 */
  padding: 5px 10px;
}

/* 입력 필드 스타일 */
.form-group input {
  background-color: #f8f9fa;
  /* 연한 배경색 */
  border: 1px solid #ced4da;
  /* 옅은 테두리 */
  border-radius: 4px;
  padding: 10px;
}


.chemidas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* background-color: #fff; */
  padding: 40px 20px;
}

.chemidas-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1044px;
  width: 100%;
  margin-bottom: 68px;
}

.header-description {
  color: #000;
  text-align: center;
  font-family: Pretendard, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  margin-top: 24px;
}

.services-grid {
  display: flex;
  max-width: 1166px;
  width: 100%;
  gap: 24px;
  justify-content: center;
}

.service-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 0 4px rgba(12, 12, 13, 0.2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 300px;
}

.service-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-logo-wrapper {
  width: 280px;
  padding: 15px 56px 9px;
}

.service-logo {
  width: 100%;
}

.cmib-logo {
  width: 72px;
}

.service-subtitle {
  color: #000;
  font-family: Pretendard, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  margin-top: 16px;
  text-align: center;
}

.service-content {
  margin-top: 88px;
}

.features-heading {
  color: #000;
  font-family: Pretendard, sans-serif;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.features-list {
  color: #000;
  font-family: Pretendard, sans-serif;
  font-size: 14px;
  line-height: 22px;
}

.service-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
  padding: 12px;
  border-radius: 4px;
  color: #000;
  font-family: Pretendard, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.button-icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 991px) {
  .services-grid {
    flex-wrap: wrap;
  }

  .service-card {
    min-width: calc(50% - 12px);
  }
}

@media (max-width: 640px) {
  .chemidas-header {
    margin-bottom: 40px;
  }

  .services-grid {
    flex-direction: column;
  }

  .service-card {
    width: 100%;
  }

  .service-content {
    margin-top: 40px;
  }
}