@charset "UTF-8";

@font-face {
    font-family: 'SOYO Maple';
    font-weight: 700;
    src: url('/static/assets/jnitalk/fonts/SoyoMaple/SOYO-Maple-Bold.woff') format('woff');
}

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

html, body { width: 100%; max-width: 100%; overflow-x: hidden; min-height: 100vh; }
body { display: flex; flex-direction: column; }

.screen img, .sub-section img, .footer img, .to-top svg { max-width: 100%; }

.hero .hero-title, .hero .hero-desc,
.sub-section .sub-title, .section-head .sub-desc,
.card .card-desc, .card5 .card5-desc,
.area-box .area-label, .footer .footer-text { word-break: keep-all; }

.container {
    width: min(var(--containerSize), 100% - 48px);
    margin: 0 auto;
}

.nav {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #E9E9E9;
}
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav .logo {
    display: flex;
    align-items: center;
    gap: 24px;
    --logo-h: 44px;
}
.nav .logo img {
    height: var(--logo-h);
    width: auto;
    display: block;
}

.nav .logo img:nth-child(2) {
    height: calc(var(--logo-h) + 5px);
}
.nav .menu a {
    font-size: 18px;
    color: #404040;
    cursor: pointer;
    transition: color 0.2s ease;
}
.nav .menu a:hover {
    color: #9e9e9e;
}

.screen {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.top-section {
    width: 100%;
    background: #F8F8F8;
    padding: 30px 0 44px;
    display: flex;
    flex: 1;
}
.top-section .hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero .badge {
    display: inline-block;
    background: var(--Primary);
    color: #ffffff;
    font-family: 'SOYO Maple', "SUIT Variable", sans-serif;
    font-size: 22px;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 999px;
}

.hero .hero-title {
    margin-top: 16px;
    font-family: 'SOYO Maple', "SUIT Variable", sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--Greyscale9);
}
.hero .hero-title .point {
    color: var(--Primary);
}

.hero .hero-title .br-title { display: none; }
@media (max-width: 900px) {
    .hero .hero-title .br-title { display: inline; }
}

.hero .hero-image {
    width: 100%;
    margin: 32px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero .hero-image img {
    width: 100%;
    max-width: 360px;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

.hero .hero-desc {
    font-size: 24px;
    color: #686868;
    font-weight: 600;
    margin-top: 30px;
}

.hero .hero-buttons {
    display: flex;
    gap: 32px;
    margin-top: 24px;
}
.hero .btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 16px 80px;
    background: #ffffff;
    border: 3px solid #ff872b;
    border-radius: 1000px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.hero .btn-link:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 135, 43, 0.22);
}
.hero .hero-buttons .btn-link:nth-child(2):hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(4, 102, 252, 0.18);
}
.hero .btn-link img {
    height: 65px;
    width: auto;
    display: block;
}
.hero .btn-link .arrow {
    font-size: 32px;
    color: #ff872b;
    line-height: 1;
    font-weight: 900;
}

.hero .hero-buttons .btn-link:nth-child(2) {
    border: 3px solid #0466FC;
}
.hero .hero-buttons .btn-link:nth-child(2) .arrow {
    color: #0466FC;
}

.content-section {
    width: 100%;
    background: #ffffff;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroImgIn {
    0%   { opacity: 0; transform: translateX(0) rotate(0deg); }
    20%  { opacity: 1; }
    38%  { transform: translateX(-10px) rotate(-3deg); }
    56%  { transform: translateX(8px)  rotate(2.5deg); }
    72%  { transform: translateX(-5px) rotate(-1.5deg); }
    87%  { transform: translateX(3px)  rotate(1deg); }
    100% { opacity: 1; transform: translateX(0) rotate(0deg); }
}
.hero .badge        { animation: heroFadeUp 1.1s ease both; animation-delay: 0.3s; }
.hero .hero-title   { animation: heroFadeUp 1.1s ease both; animation-delay: 1.0s; }
.hero .hero-image img { animation: heroImgIn 1.3s ease both; animation-delay: 1.9s; }
.hero .hero-desc    { animation: heroFadeUp 1.1s ease both; animation-delay: 2.8s; }
.hero .hero-buttons { animation: heroFadeUp 1.1s ease both; animation-delay: 3.5s; }

