@charset "utf-8";

/* ==========================================================================
   메인 비주얼 배너
   ========================================================================== */

.visual {
    display: flex;
    align-items: center;
    width: calc(100% - 120px);
    margin: 0 auto;
    border-radius:50px;
    overflow:hidden;
    min-height:700px;
	background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),url("../images/visual.png");
	background-repeat: no-repeat;
	background-size: cover;
}

.visual__inner {
    max-width: 1280px;     
    width: 100%;
    margin: 0 auto;        
    padding: 0 20px;       
    box-sizing: border-box;
}

.visual__text {
    color: #fff;
    font-weight: 600;
}

.visual__text h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom:3.5rem;
}

.visual__text p {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom:1.125rem;
}

.visual__text p:last-child {
    margin:0;
}

.visual__date {
    display:flex;
    align-items:baseline;
    gap:12px;
}

.visual__date p {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

.visual__date span {
    font-size: clamp(0.9rem, 1.8vw, 1rem);  
    background:#ff295d;
    padding:6px 12px;
    border-radius:999px;
}

.visual__button {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    margin-top:40px;
    width:180px;
    height:56px;
    border-radius:999px;
    border:2px solid #fff;
    background:transparent;
    color:#fff;
    font-weight: 600;
}

.visual__button:hover {
    background:#2f73b7;
    color:#fff;
    border:2px solid #2f73b7;
    transition: 0.3s;
}

/* ==========================================================================
   공지사항 
   ========================================================================== */

.notice {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100px;
    padding: 0 3rem;
    box-sizing: border-box;
    overflow: hidden;
}

.notice__title {
    flex-shrink: 0;
    position: relative;
    color: #2f73b7;
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    font-weight: 600;
}

.notice__title:after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 13px;
    background: #a6a6a6;
    margin: 0 15px;
}

.notice__content {
    flex: 1;
    height: 50px;
    overflow: hidden;
    position: relative;
}

.notice__content li {
    height: 50px;
    display: flex;
    align-items: center;
}

.notice__list li a {
    display: flex;
    width: 100%;
    align-items: center;
    color:#54555a;
    font-size: clamp(0.9rem, 1.8vw, 1rem);  
}

.notice__news-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 30px;
    font-weight: 600;
}

.notice__news-date {
    flex-shrink: 0;
    margin-right: 15px;
}

