/**** 주요 사업 ****/

/* 전체 페이지 스타일 */
body {
  background-color: #EBF6FD;
  color: #fff;
}

.title__business {
  background-image: linear-gradient(rgba(64,
        63,
        63,
        0.5),
      rgba(64, 63, 63, 0.5)), url('./images/business/business_main.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 320px;
  padding: 60px 10%;
}

.text__title__business {
  font-size: 16px;
}

.text__title__main-business {
  font-size: 32px;
  font-weight: bold;
}

/* 주요 사업 섹션 스타일 */
.main-business {
  max-width: 1200px;
  margin: 0 auto;
  padding: 180px 20px;
  border-bottom: 1px solid #cbcbcb;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 40px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.business-item {
  color: #113873;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  transition: transform 0.3s ease;
  cursor: pointer;
  justify-content: center;
  position: relative;
}

.business-item:hover {
  transform: translateY(-3px);
  background: #113873;
  color: #fff;
}

.business-item:hover .icon-text {
  color: #fff;
  text-decoration: underline;
}

.business-item:hover .plus-ic {
  fill: #ffffff;
}

.business-item>svg {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 18px;
}

.icon-pc {
  width: 40px;
}

#icon-consulting {
  margin-left: 10px;
}

.icon-text {
  font-size: 15px;
  color: #113873;
  margin-top: 16px;
}

/**** 2. 홈페이지 ****/
.homepage-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 180px 20px;
  background-color: #EBF6FD;
  color: #fff;
}

.homepage-header {
  text-align: left;
  margin-bottom: 60px;
}

.section-desc {
  color: #113873;
  font-size: 18px;
  line-height: 1.6;
}

.network-image {
  width: 100%;
  height: 300px;
  margin: 40px 0;
  overflow: hidden;
}

.network-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 프로세스 스텝 스타일 */
.process-steps {
  display: grid;
  gap: 20px;
  margin-top: 60px;
}

.step {
  display: grid;
  gap: 16px;
  background: #ffffff;
  padding: 20px;
}

.step-number {
  font-size: 32px;
  font-weight: bold;
  color: #113873;
}

.step-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #113873;
}

/* 애니메이션 효과 */
.step {
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateX(10px);
  background: #113873;
}

.step:hover .step-desc,
.step:hover .step-number {
  color: #fff;
}

/* 애니메이션 사진 효과 */
.network-image {
  transition: transform 0.3s ease;
  position: relative;
  box-shadow: 0 0 20px rgba(76, 209, 55, 0.2);
}
.network-image:hover {
  transform: translateY(-10px);
}
.network-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      rgba(76, 209, 55, 0.1),
      rgba(76, 209, 55, 0.05));
  pointer-events: none;
}

/****** 배너 ******/

.business-banner {
  background-image: url('./images/business/business_3.png');
  background-size: cover;
  background-position: 85% center;
  background-repeat: no-repeat;
  height: 300px;
  padding: 60px 10%;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
}

.business-banner-text {
  font-size: 28px;
  font-weight: bold;
  text-align: right;
}

/**** 3. 모바일 ****/
.mobile-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 180px 20px;
  background-color: #EBF6FD;
  color: #fff;
  border-bottom: 1px solid #cbcbcb;
}

.mobile-content {
  display: flex;
  gap: 60px;
}

/* 좌측 영역 스타일 */
.mobile-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.highlight-text {
  margin-bottom: 40px;
  color: #113873;
  font-size: 18px;
  line-height: 1.8;
  text-align: left;
}

.mobile-image {
  width: 100%;
  height: 400px;
  box-shadow: 0 0 30px rgba(75, 123, 245, 0.2);
  object-fit: cover;
}

/* 우측 영역 스타일 */
.mobile-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-item {
  padding: 20px;
  background: #113873;
  border-radius: 0 0 12px 0;
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateX(10px);
  background-color: rgba(75, 123, 245, 0.8);
}

.service-item h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}

.service-item p {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  font-weight: 100;
}

/* 추가 효과 */
.mobile-image {
  transition: transform 0.3s ease;
}

.mobile-image:hover {
  transform: scale(1.02);
}

.service-item {
  position: relative;
  overflow: hidden;
}

.service-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(75, 123, 245, 0.1), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item:hover::after {
  opacity: 1;
}

/****** 4. 온라인 마케팅 ******/
.online-marketing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 180px 20px;
  background-color: #EBF6FD;
  border-bottom: 1px solid #cbcbcb;
}

.marketing-content {
  display: flex;
  gap: 60px;
  align-items: center;
}

/* 좌측 이미지 스타일 */
.marketing-image {
  flex: 1;
  position: relative;
}

.marketing-image img {
  width: 100%;
  height: 400px;
  box-shadow: 0 0 30px rgba(75, 123, 245, 0.2);
}

.marketing-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(75, 123, 245, 0.1), transparent);
  border-radius: 12px;
  pointer-events: none;
}

/* 우측 텍스트 스타일 */
.marketing-text {
  flex: 1;
  color: #113873;
}

.section-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #113873;
}

.main-desc {
  font-size: 20px;
  color: #4cd137;
  margin-bottom: 30px;
  line-height: 1.6;
}