@media (prefers-reduced-motion: reduce) {
    .hero .badge,
    .hero .hero-title,
    .hero .hero-image img,
    .hero .hero-desc,
    .hero .hero-buttons { animation: none; }
}

.sub-section {
    width: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
}
.sub-section .sub-title {
    font-family: 'SOYO Maple', "SUIT Variable", sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #404040;
    text-align: center;
    margin-bottom: 40px;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--Primary);
    border-bottom: 2px solid var(--Primary);
    font-size: 16px;
}

.notice-table thead th:nth-child(1) { width: 80px; }
.notice-table thead th:nth-child(3) { width: 140px; }
.notice-table thead th:nth-child(4) { width: 90px; }

.notice-table thead th {
    position: relative;
    background: #FFFBF4;
    font-weight: 700;
    color: #404040;
    padding: 16px 24px;
    border-bottom: 1px solid #E9E9E9;
    font-size: 18px;
}

.notice-table thead th + th::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #E0E0E0;
}

.notice-table tbody td {
    background: #ffffff;
    padding: 16px 24px;
    border-bottom: 1px solid #E9E9E9;
    color: var(--Greyscale8);
    font-size: 18px;
    transition: background 0.2s ease;
}

.notice-table tbody tr {
    cursor: pointer;
}
.notice-table tbody tr:hover td {
    background: #fafafa;
}

.notice-table th, .notice-table td {
    text-align: center;
    white-space: nowrap;
}
.notice-table tbody td:nth-child(2) {
    text-align: left;
}

.notice-table .td-title {
    width: 100%;
    max-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-table .td-title .tag {
    display: inline-block;
    vertical-align: middle;
    background: var(--Primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    margin-right: 16px;
    line-height: 1;
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}
.section-head .sub-title {
    margin-bottom: 16px;
}
.section-head .sub-desc {
    font-size: 24px;
    color: #686868;
}

.card-list {
    display: flex;
    gap: 48px;
}
.card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #CECECE;
}
.card .card-step {
    font-family: 'SOYO Maple', "SUIT Variable", sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--Primary);
}
.card .card-img {
    margin: 24px 0;
}
.card .card-img img {
    height: 140px;
    width: auto;
    max-width: 100%;
    display: block;
}
.card .card-title {
    font-family: 'SOYO Maple', "SUIT Variable", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #404040;
    margin-bottom: 16px;
}
.card .card-desc {
    font-size: 20px;
    color: #686868;
    line-height: 1.2;
}

.card .card-desc .point {
    color: var(--Primary);
    font-weight: 700;
}


.card5-list {
    display: flex;
    gap: 48px;
}
.card5 {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 24px;
    background: #ffffff;
    border-radius: 24px;
    background: #F8F8F8;
}
.card5 .card5-step {
    font-family: 'SOYO Maple', "SUIT Variable", sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--Primary);
}
.card5 .card5-img {
    margin: 24px 0;
}
.card5 .card5-img img {
    height: 140px;
    width: auto;
    max-width: 100%;
    display: block;
}
.card5 .card5-title {
    font-family: 'SOYO Maple', "SUIT Variable", sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #404040;
    margin-bottom: 16px;
}
.card5 .card5-desc {
    font-size: 20px;
    color: #686868;
    line-height: 1.2;
}
.card5 .card5-desc .point {
    color: var(--Primary);
    font-weight: 700;
}

.section4 {
    background: #F8F8F8;
}
.section-head .badge {
    display: inline-block;
    background: var(--Primary);
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.area-list {
    display: flex;
    gap: 48px;
    width: 80%;
    margin-top: 20px;
}
.area-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 40px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #CECECE;
}
.area-box .area-label {
    font-family: 'SOYO Maple', "SUIT Variable", sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--Primary);
}

