/* ==========================================================================
   홈페이지 컴포넌트 스타일
   ========================================================================== */

/* 메인 비주얼 */
.main-visual {
    margin-top: 0;
    margin-bottom: 3rem;
}

.main-visual .carousel-item {
    height: 600px;
    position: relative;
}

.main-visual .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* 배너 제목 */
.banner-title {
    position: absolute;
    bottom: 50px;
    left: 50px;
    background: linear-gradient(to right, rgba(74, 107, 138, 0.9), rgba(74, 107, 138, 0.7));
    padding: 15px 25px;
    border-radius: 3px;
    display: inline-block;
    border-left: 4px solid var(--accent-color);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 80%;
}

.banner-title span {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    display: block;
    padding: 0 5px;
    position: relative;
}

/* 소개 영역 */
.intro-content {
    position: relative;
    padding-bottom: 1.5rem;
}

.intro-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    max-height: 400px;
    margin: 0 auto;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-image-container img {
    transition: all 0.5s ease;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.intro-image-container:hover img {
    transform: scale(1.02);
}

/* 세련된 섹션 타이틀 */
.elegant-title {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    border-bottom: none;
    display: inline-block;
    margin-bottom: 0.8rem;
    position: relative;
}

.elegant-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

/* 전통 카드 스타일 */
.traditional-card {
    border: none;
    background-color: #f9f6f0;
    transition: all 0.4s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.traditional-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.traditional-card .card-top-area {
    background-color: var(--accent-color);
    padding: 2rem 1rem;
    position: relative;
}

.card-top-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='m0 40l40-40h-40v40zm40 0v-40h-40l40 40z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: subtle-move 20s linear infinite;
}

@keyframes subtle-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.traditional-icon {
    width: 70px;
    height: 70px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary-color);
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.traditional-card .card-title {
    color: #4a322b;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* 모던 카드 스타일 */
.modern-card {
    border: none;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.modern-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(74, 107, 138, 0.25);
}

.modern-card .card-body {
    padding: 2.5rem 1.5rem;
}

.modern-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

.modern-card .card-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
}

.modern-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), #5c7d9a);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(74, 107, 138, 0.2);
    transition: all 0.4s ease;
}

.modern-icon i {
    transition: all 0.3s ease;
}

.modern-card:hover .modern-icon {
    transform: scale(1.05) rotate(5deg);
}

.modern-card:hover .modern-icon i {
    transform: scale(1.1);
}

/* 공지사항 카드 */
.notice-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    background: #fff;
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.notice-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 1.5rem;
    position: relative;
    border: none;
}

.notice-header::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    border-radius: inherit;
    z-index: 1;
}

.notice-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-item {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.notice-item:hover {
    background-color: rgba(74, 107, 138, 0.02);
    border-left: 4px solid var(--accent-color);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.notice-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.notice-title {
    flex: 1;
    margin-right: 1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-date {
    color: #888;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* 추가 스타일 */
.section-title {
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.bg-elegant {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.card-content {
    /* 전통 카드의 하단 컨텐츠 영역 */
}

.shadow-elegant {
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07) !important;
}

.btn-traditional {
    background-color: #4a322b;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-traditional:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.btn-modern {
    background: linear-gradient(45deg, var(--primary-color), #5c7d9a);
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-modern:hover {
    background: linear-gradient(45deg, #5c7d9a, var(--primary-color));
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 107, 138, 0.3);
}

.btn-elegant {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-elegant:hover::before {
    left: 100%;
}

.btn-elegant:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(74, 107, 138, 0.3);
}

/* 애니메이션 */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color) var(--scroll-percent, 0%), transparent var(--scroll-percent, 0%));
    z-index: 1000;
    transition: width 0.3s ease;
}

/* 반응형 조정 */
@media (max-width: 1366px) {
    .main-visual .carousel-item {
        height: 500px;
    }
}

@media (max-width: 991px) {
    .main-visual .carousel-item {
        height: 400px;
    }
    
    .banner-title {
        bottom: 30px;
        left: 30px;
        padding: 12px 20px;
    }

    .banner-title span {
        font-size: 1.2rem;
    }
    
    .intro-content {
        margin-bottom: 2rem;
        text-align: center;
    }

    .intro-content .section-title:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .intro-content .btn-elegant {
        margin: 0 auto;
        display: inline-block;
    }

    .intro-image-container {
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .main-visual .carousel-item {
        height: 300px;
    }
    
    .banner-title {
        bottom: 20px;
        left: 20px;
        padding: 10px 15px;
    }
    
    .banner-title span {
        font-size: 1rem;
    }
    
    .intro-image-container {
        max-height: 300px;
    }
    
    .traditional-card .card-top-area,
    .modern-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .traditional-icon,
    .modern-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .notice-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .main-visual .carousel-item {
        height: 220px;
    }
    
    .banner-title {
        bottom: 15px;
        left: 15px;
        padding: 8px 12px;
    }
    
    .banner-title span {
        font-size: 0.9rem;
    }
    
    .intro-image-container {
        max-height: 250px;
    }
} 