/* =================================================================
   Introduction & Main Index Pages - Styles
   소개 및 메인 페이지 전용 스타일
   ================================================================= */

/* C:\KipaProject\workspace\prj-idearo\idearo_src\src\main\webapp\WEB-INF\jsp\kpoip\moduidea\index.jsp */
/* 겹치는 레이아웃 강제 적용 */
.banner-section {
    position: relative !important;
    padding: 0 1rem !important;
    /* 양끝 여백 줄임 */
    padding-bottom: 4rem !important;
    max-width: 100% !important;
    /* 최대 너비 제한 해제 */
    overflow: hidden !important;
    /* 넘침 방지 */
}

.banner-main {
    position: relative !important;
    z-index: 1 !important;
    padding-bottom: 210px !important;
    margin-bottom: 0 !important;
}

/* 메인 배너 이미지 */
.banner-main img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.banner-sub {
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 2 !important;
    width: calc(100% - 2rem) !important;
    /* 양끝 여백 1rem씩 */
    max-width: 1400px !important;
    /* 최대 너비 증가 */
    justify-content: center !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding-bottom: 70px !important;
}

/* 서브배너 크기 */
.ban-sub a {
    height: 250px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    background: #fff !important;
}

.ban-sub.c01 {
    flex: 0 0 700px !important;
    /* 550px에서 700px로 증가 */
    max-width: 700px !important;
}

.ban-sub.c02,
.ban-sub.c03 {
    flex: 0 0 450px !important;
    /* 이미지 실제 크기에 맞춤 */
    max-width: 450px !important;
}

.ban-sub img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* contain에서 cover로 변경 */
    visibility: visible !important;
    /* 이미지 보이게 변경 */
}

/* 임시 배너 색상 제거 - 주석처리 */
/*
        .ban-sub.c01 a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #d4a574 0%, #c99664 100%);
            opacity: 0.9;
            border-radius: 24px;
            z-index: 1;
        }
        
        .ban-sub.c02 a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #e89438;
            opacity: 0.9;
            border-radius: 24px;
            z-index: 1;
        }
        
        .ban-sub.c03 a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #3a1c74;
            opacity: 0.9;
            border-radius: 24px;
            z-index: 1;
        }
        */

/* 배너 텍스트 오버레이 제거 - 주석처리 */
/*
        .ban-sub a::after {
            content: attr(data-text);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            color: white;
            font-size: 1.8rem;
            font-weight: 700;
            text-align: center;
            letter-spacing: -0.02em;
            white-space: pre-line;
        }
        
        /* 공지사항 텍스트 (중간) */
.ban-sub.c01 a::after {
    font-size: 1.5rem;
}

/* 자유공모/지정공모 텍스트 (작게) */
.ban-sub.c02 a::after,
.ban-sub.c03 a::after {
    font-size: 1.3rem;
}

/* 작은 라벨 */
.ban-sub a .image-label {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 3;
}

.ban-sub a {
    position: relative;
}

*/

/* 이미지 영역 라벨 숨김 */
.ban-sub a .image-label {
    display: none !important;
}

/* 1.png / 1_short.png 전환 */
.ban-sub .img-default {
    display: block !important;
}
.ban-sub .img-short {
    display: none !important;
}

/* 태블릿 및 모바일 반응형 */
@media (max-width: 1460px) {
    .banner-section {
        padding: 0 !important;
        overflow: visible !important;
    }

    .banner-main {
        padding-bottom: 60px !important;
    }

    /* 메인 배너 이미지 */
    .banner-main .swiper-slide img,
    .banner-main img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .banner-sub {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 1rem !important;
        padding: 1rem !important;
        padding-bottom: 2rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: calc(100% - 3rem) !important;
    }

    .ban-sub.c01 {
        flex: 0 0 40% !important;
        width: 40% !important;
        max-width: none !important;
    }

    .ban-sub.c02,
    .ban-sub.c03 {
        flex: 0 0 30% !important;
        width: 30% !important;
        max-width: none !important;
    }

    .ban-sub a {
        height: 180px !important;
        border-radius: 16px !important;
    }

    .ban-sub img {
        object-fit: cover !important;
        border-radius: 16px !important;
    }

}

