* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    background: #111827;
    color: #f9fafb;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0 36px;
}

.portal-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    border-radius: 24px;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border: 3px solid rgba(255, 255, 255, 10);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
}

.portal-card__thumb {
    position: relative;
    min-height: 138px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 32%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.12), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03));
}

.portal-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-card__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(17, 24, 39, 0.10),
        rgba(17, 24, 39, 0.00)
    );
    pointer-events: none;
}

.portal-card__badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
    backdrop-filter: blur(8px);
}

.portal-card__body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 20px;
    background: rgba(17, 24, 39, 0.88);
}

.portal-card__body h2 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.portal-card__body p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.portal-card__arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

/* 테마 컬러 */
.portal-card.theme-blue .portal-card__thumb {
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 32%),
        linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
}

.portal-card.theme-pink .portal-card__thumb {
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 32%),
        linear-gradient(135deg, #db2777 0%, #f97316 100%);
}

.portal-card.theme-purple .portal-card__thumb {
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 32%),
        linear-gradient(135deg, #7c3aed 0%, #4338ca 100%);
}

.portal-card.theme-orange .portal-card__thumb {
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 32%),
        linear-gradient(135deg, #ea580c 0%, #ef4444 100%);
}

@media (max-width: 1100px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .portal-card {
        min-height: 204px;
        border-radius: 20px;
    }

    .portal-card__thumb {
        min-height: 124px;
    }

    .portal-card__body h2 {
        font-size: 20px;
    }

    .portal-card__body p {
        font-size: 13px;
    }
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav a {
    padding: 8px 12px;
    border-radius: 10px;
    color: #d1d5db;
}

.nav a.active,
.nav a:hover {
    background: #1f2937;
    color: #ffffff;
}

.hero {
    padding: 40px 0 24px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.25;
}

.hero p {
    margin: 0;
    color: #d1d5db;
}

.hero--portal {
    position: relative;
    overflow: hidden;
    padding: 72px 28px;
    margin: 24px 0 28px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(29, 78, 216, 0.22) 0%, rgba(124, 58, 237, 0.18) 45%, rgba(234, 88, 12, 0.16) 100%),
        #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.28), transparent 24%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.24), transparent 24%),
        radial-gradient(circle at 50% 85%, rgba(249, 115, 22, 0.18), transparent 22%);
    filter: blur(10px);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero--portal h1 {
    margin: 0;
    font-size: 52px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: #ffffff;
}

.hero__desc {
    margin: 18px 0 0;
    max-width: 640px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.76);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.hero-btn--primary {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.hero-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.34);
}

.hero-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-chip:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .hero--portal {
        padding: 32px 18px;
        border-radius: 24px;
    }

    .hero--portal h1 {
        font-size: 34px;
        line-height: 1.15;
    }

    .hero__desc {
        font-size: 15px;
        line-height: 1.6;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        width: 100%;
    }

    .hero__chips {
        gap: 8px;
    }

    .hero-chip {
        font-size: 12px;
    }
}


.content-section {
    margin: 0 0 32px;
    padding: 24px;
    background: #1f2937;
    border-radius: 16px;
}

.content-section h2 {
    margin-top: 0;
    font-size: 24px;
}

.notice-list {
    margin: 0;
    padding-left: 20px;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    padding: 20px 16px 40px;
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 768px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 0;
    }

    .hero h1 {
        font-size: 26px;
    }
}

.related-box {
    margin-top: 28px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.related-box__header {
    margin-bottom: 16px;
}

.related-box__header h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #fff;
    letter-spacing: -0.02em;
}

.related-box__header p {
    margin: 0;
    color: rgba(255,255,255,0.68);
    font-size: 14px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.related-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 88px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(96, 165, 250, 0.35);
}

.related-card__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.related-card__text strong {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.3;
}

.related-card__text span {
    color: rgba(255,255,255,0.68);
    font-size: 13px;
    line-height: 1.5;
}

.related-card__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(96, 165, 250, 0.14);
    color: #93c5fd;
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-box {
        padding: 18px;
        border-radius: 18px;
    }

    .related-card {
        min-height: 80px;
        padding: 14px 16px;
    }
}