.main-renew {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 45%, #ffffff 100%);
}

/* 히어로 아래 요약 카드 */
.main-summary-wrap {
    position: relative;
    z-index: 5;
    margin-top: -42px;
}

.main-summary-card {
    display: grid;
    grid-template-columns: 1fr 180px auto;
    align-items: center;
    gap: 28px;
    padding: 32px 38px;
    background: rgba(255, 255, 255, 0.96)
                url(/images/common/mascot_img.png) 95% 95% no-repeat;
    border: 1px solid #e2eef9;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 74, 150, 0.13);
}

.summary-title span {
    display: block;
    margin-bottom: 8px;
    color: #1ba6e8;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.summary-title h2 {
    margin: 0;
    color: #184d9b;
    font-size: 31px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.summary-dday {
    text-align: center;
    padding: 18px 12px;
    border-radius: 22px;
    background: linear-gradient(135deg, #eef8ff, #e7fbff);
    border: 1px solid #d7edf9;
}

.summary-dday span {
    display: block;
    margin-bottom: 4px;
    color: #67869a;
    font-size: 13px;
    font-weight: 800;
}

.summary-dday strong {
    display: block;
    color: #159fe3;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.summary-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-main-apply,
.btn-main-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    border: 0;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-main-apply {
    background: #159fe3;
    color: #fff;
    box-shadow: 0 12px 24px rgba(21, 159, 227, 0.25);
}

.btn-main-line {
    background: #fff;
    color: #1b64b0;
    border: 1px solid #74bdea;
}

.btn-main-apply:hover,
.btn-main-line:hover {
    transform: translateY(-3px);
}

/* 대회 정보 카드 */
.main-info-section {
    padding: 46px 0 24px;
}

.main-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.main-info-card {
    position: relative;
    min-height: 150px;
    padding: 28px 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e3eef8;
    box-shadow: 0 12px 30px rgba(0, 70, 130, 0.06);
    overflow: hidden;
}

.main-info-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 86px;
    height: 86px;
    border-radius: 26px;
    background: rgba(33, 172, 228, 0.09);
    transform: rotate(12deg);
}

.main-info-card span {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 12px;
    color: #159fe3;
    font-size: 14px;
    font-weight: 800;
}

.main-info-card strong {
    position: relative;
    z-index: 1;
    display: block;
    color: #1c3768;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.main-info-card p {
    position: relative;
    z-index: 1;
    margin: 8px 0 0;
    color: #6f7f8d;
    font-size: 15px;
    line-height: 1.5;
}

/* 빠른 메뉴 */
.main-quick-section {
    padding: 24px 0 52px;
}

.main-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.main-quick-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 160px;
    padding: 28px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid #e4eef8;
    color: #1c3768;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(0, 70, 130, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.main-quick-card:hover {
    color: #1c3768;
    text-decoration: none;
    transform: translateY(-6px);
    border-color: #91d2f3;
    box-shadow: 0 22px 46px rgba(0, 70, 130, 0.13);
}

.main-quick-card i {
    margin-bottom: 18px;
    color: #159fe3;
    font-size: 42px;
}

.main-quick-card strong {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.main-quick-card span {
    margin-top: 6px;
    color: #7c8a96;
    font-size: 15px;
}

/* 게시판 */
.main-board-section {
    padding: 20px 0 90px;
}

.main-board-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.main-board-box {
    padding: 32px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #e5eef8;
    box-shadow: 0 16px 38px rgba(0, 70, 130, 0.08);
}

.main-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.main-section-title h4 {
    margin: 0;
    color: #184d9b;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.main-section-title h4 small {
    margin-left: 6px;
    color: #93a0aa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.main-section-title a {
    flex-shrink: 0;
    color: #159fe3;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.main-board-list .main_notice_item {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #edf3f8;
}

.main-board-list .main_notice_item:last-child {
    border-bottom: 0;
}

.main-board-list .main_notice_item .date {
    margin: 0;
    text-align: center;
}

.main-board-list .main_notice_item .date strong {
    display: block;
    color: #159fe3;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.main-board-list .main_notice_item .date span {
    display: block;
    margin-top: 3px;
    color: #7c8a96;
    font-size: 12px;
}

.main-board-list .main_notice_item .text {
    margin: 0;
    min-width: 0;
}

.main-board-list .main_notice_item .text a {
    display: block;
    color: #46545f;
    font-size: 16px;
    line-height: 1.45;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-board-list .main_notice_item .text a:hover {
    color: #159fe3;
}

/* 반응형 */
@media (max-width: 991.98px) {
    .main-summary-wrap {
        margin-top: -24px;
    }

    .main-summary-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 24px;
    }

    .summary-actions {
        justify-content: center;
    }

    .main-info-grid,
    .main-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-board-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .main-summary-wrap {
        margin-top: 20px;
    }

    .main-summary-card {
        border-radius: 22px;
        background-size: 330px;
    }

    .summary-dday {
        background: unset;
    }

    .summary-title h2 {
        font-size: 24px;
    }

    .summary-dday strong {
        font-size: 30px;
    }

    .summary-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .btn-main-apply,
    .btn-main-line {
        width: 100%;
    }

    .main-info-section {
        padding: 32px 0 16px;
    }

    .main-info-grid,
    .main-quick-grid {
        grid-template-columns: 1fr;
    }

    .main-info-card {
        min-height: auto;
    }

    .main-quick-section {
        padding: 16px 0 38px;
    }

    .main-quick-card {
        min-height: 128px;
        padding: 24px;
    }

    .main-board-section {
        padding: 12px 0 60px;
    }

    .main-board-box {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .main-section-title h4 {
        font-size: 22px;
    }

    .main-board-list .main_notice_item {
        grid-template-columns: 58px 1fr;
        gap: 12px;
    }

    .main-board-list .main_notice_item .text a {
        font-size: 15px;
    }
}

.m_visual {
    position: relative;
    overflow: hidden;
    background: none !important;
}

.main-visual-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
}

.main-visual-img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    transition: opacity 0.8s ease;
}

/* 이미지 전환 시 */
.main-visual-img.is-changing {
    opacity: 0;
}

/* 기존 텍스트 레이어를 이미지 위에 올릴 경우 */
.m_visual .vsTxt {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* 모바일 */
@media (max-width: 767.98px) {
    .m_visual {
        height: auto !important;
    }

    .main-visual-slider {
        width: 100%;
    }

    .main-visual-img {
        width: 100%;
        height: auto;
    }

    .m_visual .vsTxt {
        position: absolute;
        inset: 0;
    }
}

.m_visual {
    height: auto !important;
    min-height: 0 !important;
    background-image: none !important;
    background-size: auto !important;
    background-position: center !important;
}

/* 참가자 안내 */
.main-guide-box {
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,249,255,.96)),
        #fff;
}

