  /*  */
  /* learning.css ::AI 온북 플랫폼의 특징 */
  /*  */
  .learning-system__inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
}

.learning-system__title {
    font-family: 'NanumRoundEB';
    margin-top: 100px;
    font-size: 34px;
    font-weight: 800;
    line-height: 60px;
    letter-spacing: -0.04em;
    text-align: center;    
}

.learning-system__list {
    display: grid;
    grid-template-columns: repeat(4, 282px);
    gap: 24px;
    margin-top: 30px;
    justify-content: center;
}

.learning-system__item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 32.5px -7px #A3A3A340;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    width: 282px;
    height: 304px;
    display: flex;
    flex-direction: column;
}

/* Image containers */
.plat1, .plat2, .plat3, .plat4 {
    width: 100%;
    height: 170px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plat1 img, .plat2 img, .plat3 img, .plat4 img {
    width: 100%;
    height: 170px;
    object-fit: contain;
}

/* Video hover effects */
.learning-system__item video {
    display: none;
    width: 100%;
    height: 170px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.learning-system__item:hover video {
    display: block;
}

.learning-system__item:hover img {
    display: none;
}

.learning-system__text {
    padding: 20px;
    font-family: 'Pretendard';
}

.learning-system__text p {
    font-size: 24px;
    line-height: 24px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.02em;
}

.learning-system__text span {
    display: block;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: -0.03em;
    text-align: center;
    color: #323232;
}

/* Desktop (1200px and below) */
@media screen and (max-width: 1199px) {
    .learning-system__list {
        grid-template-columns: repeat(4, 167px);
        gap: 15px;
        justify-content: center;
    }
    
    .learning-system__item {
        width: 167px;
        height: 215px;
    }

    .plat1, .plat2, .plat3, .plat4,
    .plat1 img, .plat2 img, .plat3 img, .plat4 img,
    .learning-system__item video {
        height: 101px;
    }
    
    .learning-system__text p {
        font-size: 20px;
    }
    
    .learning-system__text span {
        font-size: 14px;
    }
}

/* Tablet (768px and below) */
@media screen and (max-width: 767px) {
  
    .learning-system__title {
        font-size: 28px;
        line-height: 40px;
    }

    .learning-system__list {
        grid-template-columns: repeat(2, 354px);
        gap: 20px;
        margin-top: 40px;
    }
    
    .learning-system__item {
        width: 354px;
        height: 320px;
    }

    .plat1, .plat2, .plat3, .plat4,
    .plat1 img, .plat2 img, .plat3 img, .plat4 img,
    .learning-system__item video {
        height: 170px;
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
  .learning-system__inner {
    max-width: 100%;
  padding: 0;}

    .learning-system__title {
        font-size: 24px;
        line-height: 32px;
    }

    .learning-system__list {
        grid-template-columns: 327px;
        gap: 16px;
    }
    
    .learning-system__item {
        width: 327px;
        height: 280px;
    }

    .plat1, .plat2, .plat3, .plat4,
    .plat1 img, .plat2 img, .plat3 img, .plat4 img,
    .learning-system__item video {
        height: 160px;
    }
}

/* 팝업창 스타일적용 */

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: rgba(254, 255, 255, 0.334); /* Semi-transparent background */
  backdrop-filter: blur(8px); /* Blur effect */
  z-index: 99999999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-content {
  position: relative;
  top: 10%;
  /*
  left: 20%;
  */	
  margin: 0 auto;
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 1088px;
  max-height: 726px;
  padding: 40px 41px 121px 41px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.popup-content video {
  width: 100%;
  height: auto;
  border: 1px solid #CDCDCD; 
}

/* Close button */
.close-btn {
  position: absolute;
  top: 88%;
  right: 5%;
  width: 64px;
  height: 44px;
  /* Rectangle 12012 */
  box-sizing: border-box;
  border: 0.18px solid #CDCDCD;
  border-radius: 6px;
  font-family: 'Pretendard';
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  /* identical to box height */
  text-align: center;
  letter-spacing: -0.04em;
  background-color: #FFFFFF;
  color: #151515;
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

/* Close button hover effect */
.close-btn:hover {
  background-color: #CDCDCD;
}


  /*  */
  /* learning course 한 번에 끝내는 AI 학습코스 */
  /*  */
  .learning-course__inner {
    width: 1200px;
    margin: 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 160px 0;
  }

  .learning-course__list {
    grid-template-columns: repeat(1, 1200px);
    align-content: center;
    justify-content: center;
  }
  .learning-course__title {
    text-align: center;
    font-size: 40px;
    line-height: 60px;
    font-weight: 700;
  }
  .learning-course__item {
    padding: 0;
    background-color: #FFFFFF;
    width: 1200px;
    height: 294px;
    border-radius: 10px;
    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.25);
    overflow: hidden;
  }
  
  .learning-course__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }
  
  .learning-course__text {
    padding: 40px 24px;
    flex: 1;
  }
  
  .learning-course__image {
    width: 280px;
    height: 279px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .learning-course__item img {
    width: 280px;
    height: 279px;
    object-fit: cover;
  }
  
  .learning-course__name {
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
  }
  
  .learning-course__desc {
    display: block;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #323232;
    margin-bottom: 24px;
  }
  
  .learning-course__btn {
    background-color: #fff;
    color: #4D46D5;
    border: 1px solid #4D46D5;
    padding: 7px 23px;
    border-radius: 6px;
    line-height: 24px;
    font-size: 16px;
    font-weight: 500;
  }
  
  .learning-course__btn:hover {
    background-color:#4D46D5;
    color: #FFFFFF;
  }
  
/* 모바일 (최대 767px) */
@media screen and (max-width: 767px) {

  /* 학습 코스 섹션 */
  .learning-course__inner {
    width: 100%;
    padding: 80px 24px;
  }
  .learning-course__title {
    text-align: center;
    font-size: 24px;
    line-height: 36px;
    font-weight: 600;
  }
  .learning-course__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .learning-course__desc {
   margin: 0; 
  }
  .learning-course__text{
    width: 100%;
    height: 300px;
    padding: 0;
  }
  .learning-course__list {
    margin-top: 24px;
    display: flex;
    flex-direction: column; 
    gap: 24px;
  }
  .learning-course__item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 24px;
    height: auto;
  }
  .learning-course__image {
    width: 120px;
    height: 120px;
    object-fit: cover;
  }
  .learning-course__image img{
    width: 120px;
    height: 120px;
    margin-top: 0;
  }
  .learning-course__text p {
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
  }
  .learning-course__text span {
    margin-top: 8px;
    font-size: 16px;
    line-height: 24px;
  }
  
  .learning-course__btn {
    font-size: 16px;
    padding: 7px 16px;
    margin-top: 16px;
  }
}
