@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Inter:wght@300;400;500;700&display=swap');

:root {
  --color-primary: #930e14;
  --color-primary-dark: #6e0a0f;
  --color-black: #111111;
  --color-gray-dark: #333333;
  --color-gray: #666666;
  --color-gray-light: #999999;
  --color-border: #e0e0e0;
  --color-bg: #f8f8f8;
  --color-white: #ffffff;
  --font-ko: 'Noto Sans KR', sans-serif;
  --font-en: 'Inter', 'Helvetica Neue', sans-serif;
  --max-width: 1440px;
  --header-height: 80px;
}

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

body {
  font-family: var(--font-ko);
  color: var(--color-black);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* 헤더 */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img { height: 40px; }

#gnb ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

#gnb ul li a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-gray-dark);
  transition: color 0.2s;
}

#gnb ul li a:hover { color: var(--color-primary); }

/* 메인 */
main { padding-top: var(--header-height); }
.page-home main { padding-top: 0; }

/* 히어로 */
#hero {
  height: 100vh;
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__sub {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.hero__title {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
}

/* 섹션 공통 */
section {
  padding: 100px 0;
}

section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
}

section h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-primary);
}

/* 그리드 */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid a {
  display: block;
  padding: 40px 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-weight: 600;
  transition: all 0.2s;
}

.grid a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* 소식 */
#news { background: var(--color-bg); }

#news a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-gray-dark);
  transition: color 0.2s;
}

#news a:hover { color: var(--color-primary); }

/* 푸터 */
#footer {
  background: #930e14;
  color: #ffffff;
  padding: 60px 0;
}

#footer p {
  font-size: 14px;
  line-height: 2;
}

/* 반응형 */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 36px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 28px; }
  #gnb { display: none; }
}

/* 페이지 헤더 */
.page-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 게시판 공통 섹션 */
.board-section,
.members-section,
.board-detail-section,
.member-detail-section {
    padding: 80px 0;
}

/* 검색 폼 */
.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: flex-end;
}

.search-input {
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 14px;
    width: 280px;
    font-family: inherit;
}

.search-input:focus { outline: none; border-color: var(--color-primary); }

.search-btn {
    padding: 10px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.search-btn:hover { background: var(--color-primary-dark); }

/* 게시판 목록 */
.board-list { border-top: 2px solid var(--color-primary); }

.board-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s;
}

.board-item:hover { background: var(--color-bg); }

.board-item--notice { background: #fff9f9; }

.board-item__thumb {
    width: 160px;
    height: 110px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    background: var(--color-bg);
}

.board-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-item__thumb--empty {
    width: 100%;
    height: 100%;
    background: var(--color-bg);
}

.board-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.board-item__badge {
    display: inline-block;
    padding: 2px 10px;
    background: var(--color-primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    width: fit-content;
}

.board-item__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    line-height: 1.4;
}

.board-item__summary {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.6;
}

.board-item__date {
    font-size: 13px;
    color: var(--color-gray-light);
}

.board-empty {
    padding: 80px 0;
    text-align: center;
    color: var(--color-gray-light);
    font-size: 15px;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 48px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--color-gray);
    transition: all 0.2s;
}

.pagination a:hover,
.pagination a.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* 게시판 상세 */
.board-detail {
    max-width: 900px;
    margin: 0 auto;
}

.board-detail__header {
    padding-bottom: 24px;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 32px;
}

.board-detail__title {
    font-size: 26px;
    font-weight: 700;
    margin: 12px 0;
    line-height: 1.4;
}

.board-detail__meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--color-gray);
}

.board-detail__thumb {
    margin-bottom: 32px;
    border-radius: 8px;
    overflow: hidden;
}

.board-detail__thumb img { width: 100%; }

.board-detail__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-gray-dark);
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.board-detail__file {
    padding: 16px;
    background: var(--color-bg);
    border-radius: 4px;
    margin-top: 24px;
    font-size: 14px;
}

.board-detail__file a {
    color: var(--color-primary);
    margin-left: 12px;
}

/* 이전글/다음글 */
.board-nav {
    max-width: 900px;
    margin: 32px auto 0;
    border-top: 1px solid var(--color-border);
}

.board-nav__item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    transition: color 0.2s;
}

.board-nav__item:hover { color: var(--color-primary); }

.board-nav__label {
    font-weight: 600;
    color: var(--color-gray);
    width: 50px;
    flex-shrink: 0;
}

.btn-list {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--color-gray);
    transition: all 0.2s;
}

.btn-list:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* 구성원 탭 */
.member-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 48px;
    border-bottom: 2px solid var(--color-border);
    flex-wrap: wrap;
}

.member-tab {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-gray);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.member-tab:hover,
.member-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* 구성원 카드 그리드 */
.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 24px;
    justify-content: center;
}

