@charset "utf-8";
/* CSS Document */

:root {
    /* Colors (Figma Match) */
    --primary-color: #8b5cf7; /* Purple Point */
    --secondary-color: #53c03f; /* Green Point */
    --accent-red: #ff8989; /* Warning Red */
    --text-main: #333333;
    --text-sub: #444444;
    --text-light: #777777;
    --bg-page: linear-gradient(180deg, #cfe652 0%, #e4f36f 100%);
    --bg-white: #ffffff;
    --bg-grey: #f9f9f9;
    --bg-sky: transparent;

    /* Spacing */
    --inner-max-width: 960px;
    --inner-padding: 30px;
    --section-gap: 50px;

    /* Font Sizes (PC) */
    --fs-h2: 42px;
    --fs-body-2xl: 34px;
    --fs-body-xl: 26px;
    --fs-body-lg: 20px;
    --fs-body: 16px;
    --fs-body-sm: 14px;

    /* Radii */
    --radius-section: 30px;
    --radius-card: 20px;
    --radius-pill: 999px;
    --radius-step: 10px;

    /* Shadows */
    --shadow-main: 10px 10px 10px rgba(0, 0, 0, 0.1);

    --font-base: "Paperozi", "Pretendard", "Noto Sans KR", sans-serif;
}

@media (max-width: 767px) {
    :root {
        --fs-h2: 28px;
        --fs-body-2xl: 20px;
        --fs-body-xl: 18px;
        --fs-body-lg: 16px;
        --fs-body: 14px;
        --inner-max-width: 370px;
        --inner-padding: 10px;
    }
}

@font-face {
    font-family: "Paperozi";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Paperozi";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Paperozi";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-display: swap;
}

.event-container div,
.event-container p,
.event-container table,
.event-container th,
.event-container td,
.event-container fieldset,
.event-container input,
.event-container button,
.event-container select,
.event-container a {
    font-family: var(--font-base);
}
.event-container p {
    margin: 0;
    letter-spacing: -0.02em;
}
.event-container .section {
    text-align: left;
}
/*풀페이지 모바일 대응*/
@media (max-width: 767px) {
    #ts-promotion > .container {
        padding: 0 10px !important;
    }
}

/* Base Styles */
.event-container {
    font-family: var(--font-base);
    background: var(--bg-page);
    min-height: 100vh;
    color: var(--text-main);
}

/* utility */
.u-hidden-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.u-point-purple {
    color: var(--primary-color);
}
.u-link-email {
    color: inherit;
    text-decoration: underline;
}
.u-text-center {
    text-align: center;
}
.u-mt-50 {
    margin-top: 50px;
}
.u-mt-30 {
    margin-top: 30px;
}
.u-mb-10 {
    margin-bottom: 10px;
}
.u-mb-20 {
    margin-bottom: 20px;
}
.u-mb-30 {
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .u-mt-50 {
        margin-top: 30px;
    }
    .u-mb-10 {
        margin-bottom: 8px;
    }
    .u-mb-20 {
        margin-bottom: 12px;
    }
    .u-mb-30 {
        margin-bottom: 20px;
    }
}
.pc-is-hide {
    display: none;
}
@media (max-width: 767px) {
    .pc-is-hide {
        display: block;
    }
    .mo-is-hide {
        display: none;
    }
}

/* Layout */
.event-container {
    padding: var(--section-gap) 0 0;
}

.section {
    padding: 25px 0;
}

.section__inner {
    max-width: var(--inner-max-width);
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: var(--radius-section);
    box-shadow: var(--shadow-main);
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.hero-inner {
    max-width: 100%;
}
.hero__bg {
    margin: 0 auto;
}
.section--hero {
    padding: 0;
}

.section--hero .section__inner {
    background: transparent;
    box-shadow: none;
    padding: 0;
}
.section--notice {
    background: #797979;
}

.section--notice .section__inner {
    background: transparent;
    box-shadow: none;
    padding: 0;
    color: #fff;
    border-radius: 0;
}

.section__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.section__title {
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin: 0;
}
.section__subtitle {
    font-size: var(--fs-body-xl);
    font-weight: 500;
    color: var(--text-sub);
}
.section__body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.notice__header {
    color: #fff;
    align-items: flex-start;
    font-size: 24px;
}
.notice__header-title {
    color: #fff;
    font-size: 24px;
}
@media (max-width: 767px) {
    .section {
        padding: 15px 0;
    }
    .section__inner {
        padding: 30px var(--inner-padding);
        gap: 20px;
        margin: 0 10px;
    }
    .section__body {
        gap: 40px;
    }
    .event-container {
        padding: 0 0;
    }
    .notice__header-title {
        font-size: 18px;
    }
}

/* UI Label & Badges */
.ui-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border: 1px solid #999;
    border-radius: var(--radius-pill);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-main);
    background: #fff;
    width: fit-content;
}

.ui-label--purple {
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 5px 25px;
}

@media (max-width: 767px) {
    .ui-label {
        font-size: 16px;
        padding: 6px 15px;
    }
    .ui-label--purple {
        font-size: 14px;
        padding: 5px 20px;
    }
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 100px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: var(--fs-body-xl);
    font-weight: 700;
    border-radius: var(--radius-pill);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(139, 92, 247, 0.3);
    color: #fff;
}

