.section-4 {
  width: 100%;
  height: 1020px;
  background:#FFFFFF;
  overflow: hidden;
}

.section-inner-4 {
  padding: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-content {
  color: var(--gray-900);
}

.grid-sec4 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  width: 100%;
}

.grid-left{
  margin-left: 60px;
}

.grid-right {
  margin-right: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-item-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.box-item-group-top {
  display: flex;
  gap: 8px;
}

.box-item-group-bottom {
  display: flex;
  gap: 8px;
}

.box-item-top {
  width: 424px;
  height: 200px;
  background-color: var(--gray-200);
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
}

.box-title {
  font-size: var(--text-body-lg);
  font-weight: 500;
  position: relative;
  z-index: 1;
  padding: 24px;
  line-height: 1.3em;
}

.box-visual {
  position: absolute;
  right: 20px;
  bottom: 0;
  width: 154px;
  height: 122px;
}

.box-item-bottom {
  width: 280px;
  height: 200px;
  background-color: var(--gray-200);
  border-radius: 20px;
  position: relative;   
}

.device-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.device-frame-m {
  display: block;
  width: 280px;
  height: auto;
}

.phone-screen {
  position: absolute;
  top: 1%;
  left: 2%;
  width: 95%;
  height: 98%;
  overflow: hidden;
  border-radius: 40px;
}

.phone-screen .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.phone-screen .slide.active {
  opacity: 1;
}

.slide-title {
  /* color: var(--orange-500); */
  padding: 12px; 
  width: 120px;
  /* background-color: #FFF0E2; */
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
  font-size: var(--text-body-sm);
} 

.slide-title.school {
  background-color: var(--orange-100);
  color: var(--color-primary);
}

.slide-title.deli {
  background-color: #EBF0FF;
  color: #6B8BFF;
}

.slide-title.ben {
  background-color: #F0F9F8;
  color: #28C7BA;
}

.device-title .slide-title {
  display: none;
}

.device-title .slide-title.active {
  display: block;
}


.device-bg-mobile{
  filter: drop-shadow(50px 50px 30px rgba(67, 60, 94, 0.1));
}


  /* 태블릿: 1200px 이하 */
@media (min-width: 768px) and (max-width: 1400px) {
  .section-4 {
    height: 860px ; 
  }
  .section-inner-4 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px;
  }
  .grid-left {
    width: 100%;
  }
  .box-item-top {
    width: 420px;
    height: 200px;
    background-color: var(--gray-200);
    border-radius: 20px;
    position: relative;
  }
  .section-content-4 {
    display: flex;
    align-items: center;
  }
  .box-item-top {
    width: 224px;
    height: 200px;
    background-color: var(--gray-200);
    border-radius: 20px;
    position: relative;
  }
  .box-item-bottom {
    width: 224px;
    height: 200px;
    background-color: var(--gray-200);
    border-radius: 20px;
    position: relative;
  } 
  .box-item-group {
    flex-wrap: wrap;
  }
  .box-item-group-top,
  .box-item-group-bottom {
    width: 100%;
  }
  .device-bg-mobile img{
    width: 220px;
  }
  
}  


@media (max-width: 767px) {
  .section-4 {
    height: 1700px;
  }
  .section-inner-4 {
    padding: 80px 40px;
  }
  .grid-sec4 {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .grid-left {
    margin-left: 0;
  }

  .grid-right {
    margin-right: 0;
  }
  .box-item-top {
    width: 256px;
    height: 160px;
    background-color: var(--gray-200);
    border-radius: 20px;
    position: relative;
    
  }
  .box-item-bottom {
    width: 256px;
    height: 160px;
    background-color: var(--gray-200);
    border-radius: 20px;
    position: relative;
  }
  .section-content-4 {
    display: flex;
    align-items: center;
  }
  .box-item-group-top,
  .box-item-group-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px; 
  }

  .box-item-group {
    flex-direction: column;
    display: flex;
    align-items: center;
  }

  .text-br-4 {
    max-width: 280px;
    width: 100%;
    word-break: keep-all;
  }

  .text-br-4 br{
    display: none;
  }

  .device-bg-mobile img{
    width: 220px;
  }
  

  .box-visual img{
    width: 140px;
    height: 116px;
  }
  .box-visual {
    position: absolute;
    right: 10px;
    bottom: 0;
    width: 140px;
    height: 113px;
  }
}