.area-box .area-arrow { display: none !important; }
.area-box .area-logo {
    margin-top: 24px;
}
.area-box .area-logo img {
    height: 77px;
    width: auto;
    display: block;
}
.area-box .area-btn {
    font-family: 'SOYO Maple', "SUIT Variable", sans-serif;
    display: inline-flex;
    align-items: center;
    margin-top: 32px;
    padding: 12px 26px;

    background: var(--Primary);
    border-radius: 1000px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    width: 100%;
    justify-content: space-between;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.area-box .area-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.area-box .area-btn .arrow {
    font-weight: 900;
}

.area-list .area-box:nth-child(2) .area-label { color: #0466FC; }
.area-list .area-box:nth-child(2) .area-btn { background: #0466FC; }

.footer {
    background: #FFFCED;
    padding: 40px 0;
}
.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.footer .footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 16px;
}
.footer .footer-ci {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}
.footer .footer-ci img {
    height: 40px;
    width: auto;
    display: block;
}
.footer .footer-text {
    font-family: 'SOYO Maple', "SUIT Variable", sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--Greyscale8);
    white-space: nowrap;
}
.footer .footer-logos {
    display: flex;
    align-items: center;
    gap: 24px;
}
.footer .footer-logos img {
    height: 40px;
    width: auto;
    display: block;
}

@media (max-width: 1599px) {
    .container { width: min(var(--containerSize), 100% - 48px); }

    .hero .badge { font-size: 24px; }
    .hero .hero-title { font-size: 40px; }
    .hero .hero-desc { font-size: 22px; }
    .hero .hero-buttons { gap: 24px; }
    .hero .btn-link { padding: 16px 48px; }
    .hero .btn-link img { height: 60px; }

    .top-section { padding: 30px 0 64px; }
    .sub-section { padding: 64px 0; }
    .sub-section .sub-title { font-size: 40px; }

    .area-box .area-label { font-size: 26px; }
    .area-box .area-btn { font-size: 20px; }
}

@media (max-width: 1199px) {
    .hero .badge { font-size: 20px; }
    .hero .hero-title { font-size: 32px; }
    .hero .hero-desc { font-size: 20px; }
    .hero .hero-buttons { gap: 12px; }
    .hero .btn-link { padding: 16px 32px; }
    .hero .btn-link img { height: 52px; }

    .top-section { padding: 20px 0 56px; }
    .sub-section { padding: 56px 0; }
    .sub-section .sub-title { font-size: 36px; }

    .notice-table thead th,
    .notice-table tbody td { padding: 14px 16px; font-size: 16px; }

    .area-box .area-label { font-size: 22px; }
    .area-box .area-btn { font-size: 16px; padding: 12px 26px; }
}

@media (max-width: 839px) {
    .nav .container { height: 64px; }
    .nav .logo { --logo-h: 32px; gap: 16px; }
    .nav .menu a { font-size: 15px; }

    .screen { flex: none; }
    .top-section { padding: 16px 0 48px; flex: none; }

    .hero .badge { font-size: 16px; }
    .hero .hero-title { font-size: 28px; margin-top: 16px; }
    .hero .hero-desc { font-size: 18px; }
    .hero .hero-image { margin: 32px 0; }
    .hero .hero-image img {max-height: 280px;}
    .hero .hero-buttons { gap: 8px; }
    .hero .btn-link { padding: 14px 24px; }
    .hero .btn-link img { height: 44px; }

    .sub-section { min-height: 0; padding: 48px 0; }
    .sub-section .sub-title { font-size: 32px; margin-bottom: 24px; }

    .notice-table thead th,
    .notice-table tbody td { padding: 12px; font-size: 16px; }

    .notice-table th:nth-child(4),
    .notice-table td:nth-child(4) { display: none; }

    .area-box { padding: 25px 24px; }
    .area-box .area-label { font-size: 20px; }
    .area-box .area-logo img { height: 60px; }
    .area-box .area-btn { font-size: 14px; }
}

@media (max-width: 640px) {
    .notice-table th:nth-child(1),
    .notice-table td:nth-child(1) { display: none; }
}

@media (max-width: 640px) {

    .sub-section { min-height: 0; padding: 40px 0; }

    .sub-section .sub-title { margin-bottom: 20px; }
    .section-head { margin-bottom: 24px; }

    .card-list, .card5-list, .area-list { gap: 16px; }
    .card, .card5 { padding: 24px 20px; }
    .card .card-img, .card5 .card5-img { margin: 16px 0; }
    .area-box { padding: 13px 20px; }

    .card .card-img img, .card5 .card5-img img { height: 120px; }

    .hero .hero-image { margin: 20px 0; }
    .hero .hero-buttons { margin-top: 16px; }

    .footer { padding: 28px 0; }
    .footer .container { gap: 20px; }
    .footer .footer-text { font-size: 22px; text-align: center; }
}

@media (max-width: 440px) {

    .container { width: calc(100% - 32px); }

    .nav .container { height: 56px; gap: 12px; }
    .nav .logo { --logo-h: 24px; gap: 8px; min-width: 0; flex-shrink: 1; }
    .nav .logo img { max-width: 100%; }
    .nav .menu a { font-size: 14px; white-space: nowrap; }

    .top-section { padding: 56px 0 40px; }

    .hero .badge { font-size: 16px; }
    .hero .hero-title { font-size: 32px; }
    .hero .hero-desc { font-size: 16px; }
    .hero .hero-image { flex: 0 0 auto; margin: 24px 0; }
    .hero .hero-image img { max-height: 280px; }

    .hero .hero-buttons { flex-direction: column; width: 100%; gap: 8px; }
    .hero .btn-link { width: 100%; padding: 16px 24px; }
    .hero .btn-link img { height: 40px; }

    .sub-section {padding: 32px 0;}
    .sub-section .sub-title {font-size: 24px;}

    .notice-table thead th,
    .notice-table tbody td { padding: 12px 8px; font-size: 14px; }
    .notice-table .td-title .tag { font-size: 14px; margin-right: 8px; }
}

@media (max-width: 600px) {
    .hero .hero-buttons { flex-direction: column; width: 100%; gap: 8px; align-items: stretch; }
    .hero .btn-link { width: 100%; justify-content: center; gap: 16px; padding: 14px 24px; }
}

@media (max-width: 1199px) {
    .section-head .sub-desc { font-size: 18px; }
    .card-list { gap: 24px; }
    .card { padding: 32px 20px; }
    .card .card-title { font-size: 20px; }

    .card5-list { gap: 24px; }
    .card5 {padding: 32px 16px;}
    .card5 .card5-title { font-size: 20px; }
}

@media (max-width: 839px) {
    .section-head {margin-bottom: 32px;}
    .card-list { flex-direction: column; gap: 24px; }
    .card { padding: 32px 24px; }

    .card5-list { flex-direction: column; gap: 24px; }
    .card5 { padding: 32px 24px; }
}

@media (max-width: 640px) {
    .card .card-step, .card5 .card5-step { font-size: 18px; }
    .card .card-title { font-size: 24px; }
    .card .card-desc, .card5 .card5-desc { font-size: 18px; }
}
@media (max-width: 720px) {
    .hero .hero-title {
        font-size: 26px;
    }
}

@media (max-width: 440px) {
    .section-head .sub-desc { font-size: 16px; }
    .card-list { gap: 16px; }

    .card5-list { gap: 16px; }
}

@media (max-width: 1199px) {
    .area-list { gap: 24px; }
    .area-box { padding: 25px 24px; }
}

@media (max-width: 839px) {
    .area-list { flex-direction: column; gap: 24px; }
}

@media (max-width: 440px) {
    .area-box { padding: 17px 20px; }
    .area-box .area-label { font-size: 16px; }
    .area-box .area-logo img { height: 52px; }
    .area-box .area-btn { width: 100%; justify-content: center; gap: 8px; font-size: 12px; padding: 12px 18px; }
}

/* footer CI(로고+텍스트) 한 줄 유지 - 화면 폭별 축소 */
@media (max-width: 839px) {
    .footer .footer-ci img { height: 36px; }
    .footer .footer-text { font-size: 22px; }
}
@media (max-width: 640px) {
    .footer .footer-ci img { height: 32px; }
    .footer .footer-text { font-size: 20px; }
}
@media (max-width: 560px) {
    .footer .footer-ci img { height: 30px; }
    .footer .footer-text { font-size: 18px; }
}
@media (max-width: 480px) {
    .footer .footer-top { gap: 12px; }
    .footer .footer-ci { gap: 8px; }
    .footer .footer-ci img { height: 26px; }
    .footer .footer-text { font-size: 16px; }
}
@media (max-width: 440px) {
    .footer .footer-ci img { height: 24px; }
    .footer .footer-text { font-size: 15px; }
    .footer .footer-logos img { height: 32px; }
}
@media (max-width: 390px) {
    .footer .footer-top { gap: 8px; }
    .footer .footer-ci img { height: 22px; }
    .footer .footer-text { font-size: 13px; }
}
@media (max-width: 360px) {
    .footer .footer-ci img { height: 20px; }
    .footer .footer-text { font-size: 12px; }
}
@media (max-width: 320px) {
    .footer .footer-ci img { height: 18px; }
    .footer .footer-text { font-size: 11px; }
}

.to-top {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 100;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--Primary);
    border: none;
    border-radius: 50% !important;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s,
                filter 0.2s ease, box-shadow 0.2s ease;
}
.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.to-top:hover {
    filter: brightness(0.93);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.to-top svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}