/* 768px ~ 1024px: _short.png 표시 */
@media (max-width: 1024px) and (min-width: 769px) {
    .ban-sub .img-default {
        display: none !important;
    }
    .ban-sub .img-short {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .banner-main {
        padding-bottom: 40px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .banner-sub {
        flex-wrap: wrap !important;
        gap: 0.8rem !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    .ban-sub.c01 {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: none !important;
    }

    .ban-sub.c02,
    .ban-sub.c03 {
        flex: 0 0 calc(50% - 0.4rem) !important;
        width: calc(50% - 0.4rem) !important;
        max-width: none !important;
    }

    .ban-sub a {
        height: 140px !important;
    }

    .banner-main a,
    .ban-sub a,
    .ban-sub img {
        border-radius: unset !important;
    }

}

@media (max-width: 768px) {
    .banner-main {
        padding-bottom: 40px !important;
    }

    .banner-sub {
        gap: 0.8rem !important;
        /* padding: 0.8rem !important; */
    }

    .ban-sub a {
        height: 140px !important;
        /* border-radius: 12px !important; */
    }

    .ban-sub img {
        /* border-radius: 12px !important; */
    }
}

@media (max-width: 480px) {
    .banner-main {
        padding-bottom: 20px !important;
    }

    .banner-sub {
        gap: 0.6rem !important;
        /* padding: 0.6rem !important; */
    }

    .ban-sub a {
        height: 120px !important;
        /* border-radius: 10px !important; */
    }

    .ban-sub img {
        /* border-radius: 10px !important; */
    }
}

/* C:\KipaProject\workspace\prj-idearo\idearo_src\src\main\webapp\WEB-INF\jsp\kpoip\moduidea\introduction.jsp */
/* 소개 페이지 전용 스타일 */
.intro-container {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
    min-height: 80vh;
}

.intro-header {
    background: linear-gradient(135deg, #3a1c74 0%, #e89438 100%);
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.intro-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.intro-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.intro-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.intro-description {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.intro-description p {
    font-size: 1.13rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    color: #333;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.intro-description p:nth-child(1) {
    animation-delay: 0.1s;
}

.intro-description p:nth-child(2) {
    animation-delay: 0.2s;
}

.intro-description p:nth-child(3) {
    animation-delay: 0.3s;
}

.intro-description p:nth-child(4) {
    animation-delay: 0.4s;
}

.intro-description p:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-description strong {
    color: #6B4FBB;
    font-weight: 700;
    font-size: 1.25rem;
    display: block;
    margin-top: 2rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f9f5ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    border-left: 4px solid #6B4FBB;
    box-shadow: 0 4px 12px rgba(107, 79, 187, 0.1);
}

.intro-buttons {
    display: flex;
    gap: 2rem;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 0 2rem 4rem;
}

.button-item {
    flex: 1;
    padding: 3rem 2rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(107, 79, 187, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.button-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.button-item:hover::before {
    opacity: 1;
}

.button-icon-dot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.button-item:hover .button-icon-dot {
    transform: scale(1.1) rotate(5deg);
}

.button-text {
    text-align: center;
    position: relative;
    z-index: 1;
}

.button-text .title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.button-text .subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3a1c74;
    display: block;
}

/* 반응형 */
@media (max-width: 768px) {
    .intro-header {
        padding: 4rem 1.5rem 3rem;
    }

    .intro-header h1 {
        font-size: 1.8rem;
    }

    .intro-header::before {
        width: 300px;
        height: 300px;
    }

    .intro-description {
        padding: 2rem 1.5rem;
    }

    .intro-description p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .intro-description strong {
        font-size: 1.1rem;
        padding: 1.2rem;
    }

    .intro-buttons {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1.5rem 3rem;
    }

    .button-item {
        padding: 2rem 1.5rem;
    }

    .button-icon-dot {
        width: 60px;
        height: 60px;
    }

    .button-text .title {
        font-size: 1.1rem;
    }

    .button-text .subtitle {
        font-size: 1rem;
    }
}