.notice__slide-btn {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notice__btn {
    width: 14px;
    height: 10px;
    border: none;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    padding: 0;
}

.notice__btn--up {
    background-image: url(../images/icon_top_arrow.png);
}

.notice__btn--down {
    background-image: url(../images/icon_down_arrow.png);  
}

/* ==========================================================================
   바로가기
   ========================================================================== */

.quick {
    padding:60px 0;
    background:#f5f7fc;
}

.quick__content {
    display: flex;
    gap: 30px;
}

.quick__card {
    width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-radius:24px;
    padding:40px 20px;
    color:#fff;
}

.quick__card:before {
    content: "";
    display: block;
    margin-bottom: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.quick__card.blue:before {
    width: 53px;
    height: 50px;
    background-image: url('../images/icon_search.png');
}

.quick__card.mint:before {
    width: 50px;
    height: 45px;
    background-image: url('../images/icon_edit.png');
}

.quick__card p:nth-child(1) {
    font-size: clamp(0.9rem, 1.8vw, 1rem);  
}

.quick__card p:nth-child(2) {
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    font-weight: 600;
}

.quick__card button {
    font-weight: 600;
}

.quick__card.blue {
    background:#2f73b7;
}

.quick__card.mint{
    background:#49b6b2;
}

.quick__card.blue button:hover {
    background:#fff;
    color:#2f73b7;
    transition: 0.3s;
}

.quick__card.mint button:hover {
    background:#fff;
    color:#49b6b2;
    transition: 0.3s;
}

.quick__card button{
    margin-top: 20px;
    font-size: clamp(0.9rem, 1.8vw, 1rem);  
    padding: 5px 30px;
    border-radius:999px;
    border:2px solid #fff;
    background:transparent;
    color:#fff;
}

.quick__faq {
    width: 540px;
    background:#fff;
    border-radius:24px;
    padding:40px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.04);
}

.quick__title {
  display:flex;
  justify-content:space-between;
  margin-bottom:24px;
}

.quick__title h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

.quick__list li {
    font-size: clamp(0.9rem, 1.8vw, 1rem); 
    color: #54555a;
    margin-bottom:14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick__list li a:hover {
    color: #1c1c1c;
}

.quick__faq button {
    width: 100%;
    margin-top: 20px;
    font-size: clamp(0.9rem, 1.8vw, 1rem); 
    font-weight: 600;
    padding: 8px 30px;
    border-radius:999px;
    border:2px solid #2f73b7;
    background:transparent;
    color:#2f73b7;
}

.quick__faq button:hover {
    background:#2f73b7;
    color:#fff;
    transition: 0.3s;
}

/* ==========================================================================
   진행중인 공모전
   ========================================================================== */

/* --- 공모전 1개일 때 --- */  
.contest.contest1 {
    padding: 0;
}

.contest__bg {
    display: flex;
    align-items: center;
    margin: 0 auto;
    overflow:hidden;
    min-height:800px;
	background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),url("../images/contest_bg.jpg");
	background-repeat: no-repeat;
	background-size: cover;
}

.contest__text-box {
    display:flex;
    flex-direction: column;
    justify-content:center;
    align-items:center;
    margin-bottom:60px;
    color: #fff;
    line-height: 1.5;
}

.contest__text-box .contest__title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw + 0.5rem, 2rem); 
}

.contest__text-box .contest__desc {
    text-align: center;
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    line-height: 1.5;
}

.contest__btn {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    margin-top:40px;
    width:180px;
    height:56px;
    border-radius:999px;
    border:2px solid #fff;
    background:transparent;
    color:#fff;
    font-weight: 600;
}

.contest__btn:hover {
    background:#2f73b7;
    color:#fff;
    border:2px solid #2f73b7;
    transition: 0.3s;
}

.contest__icon-box {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    color: #fff;
}

.contest__item {
    min-height: 220px;
    height: auto;
    padding:40px 20px;
    color:#fff;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contest__item-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    line-height: 1.5;
}