@media (max-width: 550px) {
    .hero .hero-title {
        font-size: 24px;
    }
        .hero .hero-image img {
        max-height: 200px;
    }
        .hero .hero-desc {
        font-size: 15px;
    }
}
@media (max-width: 470px) {
    .hero .badge {
        font-size: 14px;
    }
    .hero .hero-image img {
        max-height: 180px;
    }
        .hero .hero-desc {
        font-size: 15px;
    }
    .hero .btn-link {
        gap: 40px;
        padding: 8px 16px;
    }
    .hero .btn-link .arrow {
        font-size: 20px;
    }
    .hero .hero-title {
        font-size: 20px;
    }
    .sub-section .sub-title {
        margin-bottom: 8px;
    }
    .hero .btn-link {
        border: 2px solid #ff872b;
    }
    .hero .hero-buttons .btn-link:nth-child(2) {
        border: 2px solid #0466FC;
    }
    .hero .btn-link img {
        height: 36px;
    }
    .top-section {
        flex: 0 0 auto;
        min-height: 0;
        padding: 24px 0;
    }
}
@media (max-width: 440px) {
    .to-top { right: 20px; bottom: 20px; width: 48px; height: 48px; }
    .to-top svg { width: 20px; height: 20px; }
    .section-head .badge {
        font-size: 18px;
    }
    .area-box .area-btn {
        font-size: 12px;
        padding: 7px 18px;
    }
    .area-box .area-btn {
        margin-top : 16px;
    }
}
@media (max-width: 390px) {
    .top-section {
        padding: 24px 0;
    }
        .hero .hero-title {
        font-size: 16px;
    }
        .hero .badge {
        font-size: 11px;
    }
    .hero .hero-image img {
        max-height: 160px;
    }
    .hero .hero-desc {
        font-size: 14px;
    }
    .hero .btn-link {
        padding: 8px 16px;
    }
    .card .card-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    .card .card-desc, .card5 .card5-desc {
        font-size: 16px;
    }
    .card {
        padding: 16px 24px;
    }
    .card .card-img img, .card5 .card5-img img {
        height: 100px;
    }
    .card .card-step, .card5 .card5-step {
        font-size: 16px;
    }
    .area-box {
        padding: 8px 20px;
    }
    .area-box .area-btn {
        margin-top: 16px;
    }
    .area-box .area-logo img {
        height: 40px;
    }
    .area-box .area-label {
        font-size: 14px;
    }
    .area-box .area-logo {
        margin-top: 16px;
    }
    .card5 {
        padding: 16px 24px;
    }
    .notice-table .td-title .tag {
        padding: 4px 12px;
    }
    .hero .hero-title {
        margin-top: 12px;
    }
    .hero .badge{
        padding: 6px 24px;
    }
}
@media (max-width: 360px) {
    .hero .hero-title {
        font-size: 12px;
    }
}

