* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Pretendard,
        Arial,
        sans-serif;

    color: #111;
    background: #fff;
}


/* =====================
   HEADER
===================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 22px 7%;

    background:
        rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(10px);

    z-index: 1000;

    border-bottom:
        1px solid #eee;
}


.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
}

.header-logo {
    display: block;
    width: 190px;
    height: auto;
}



.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}


.nav a {
    text-decoration: none;
    color: #111;

    font-size: 14px;
    font-weight: 600;
}


.nav a:hover {
    color: #4255ff;
}


.admin-btn {
    border: none;
    background: #111;
    color: white;

    padding: 11px 19px;

    border-radius: 30px;

    cursor: pointer;
}


.auth-user,
.admin-identity {
    color: #555;
    font-size: 13px;
    font-weight: 600;
}


/* =====================
   HERO
===================== */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 130px 7% 80px;

    background:
        linear-gradient(
            135deg,
            #eff1ff,
            #ffffff 50%,
            #e9edff
        );
}


.hero-content {
    max-width: 900px;
}


.hero-label {
    display: inline-block;

    margin-bottom: 25px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 3px;

    color: #4255ff;
}


.hero h1 {
    font-size: clamp(
        55px,
        8vw,
        110px
    );

    line-height: 0.98;

    letter-spacing: -6px;

    margin-bottom: 35px;
}


.hero p {
    font-size: 19px;
    line-height: 1.8;

    color: #666;

    max-width: 500px;
}


.hero-buttons {
    margin-top: 45px;

    display: flex;
    gap: 12px;
}


.primary-btn,
.secondary-btn {
    display: inline-block;

    padding: 16px 28px;

    border-radius: 50px;

    text-decoration: none;

    font-weight: 700;
}


.primary-btn {
    background: #4255ff;
    color: white;
}


.secondary-btn {
    border: 1px solid #ccc;
    color: #111;

    background: white;
}


/* =====================
   COMMON SECTION
===================== */

.section {
    padding:
        130px 7%;
}


.section-title {
    max-width: 800px;

    margin-bottom: 65px;
}


.section-title span,
.section-small-title {
    color: #4255ff;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 3px;
}


.section-title h2 {
    margin-top: 15px;

    font-size: 48px;

    letter-spacing: -2px;
}


.section-title p {
    margin-top: 18px;

    color: #777;

    line-height: 1.7;
}


/* =====================
   ABOUT
===================== */

.about-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.info-card {
    min-height: 310px;

    padding: 35px;

    border:
        1px solid #e5e5e5;

    border-radius: 20px;

    transition: 0.3s;
}


.info-card:hover {
    transform:
        translateY(-8px);

    border-color:
        #4255ff;
}


.card-number {
    color: #4255ff;

    font-size: 14px;

    margin-bottom: 90px;
}


.info-card h3 {
    font-size: 30px;

    margin-bottom: 15px;
}


.info-card p {
    color: #777;

    line-height: 1.7;
}


/* =====================
   GALLERY
===================== */

.gallery-section {
    background: #f7f7f7;
}


.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}


.gallery-card {
    background: white;

    border-radius: 20px;

    overflow: hidden;

    border: none;

    color: inherit;

    font: inherit;

    text-align: left;

    cursor: pointer;
}


.gallery-card img {
    width: 100%;
    height: 320px;

    object-fit: cover;

    display: block;

    transition: transform 0.4s;
}


.gallery-card:hover img {
    transform: scale(1.05);
}


.gallery-info {
    padding: 25px;
}


.gallery-info span {
    color: #4255ff;

    font-size: 12px;
    font-weight: 700;
}


.gallery-info h3 {
    margin: 10px 0;

    font-size: 24px;
}


.gallery-info p {
    color: #777;
}


.gallery-status {
    grid-column: 1 / -1;
    color: #777;
}


.gallery-modal-content {
    width: min(760px, 92%);
}


.gallery-modal-content img {
    width: 100%;
    max-height: 55vh;
    object-fit: cover;
    display: block;
    margin-bottom: 24px;
    border-radius: 14px;
}


.gallery-modal-content h2 {
    margin-bottom: 12px;
}


.gallery-modal-content p {
    color: #777;
    line-height: 1.7;
}


/* =====================
   CALENDAR
===================== */

.calendar-section {
    background: #fff;
}


.calendar-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}


.calendar-panel {
    padding: 35px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
}


.calendar-panel h3 {
    margin-bottom: 10px;
    font-size: 28px;
}


.calendar-note {
    margin-bottom: 24px;
    color: #777;
    line-height: 1.6;
}


