.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: url('../image/FEG1.jpg');
    background-size: cover;
    background-position: center;
    background-color: #f0f7ff; /* 이미지 로딩 전 보여질 배경색 */
    padding: 240px 5% 180px;
    position: relative;
    will-change: background-image; /* 브라우저에게 변경 사항을 미리 알림 */
    -webkit-backface-visibility: hidden; /* 성능 최적화 */
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: background-image 1s ease-in-out;
}
  
.hero-text {
    flex: 1;
    text-align: right;
    transition: opacity 0.8s ease;
}
  
.hero-text.fade-out {
    opacity: 0;
}
  
.hero-text.fade-in {
    opacity: 1;
}
  
.hero-text h1 {
    font-size: 40px;
    margin-bottom: 18px;
    color: #0056d6;
}
  
.hero-text p {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* 이미지 프리로드를 위한 가상 요소 */
.hero::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 1px;
    background-image: url('../image/FEG1.jpg');
    opacity: 0;
    z-index: -1;
}