/* ===== 통합 공지 상세 페이지 ===== */
.detail-head {
    height: 250px;
    background: #F8F8F8;
    display: flex;
    align-items: center;
}
.detail-head .detail-head-title {
    font-family: 'SOYO Maple', "SUIT Variable", sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #404040;
    text-align: center;
}

.detail-board {
    padding: 48px 0 80px;
}

/* 게시판 제목 - 공지 테이블 head와 동일 디자인 */
.detail-board .board-title {
    background: #FFFBF4;
    border-top: 2px solid var(--Primary);
    border-bottom: 1px solid #E9E9E9;
    padding: 24px;
    font-size: 24px;
    font-weight: 700;
    color: #404040;
    word-break: keep-all;
}
.detail-board .board-title .tag {
    display: inline-block;
    vertical-align: middle;
    background: var(--Primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    margin-right: 16px;
    line-height: 1;
}

/* 작성자 | 등록일 | 조회수 */
.detail-board .board-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #E9E9E9;
    color: #404040;
    font-size: 16px;
}
.detail-board .board-meta .bar {
    width: 1px;
    height: 16px;
    background: #CECECE;
}
.detail-board .board-meta em {
    font-style: normal;
    font-weight: 600;
    color: #404040;
}

/* 내용 */
.detail-board .board-content {
    min-height: 320px;
    padding: 40px 24px;
    font-size: 18px;
    line-height: 1.6;
    color: #404040;
    word-break: keep-all;
}
.detail-board .board-content p {
    /* margin-bottom: 24px; */
}
.detail-board .board-content p:last-child {
    margin-bottom: 0;
}
.detail-board .board-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 32px auto;
    border-radius: 8px;
}