.contest__item-title {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

.contest__item-text:before {
    content: "";
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 36px;
}

.contest__item-text.date:before {
    background-color: rgba(59, 130, 246, 0.85);
    background-image: url("../images/icon_calendar.svg");
}

.contest__item-text.category:before {
    background-color: rgba(77, 138, 115, 0.85);
    background-image: url("../images/icon_camera.svg");
}

.contest__item-text.qualifications:before {
    background-color: rgba(139, 95, 191, 0.85);
    background-image: url("../images/icon_users.svg");
}

.contest__item-text.awards:before {
    background-color: rgba(192, 138, 61, 0.85);
    background-image: url("../images/icon_trophy.svg");
}

.contest__item-text > svg {
    color: #fff;
}

.contest__item-desc {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
}

.contest__item-desc--period {
    display: inline-block;
    text-align: left;
    line-height: 1.65;
    font-variant-numeric: tabular-nums;
}

/* --- 공모전 2개 이상일 때 --- */  
.contest {
    padding:80px 0;
}

.contest__title {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:32px;
}

.contest__title h2 {
    font-size: clamp(1.375rem, 3vw, 1.875rem);
}

.contest__content {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.contest__card {
    border:1px solid #ddd;
    border-radius:20px;
    overflow:hidden;
    padding:15px 15px 30px;
}

.contest__image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 12px;
}

.contest__image img {
    width: 100%;
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.5s ease-in-out;
    transform: scale(1);
}

.contest__image:hover img {
    transform: scale(1.1);
}

.contest__tag {
    display:flex;
    gap:5px;
    margin-bottom:12px;
}

.contest__icon {
    font-size: 0.875rem;
    font-weight: 600;
    padding:4px 10px;
    border-radius:999px;
}

.contest__icon.local {
    border: 1px solid #f2d284;
    background:#fff5d6;
    color: #9a6700;
}

.contest__icon.on {
    border: 1px solid #bfd5ff;
    background:#eaf2ff;
    color: #1d42d8;
}

.contest__icon.kto {
    border: 1px solid #ffa2b3;
    background:#ffe9ed;
    color: #ef4364;
}

.contest__icon.off {
    border: 1px solid #bfbfbf;
    background:#f6f6f6;
    color: #54555a;
}

.contest__text h3 {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    margin-bottom: 10px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contest__text p {
    font-size: 0.875rem;
    color: #707070;
}

/* ==========================================================================
   역대 수상작 갤러리
   ========================================================================== */

.gallery {
    padding:90px 0 120px;
    background:#f5f7fc;
    overflow: hidden;
}

.gallery__title {
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    margin-bottom: 50px;
    text-align: center;
}

.gallery__title h2 {
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    margin-bottom: 15px;
}

.gallery__title p {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    color: #54555a;
}

.gallery__slider-inner {
    position: relative;
    width: 100%;
    padding: 0 50px; 
    box-sizing: border-box;
}

.gallery__slide-item {
    display: block;
    position: relative;
    width: 100%;  
    aspect-ratio: 1/1;
    border-radius: 40px;
    background-size: cover;
    background-position: center;
    cursor: default;
    isolation: isolate;
    background-color: rgba(0, 0, 0, 0.5); 
    background-blend-mode: darken;
    box-shadow: inset 0 0 0 0px rgba(47, 115, 183, 0);
    box-sizing: border-box;
    transition: box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.4s ease;
}

.gallery__slide-link {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.gallery__slide-link:focus-visible {
    outline: 3px solid #2f73b7;
    outline-offset: 4px;
}

.gallery__slide-item:hover {
    box-shadow: inset 0 0 0 10px #2f73b7; 
    background-color: rgba(0, 0, 0, 0.65); 
}

.gallery__overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    padding: 0 30px;
}

.gallery__slide-item:hover .gallery__overlay {
    transform: translateY(-50%); 
}

.gallery__slide-item:hover .gallery__overlay:before,
.gallery__slide-item:hover .gallery__overlay:after {
    opacity: 1;
    transform: translateY(0);
}

.gallery__text {
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    font-weight: 600;
    line-height: 1.2;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery__slide-item:hover .gallery__text {
    transform: translateY(-5px); 
}

.gallery__detail {
    opacity: 0;
    max-height: 0; 
    overflow: hidden;
    transform: translateY(20px); 
    transition: opacity 0.4s ease, 
                transform 0.6s cubic-bezier(0.25, 1, 0.3, 1), 
                max-height 0.6s cubic-bezier(0.25, 1, 0.3, 1);
}

.gallery__slide-item:hover .gallery__detail {
    opacity: 1;
    max-height: 100px;
    transform: translateY(0); 
}

.gallery__bar {
    width: 22px;
    height: 4px;
    background: #2f73b7;
    margin: 10px auto; 
    
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery__slide-item:hover .gallery__bar {
    transform: translateY(-5px); 
}

.gallery__detail {
    opacity: 0;
    transform: translateY(-5px); 
    transition: opacity 0.3s ease, 
                transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery__slide-item:hover .gallery__detail {
    opacity: 1;
    transform: translateY(5px); 
}

.gallery__detail p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    line-height: 1.5;
}

.gallery__slide-item:hover .gallery__detail p {
    transform: none; 
}

.gallery__slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background: #2f73b7;
    border: none; 
    border-radius: 20%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: clamp(1rem, 2vw, 1.25rem);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.gallery__slide-btn.prev {
    left: calc(50% - 660px - 42px);
    background-image: url(../images/icon_prev.png);
}
.gallery__slide-btn.next {
    right: calc(50% - 660px - 42px);
    background-image: url(../images/icon_next.png);
}

.gallery__slide-btn.prev:disabled {
    background: #a1acb6;
    background-image: url(../images/icon_prev.png);
    right: calc(50% - 660px - 42px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.gallery__slide-btn.next:disabled {
    background: #a1acb6;
    background-image: url(../images/icon_next.png);
    right: calc(50% - 660px - 42px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.gallery__btn-wrap {
    display: flex;
    justify-content: center;
    margin-top:50px;
}

.gallery__btn {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    width:180px;
    height:56px;
    border-radius:999px;
    border:2px solid #2f73b7;
    background:transparent;
    color:#2f73b7;
    font-weight: 600;
}

.gallery__btn:hover {
    color: #fff;
    background: #2f73b7;
}

/* ==========================================================================
   미디어쿼리
   ========================================================================== */

@media (max-width: 1440px) {
    .visual {
        min-height: 630px;
    }

    .visual__text {
        padding-left: 60px;
    }
}

@media (max-width: 1024px) {
    /* --- 메인 비주얼 배너 --- */
    .visual {
        width: calc(100% - 80px);
    }

    /* --- 바로가기 --- */
    .quick__content {
        flex-wrap: wrap;
        justify-content: center;
    }

    .quick__card {
        width: calc(50% - 15px);
    }

    .quick__faq {
        width: 100%;
    }

    /* --- 진행중인 공모전 --- */
    .contest__bg {
        min-height: 1100px;
    }

    .contest__icon-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .contest__content {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- 역대 수상작 갤러리 --- */
    .gallery__slide-btn {
        display: flex; 
        width: 44px;
        height: 44px;
        background-size: 18px;
    }

    .gallery__slide-btn.prev { left: 5px; }
    .gallery__slide-btn.next { right: 5px; }
}

@media (max-width: 768px) {
    /* --- 메인 비주얼 배너 --- */
    .visual {
        width: calc(100% - 60px);
        height: auto;
        min-height: 480px;
        padding: 60px 0;
        border-radius: 20px;
    }

    .visual__text h2 {
        line-height: 1.3;
        margin-bottom: 2rem;
    }

    /* --- 역대 수상작 갤러리 --- */
    .gallery {
        padding: 60px 0;
    }

    .gallery__slide-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    /* --- 메인 비주얼 배너 --- */
    .visual {
        width: calc(100% - 40px);
        height: auto;
        min-height: 480px;
        padding: 60px 20px;
        border-radius: 20px;
        justify-content: center;
    }

    .visual__text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
    }

    .visual__text h2 {
        font-size: 1.5rem;
    }

    .visual__date {
        flex-direction: column;
        align-items: center;
    }

    .visual__button {
        max-width: 150px;
    }

    /* --- 공지사항 --- */
    .notice {
        position: relative;
        margin-bottom: 40px;
    }

    .notice__content {
        position: absolute;
        bottom: -10%;
    }

    .notice__list li a {
        width: 85%;
    }

    .notice__news-date {
        display: none;
    }

    .notice__slide-btn {
        gap: 0;
    }

    /* --- 바로가기 --- */
    .quick {
        padding: 30px 0;
    }

    .quick__content {
        gap: 20px;
    }

    .quick__card {
        width: 100%;
    }

    .quick__title {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* --- 진행중인 공모전 --- */
    .contest__bg {
        min-height: 1600px;
    }

    .contest__icon-box {
        grid-template-columns: repeat(1, 1fr);
    }

    .contest {
        padding: 60px 0;
    }

    .contest__content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contest__card {
        padding: 16px;
    }

    /* --- 역대 수상작 갤러리 --- */
    .gallery__slide-btn {
        display: none;
    }
}

@media (max-width: 375px) {
    .notice__list li a {
        width: 70%;
    }
}
