/* ============================================
   CERTIFICATES SECTION - Figma Design Implementation
   ============================================ */

/* Certificates Section */
.section.certificates {
  background-color: transparent;

  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

/* Certificates Section Background Image with Effects */
.section.certificates::before {
  content: '';
  position: absolute;
  top: 76px;
  left: 0;
  right: -128px;
  bottom: 0;
  background-image: url('../images_figma/certificate-background.png');
  background-size: 1434px 818px;
  background-position: right -128px top -156px;
  background-repeat: no-repeat;
  z-index: -1;
  /* 투명도 조절 (0.0 ~ 1.0) */
  opacity: 0.3;
  /* 블러 효과 (원하는 값으로 조절) */
  filter: blur(90.54px);
}

/* Certificates Wrapper */
.certificates-wrapper {
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0 auto;
  gap: 80px;
}

/* Title Section */
.certificates-title-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 0 40px;
  margin-bottom: 0;
}

.certificates-title-section .section-tag-boarder-wrapper {
  border-radius: 8.2px;
  width: auto;
}

/* Heading Text */
.certificates-heading-text {
  font-family: 'Inter Tight', sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.4;
  color: #f4f6ff;
  letter-spacing: -1.6px;
  margin: 0;
  text-align: center;
}

/* Tabs */
.certificates-tabs {
  display: flex;
  border: 1px solid #626464;
  border-radius: 8px;
  padding: 8px;
  gap: 0;
  width: 269px;
}

.certificates-tab {
  flex: 1;
  height: 42px;
  padding: 9px 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #c8cbe4;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.certificates-tab-active {
  background: radial-gradient(circle at 50% 100%, rgba(158, 169, 255, 1) 0%, rgba(114, 131, 254, 1) 50%, rgba(71, 92, 253, 1) 100%);
  color: #ffffff;
  font-weight: 700;
}

/* Content Section */
.certificates-content-section {
  width: 100%;
  padding: 0 100px;
}

.certificates-content-wrapper {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  width: 100%;
}

/* Image Wrapper */
.certificates-image-wrapper {
  width: 200px;
  height: 354px;
  flex-shrink: 0;
}

.certificates-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Text Content */
.certificates-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

/* Main Heading */
.certificates-main-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.certificates-main-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
}

.certificates-main-description {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
}

/* Why Section */
.certificates-why-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.certificates-why-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
}

.certificates-why-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.certificates-why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.certificates-why-number {
  width: 24px;
  height: 24px;
  border: 1px solid #253db4;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #6578fe;
}

.certificates-why-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.certificates-why-item-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
}

.certificates-why-item-description {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #c8cbe4;
  margin: 0;
}

/* What Section */
.certificates-what-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.certificates-what-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
}

.certificates-what-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.certificates-what-card {
  background-color: #0e1023;
  border: 1px solid #1c2c7b;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-width: 320px;
  min-height: 300px;
  justify-content: space-between;
}

.certificates-what-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.certificates-what-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.certificates-what-card-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.certificates-what-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
}

.certificates-what-card-description {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #c8cbe4;
  margin: 0;
}

/* Technology Section */
.certificates-technology-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.certificates-technology-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
}

.certificates-technology-description {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #f4f6ff;
  margin: 0;
}

.certificates-connection-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
}

.certificates-connection-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #f4f6ff;
  text-align: center;
  margin: 0;
}

.certificates-connection-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.certificates-diagram-image {
  width: 648px;
  height: auto;
  object-fit: contain;
}

.certificates-diagram-line-image {
  width: 1px;
  height: 40px;
}

.certificates-diagram-kdian-image {
  width: 117px;
  height: auto;
  object-fit: contain;
}

.certificates-connection-note {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #f4f6ff;
  text-align: center;
  margin: 0;
  max-width: 410px;
  padding-top: 4px;
  padding-bottom: 20px;
}

/* Benefits Section */
.certificates-benefits-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.certificates-benefits-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
}