/* 첨부파일 */
.detail-board .board-file {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: #F8F8F8;
    border-top: 1px solid #E9E9E9;
    border-bottom: 1px solid #E9E9E9;
}
.detail-board .board-file-label {
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 700;
    color: #404040;
}
.detail-board .board-file-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detail-board .board-file-list li {
    display: flex;
    align-items: center;
    gap: 16px;
}
.detail-board .board-file-list .file-name {
    font-size: 16px;
    color: #404040;
}
.detail-board .board-file-list .file-download {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: #d4d4d4;
    color: #686868;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}
.detail-board .board-file-list .file-download:hover {
    filter: brightness(0.93);
}

/* 이전 / 다음 글 */
.detail-board .board-nav {
    margin-top: 40px;
    border-top: 1px solid #E9E9E9;
    border-bottom: 1px solid #E9E9E9;
}
.detail-board .board-nav-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    border-bottom: 1px solid #E9E9E9;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
.detail-board .board-nav-row:last-child {
    border-bottom: none;
}
.detail-board .board-nav-row:hover {
    background: #f5f5f5;
}
.detail-board .board-nav-label {
    flex: 0 0 96px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-board .board-nav-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #686868;
}
.detail-board .board-nav-dir {
    font-size: 16px;
    font-weight: 700;
    color: #404040;
}
.detail-board .board-nav-title {
    min-width: 0;
    font-size: 16px;
    color: #686868;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 목록으로 */
.detail-board .board-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.detail-board .btn-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    background: #3e3e3e;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
.detail-board .btn-list:hover {
    background: #666666;
}

@media (max-width: 839px) {
    .detail-head { height: 200px; }
    .detail-head .detail-head-title { font-size: 32px; }
    .detail-board { padding: 40px 0 64px; }
    .detail-board .board-title { font-size: 20px; }
}

@media (max-width: 440px) {
    .detail-head { height: 160px; }
    .detail-head .detail-head-title { font-size: 24px; }

    .detail-board .board-title { padding: 16px; font-size: 18px; }
    .detail-board .board-title .tag { font-size: 14px; padding: 6px 12px; margin-right: 12px; }

    .detail-board .board-meta { padding: 16px; gap: 8px; font-size: 14px; }

    .detail-board .board-content {padding: 32px 16px;font-size: 15px;line-height: 1.25;}
    .detail-board .board-content img { margin: 24px auto; }

    .detail-board .board-file { flex-direction: column; gap: 8px; padding: 16px; }

    .detail-board .board-nav { margin-top: 32px; }
    .detail-board .board-nav-row { gap: 12px; padding: 16px; }
    .detail-board .board-nav-label { flex-basis: auto; }
    .detail-board .board-nav-dir { font-size: 14px; }
    .detail-board .board-nav-title { font-size: 14px; }

    .detail-board .board-actions { margin-top: 32px; }
    .detail-board .btn-list { width: 100%; padding: 14px 40px; font-size: 16px; }
}

@media (max-width: 360px) {
    .detail-head { height: 140px; }
    .detail-head .detail-head-title { font-size: 20px; }
    .detail-board .board-title { font-size: 16px; }
    .detail-board .board-meta { gap: 6px; font-size: 13px; }
    .detail-board .board-nav-label { flex-basis: 64px; }
}