.event-list {
    display: grid;
    gap: 10px;
}


.event-list-item {
    width: 100%;
    padding: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: white;
    color: #111;
    text-align: left;
    cursor: pointer;
}


.event-list-item:hover {
    border-color: #4255ff;
}


.event-list-item strong,
.event-list-item span {
    display: block;
}


.event-list-item span {
    margin-top: 6px;
    color: #777;
    font-size: 13px;
}


.event-detail {
    margin-top: 18px;
    padding: 22px;
    border-radius: 14px;
    background: #f7f7f7;
}


.event-detail h3 {
    margin-bottom: 12px;
}


.event-detail p {
    margin-top: 8px;
    color: #666;
    line-height: 1.6;
}


.event-empty {
    color: #777;
}


.event-actions,
.admin-form-actions,
.admin-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}


.event-actions .secondary-btn,
.event-cancel {
    padding: 11px 20px;
    cursor: pointer;
}


.danger-btn,
.admin-small-btn.danger {
    border-color: #d84b4b;
    color: #b32b2b;
}


.form-message {
    min-height: 22px;
    margin-top: 15px;
    color: #b32b2b;
    font-size: 14px;
}


/* =====================
   JOIN
===================== */

.join-section {
    background: #111;

    color: white;
}


.join-container {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 100px;
}


.join-description h2 {
    margin-top: 20px;

    font-size: 60px;

    letter-spacing: -3px;

    line-height: 1.1;
}


.join-description p {
    margin-top: 25px;

    color: #aaa;

    line-height: 1.8;

    max-width: 450px;
}


.join-form {
    background: white;

    color: #111;

    padding: 40px;

    border-radius: 24px;
}


/* =====================
   FORM
===================== */

.form-group {
    margin-bottom: 22px;
}


.form-group label {
    display: block;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 8px;
}


.form-group input,
.form-group textarea {
    width: 100%;

    padding: 15px;

    border:
        1px solid #ddd;

    border-radius: 9px;

    font-size: 15px;

    outline: none;
}


.form-group textarea {
    min-height: 110px;
    resize: vertical;
    font-family: inherit;
}


.form-group input:focus,
.form-group textarea:focus {
    border-color:
        #4255ff;
}


.terms-box {
    margin-top: 30px;

    padding:
        20px 0;

    border-top:
        1px solid #eee;

    border-bottom:
        1px solid #eee;
}


.check-row {
    display: flex;
    align-items: center;

    gap: 10px;

    padding:
        10px 0;

    font-size: 14px;
}


.check-row.all {
    padding-bottom: 18px;

    margin-bottom: 8px;

    border-bottom:
        1px solid #eee;
}


.term-view {
    margin-left: auto;

    border: none;

    background: none;

    text-decoration: underline;

    cursor: pointer;

    color: #777;
}


.submit-btn {
    width: 100%;

    padding: 17px;

    border: none;

    border-radius: 10px;

    background: #4255ff;

    color: white;

    font-size: 16px;

    font-weight: 700;

    margin-top: 25px;

    cursor: pointer;
}


.oauth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 14px;
    color: #999;
    font-size: 13px;
}


.oauth-divider::before,
.oauth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #eee;
}


.oauth-btn {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}


.oauth-btn:hover {
    border-color: #4255ff;
}


.oauth-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


.oauth-btn + .oauth-btn {
    margin-top: 10px;
}


.oauth-note {
    margin-top: 14px;
    color: #777;
    font-size: 12px;
    line-height: 1.6;
}


.oauth-btn.kakao {
    border-color: #fee500;
    background: #fee500;
}


/* =====================
   LINKS
===================== */

.links-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;
}


.link-card {
    min-height: 230px;

    padding: 30px;

    border:
        1px solid #ddd;

    border-radius: 20px;

    text-decoration: none;

    color: #111;

    position: relative;

    transition: 0.3s;
}


.link-card span {
    font-size: 12px;

    color: #777;
}


.link-card h3 {
    margin-top: 30px;

    font-size: 28px;
}


.link-card strong {
    position: absolute;

    right: 30px;
    bottom: 25px;

    font-size: 32px;
}


.link-card:hover {
    background: #4255ff;

    color: white;

    border-color: #4255ff;
}


/* =====================
   FOOTER
===================== */

.footer {
    background: #090909;

    color: white;

    padding:
        70px 7%;

    display: flex;

    justify-content:
        space-between;

    align-items: flex-end;
}


.footer h2 {
    font-size: 30px;
}


.footer p {
    margin-top: 10px;

    color: #777;
}


.footer-right {
    display: flex;
    align-items: center;
    gap: 28px;
}