.btn__icon {
    width: 24px;
    height: 20px;
    display: flex;
    align-items: center;
}
.btn__icon img {
    width: 100%;
}

@media (max-width: 767px) {
    .btn {
        padding: 15px 60px;
        font-size: 20px;
    }
    .btn__icon {
        width: 20px;
        height: 16px;
    }
}

/* Event Details */
.event-details {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-details__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-details__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.event-details__title {
    flex: 0 0 150px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 0;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

.event-details__desc {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-sub);
    padding-top: 4px;
}

.event-details__notice {
    color: var(--accent-red);
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 767px) {
    .event-details__title {
        flex: 0 0 100px;
        font-size: 14px;
    }
    .event-details__desc {
        font-size: 14px;
    }
    .event-details__notice {
        font-size: 14px;
    }
}

/* Prize Section */
.prize-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.prize-info__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    justify-items: center;
    max-width: 860px;
    margin: 0 auto;
}

.prize-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    text-align: center;
}

.prize-card__img-box {
    background-color: var(--secondary-color);
    border-radius: 1000px;
    height: 260px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.prize-card__badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: var(--text-sub);
    padding: 8px 15px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 17.5px;
    line-height: 1;
}

.prize-card__img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.card__title {
    padding: 12px 0;
    font-size: var(--fs-body-lg);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

@media (max-width: 767px) {
    .prize-info {
        gap: 24px;
    }
    .prize-info__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .prize-info__list .prize-card:nth-child(2) {
        grid-column: 1 / span 2;
        order: -1;
    }
    .prize-card__img-box {
        height: 160px;
        max-width: 150px;
    }
    .prize-card__badge {
        font-size: 14px;
        padding: 6px 12px;
    }
    .card__title {
        font-size: 14px;
    }
}

/* Participation Section */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-step);
    padding: 30px;
    position: relative;
    margin-top: 17px;
}

.step-item__header {
    position: absolute;
    top: -17px;
    left: 19px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 25px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    text-transform: lowercase;
}

.step-item__content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-item__img-box {
    flex: 0 0 250px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item__img-box img {
    max-width: 100%;
    max-height: 100%;
}

.step-item__text-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-item__title {
    font-size: var(--fs-body-xl);
    font-weight: 700;
    color: var(--text-sub);
    margin-bottom: 10px;
}

.step-item__desc {
    font-size: 18px;
    color: var(--text-sub);
    line-height: 1.4;
}

.step-item__subtitle {
    font-size: var(--fs-body-xl);
    font-weight: 500;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.step-sub-list {
    display: flex;
    gap: 16px;
    width: 100%;
    flex-direction: column;
}

.step-sub-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-sub-item__img-box {
    flex: 0 0 250px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-sub-item__img-box img {
    max-width: 100%;
    max-height: 100%;
}

.step-sub-item__text-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-sub-item__title {
    font-size: var(--fs-body-xl);
    font-weight: 700;
    color: var(--text-sub);
}

.tip-box {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 32px;
    color: #fff;
    width: 100%;
    position: relative;
}

.tip-box__char {
    width: 180px;
    height: auto;
}

.tip-box__char img {
    width: 100%;
    object-fit: contain;
}
.tip-box__details {
    display: flex;
    flex-direction: column;
}
.tip-box__title-pill {
    background-color: var(--primary-color);
    padding: 5px 25px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    width: fit-content;
}

.tip-box__text-box {
    font-size: var(--fs-body-xl);
    font-weight: 700;
    line-height: 1.2;
}
.tip-box__text-box p {
    color: #fff;
}

.tip-box__text-box span {
    font-size: 34px;
    position: relative;
    display: inline-block;
    z-index: 1;
    font-style: italic;
}

.tip-box__text-box span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 8px;
    background-color: var(--primary-color);
    z-index: -1;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .step-item {
        padding: 30px 10px;
    }
    .step-item__header {
        top: -15px;
        left: 15px;
        font-size: 16px;
    }
    .step-item__img-box {
        flex: 0 0 auto;
        width: 100%;
        height: 175px;
    }
    .step-item__content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .step-item__title {
        font-size: 18px;
    }
    .step-item__desc {
        font-size: 13px;
    }
    .step-item__subtitle {
        font-size: 18px;
    }
    .step-sub-list {
        flex-direction: column;
    }
    .step-sub-item__text-box {
        align-items: center;
    }

    .step-sub-item {
        flex-direction: column;
        text-align: center;
    }
    .step-sub-item__img-box {
        flex: 0 0 auto;
        width: 175px;
        height: 175px;
    }
    .step-sub-item__title {
        font-size: 18px;
    }
    .tip-box {
        flex-direction: column;
        border-radius: 30px;
        padding: 30px 20px 20px;
        gap: 15px;
        text-align: center;
    }
    .tip-box__details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .tip-box__char {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100px;
        margin: 0 auto;
    }
    .tip-box__title-pill {
        padding: 4px 16px;
        font-size: 14px;
        width: fit-content;
    }
    .tip-box__text-box {
        font-size: 14px;
    }
    .tip-box__text-box span {
        font-size: 20px;
    }
    .tip-box__text-box span::after {
        height: 10px;
        bottom: 2px;
    }
}

/* Guide Video */
.guide-video__thumb {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}
.guide-video__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-video__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    background: rgba(255, 255, 255, 0.3);
    border: 4px solid #fff;
    border-radius: 50%;
    cursor: pointer;
}
.guide-video__play-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #fff;
}