.certificates-benefits-grid {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.certificates-benefit-card {
  background-color: #0e1023;
  border: 1px solid #1c2c7b;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.certificates-benefit-header {
  display: flex;
  gap: 10px;
}

.certificates-benefit-icon-wrapper {
  width: 54px;
  height: 54px;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 100%, rgba(158, 169, 255, 1) 0%, rgba(114, 131, 254, 1) 50%, rgba(71, 92, 253, 1) 100%);
}

.certificates-benefit-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.certificates-benefit-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.certificates-benefit-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #f4f6ff;
  margin: 0;
}

.certificates-benefit-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
}

.certificates-benefit-divider {
  height: 0;
  width: 100%;
  border-top: 1px solid #1c2c7b;
  flex-shrink: 0;
}

.certificates-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.certificates-benefit-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.certificates-benefit-item-icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 999px;
  background-color: #0b0c1b;
  border: 1px solid #1c2c7b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.certificates-benefit-item-icon-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.certificates-benefit-item-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #f4f6ff;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.footer-left-text {
  gap: 10px;
}

.footer-left-text-line2 {
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* 반응형 디자인 */
@media screen and (max-width: 991px) {
  .certificates-wrapper {
    gap: 80px;
  }

  .certificates-content-section {
    padding: 0 40px;
  }

  .certificates-content-wrapper {
    gap: 40px;
  }

  .certificates-image-wrapper {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 200 / 354;
    margin: 0 auto;
  }

  .certificates-what-grid {
    flex-direction: column;
    gap: 36px;
  }

  .certificates-what-card {
    min-width: auto;
  }

  .certificates-benefits-grid {
    flex-direction: row;
    gap: 24px;
  }

  .certificates-connection-diagram {
    padding: 0;
  }

  .footer + .company-info-section {
      margin-top: 60px;
  }
}

@media screen and (max-width: 767px) {
  .section.certificates {
    padding-bottom: 60px;
  }

  .certificates-wrapper {
    gap: 40px;
  }
  
  .certificates-title-section {
    padding: 0 20px;
  }

  .certificates-heading-text {
    font-size: 20px;
  }

  .certificates-content-section {
    padding: 0 20px;
  }

  .certificates-content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .certificates-content-wrapper-1 {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .certificates-image-wrapper {
    width: 200px;
    height: 354px;
    margin: 0 auto;
    padding-top: 20px;
  }

  .certificates-text-content {
    gap: 40px;
    width: 100%;
  }

  .certificates-main-heading {
    gap: 16px;
  }

  .certificates-main-title {
    font-size: 20px;
    line-height: 1.4;
  }

  .certificates-main-description {
    font-size: 14px;
    line-height: 1.5;
  }

  .certificates-why-section {
    gap: 16px;
  }

  .certificates-why-title {
    font-size: 20px;
  }

  .certificates-why-list {
    gap: 10px;
  }

  .certificates-why-item-title {
    font-size: 16px;
  }

  .certificates-why-item-description {
    font-size: 14px;
  }

  .certificates-what-section {
    gap: 20px;
  }

  .certificates-what-title {
    font-size: 20px;
  }

  .certificates-what-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .certificates-what-card {
    height: auto;
    min-height: auto;
    padding: 20px;
    gap: 24px;
  }

  .certificates-what-card-title {
    font-size: 18px;
  }

  .certificates-what-card-description {
    font-size: 14px;
  }

  .certificates-technology-section {
    gap: 16px;
  }

  .certificates-technology-title {
    font-size: 20px;
  }

  .certificates-technology-description {
    font-size: 14px;
  }

  .certificates-connection-section {
    gap: 16px;
  }

  .certificates-connection-title {
    font-size: 16px;
  }

  .certificates-connection-diagram {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .certificates-connection-note {
    font-size: 14px;
    padding-top: 4px;
    padding-bottom: 20px;
  }

  .certificates-benefits-section {
    gap: 20px;
  }

  .certificates-benefits-title {
    font-size: 20px;
  }

  .certificates-benefits-grid {
    flex-direction: column;
    gap: 20px;
  }

  .certificates-benefit-card {
    width: 100%;
    padding: 20px;
    gap: 20px;
  }

  .certificates-benefit-card-title {
    font-size: 16px;
  }

  .certificates-benefit-subtitle {
    font-size: 12px;
  }

  .certificates-benefit-item-text {
    font-size: 14px;
  }

  .footer-left-text-line2 {
    font-size: 14px;
    font-weight: 400;
  }

  /* e-HALAL Content (certificates-content-wrapper-2) Responsive Styles */
  .certificates-content-wrapper-2 {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .certificates-halal-images-wrapper {
    flex-direction: row;
    width: 100%;
    gap: 20px;
    justify-content: center;
  }

  .certificates-halal-image-item {
    flex: 1;
    height: 300px;
    max-width: 50%;
  }

  .certificates-halal-image-item:first-child,
  .certificates-halal-image-item:nth-child(2) {
    height: 300px;
  }

  .certificates-content-wrapper-2 .certificates-text-content {
    gap: 40px;
    width: 100%;
  }

  .certificates-content-wrapper-2 .certificates-main-heading {
    gap: 16px;
  }

  .certificates-content-wrapper-2 .certificates-main-title {
    font-size: 20px;
    line-height: 1.4;
  }

  .certificates-content-wrapper-2 .certificates-main-description {
    font-size: 14px;
    line-height: 1.5;
  }

  .certificates-content-wrapper-2 .certificates-why-section {
    gap: 16px;
  }

  .certificates-content-wrapper-2 .certificates-why-title {
    font-size: 20px;
  }

  .certificates-content-wrapper-2 .certificates-why-list {
    gap: 20px;
  }

  .certificates-content-wrapper-2 .certificates-why-item {
    flex-direction: column;
    gap: 10px;
  }

  .certificates-content-wrapper-2 .certificates-why-item .certificates-why-item-title {
    font-size: 16px;
  }

  .certificates-content-wrapper-2 .certificates-why-item .certificates-why-item-description {
    font-size: 14px;
  }

  .certificates-content-wrapper-2 .certificates-what-section {
    gap: 20px;
  }

  .certificates-content-wrapper-2 .certificates-what-title {
    font-size: 20px;
  }

  .certificates-halal-what-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .certificates-halal-what-grid .certificates-what-card {
    min-width: auto;
    width: 100%;
  }

  .certificates-content-wrapper-2 .certificates-technology-section {
    gap: 16px;
  }

  .certificates-content-wrapper-2 .certificates-technology-title {
    font-size: 20px;
  }

  .certificates-content-wrapper-2 .certificates-technology-description {
    font-size: 14px;
  }

  .certificates-content-wrapper-2 .certificates-connection-section {
    gap: 16px;
  }

  .certificates-content-wrapper-2 .certificates-connection-title {
    font-size: 16px;
  }

  .certificates-content-wrapper-2 .certificates-connection-diagram {
    padding-top: 20px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 0px;
  }

  .certificates-content-wrapper-2 .certificates-connection-note {
    font-size: 14px;
    padding-top: 0px;
    padding-bottom: 20px;
  }

  .certificates-content-wrapper-2 .certificates-benefits-section {
    gap: 20px;
  }

  .certificates-content-wrapper-2 .certificates-benefits-title {
    font-size: 20px;
  }

  .certificates-content-wrapper-2 .certificates-benefits-grid {
    flex-direction: column;
    gap: 20px;
  }

  .certificates-content-wrapper-2 .certificates-benefit-card {
    width: 100%;
    padding: 20px;
    gap: 20px;
  }

  .certificates-content-wrapper-2 .certificates-benefit-card-title {
    font-size: 16px;
  }

  .certificates-content-wrapper-2 .certificates-benefit-subtitle {
    font-size: 12px;
  }

  .certificates-content-wrapper-2 .certificates-benefit-item-text {
    font-size: 14px;
  }

  .certificates-partners-logos {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
}

/* ============================================
   e-HALAL Content Styles
   ============================================ */

/* Halal Images Wrapper */
.certificates-halal-images-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 200px;
  flex-shrink: 0;
}

.certificates-halal-image-item {
  width: 200px;
  height: auto;
  position: relative;
}

.certificates-halal-image-item:first-child {
  height: 282px;
}

.certificates-halal-image-item:nth-child(2) {
  height: 278px;
}

.certificates-halal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Partners List */
.certificates-partners-list {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
  padding-left: 24px;
  list-style-type: disc;
}

.certificates-partners-list li {
  margin-bottom: 0;
}

/* Partners Badge */
.certificates-partners-badge {
  border: 1px solid #253db4;
  border-radius: 999px;
  padding: 0 10px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
}

.certificates-partners-badge-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #6578fe;
  white-space: nowrap;
}

/* Partners Logos */
.certificates-partners-logos {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
}

.certificates-partner-logo {
  width: auto;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.certificates-partner-logo:last-child {
  height: 100px;
  width: auto;
}

.certificates-partner-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Why Badge */
.certificates-why-badge {
  border: 1px solid #253db4;
  border-radius: 999px;
  padding: 0 10px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #6578fe;
  white-space: nowrap;
}

.certificates-content-wrapper-2 .certificates-why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.certificates-content-wrapper-2 .certificates-why-item .certificates-why-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.certificates-content-wrapper-2 .certificates-why-item .certificates-why-item-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
  width: 100%;
}

.certificates-content-wrapper-2 .certificates-why-item .certificates-why-item-description {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #c8cbe4;
  margin: 0;
  width: 100%;
}

/* Halal What Grid */
.certificates-halal-what-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.certificates-halal-what-grid .certificates-what-card {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background-color: #0e1023;
  border: 1px solid #1c2c7b;
  border-radius: 8px;
  height: auto;
  min-height: auto;
  justify-content: flex-start;
}

.certificates-halal-what-grid .certificates-what-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.certificates-halal-what-grid .certificates-what-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.certificates-halal-what-grid .certificates-what-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
  flex: 1;
}

.certificates-halal-what-grid .certificates-what-card-content {
  display: none;
}

/* Halal Certificate Image */
.certificates-halal-certificate-image {
  width: 153px;
  height: auto;
  object-fit: contain;
}

/* Responsive Styles for e-HALAL */
@media screen and (max-width: 991px) {
  .certificates-halal-images-wrapper {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  .certificates-halal-image-item {
    width: 100%;
  }

  .certificates-partners-logos {
    flex-wrap: wrap;
    gap: 40px;
  }

  .certificates-halal-what-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .certificates-halal-what-grid .certificates-what-card {
    min-width: auto;
    flex: none;
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .certificates-halal-images-wrapper {
    max-width: none;
    flex-direction: row;
  }

  .certificates-partners-logos {
    gap: 20px;
  }

  .certificates-halal-what-grid .certificates-what-card {
    flex: 1 1 100%;
    min-width: auto;
  }

  .certificates-halal-image {
    height: 300px;
  }

  .certificates-halal-image-item:first-child {
    height: 300px;
  }

  .certificates-halal-image-item:nth-child(2) {
    height: 300px;
  }

  .certificates-halal-main-description {
    font-size: 14px;
  }

  .certificates-partners-list {
    font-size: 14px;
  }

  .certificates-partner-logo {
    width: auto;
    height: 77.901px;
  }

  .certificates-partner-logo:last-child {
    width: auto;
    height: 77.901px;
  }

  .certificates-content-wrapper-2 .certificates-why-item {
    gap: 10px;
  }

  .certificates-halal-what-grid {
    display: flex;
    flex-direction: column;
  }

  .footer + .company-info-section {
      margin-top: 0px;
  }
}