.runner-guide-list {
    display: grid;
    gap: 14px;
}

.runner-guide-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: center;
    padding: 17px 18px;
    border-radius: 18px;
    background: #f7fbff;
    border: 1px solid #e2eef8;
    color: #1c3768;
    text-decoration: none;
    transition:
        transform .22s ease,
        background .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.runner-guide-item:hover {
    color: #1c3768;
    text-decoration: none;
    background: #fff;
    border-color: #9bd7f4;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 90, 160, .1);
}

.runner-guide-item .guide-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #159fe3, #39c6e8);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 10px 22px rgba(21, 159, 227, .22);
}

.runner-guide-item strong {
    display: block;
    margin-bottom: 5px;
    color: #184d9b;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.runner-guide-item p {
    margin: 0;
    color: #6f7f8d;
    font-size: 14px;
    line-height: 1.45;
}

@media (max-width: 575.98px) {
    .runner-guide-item {
        grid-template-columns: 48px 1fr;
        gap: 12px;
        padding: 15px;
    }

    .runner-guide-item .guide-icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: 19px;
    }

    .runner-guide-item strong {
        font-size: 16px;
    }

    .runner-guide-item p {
        font-size: 13px;
    }
}

/* 갤러리 전체 */
.main-gallery-box {
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,249,255,.96)),
        #fff;
}

/* 슬라이더 */
.main-gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.main-gallery-track {
    display: flex;
    width: 100%;
    transition: transform .75s cubic-bezier(.22, 1, .36, 1);
}

/* 3개 박스 한 화면 */
.main-gallery-panel {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    min-height: 300px;
}

/* 이미지 박스 */
.main-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #eef5fb;
}

.main-gallery-item--large {
    grid-row: 1 / span 2;
}

.main-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 144px;
    object-fit: cover;
    transition: transform .35s ease;
}

.main-gallery-item:hover img {
    transform: scale(1.06);
}

/* 큰 이미지 캡션 */
.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 20px;
    color: #fff;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0) 0%,
        rgba(0,45,85,.78) 100%
    );
}

.gallery-caption strong {
    display: block;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.gallery-caption span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    opacity: .9;
}

/* 모바일 */
@media (max-width: 575.98px) {
    .main-gallery-panel {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        min-height: 0;
    }

    .main-gallery-item--large {
        grid-column: 1 / span 2;
        grid-row: auto;
    }

    .main-gallery-item img {
        min-height: 120px;
    }

    .main-gallery-item--large img {
        min-height: 190px;
    }

    .gallery-caption {
        padding: 18px 16px;
    }

    .gallery-caption strong {
        font-size: 18px;
    }

    .gallery-caption span {
        font-size: 13px;
    }
}