.member-card {
    display: block;
    width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
}

.member-card__photo {
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}
.member-card__photo::after {
    content: '프로필 보기';
    position: absolute;
    inset: 0;
    background: rgba(40,60,80,0.6);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}
.member-card:hover .member-card__photo::after {
    opacity: 1;
}

.member-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.member-card__photo--empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: #f5f5f5;
}

.member-card__body {
    padding: 16px;
}

.member-card__name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-text);
}

.member-card__title-inline {
    color: #930e14;
}

.member-card__major {
    font-size: 0.95rem;
    color: var(--color-gray);
    margin-bottom: 6px;
}

.member-card__major strong,
.member-card__email strong {
    display: inline;
    margin-right: 4px;
    font-size: 0.95rem;
    color: var(--color-text);
}

.member-card__email {
    font-size: 0.95rem;
    color: var(--color-gray-light);
}

/* 구성원 상세 */
.member-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.member-detail__photo {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.member-detail__photo--empty {
    width: 100%;
    aspect-ratio: 1;
    background: var(--color-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.member-detail__name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.member-detail__title {
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.member-detail__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.member-detail__table th,
.member-detail__table td {
    padding: 12px 16px;
    font-size: 15px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.member-detail__table th {
    width: 100px;
    color: var(--color-gray);
    font-weight: 500;
}

.member-detail__bio {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-gray-dark);
}

/* 반응형 */
@media (max-width: 1024px) {
    .member-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .board-item__thumb { display: none; }
    .member-grid { grid-template-columns: repeat(2, 1fr); }
    .member-detail { grid-template-columns: 1fr; }
    .member-tabs { gap: 0; }
    .member-tab { padding: 10px 16px; font-size: 13px; }
    .page-header h1 { font-size: 26px; }
}

/* GNB 드롭다운 */
#gnb {
  margin-left: 60px;
  flex-shrink: 0;
}

.gnb__list {
    display: flex;
    list-style: none;
    gap: 0;
}

.gnb__item {
    position: relative;
}

.gnb__link {
    display: block;
    padding: 0 16px;
    height: var(--header-height);
    line-height: var(--header-height);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-dark);
    transition: color 0.2s;
    white-space: nowrap;
}

.gnb__link:hover { color: var(--color-primary); }

.gnb__sub {
    display: none !important;
    position: absolute;
    top: var(--header-height);
    left: 0;
    min-width: 180px;
    background: var(--color-white);
    border-top: 2px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    list-style: none;
    z-index: 999;
    flex-direction: column;
}

.gnb__sub li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--color-gray-dark);
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.gnb__sub li a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
    padding-left: 26px;
}

.gnb__item:hover .gnb__sub {
    display: block !important;
}

.gnb__sub li {
    display: block;
    width: 100%;
}

/* ── 2단계 플라이아웃 ── */
.gnb__sub-item--has-fly {
    position: relative;
}

.gnb__sub-item--has-fly > a::after {
    content: ' ›';
    opacity: 0.6;
}

.gnb__fly {
    display: none !important;
    position: absolute;
    top: -2px;
    left: 100%;
    min-width: 160px;
    background: var(--color-white);
    border-top: 2px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    list-style: none;
    z-index: 1000;
    flex-direction: column;
}

.gnb__fly li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--color-gray-dark);
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.gnb__fly li a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
    padding-left: 26px;
}

.gnb__sub-item--has-fly:hover .gnb__fly {
    display: block !important;
}

/* 햄버거 버튼 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 모바일 메뉴 */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    z-index: 998;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mobile-menu.open { display: block; }

.mobile-menu ul { list-style: none; }

.mobile-menu ul li a {
    display: block;
    padding: 14px 24px;
    font-size: 14px;
    color: var(--color-gray-dark);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.2s;
}

.mobile-menu ul li a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.mobile-menu__group-title {
    padding: 10px 24px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    color: #930e14;
    background: #f8f8f8;
    margin-top: 4px;
    cursor: default;
}

/* 푸터 */
.footer__top {
    display: flex;
    align-items: center;
    gap: 48px;
}
.footer__logo img { height: 36px; }
.footer__info p {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 2;
    margin: 0;
}
.footer__divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.25);
    margin: 24px 0;
}
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer__copy {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    margin: 0;
}
.footer__privacy {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    white-space: nowrap;
}
.footer__privacy:hover { text-decoration: underline; }