.marketing-list {
  list-style: none;
  padding: 0;
  font-size: 18px;
}

.marketing-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  line-height: 1.6;
  color: #113873;
  word-break: keep-all;
  /* 단어 단위 줄바꿈 */
  overflow-wrap: break-word;
  /* 너무 긴 단어는 줄바꿈 */
}

.marketing-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #4cd137;
}

/* 호버 효과 */
.marketing-list li:hover {
  transform: translateX(5px);
  transition: transform 0.3s ease;
  color: #2F76D1;

}

.marketing-image img:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* 애니메이션 효과 */
.marketing-content {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/****** 5. 빅데이터 *****/
.big-data {
  max-width: 1200px;
  margin: 0 auto;
  padding: 180px 20px;
  background-color: #EBF6FD;
  color: #fff;
  border-bottom: 1px solid #cbcbcb;
}

/* 카드 컨테이너 */
.data-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* 카드 스타일 */
.data-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* 첫 번째 카드 배경 */
.data-card:first-child {
  background-image: url('./images/business/business_bigdata-1.jpg');
  background-color: #1a237e;
}

/* 두 번째 카드 배경 */
.data-card:last-child {
  background-image: url('./images/business/business_bigdata-2.jpg');
  background-color: #0d47a1;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-text {
  color: #fff;
  font-size: 22px;
  text-align: center;
  line-height: 1.6;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

/* 설명 텍스트 */
.data-description {
  margin-top: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  background: #ffffff;

}

.data-description p {
  font-size: 18px;
  line-height: 2;
  color: #113873;
  word-break: keep-all;
  /* 단어 단위 줄바꿈 */
  overflow-wrap: break-word;
  /* 너무 긴 단어는 줄바꿈 */
}

/* 호버 효과 */
.data-card:hover .card-overlay {
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.data-card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 애니메이션 */
.data-card {
  transition: all 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.data-card {
  animation: fadeInUp 0.6s ease forwards;
}

.data-card:nth-child(2) {
  animation-delay: 0.2s;
}

/* 공통 모바일 메뉴 스타일 (태블릿 & 모바일) */
@media (max-width: 1279px) {}

/* 태블릿 전용 스타일 */
@media (max-width: 1279px) and (min-width: 769px) {
  .mobile-content {
    gap: 40px;
    align-items: end;
  }

  .service-item {
    padding: 15px;
  }

  .marketing-content {
    gap: 40px;
  }

  .homepage-header {
    margin-bottom: 30px;
  }

  .main-business {
    padding: 90px 20pxs;
  }
}

/* 모바일 전용 스타일 */
@media (max-width: 768px) {
  .business-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
    justify-content: space-between;
  }

  .business-grid>a {
    width: 49%;
  }

  .business-item {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    padding: 20px;
    border-radius: 0;
    gap: 12px;
    box-sizing: border-box;
  }

  .icon-pc {
    width: 30px;
  }

  .icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .icon-wrapper i {
    font-size: 24px;
  }

  #icon-consulting {
    margin: 0;
  }

  .icon-text {
    margin: 0;
  }

  .homepage-section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-desc {
    font-size: 16px;
  }

  .network-image {
    height: 200px;
    margin: 30px 0;
  }

  .step-number {
    font-size: 20px;
  }

  .step-desc {
    font-size: 14px;
  }

  .mobile-section {
    padding: 60px 20px;
  }

  .mobile-content {
    flex-direction: column;
    gap: 40px;
  }

  .highlight-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .online-marketing {
    padding: 60px 20px;
  }

  .marketing-content {
    flex-direction: column;
  }

  .marketing-image {
    width: 100%;
  }

  .marketing-list li {
    font-size: 14px;
  }

  .data-cards {
    grid-template-columns: 1fr;
  }

  .card-text {
    font-size: 20px;
  }

  .data-card {
    min-height: 250px;
  }

  /* 헤더 */

  .title__business {
    height: 220px;
  }

  .text__title__main-business {
    font-size: 30px;
  }

  .text__title__business {
    font-size: 16px;
  }

  /* 주요 사업 */
  .main-business {
    padding: 60px 20px;
  }

  .icon-wrapper img {
    width: 30px;
  }


  /* 홈페이지 */
  .section-desc br {
    display: none;
    text-align: left;
  }

  .step-desc {
    line-height: 24px;
  }

  /* 배너 */
  .business-banner {
    height: 200px;
  }

  .business-banner-text {
    font-size: 16px;
  }

  .business-banner-text br {
    display: none;
  }

  /* 마케팅 */
  .marketing-list li {
    line-height: 24px;
  }
}

/* 작은 모바일 */
@media (max-width: 480px) {

  .business-grid>a {
    width: 100%
  }

  .service-item h3 {
    font-size: 16px;
  }

  .service-item p {
    font-size: 14px;
  }

  .mobile-content {
    gap: 30px;
  }

  .section-title {
    font-size: 20px;
  }

  .main-desc {
    font-size: 15px;
  }

  .marketing-list li {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .big-data {
    padding: 40px 20px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .card-text {
    font-size: 18px;
  }

  .data-description p {
    font-size: 14px;
  }
}