.seoulx-logo-link {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
    border-radius: 8px;
    transition:
        opacity 0.2s,
        transform 0.2s;
}


.seoulx-logo-link:hover {
    opacity: 0.75;
    transform: translateY(-2px);
}


.seoulx-logo-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 5px;
}


.seoulx-logo-link img {
    display: block;
    width: 110px;
    height: auto;
}


.footer-info {
    text-align: right;
}


/* =====================
   MODAL
===================== */

.modal {
    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(0, 0, 0, 0.65);

    z-index: 2000;

    align-items: center;

    justify-content: center;
}


.modal.active {
    display: flex;
}


.modal-content {
    position: relative;

    width: min(
        450px,
        90%
    );

    padding: 40px;

    background: white;

    border-radius: 20px;
}


.modal-content h2 {
    margin:
        15px 0 30px;

    font-size: 32px;
}


.modal-close {
    position: absolute;

    right: 22px;
    top: 15px;

    border: none;

    background: rgba(255, 255, 255, 0.9);

    width: 40px;
    height: 40px;

    border-radius: 50%;

    font-size: 30px;

    line-height: 1;

    z-index: 1;

    cursor: pointer;
}


/* =====================
   ADMIN
===================== */

.logo-link {
    color: #111;
    text-decoration: none;
}


.admin-page {
    background: #f7f8fc;
}


.admin-main {
    width: min(1180px, 86%);
    margin: 0 auto;
    padding: 145px 0 90px;
}


.admin-main > .section-title {
    margin-bottom: 45px;
}


.admin-main > .section-title h1 {
    margin: 12px 0;
    font-size: 48px;
}


.admin-main > .section-title p,
.admin-list-card p {
    color: #777;
    line-height: 1.6;
}


.admin-section {
    margin-top: 26px;
    padding: 34px;
    border: 1px solid #e5e5e5;
    border-radius: 22px;
    background: #fff;
}


.admin-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}


.admin-section-heading span {
    color: #4255ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}


.admin-section-heading h2 {
    margin-top: 7px;
    font-size: 30px;
}


.admin-table-wrap {
    overflow-x: auto;
}


.admin-table {
    width: 100%;
    border-collapse: collapse;
}


.admin-table th,
.admin-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    white-space: nowrap;
}


.admin-table th {
    color: #777;
    font-size: 12px;
}


.admin-table select,
.admin-small-btn {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}


.admin-small-btn {
    cursor: pointer;
}


.admin-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
    padding: 24px;
    border-radius: 16px;
    background: #f7f8fc;
}


.admin-editor .admin-form-actions {
    align-items: flex-end;
}


.admin-card-list {
    display: grid;
    gap: 12px;
}


.admin-list-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 14px;
}

.admin-gallery-thumbnail {
    width: 96px;
    height: 72px;
    flex: 0 0 auto;
    border-radius: 10px;
    object-fit: cover;
}

.admin-upload-group small {
    color: #777;
    line-height: 1.5;
}

.admin-gallery-preview {
    width: min(100%, 360px);
    max-height: 240px;
    border-radius: 12px;
    object-fit: cover;
}



.admin-list-card h3 {
    margin-bottom: 7px;
}


.admin-card-actions {
    flex-shrink: 0;
    margin-top: 0;
}


.admin-status {
    position: sticky;
    bottom: 20px;
    margin-top: 24px;
    padding: 14px 20px;
    border-radius: 12px;
    background: #111;
    color: #fff;
}


.admin-status.error {
    background: #b32b2b;
}


/* =====================
   RESPONSIVE
===================== */

@media (
    max-width: 900px
) {

    .nav a {
        display: none;
    }


    .about-grid,
    .gallery-grid,
    .links-grid,
    .calendar-layout {
        grid-template-columns: 1fr;
    }


    .join-container {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .hero h1 {
        letter-spacing: -3px;
    }

}


@media (
    max-width: 600px
) {

    .section {
        padding:
            90px 6%;
    }


    .header {
        padding:
            18px 6%;
    }


    .hero {
        padding-left: 6%;
        padding-right: 6%;
    }


    .hero h1 {
        font-size: 54px;
    }


    .section-title h2 {
        font-size: 36px;
    }


    .join-description h2 {
        font-size: 45px;
    }


    .footer {
        flex-direction: column;

        align-items:
            flex-start;

        gap: 30px;
    }


    .footer-info {
        text-align: left;
    }


    .footer-right {
        width: 100%;
        justify-content: space-between;
    }


    .seoulx-logo-link img {
        width: 84px;
    }

}
