@charset "UTF-8";

/* font */
@font-face {
  font-family:'Pretendard';
  font-style:normal;
  font-weight:200;
  src: url(../fonts/Pretendard-Thin.woff) format('woff');
  font-display: swap;
}
@font-face {
  font-family:'Pretendard';
  font-style:normal;
  font-weight:300;
  src: url(../fonts/Pretendard-Light.woff) format('woff');
  font-display: swap;
}
@font-face {
  font-family:'Pretendard';
  font-style:normal;
  font-weight:400;
  src: url(../fonts/Pretendard-Regular.woff) format('woff');
  font-display: swap;
}
@font-face {
  font-family:'Pretendard';
  font-style:normal;
  font-weight:500;
  src: url(../fonts/Pretendard-Medium.woff) format('woff');
  font-display: swap;
}
@font-face {
  font-family:'Pretendard';
  font-style:normal;
  font-weight:600;
  src: url(../fonts/Pretendard-SemiBold.woff) format('woff');
  font-display: swap;
}
@font-face {
  font-family:'Pretendard';
  font-style:normal;
  font-weight:700;
  src: url(../fonts/Pretendard-Bold.woff) format('woff');
  font-display: swap;
}
@font-face {
  font-family:'Pretendard';
  font-style:normal;
  font-weight:800;
  src: url(../fonts/Pretendard-ExtraBold.woff) format('woff');
  font-display: swap;
}
@font-face {
  font-family:'Pretendard';
  font-style:normal;
  font-weight:900;
  src: url(../fonts/Pretendard-Black.woff) format('woff');
  font-display: swap;
}
@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@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-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    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;
}

/* ============================================
   화성컨소시엄 RISE사업단 - 공통 스타일시트
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html,body {width:100%;height:100%;min-height:100%;}
html { font-size: 16px; scroll-behavior: smooth; }

@media only all and (max-width:767px) {
    html { font-size: 15px; }
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont,
        'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #222;
    line-height: 1.6;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #00468B; }

ul, ol { list-style: none; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }

.blind { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- CSS Variables --- */
:root {
    --color-primary-dark: #002B5B;
    --color-primary: #00468B;
    --color-primary-light: #3A7BD5;
    --color-accent: #00A8CC;
    --color-accent-light: #E8F4FD;
    --color-bg-light: #F7F9FC;
    --color-bg-gray: #F0F2F5;
    --color-text: #222;
    --color-text-light: #666;
    --color-text-muted: #999;
    --color-border: #E0E0E0;
    --color-white: #fff;
    --max-width: 1280px;
    --header-height: 80px;
    --top-bar-height: 36px;
}

/* --- Layout --- */
.inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* --- Skip Navigation --- */
#skip-nav a {
    position: absolute; left: -9999px; top: 0;
    background: var(--color-primary); color: #fff;
    padding: 8px 16px; z-index: 10000; font-size: 14px;
}
#skip-nav a:focus { left: 0; }

/* wrap */
#wrap {display:flex;flex-direction:column;height:100%;}

/* ============================================
   Top Utility Bar
   ============================================ */
.top-bar {
    height: var(--top-bar-height);
    background: var(--color-primary-dark);
    color: rgba(255,255,255,.8);
    font-size: 13px;
}
.top-bar .inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 6px;
}
.top-bar__links { display: flex; align-items: center; gap: 4px; }
.top-bar__links a {
    color: rgba(255,255,255,.8);
    padding: 2px 10px;
    transition: color .2s;
    position: relative;
}
.top-bar__links a:hover { color: #fff; }
.top-bar__links a + a::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 10px;
    background: rgba(255,255,255,.25);
}

/* ============================================
   Header
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    height: var(--header-height);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow .3s;
}
.header.is-scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.header__logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}
.header__logo img {
    height: 44px;
}
.header__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.header__logo-text .univ {
    font-size: 11px;
    color: var(--color-text-light);
    font-weight: 500;
    letter-spacing: .02em;
}
.header__logo-text .dept {
    font-size: 18px;
    color: var(--color-primary-dark);
    font-weight: 800;
    letter-spacing: -.02em;
}
.header__logo-text .dept em {
    color: var(--color-accent);
    font-style: normal;
}

/* GNB */
.gnb { display: flex; align-items: center; height: 100%; }
.gnb__list { display: flex; align-items: center; height: 100%; gap: 0; }
.gnb__item { position: relative; height: 100%; }
.gnb__item > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    transition: color .2s;
    position: relative;
}
.gnb__item > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 3px;
    background: var(--color-primary);
    transition: width .25s ease;
}
.gnb__item:hover > a,
.gnb__item.is-active > a {
    color: var(--color-primary);
}
.gnb__item:hover > a::after,
.gnb__item.is-active > a::after {
    width: 100%;
}