@media (max-width: 1024px) {
    .gnb { display: none; }
    .hamburger { display: flex; }
    .footer__top { flex-direction: column; gap: 24px; text-align: center; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* 소개 페이지 공통 */
.intro-section { padding: 80px 0; }

.intro-content { max-width: 900px; margin: 0 auto; }

.intro-default h2 {
    font-size: 28px; font-weight: 700;
    margin-bottom: 24px; color: var(--color-black);
}

.intro-default p {
    font-size: 16px; line-height: 1.9;
    color: var(--color-gray-dark);
    margin-bottom: 16px;
}

/* 비전 카드 */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.vision-card {
    padding: 48px 32px;
    background: var(--color-bg);
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--color-primary);
}

.vision-card__icon { font-size: 48px; margin-bottom: 20px; }

.vision-card h3 {
    font-size: 20px; font-weight: 700;
    margin-bottom: 16px; color: var(--color-primary);
}

.vision-card p { font-size: 15px; color: var(--color-gray); line-height: 1.7; }

/* 연구센터 소개 */
.center-intro { max-width: 900px; margin: 0 auto; }

.center-intro h2 {
    font-size: 32px; font-weight: 700;
    margin-bottom: 24px; color: var(--color-black);
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-primary);
}

.center-intro p {
    font-size: 16px; line-height: 1.9;
    color: var(--color-gray-dark); margin-bottom: 16px;
}

/* 오시는 길 */
.directions-section { padding: 80px 0; }

.directions-map { margin-bottom: 48px; }

.directions-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.directions-info__item {
    padding: 32px 24px;
    background: var(--color-bg);
    border-radius: 8px;
}

.directions-info__item h3 {
    font-size: 16px; font-weight: 700;
    margin-bottom: 12px; color: var(--color-black);
}

.directions-info__item p {
    font-size: 14px; color: var(--color-gray);
    line-height: 1.7;
}

.directions-info__item a { color: var(--color-primary); }

/* 비학위 과정 */
.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.program-card {
    display: block;
    padding: 48px 32px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.program-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(147,14,20,0.1);
    transform: translateY(-4px);
}

.program-card__icon { font-size: 48px; margin-bottom: 20px; }

.program-card h3 {
    font-size: 20px; font-weight: 700;
    margin-bottom: 16px; color: var(--color-black);
}

.program-card p {
    font-size: 14px; color: var(--color-gray);
    line-height: 1.7; margin-bottom: 20px;
}

.program-card__link {
    font-size: 14px; font-weight: 600;
    color: var(--color-primary);
}

/* 과정 탭 */
.program-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 48px;
    border-bottom: 2px solid var(--color-border);
}

.program-tab {
    padding: 12px 32px;
    font-size: 15px; font-weight: 500;
    color: var(--color-gray);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.program-tab:hover,
.program-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* 졸업생 그룹 */
.graduate-group { margin-bottom: 60px; }

.graduate-group__title {
    font-size: 22px; font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

/* 갤러리 */
.gallery-section { padding: 80px 0; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.gallery-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

.gallery-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.gallery-card__thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--color-bg);
}

.gallery-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.gallery-card__thumb--empty {
    width: 100%; height: 100%;
    display: flex; align-items: center;
    justify-content: center; font-size: 48px;
}

.gallery-card__overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.5);
    color: white; padding: 8px 16px;
    font-size: 13px;
    opacity: 0; transition: opacity 0.3s;
}

.gallery-card:hover .gallery-card__overlay { opacity: 1; }

.gallery-card__body { padding: 20px; }

.gallery-card__title {
    font-size: 16px; font-weight: 600;
    margin-bottom: 8px; color: var(--color-black);
}

.gallery-card__date {
    font-size: 13px; color: var(--color-gray-light);
    margin-bottom: 8px;
}

.gallery-card__desc {
    font-size: 14px; color: var(--color-gray);
    line-height: 1.6;
}

/* 갤러리 상세 */
.gallery-detail__header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--color-primary);
}

.gallery-detail__header h2 {
    font-size: 28px; font-weight: 700;
    margin-bottom: 8px;
}

