#ctf {
    width: 100%;
    padding-top: 3vh;
}

#ctf .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    max-width: var(--section-max-width);
    gap: 60px;
    margin: auto;
}

#ctf h1 {
    font-size: 64px;
    font-family: inherit;
    margin-top: 30px;
    font-weight: 800;
}

#ctf > .container > p {
    font-family: inherit !important;
    font-weight: 400;
    font-size: 1.2rem;
    color: #ffffffba;
}

#ctf .content h1 {
    font-size: 42px;
}

#ctf .content p {
    font-family: inherit !important;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #ffffffd3;
}


#ctf .content a.link {
    font-weight: bold;
    color: #e6002cd1;
}

#ctf .content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    width: 100%;
}

#ctf .content > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    width: 100%;
}
#ctf .content > div > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
}

/* =================== 카드 =================== */

#ctf .c-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        rgba(230, 0, 44, 0.1) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(230, 0, 44, 0.05) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

#ctf .c-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(230, 0, 44, 0.5) 50%, 
        transparent 100%);
}


/* prizes-grid */
#ctf .prizes-grid {
    display: flex;
    height: 300px;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: flex-start;
    gap: 30px;
}

#ctf .prizes-grid .c-card {
    width: 130px;
    flex-direction: column !important;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#ctf .prizes-grid .c-card:hover {
    height: calc(100% + 10%) !important;
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(230, 0, 44, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(230, 0, 44, 0.3);
}

#ctf .prizes-grid .c-card .card-header {
    text-align: center;
}
#ctf .prizes-grid .c-card .card-header img {
    position: relative;
    width: 100px !important;
    height: 100px !important;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#ctf .prizes-grid .c-card:hover .card-header img {
    filter: grayscale(0%);
}
#ctf .prizes-grid .c-card .card-header h2 {
    font-size: 32px;
    margin-top: -80px !important;
    color: #fff;
    font-weight: 600;
}
#ctf .prizes-grid .c-card .card-body p {
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: 700;
}

#ctf .prizes-grid .c-card:nth-child(1) {
    height: 80%;
}
#ctf .prizes-grid .c-card:nth-child(1):hover {
    height: 85% !important;
    border-color: #C0C0C0;
    background: linear-gradient(135deg, 
    rgba(233, 233, 233, 0.1) 0%, 
    rgba(0, 0, 0, 0.3) 50%, 
    rgba(218, 218, 218, 0.05) 100%);
}

#ctf .prizes-grid .c-card:nth-child(2) {
    height: 90%;
}
#ctf .prizes-grid .c-card:nth-child(2):hover {
    height: 95% !important;
    border-color: #ffd90087;
    background: linear-gradient(135deg, 
    rgba(230, 215, 0, 0.1) 0%, 
    rgba(0, 0, 0, 0.3) 50%, 
    rgba(230, 219, 0, 0.05) 100%);
}

#ctf .prizes-grid .c-card:nth-child(3) {
    height: 70%;
}
#ctf .prizes-grid .c-card:nth-child(3):hover {
    height: 75% !important;
    border-color: #cd803291;
    background: linear-gradient(135deg, 
    rgba(230, 77, 0, 0.1) 0%, 
    rgba(0, 0, 0, 0.3) 50%, 
    rgba(230, 119, 0, 0.05) 100%);
}
@media (max-width: 768px) {
    #ctf .prizes-grid {
        width: 100% !important;
    }
    #ctf .prizes-grid .c-card {
        width: 33.3% !important;
    }
    #ctf .prizes-grid .c-card p {
        font-size: 1.2rem !important;
    }
}
@media (max-width: 576px) {
    #ctf .prizes-grid {
        height: 200px !important;
    }
    #ctf .prizes-grid .c-card {
        width: 33.3% !important;
    }
    #ctf .prizes-grid .c-card .card-header img {
        width: 80px !important;
        height: 80px !important;
    }
    #ctf .prizes-grid .c-card .card-header h2 {
        margin-top: -70px !important;
    }
    #ctf .prizes-grid .c-card p {
        font-size: 1.1rem !important;
    }
}



/* organizer-grid */
#ctf .organizer-grid {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
    width: 100%;
}
#ctf .organizer-grid .c-card .card-header {
    width: 100%;
    text-align: center;
}
#ctf .organizer-grid .c-card {
    width: calc(50% - 71px);
    height: 100px;
}
@media (max-width: 576px) {
    #ctf .organizer-grid .c-card {
        width: 100% !important;
        height: 150px !important;
        box-sizing: border-box;
    }
}


