.app-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 0;
    min-height: 50vh;
    position: relative;
    overflow: hidden;
}

.app-section.dark-gray-bg {
    background-color: #1a1a1a;
}

.app-section.red-bg {
    background-color: #F67375;
}

/* 텍스트와 이미지 컨테이너 */
.app-content {
    width: 100%;
    display: flex;
    justify-content: space-between; /* 텍스트와 이미지를 양 끝으로 배치 */
    align-items: center; /* 세로 중앙 정렬 */
    position: relative; /* 내부 요소의 z-index를 위해 */
    z-index: 2; /* 배경 이미지 위에 오도록 */
}

/* 텍스트 영역 */
.app-content .text-area {
    color: #fff; /* 텍스트 색상을 흰색으로 */
    max-width: 35%; /* 텍스트 영역 너비 제한 */
}

.app-content .text-area h3 { /* snaptable, pre-memo 같은 부제목 */
    font-size: 1em;
    font-weight: 400;
    line-height: 140%;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
}

.app-content .text-area h2 {
    font-size: 2.5em;
    font-weight: 600;
    line-height: 140%;
    margin-bottom: 16px;
    color: #fff;
}

.app-content .text-area p {
    font-size: 1em;
    line-height: 140%;
    font-weight: 400;
    color: #fff;
    margin-bottom: 30px;
}

.app-content .text-area .more-button {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #fff; /* 버튼 테두리 흰색 */
    border-radius: 5px;
    text-decoration: none;
    color: #fff; /* 버튼 텍스트 흰색 */
    font-weight: 500;
    transition: all 0.3s ease;
}

.app-content .text-area .more-button:hover {
    background-color: #fff;
    color: #333; /* 호버 시 텍스트 색상 변경 */
}

/* 앱 아이콘 (텍스트 영역 내부에 포함) */
.app-content .text-area .app-icon {
    width: 120px; /* 아이콘 크기 조절 */
    height: 120px;
    border: none; /* 아이콘 테두리 제거 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px; /* 아이콘과 제목 사이 간격 */
}

.app-content .text-area .app-icon img {
    max-width: 100%; /* 이미지 크기 조절 */
    height: auto;
}

/* 앱 화면 이미지 컨테이너 */
.app-screen-image {
    width: 500px; /* 앱 화면 이미지 컨테이너 너비 (필요에 따라 조절) */
    position: absolute; /* 절대 위치로 배치 */
    right: 0; /* 오른쪽에 딱 붙도록 */
    top: 50%; /* 섹션의 세로 중앙에 오도록 */
    transform: translateY(-20%);
    z-index: 1; /* 텍스트 영역 뒤에 오도록 (하지만 배경색 위에) */
}

.app-screen-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 첫 번째 섹션 (사진에표) 이미지 위치 조정 */
.app-section.dark-gray-bg .app-screen-image {
    width: auto;
    height: 750px;
}
/* 두 번째 섹션 (미리메모) 이미지 위치 조정 */
.app-section.red-bg .app-screen-image {
    width: auto;
    height: 750px;
}

/* 반응형을 위한 미디어 쿼리 (필수적) */
@media (max-width: 992px) {
    .app-section {
        min-height: auto;
    }

    .app-content {
        padding: 0 40px;
    }

    .app-content .text-area {
        max-width: 50%;

        display: block;
        align-items: flex-start;
    }

    .app-content .text-area h2 {
        font-size: 2.2em;
    }

    .app-content .text-area p {
        font-size: 0.8em;
    }

    .app-content .text-area .app-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .app-screen-image {
        position: absolute;
        width: 450px;
        height: auto;
    }

    /* 섹션별 이미지 스타일 재정의 */
    .app-section.dark-gray-bg .app-screen-image,
    .app-section.red-bg .app-screen-image {
        width: 450px; 
        height: auto;
    }
}

@media (max-width: 768px) {
    /* 768px 이하에서는 다시 세로로 쌓도록 변경 */
    .app-section {
        padding-top: 130px;
        max-height: 50vh;
        min-height: 450px;
    }
    
    .app-content {
        flex-direction: column; 
        padding: 0 20px;
    }
    
    .app-content .text-area {
        max-width: 70%;
        min-width: 50%;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .app-content .text-area h2 {
        font-size: 2.0em;
    }
    
    /* 아이콘 중앙 정렬 (세로 배치 시) */
    .app-content .text-area {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .app-content .text-area .app-icon {
        width: 100px;
        height: 100px;
    }

    .app-screen-image {
        display: none;
    }
}