/* 학원소개 페이지 스타일 */
.greeting-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: #fff;
}

/* 상단 타이틀 */
.greeting-title {
    text-align: center;
    margin-bottom: 2rem;
}

.greeting-title h1 {
    font-size: 42px;
    font-weight: 400;
    color: #111;
    margin: 0;
}

/* 본문 설명 이미지 */
.greeting-content {
    text-align: center;
    margin-bottom: 2rem;
}

.greeting-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 구분선 */
.section-divider {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin: 2rem 0;
}

/* 시설 소개 슬라이더 */
.facility-slider {
    width: 100%;
}

.slider-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.main-image-container {
    width: 720px;
    max-width: 100%;
    text-align: center;
}

.main-facility-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev-arrow {
    left: -60px;
}

.next-arrow {
    right: -60px;
}

/* 썸네일 컨테이너 */
.thumbnail-container {
    width: 100%;
    overflow-x: auto;
    padding: 1rem 0;
}

.thumbnail-wrapper {
    display: flex;
    gap: 0.5rem;
    padding: 0 0.5rem;
    white-space: nowrap;
}

.facility-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.facility-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.facility-thumbnail.active {
    opacity: 1;
    border: 2px solid #345f53;
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
    .greeting-page {
        padding: 1.5rem 1rem;
    }
    
    .main-image-container {
        width: 600px;
    }
    
    .prev-arrow {
        left: -50px;
    }
    
    .next-arrow {
        right: -50px;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    .greeting-page {
        padding: 1rem;
    }
    
    .greeting-title h1 {
        font-size: 1.3rem;
    }
    
    .main-image-container {
        width: 100%;
    }
    
    .slider-main {
        padding: 0 50px;
    }
    
    .prev-arrow {
        left: 10px;
    }
    
    .next-arrow {
        right: 10px;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .facility-thumbnail {
        width: 70px;
        height: 50px;
    }
}

/* 반응형 - 작은 모바일 */
@media (max-width: 480px) {
    .greeting-page {
        padding: 0.75rem;
    }
    
    .greeting-title h1 {
        font-size: 1.2rem;
    }
    
    .slider-main {
        padding: 0 40px;
    }
    
    .prev-arrow {
        left: 5px;
    }
    
    .next-arrow {
        right: 5px;
    }
    
    .slider-arrow {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .facility-thumbnail {
        width: 60px;
        height: 45px;
    }
} 
/* ===== Admin 편집 모드 스타일 ===== */

/* 편집 툴바 */
.editor-toolbar {
    position: sticky;
    top: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.toolbar-btn:hover {
    background: #e0e0e0;
    border-color: #999;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: #ddd;
    margin: 0 5px;
}

.save-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
}

.save-btn:hover {
    background: #45a049;
}

.greeting-content-editable {
    min-height: 400px;
    padding: 20px;
    border: 2px dashed #ddd !important;
    border-radius: 4px;
    outline: none;
}

.greeting-content {
    margin-bottom: 20px;
}

.greeting-content-editable:focus {
    border-color: #4CAF50;
    background: #fafafa;
}

.greeting-content-editable img {
    max-width: 100%;
    height: auto;
}

.edit-notice {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #ffc107;
}

.save-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.save-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.save-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

input[type="file"] {
    display: none;
}

/* 슬라이더 관리 UI */
.slider-management {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.slider-management h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.slider-upload-area {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-upload-area:hover {
    border-color: #4CAF50;
    background: #f0f0f0;
}

.slider-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.slider-image-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1;
}

.slider-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-image-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-image-delete:hover {
    background: rgba(255, 0, 0, 1);
}

.slider-image-order {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}