/* Mega Menu / Dropdown */
.gnb__sub {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    padding: 12px 0;
    border-radius: 0 0 8px 8px;
}
.gnb__item:hover .gnb__sub {
    opacity: 1;
    visibility: visible;
}
.gnb__sub li a {
    display: block;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-light);
    transition: all .2s;
}
.gnb__sub li a:hover {
    background: var(--color-accent-light);
    color: var(--color-primary);
    padding-left: 28px;
}

/* Mobile Menu Toggle */
.header__mobile-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.header__mobile-toggle span {
    width: 24px; height: 2px;
    background: var(--color-text);
    transition: all .3s;
}

/* container */
#container {display:flex;flex-direction:column;flex:1 auto;padding-top:72px;}
@media only all and (max-width:767px) {
  #container {padding-top:60px;}
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #1C2530;
    color: rgba(255,255,255,.7);
    padding: 48px 0 32px;
    font-size: 14px;
}
.footer .inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}
.footer__section h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer__info p {
    line-height: 1.8;
    font-size: 13px;
}
.footer__info p strong {
    color: rgba(255,255,255,.9);
}
.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer__links a {
    color: rgba(255,255,255,.6);
    font-size: 13px;
    transition: color .2s;
}
.footer__links a:hover {
    color: var(--color-accent);
}
.footer__partners {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer__partners .partner-logos {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.footer__partners .partner-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 12px;
    color: rgba(255,255,255,.6);
    transition: all .2s;
}
.footer__partners .partner-logos a:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}
.footer__bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 12px;
    color: rgba(255,255,255,.4);
}

/* ============================================
   Common Components
   ============================================ */

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary-dark);
    letter-spacing: -.02em;
    margin-bottom: 8px;
}
.section-title p {
    font-size: 16px;
    color: var(--color-text-light);
    font-weight: 400;
}
.section-title .accent-bar {
    display: inline-block;
    width: 40px; height: 3px;
    background: var(--color-accent);
    margin-bottom: 16px;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all .25s;
}
.btn--primary {
    background: var(--color-primary);
    color: #fff;
}
.btn--primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}
.btn--outline {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}
.btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
}
.btn--more {
    font-size: 14px;
    color: var(--color-text-light);
    gap: 4px;
}
.btn--more::after {
    content: '→';
    transition: transform .2s;
}
.btn--more:hover { color: var(--color-primary); }
.btn--more:hover::after { transform: translateX(3px); }

/* Badge / Tag */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    line-height: 1.4;
}
.badge--primary { background: var(--color-primary); color: #fff; }
.badge--accent { background: var(--color-accent); color: #fff; }
.badge--light { background: var(--color-accent-light); color: var(--color-primary); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .gnb__item > a { padding: 0 16px; font-size: 15px; }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }

    .header__mobile-toggle { display: flex; }

    .gnb {
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0;
        bottom: 0;
        background: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        transform: translateX(100%);
        transition: transform .35s ease;
        overflow-y: auto;
    }
    .gnb.is-open { transform: translateX(0); }

    .gnb__list {
        flex-direction: column;
        height: auto;
        gap: 0;
    }
    .gnb__item { height: auto; }
    .gnb__item > a {
        padding: 14px 0;
        border-bottom: 1px solid var(--color-border);
        justify-content: space-between;
    }
    .gnb__item > a::after { display: none; }

    .gnb__sub {
        position: static;
        transform: none;
        border: none;
        box-shadow: none;
        border-top: none;
        opacity: 1;
        visibility: visible;
        display: none;
        padding: 0 0 10px 16px;
        background: var(--color-bg-light);
        border-radius: 0;
    }
    .gnb__item.is-open .gnb__sub { display: block; }
    .gnb__sub li a { padding: 10px 16px; }

    .footer .inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* 404 / error empty-state */
.data-not-find {display:flex;justify-content:center;align-items:center;height:100%;}
.data-not-find .inner {width:600px;padding:190px 20px 50px;text-align:center;border:1px solid #ddd;background:url(../images/common/ico_no_data.svg) no-repeat 50% 50px;background-size:120px;}
.data-not-find dt {margin-bottom:20px;font-size:26px;font-weight:700;color:#fead05;}
@media only all and (max-width:600px) {
    .data-not-find {padding:20px;}
    .data-not-find .inner {width:auto;padding:130px 20px 30px;background:url(../images/common/ico_no_data.svg) no-repeat 50% 30px;background-size:80px;}
    .data-not-find dt {font-size:18px;}
}