.gallery-detail__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-detail__item {
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-detail__item img {
    width: 100%; height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.gallery-detail__item p {
    padding: 8px;
    font-size: 12px;
    color: var(--color-gray);
    text-align: center;
}

/* 라이트박스 */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox__inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox__inner img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox__close {
    position: absolute;
    top: -40px; right: 0;
    background: none; border: none;
    color: white; font-size: 24px;
    cursor: pointer;
}

/* 반응형 추가 */
@media (max-width: 1024px) {
    .vision-grid { grid-template-columns: repeat(2, 1fr); }
    .directions-info { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-detail__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .vision-grid { grid-template-columns: 1fr; }
    .program-grid { grid-template-columns: 1fr; }
    .directions-info { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-detail__grid { grid-template-columns: repeat(2, 1fr); }
}

/* CKEditor 내부 heading border 초기화 */
.ck-editor__editable h1,
.ck-editor__editable h2,
.ck-editor__editable h3 {
    border-bottom: none;
}

/* ── 페이드업 ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeFromLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeFromRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}
.fade-left { opacity: 0; transform: translateX(-60px); }
.fade-left.visible { animation: fadeFromLeft 0.7s ease forwards; }
.fade-right { opacity: 0; transform: translateX(60px); }
.fade-right.visible { animation: fadeFromRight 0.7s ease forwards; }

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
.fade-zoom { opacity: 0; transform: scale(0.85); }
.fade-zoom.visible { animation: zoomIn 0.7s ease forwards; }

.board-detail__content p {
    margin-bottom: 1em;
    line-height: 1.8;
}
.board-detail__content h2,
.board-detail__content h3 {
    margin: 1.5em 0 0.5em;
    font-weight: 700;
}
.board-detail__content ul,
.board-detail__content ol {
    margin: 0.5em 0 1em 1.5em;
}
.board-detail__content li {
    margin-bottom: 0.3em;
    line-height: 1.8;
}
.board-detail__content strong {
    font-weight: 700;
}
.board-detail__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}
.board-detail__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.board-detail__content table td,
.board-detail__content table th {
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.btn-manager-login {
    font-size: 13px;
    color: #930e14;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid #930e14;
    border-radius: 4px;
    margin-left: 16px;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-manager-login:hover {
    color: #fff;
    border-color: #930e14;
    background: #930e14;
}

.footer-linkbar {
    background: #fff;
    border-top: 1px solid #eee;
}
.footer-linkbar__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.footer-linkbar__item {
    display: block;
    padding: 20px 40px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    border-right: 1px solid #eee;
    transition: color 0.2s;
}
.footer-linkbar__item:last-child {
    border-right: none;
    color: #930e14;
}
.footer-linkbar__item:hover {
    color: #930e14;
}

/* ================================================
   서브페이지 공통 모바일 반응형
   ================================================ */

/* 히어로 공통 (au / vs / ai / dr / ch / mb) */
@media (max-width: 768px) {
    .au-hero, .vs-hero, .ai-hero, .dr-hero, .ch-hero, .mb-hero {
        height: 280px !important;
        min-height: 280px !important;
    }
    .au-hero__inner, .vs-hero__inner, .ai-hero__inner,
    .dr-hero__inner, .ch-hero__inner, .mb-hero__inner {
        padding: 0 20px !important;
    }
    .au-hero__title, .vs-hero__title, .ai-hero__title,
    .dr-hero__title, .ch-hero__title, .mb-hero__title {
        font-size: 1.8rem !important;
    }
    .au-hero__sub, .vs-hero__sub, .ai-hero__sub,
    .dr-hero__sub, .ch-hero__sub, .mb-hero__sub {
        font-size: 0.9rem !important;
    }

    /* 서브탭 공통 */
    .au-tabs__inner, .vs-tabs__inner, .ai-tabs__inner,
    .dr-tabs__inner, .mb-tabs__inner {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .au-tab, .vs-tab, .ai-tab, .dr-tab, .mb-tab {
        padding: 12px 8px !important;
        font-size: 13px !important;
        word-break: keep-all !important;
    }

    /* 패럴렉스 background-attachment: fixed 모바일 해제 */
    .au-body, .vs-parallax, .vs-values, .ai-parallax,
    [style*="background-attachment: fixed"] {
        background-attachment: scroll !important;
    }
    .vs-values {
        padding: 60px 20px !important;
    }

    /* 인용구 폰트 */
    .au-quote__text {
        font-size: 1.6rem !important;
        line-height: 1.5 !important;
    }

    /* 인용구 패딩 */
    .au-quote {
        padding: 48px 20px !important;
    }

    /* 본문 박스 패딩 */
    .au-body__box {
        padding: 32px 20px !important;
    }
    .au-body {
        padding: 48px 16px !important;
    }
}

@media (max-width: 480px) {
    .au-hero, .vs-hero, .ai-hero, .dr-hero, .ch-hero, .mb-hero {
        height: 240px !important;
        min-height: 240px !important;
    }
    .au-hero__title, .vs-hero__title, .ai-hero__title,
    .dr-hero__title, .ch-hero__title, .mb-hero__title {
        font-size: 1.5rem !important;
    }
    .au-tabs__inner, .vs-tabs__inner, .ai-tabs__inner,
    .dr-tabs__inner, .mb-tabs__inner {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .au-tab, .vs-tab, .ai-tab, .dr-tab, .mb-tab {
        padding: 10px 6px !important;
        font-size: 12px !important;
    }
    .au-quote__text {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 768px) {
    .btn-manager-login { display: none !important; }
}

@media (max-width: 480px) {
    #header .container {
        padding: 0 12px !important;
    }
    .logo img {
        height: 24px !important;
    }
    .hamburger {
        flex-shrink: 0 !important;
        margin-left: 8px !important;
    }
    .btn-manager-login {
        display: none !important;
    }
}

/* 가로 스크롤 방지 */
html, body {
    overflow-x: clip !important;
    max-width: 100% !important;
}
