/* ====================================================
   company.css
   Hexagons 회사소개 페이지 전체 스타일
   ==================================================== */

/* 전체 래퍼 */
.company-wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 40px 0; /* 상단 간격 최소화 */
  font-family: 'Noto Sans KR', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  box-sizing: border-box;
}

/* ===========================
   회사소개 카드
   =========================== */
.card.full-width {
  background-image: url("https://hexagons.kr/static/images/f_bg.jpg");
  /* background: url("https://hexagons.kr/static/images/cloud_sky.png") no-repeat center/cover; */
  background-size: cover; /* 이미지가 카드 영역을 꽉 채우도록 */
  background-position: center; /* 이미지를 중앙에 배치 */
  background-repeat: no-repeat; /* 이미지 반복 없음 */
  /* 선택 사항: 배경 위에 색상 오버레이를 추가하여 텍스트 가독성 높이기 */
  background-color: rgba(255, 255, 255, 0.3); /* 흰색 오버레이 (80% 불투명) */
  background-blend-mode: overlay; /* 이미지와 색상 오버레이 블렌딩 */
  /* background: linear-gradient(135deg, #f5f7fa, #e4ebf2); */
  padding: 30px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  margin: 0 0 35px 0;
  text-align: center;
  transition: transform 0.3s;
}

.card.full-width:hover {
  transform: translateY(-4px);
}

/* ===========================
   상단 3단 박스
   =========================== */
.company-top {
  display: flex;
  gap: 24px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.company-box {
  flex: 1;
  min-width: 260px;
  background: linear-gradient(145deg, #f7f9fc, #e2e8f0);
  border-radius: 16px;
  padding: 25px 20px 20px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
  position: relative;
}

.company-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* 상단 박스 타이틀 */
.company-box .box-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 12px 18px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #007bff, #00c6ff); /* 기본 푸른색 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.company-box .box-title:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* 상단 박스 내용 */
.company-box p {
  margin-top: 60px; /* 타이틀 높이만큼 간격 유지 */
}

/* ===========================
   하단 2단 박스
   =========================== */
.company-bottom {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.company-half-box {
  flex: 1;
  min-width: 320px;
  background: linear-gradient(145deg, #f0faf0, #d9f0d9);
  border-radius: 16px;
  padding: 25px 20px 20px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
  position: relative;
}

.company-half-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* 하단 박스 타이틀 */
.company-half-box .box-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 12px 18px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #28a745, #85e085);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.company-half-box .box-title:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* 하단 박스 내용 */
.company-half-box p,
.company-half-box .box-text {
  margin-top: 60px; /* 타이틀 높이만큼 간격 유지 */
}

/* ===========================
   연락처 글 줄간격 조정
   =========================== */
.contact-info p {
  line-height: 1.3; /* 줄간격 좁게 */
  margin: 4px 0;    /* 단락 간격 조정 */
}

.contact-info div {
  margin-top: 10px; /* 버튼과 텍스트 간격 조정 */
}

/* ===========================
   버튼 스타일
   =========================== */
button.btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, #003f7f);
  transform: translateY(-2px);
}

/* ===========================
   지도 이미지
   =========================== */
.map-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: block;
  object-fit: cover;
  box-sizing: border-box;
  transition: transform 0.3s;
}

.map-image:hover {
  transform: scale(1.02);
}

/* ===========================
   반응형
   =========================== */
@media (max-width: 768px) {
  .company-top, .company-bottom {
    flex-direction: column;
  }
  .company-box, .company-half-box {
    width: 100%;
  }

  .map-image {
    width: 100%;
    max-width: 100%;
  }
}
