/* ==============================================================
   회사소개 페이지 - 기업 인증 섹션 스타일
   ============================================================== */

/* 인증 섹션 기본 */
.certifications-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid #e9ecef;
}

.certifications-section .sub-title {
  font-size: 28px;
  font-weight: 700;
  color: #2c2c2c;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.certifications-section .sub-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #E94B35, #FF6B55);
}

/* 정부 인증 그리드 (2열) */
.cert-grid.gov-cert {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 인증 아이템 */
.cert-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.cert-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(233, 75, 53, 0.15);
}

/* 인증서 이미지 영역 - A4 비율 */
.cert-item.a4-ratio .cert-image {
  position: relative;
  width: 100%;
  padding-bottom: 141.4%; /* A4 비율 (297/210 = 1.414) */
  background: #f8f9fa;
  overflow: hidden;
  border-bottom: 1px solid #e9ecef;
}

.cert-item .cert-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.cert-item:hover .cert-image img {
  transform: translate(-50%, -50%) scale(1.05);
}

/* 구글 파트너 인증 섹션 */
.google-partner-cert {
  margin-top: 50px;
  margin-bottom: 30px;
}

.partner-cert-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid #4285f4;
  max-width: 600px;
  margin: 0 auto;
}

.partner-cert-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(66, 133, 244, 0.2);
}

/* 구글 파트너 이미지 (가로형) */
.partner-cert-image {
  position: relative;
  width: 100%;
  padding-bottom: 50%; /* 가로형 비율 (2:1) */
  background: #f8f9fa;
  overflow: hidden;
  border-bottom: 1px solid #e9ecef;
}

.partner-cert-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-cert-item:hover .partner-cert-image img {
  transform: translate(-50%, -50%) scale(1.05);
}

/* 구글 파트너 정보 */
.partner-cert-info {
  padding: 25px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.partner-cert-info h4 {
  font-size: 24px;
  font-weight: 700;
  color: #4285f4;
  margin-bottom: 12px;
}

.partner-cert-info p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* 인증 정보 */
.cert-info {
  padding: 25px;
  text-align: center;
}

.cert-info h4 {
  font-size: 20px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 12px;
}

.cert-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* 인증 뱃지 */
.cert-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #E94B35, #FF6B55);
  color: white;
  letter-spacing: 0.5px;
}

.cert-badge.partner {
  background: linear-gradient(135deg, #4285f4, #34a853);
}

/* 설명 텍스트 */
.cert-description {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-top: 40px;
}

.cert-description p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

.cert-description strong {
  color: #E94B35;
  font-weight: 600;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
  .cert-grid.gov-cert {
    gap: 30px;
  }

  .cert-info h4 {
    font-size: 18px;
  }

  .partner-cert-info h4 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .certifications-section {
    margin-top: 60px;
    padding-top: 40px;
  }

  .certifications-section .sub-title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .cert-grid.gov-cert {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .google-partner-cert {
    margin-top: 30px;
  }

  .partner-cert-item {
    max-width: 100%;
  }

  .cert-item {
    display: flex;
    align-items: center;
    padding: 20px;
  }

  .cert-item.a4-ratio .cert-image {
    width: 120px;
    height: 170px; /* A4 비율 */
    padding-bottom: 0;
    flex-shrink: 0;
    border-right: 1px solid #e9ecef;
    border-bottom: none;
    margin-right: 20px;
  }

  .partner-cert-image {
    padding-bottom: 40%; /* 모바일에서도 가로형 유지 */
  }

  .cert-info {
    flex: 1;
    text-align: left;
    padding: 0;
  }

  .cert-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .cert-info p {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .cert-description {
    padding: 25px 20px;
  }

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

@media (max-width: 480px) {
  .cert-item {
    flex-direction: column;
    text-align: center;
  }

  .cert-item.a4-ratio .cert-image {
    width: 100%;
    height: auto;
    padding-bottom: 141.4%; /* A4 비율 유지 */
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .partner-cert-image {
    padding-bottom: 50%; /* 가로형 비율 유지 */
  }

  .cert-info {
    text-align: center;
  }
}

/* 애니메이션 효과 (AOS 보강) */
.certifications-section[data-aos="fade-up"] {
  transition: all 0.6s ease;
}

.cert-item {
  animation: fadeInUp 0.6s ease;
  animation-fill-mode: both;
}

.cert-item:nth-child(1) {
  animation-delay: 0.1s;
}

.cert-item:nth-child(2) {
  animation-delay: 0.2s;
}

.cert-item:nth-child(3) {
  animation-delay: 0.3s;
}

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