/* Notice List */
.notice-list {
    list-style: disc;
    padding-left: 20px;
}
.notice-list li {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 5px;
}

/* Modal Layer */
.modal-layer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-layer.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-layer__dimmed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-layer__content {
    position: relative;
    width: 520px;
    background-color: #fff;
    border: 5px solid var(--secondary-color);
    border-radius: var(--radius-section);
    padding: 60px 20px;
    box-shadow: var(--shadow-main);
    box-sizing: border-box;
}

.modal-layer__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.modal-layer__close img {
    width: 100%;
    height: 100%;
    display: block;
}

.modal-layer__body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.modal-layer__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-layer__title {
    font-size: var(--fs-body-2xl);
    font-weight: 700;
    color: var(--text-sub);
    line-height: 1.2;
}

.modal-layer__title span {
    font-size: var(--fs-h2);
}

.modal-layer__sub {
    font-size: var(--fs-body-lg);
    color: var(--text-sub);
    line-height: 1.4;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.apply-form__field {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 10px;
    position: relative; /* For z-index */
    align-items: flex-start;
}

/* Ensure first field (Teacher Select) is above second field */
.apply-form__field:nth-child(1) {
    z-index: 10;
}
.apply-form__field:nth-child(2) {
    z-index: 1;
}

.apply-form__label {
    font-size: var(--fs-body-lg);
    font-weight: 700;
}

.apply-form__label--regular {
    font-weight: 400;
    font-size: var(--fs-body-sm);
}

.apply-form__input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    gap: 10px;
}

/* Apply Form Row */
.apply-form__row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0.5; /* Increased from 0.3 for better visibility */
}

.js-teacher-row {
    opacity: 1; /* Always visible for first step */
}

.apply-form__row:hover {
    transform: translateY(-4px);
    background-color: #f9f9f9;
}

.apply-form__row.is-active {
    opacity: 1;
    background-color: #f5f0ff;
}

/* Teacher Profile */
.teacher-profile {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: #eee;
    border: 1px solid #ddd;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teacher-profile__placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0 url("/edu/skin/default/content/images/event/event47/img_placeholder.svg") no-repeat center;
}

.teacher-profile__img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-profile.has-image .teacher-profile__placeholder {
    display: none;
}

.teacher-profile.has-image .teacher-profile__img {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* UI Select Dropdown */
.ui-select {
    position: relative;
    width: 100%;
}

.ui-select__selected {
    height: 44px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: var(--fs-body);
    color: #444;
}

.ui-select__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-select__icon {
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat
        center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.ui-select.is-open .ui-select__icon {
    transform: rotate(180deg);
}

.ui-select__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
    overflow: hidden;
}

.ui-select.is-open .ui-select__dropdown {
    display: block;
}

.ui-select__search {
    padding: 10px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.ui-select__input {
    width: 100%;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    font-size: var(--fs-body-sm);
    outline: none;
    box-sizing: border-box;
}

.ui-select__input:focus {
    border-color: var(--primary-color);
}

.ui-select__list {
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ui-select__item {
    padding: 12px 15px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: background 0.2s;
}

.ui-select__item:hover {
    background-color: #f5f0ff;
    color: var(--primary-color);
    font-weight: 700;
}

/* UI Input */
.ui-input {
    flex: 1;
    height: 44px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    position: relative;
}

.ui-input input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: var(--fs-body);
    outline: none;
}

.ui-input input:disabled {
    pointer-events: none; /* 클릭 이벤트가 부모로 전달되게 함 */
}

.ui-input__placeholder {
    color: #999;
    font-size: var(--fs-body);
}

.ui-input--select {
    justify-content: space-between;
    cursor: pointer;
}

.ui-input--select::after {
    content: "";
    width: 12px;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat
        center;
    background-size: contain;
}

/* UI Radio */
.ui-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    width: 28%;
}

.ui-radio input {
    display: none;
}

.ui-radio__mark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
}

.ui-radio input:checked + .ui-radio__mark {
    border-color: var(--primary-color);
}

.ui-radio input:checked + .ui-radio__mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.ui-radio__text {
    font-size: var(--fs-body);
    font-weight: 700;
}

.u-opacity-30 {
    opacity: 0.3;
}

@media (max-width: 767px) {
    .modal-layer__content {
        width: 90%;
        max-width: 370px;
        padding: 24px 16px;
    }
    .modal-layer__header {
        gap: 10px;
    }
    .apply-form {
        gap: 20px;
    }
    .apply-form__field {
        gap: 10px;
    }
    .apply-form__row {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .ui-radio {
        width: auto;
    }
    .teacher-profile {
        width: 60px;
        height: 60px;
    }
}
