/* 신동탄간호학원 웹사이트 리디자인 - 컴포넌트 기반 CSS */

/* ===== 디자인 토큰 ===== */
:root {
  /* 브랜드 색상 */
  --primary:      #1a365d;
  --primary-dark: #2d3748;

  /* 그림자 3단계 */
  --shadow-sm:    0 2px 8px rgba(26, 54, 93, 0.08);
  --shadow-md:    0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg:    0 10px 30px rgba(0, 0, 0, 0.10);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);

  /* 모서리 둥글기 3단계 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* ===== 스킵 링크 (접근성) ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1a365d;
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ===== 스크린 리더 전용 (시각적 비표시) ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 키보드 포커스 인디케이터 (마우스 클릭 시 숨김) ===== */
*:focus:not(:focus-visible) {
  outline: none;
}
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== 복사 방지 스타일 ===== */
/* 관리자 페이지가 아닌 경우에만 복사 방지 적용 */
body:not([data-page="admin.html"]) {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* 표준 문법 */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-tap-highlight-color: transparent; /* 모바일 터치 하이라이트 제거 */
}

/* 관리자 페이지가 아닌 경우에만 드래그 방지 */
body:not([data-page="admin.html"]) * {
  -webkit-user-drag: none; /* Safari */
  -khtml-user-drag: none; /* Konqueror */
  -moz-user-drag: none; /* Firefox */
  -o-user-drag: none; /* Opera */
  user-drag: none; /* 표준 문법 */
}

/* ===== 기본 스타일 리셋 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh; /* 화면 전체 높이 보장 */
  display: flex;
  flex-direction: column;
  font-family: 'Noto Sans KR', 'Pretendard', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =================================== */
/* 1. 헤더 (Header)                     */
/* =================================== */
header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-image {
  height: 158px; /* 144px에서 10% 추가 증가 (144 * 1.1 = 158.4 ≈ 158) */
  width: auto;
  object-fit: contain;
}

/* 1.1 네비게이션 (Navigation) */
.main-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.menu-item {
  position: relative;
}

.menu-link {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  display: block;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .menu-link:hover {
    background: #f4f5f7;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15);
  }
  /* 서브메뉴가 있는 최상위 메뉴는 클릭 불가 — 커서·클릭 피드백 제거 */
  .menu-link[aria-haspopup] {
    cursor: default;
  }
  .menu-link[aria-haspopup]:hover {
    transform: none;
    box-shadow: none;
  }
}

.submenu-container {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0;
}

.menu-item:hover .submenu-container, .menu-item:focus-within .submenu-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu {
  list-style: none;
  padding: 0;
}

.submenu li {
  border-bottom: 1px solid #f1f5f9;
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu a {
  display: block;
  padding: 1rem 1.5rem;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .submenu a:hover {
    background: #f8fafc;
    color: var(--primary);
    transform: translateX(8px);
    font-weight: 600;
  }
}

/* 활성 메뉴 표시 */
.menu-item.active > .menu-link {
  color: #4a90d9;
  font-weight: 700;
}
.submenu a.active {
  color: #4a90d9;
  font-weight: 700;
}

/* =================================== */
/* 2. 메인 컨텐츠 (Main Content)        */
/* =================================== */
main {
  padding-top: 1.5rem;
  flex: 1 0 auto; /* 메인 컨텐츠가 남는 공간을 채움 */
}

/* 2.1 Hero Section v2 */
.hero-v2 {
  padding: 5rem 1rem;
  min-height: 400px;
  background: url('shindongtan/resource/nurse.png') no-repeat center center/cover;
  text-align: center;
  position: relative;
  border-radius: 16px;
  margin: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 54, 93, 0.25) 0%,
    rgba(26, 54, 93, 0.55) 50%,
    rgba(26, 54, 93, 0.78) 100%
  );
  z-index: 1;
}

.hero-v2 .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-v2-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-v2-subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.feature-stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 60px;
  padding: 1rem 2.2rem;
}
.feature-stat {
  padding: 0 2rem;
  text-align: center;
}
.feature-stat .stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.28rem;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.feature-stat .stat-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}
.feature-divider {
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* 2.2 정보 링크 섹션 (Info Links Section) */
.info-links-section {
  padding: 1.5rem 1rem;
  background-color: var(--primary);
}

.info-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.info-link-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem 1rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .info-link-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  }
}

.info-link-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background-color: transparent;
  color: #ffffff;
  display: block;
  flex-shrink: 0;
  font-size: 1.3rem;
  margin-right: 0;
  margin-bottom: 0.5rem;
}

.info-link-text {
  flex: 1;
}

.info-link-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.info-link-text p {
  font-size: 0.8rem;
  color: #a0aec0;
  margin-bottom: 0;
  line-height: 1.5;
}

.info-link-button {
  margin-left: 0;
  margin-top: auto;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.info-link-button:hover {
  background-color: #ffffff;
  color: #1a202c;
}

.info-link-button span {
  display: inline;
  vertical-align: middle;
}

.info-link-button i {
  font-size: 0.8rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}


/* =================================== */
/* 3. 페이지 히어로 (Page Hero)             */
/* =================================== */
.page-hero {
  padding: 4rem 1rem;
  background-color: #f8f9fa;
  text-align: center;
  border-bottom: 1px solid #dee2e6;
}

.page-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

/* =================================== */
/* 4. 푸터 (Footer)                      */
/* =================================== */
.footer {
  background: var(--primary);
  color: #e2e8f0;
  padding: 4rem 0;
  font-size: 0.9rem;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 0 0.3rem 0;
  flex-shrink: 0; /* 푸터가 줄어들지 않도록 고정 */
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.7rem;
  padding: 0.3rem 0 0.3rem 0;
  border-bottom: 1px solid #2d3748;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 38px;
  height: 38px;
  margin-right: 0.4rem;
}

.footer-logo span {
  font-size: 0.92rem;
}

.footer-section {
  padding: 0.08rem 0.2rem 0.08rem 0.2rem;
}

.footer-section h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #ffffff;
}

.footer-contact-item,
.footer-social-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.08rem;
}

.footer-contact-item i,
.footer-social-item i {
  color: #ffffff;
  margin-right: 0.15rem;
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
}

.footer-contact-item span {
  color: #a0aec0;
}

.footer-social-links {
  display: flex;
  gap: 0.15rem;
}

.footer-social-item {
  font-size: 1.5rem;
}

.footer-social-item a {
  color: #a0aec0;
  transition: color 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-social-item a:hover {
    color: #ffffff;
    transform: scale(1.1);
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.1rem 0 0.05rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright, .admin-footer-link {
  color: #e2e8f0;
  opacity: 0.8;
}

.admin-footer-link {
  color: #ffffff;
  font-weight: 600;
  opacity: 1;
}

/* =================================== */
/* 5. 애니메이션 & 효과 (Animations)   */
/* =================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.animated {
  animation: fadeInUp 0.8s ease-out forwards;
}


/* =================================== */
/* 6. 반응형 (Responsive)               */
/* =================================== */

/* 6.1 태블릿 (Tablet) - 992px 이하 */
@media (max-width: 992px) {
  .info-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-v2-title {
    font-size: 2.2rem;
  }
  .hero-v2-subtitle { font-size: 0.9rem; margin: 0 auto 2rem; }
   .preview-grid {
    grid-template-columns: 1fr;
  }
}

/* 6.2 모바일 (Mobile) - 768px 이하 */
@media (max-width: 768px) {
  .header-content {
    padding: 0.5rem 0;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .logo-image { height: 72px; /* 60px에서 20% 추가 증가 (60 * 1.2 = 72) */ }

  /* 모바일에서 "학원소개" 메뉴 텍스트 숨기기 */
  .menu-link-academy {
    font-size: 0;
  }
  
  .menu-link-academy::before {
    content: "학원";
    font-size: 0.9rem;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .main-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 0;
    padding-top: 80px;
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }
  .main-menu.mobile-open { left: 0; display: flex; }
  
  .menu-item {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .menu-link {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 0.9rem;
    justify-content: space-between;
  }
  
  .menu-link::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
  }
  
  .menu-item.submenu-open .menu-link::after { transform: rotate(180deg); }
  
  .submenu-container {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
  }
  
  .menu-item.submenu-open .submenu-container { max-height: 500px; }
  
  .submenu a { padding: 1rem 2rem; font-size: 0.8rem; }
  
  .header.mobile-active::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
  }
  
  .header.mobile-active .mobile-menu-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .header.mobile-active .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
  .header.mobile-active .mobile-menu-toggle span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

  /* 모바일에서 페이지 히어로의 "신동탄간호학원의 발자취" 텍스트 숨기기 */
  .hero-description-hidden {
    display: none;
  }

  /* Hero Section */
  .hero-v2 { padding: 2.5rem 1rem; min-height: 280px; margin: 0.5rem 0; border-radius: 8px; }
  .hero-v2 .container { padding: 0 0.25rem; }
  .hero-v2-title { font-size: 1.4rem; margin-bottom: 0.6rem; }
  .hero-v2-subtitle { font-size: 0.8rem; margin: 0 auto 1.5rem; }
  .feature-stats { padding: 0.8rem 1.2rem; border-radius: 40px; }
  .feature-stat { padding: 0 1.2rem; }
  .feature-stat .stat-label { font-size: 0.88rem; }
  .feature-stat .stat-desc { font-size: 0.74rem; }
  .feature-divider { height: 28px; }

  /* Info Links */
  .info-links-section { padding: 1.5rem 1rem; }
  .info-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .info-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.8rem 0.5rem;
    min-height: 100px;
  }
  .info-link-icon {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    margin-left: 0;
    margin-right: 0;
  }
  .info-link-text {
    width: 100%;
  }
  .info-link-text h4 {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
  }
  .info-link-text p {
    font-size: 0.75rem;
    margin-bottom: 0;
  }
  .info-link-button {
    margin-left: 0;
    margin-top: auto;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
  }
  .info-link-button span {
    display: inline;
  }
  .info-link-button i {
    font-size: 0.8rem;
    margin-left: 0.25rem;
  }
  
  /* Page Hero */
  .page-hero {
    padding: 3rem 1rem;
  }
  .page-hero-title {
    font-size: 2rem;
  }

  .footer-container {
    padding: 0.1rem !important;
    margin: 0 !important;
  }
  .footer-main {
    padding: 0.1rem !important;
    margin: 0 !important;
    gap: 0.2rem !important;
  }
  .footer-section {
    padding: 0.1rem 0 !important;
    margin: 0 !important;
  }
  .footer-logo {
    margin: 0 !important;
    padding: 0 !important;
  }
  .footer-social-links {
    gap: 0.2rem !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .footer-social-item {
    margin: 0 !important;
    padding: 0 !important;
  }
  .footer-contact-item {
    margin: 0 !important;
    padding: 0.05rem 0 !important;
  }
  .footer-bottom {
    padding: 0.1rem 0 !important;
    margin: 0 !important;
  }
  .footer-logo span {
    font-size: 0.95rem;
  }
  .footer-section h4 {
    font-size: 0.8rem;
    margin-bottom: 0.08rem;
  }
  .footer-contact-item {
    font-size: 0.75rem;
    margin-bottom: 0.04rem;
  }
  .footer-contact-item i {
    font-size: 0.8rem;
    margin-right: 0.08rem;
  }
  .footer-copyright, .admin-footer-link {
    font-size: 0.7rem;
    margin-left: 0;
    margin-top: 0.08rem;
  }

  .social-links-section { padding: 2rem 1rem; }
  .social-links-section .section-title { font-size: 1.5rem; }
  .social-links-section .section-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
  .social-links-grid { gap: 1rem; }
  .social-link-card { padding: 1.25rem; }
  .social-link-card i { font-size: 1.6rem; margin-right: 1rem; }
  .social-link-card span { font-size: 1rem; }

  /* Community Preview */
  .community-preview-section { padding: 2rem 1rem; }
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .preview-card {
    padding: 1.5rem;
    min-height: auto;
  }
  .preview-card-footer { text-align: center; }
  .preview-title h3 {
    font-size: 1.2rem;
  }
  .preview-title p {
    font-size: 0.85rem;
  }
  .preview-more-btn {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .preview-list .preview-item {
    padding: 0.75rem 0;
  }
  .preview-item-text .title {
    font-size: 0.9rem;
  }
  .preview-item-text .meta {
    font-size: 0.8rem;
  }

  body[data-page="community_notice.html"] #page-hero-container {
    display: none !important;
  }

  body[data-page^="community_"] #page-hero-container {
    display: none !important;
  }

  body[data-page="job_employment.html"] #page-hero-container {
    display: none !important;
  }

  body[data-page="job_info.html"] #page-hero-container {
    display: none !important;
  }

  body[data-page^="recruitment_"] #page-hero-container {
    display: none !important;
  }

  body[data-page^="academy_"] #page-hero-container {
    display: none !important;
  }
  
  body[data-page^="education_"] #page-hero-container {
    display: none !important;
  }
}

/* 6.3 작은 모바일 (Small Mobile) - 480px 이하 */
@media (max-width: 480px) {
  main { padding-top: 0; }
  .hero-v2 { padding: 2rem 0.5rem; min-height: 220px; margin: 0; border-radius: 0; }
  .hero-v2-title { font-size: 1rem; }
  .hero-v2-subtitle { font-size: 0.75rem; margin: 0 auto 1.2rem; }
  .feature-stats { padding: 0.65rem 0.8rem; }
  .feature-stat { padding: 0 0.75rem; }
  .feature-stat .stat-label { font-size: 0.78rem; }
  .feature-stat .stat-desc { font-size: 0.68rem; }
  .feature-divider { height: 20px; }

  /* Info Links - 작은 모바일 최적화 */
  .info-links-section { padding: 1rem 0.5rem; }
  .info-links-grid {
    gap: 0.4rem;
  }
  .info-link-card {
    padding: 0.8rem 0.6rem;
    min-height: 80px;
  }
  .info-link-icon {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }
  .info-link-text h4 {
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
  }
  .info-link-text p {
    font-size: 0.75rem;
  }
  .info-link-button {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
  }
  .info-link-button i {
    font-size: 0.75rem;
  }
  
  /* Social Links - 작은 모바일 최적화 */
  .social-links-section {
    padding: 1.5rem 0.5rem 1rem 0.5rem;
  }
  .social-links-section .section-title { font-size: 1rem; }
  .social-links-section .section-subtitle { font-size: 0.75rem; margin-bottom: 1.2rem; }
  .social-links-grid { 
    gap: 0.5rem;
    max-width: 350px;
  }
  .social-link-card {
    padding: 0.7rem 0.5rem;
    min-width: 100px;
    max-width: 160px;
  }
  .social-link-card i {
    font-size: 1rem;
    margin-right: 0.4rem;
  }
  .social-link-card span {
    font-size: 0.8rem;
  }
  
  /* Community Preview - 작은 모바일 최적화 */
  .community-preview-section { padding: 1.5rem 0.5rem; }
  .preview-card {
    padding: 1rem;
    min-height: 0;
  }
  .preview-title h3 {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
  }
  .preview-title p {
    font-size: 0.75rem;
  }
  .preview-more-btn {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }
  .preview-list .preview-item {
    padding: 0.5rem 0;
  }
  .preview-item-text .title {
    font-size: 0.85rem;
  }
  .preview-item-text .meta {
    font-size: 0.75rem;
  }
  
  .section-title { font-size: 1rem; }
  .section-subtitle { font-size: 0.75rem; }
  
  .footer { padding: 2rem 1rem; }
  .footer-logo span { font-size: 0.9rem; }
  .footer-section h4 { font-size: 0.8rem; }
  .footer-section p,
  .footer-contact-item span {
    font-size: 0.7rem;
  }
  .footer-copyright, .admin-footer-link {
    font-size: 0.8rem;
  }
}

.social-links-section {
  background: #f7fafd;
  padding: 4rem 2rem 3rem 2rem;
  border-radius: 18px;
  margin-bottom: 2rem;
  text-align: center;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.section-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.social-links-section .section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.social-links-section .section-subtitle {
  text-align: center;
  margin-bottom: 2rem;
}

.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

.social-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  flex: 1 1 180px;
  max-width: 220px;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 2px solid #e3eaf5;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.06);
  transition: 
    border-color 0.2s, 
    box-shadow 0.2s, 
    transform 0.15s;
  font-weight: 600;
  font-size: 1.05rem;
  color: #34495e;
  position: relative;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .social-link-card:hover {
    box-shadow: 0 6px 24px rgba(44, 62, 80, 0.13);
    transform: translateY(-3px) scale(1.03);
    border-color: #b3c6e6;
    background: #f5faff;
  }
}

.social-link-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.social-link-inner i {
  margin-right: 0.7em;
  font-size: 1.5rem;
  transition: color 0.2s;
}

.social-link-inner span {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* 브랜드 컬러 포인트 */
.social-link-card.kakao {
  border-color: #fae100;
}
.social-link-card.kakao .social-link-inner i {
  color: #3C1E1E;
}
.social-link-card.kakao:hover {
  background: #fffbe7;
  border-color: #ffe066;
}

.social-link-card.instagram {
  border-color: #e1306c;
}
.social-link-card.instagram .social-link-inner i {
  color: #e1306c;
}
.social-link-card.instagram:hover {
  background: #fff0f6;
  border-color: #f783ac;
}

.social-link-card.cafe {
  border-color: #03c75a;
}
.social-link-card.cafe .social-link-inner i {
  color: #03c75a;
}
.social-link-card.cafe:hover {
  background: #eafff3;
  border-color: #63e6be;
}

.social-link-card.blog {
  border-color: #00843d;
}
.social-link-card.blog .social-link-inner i {
  color: #00843d;
}
.social-link-card.blog:hover {
  background: #e6fff0;
  border-color: #00843d;
}

/* 모바일 최적화 */
@media (max-width: 600px) {
  .social-links-section {
    padding: 2rem 0.5rem 1.2rem 0.5rem;
    border-radius: 10px;
  }
  .social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
    max-width: 400px;
    margin: 0 auto;
  }
  .social-link-card {
    min-width: 120px;
    max-width: 180px;
    padding: 0.8rem 0.7rem;
    font-size: 0.98rem;
    border-radius: 9px;
  }
  .social-link-inner i {
    font-size: 1.2rem;
    margin-right: 0.5em;
  }
  .social-link-inner span {
    font-size: 0.98rem;
  }
}

.community-preview-section {
  padding: 3rem 1rem;
  background: #ffffff;
  border-radius: 18px;
  margin-bottom: 2rem;
}
.community-preview-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.5rem;
}
.community-preview-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 2rem;
}
@media (max-width: 600px) {
  .community-preview-title { font-size: 1.15rem; }
  .community-preview-subtitle { font-size: 0.82rem; margin-bottom: 1.2rem; }
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.preview-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.06);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 0.7rem;
}

.preview-title h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.preview-title p {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}
.preview-more-btn {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  background: var(--primary);
  padding: 0.4rem 0.95rem;
  transition: background 0.2s, color 0.2s;
  border: none;
  box-shadow: var(--shadow-sm);
  display: inline-block;
}
.preview-more-btn:hover {
  background: #162c4a;
  color: #fff;
}

.preview-list .preview-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: #333;
  transition: background 0.15s;
}
.preview-list .preview-item:last-child {
  border-bottom: none;
}
.preview-list .preview-item:hover .title {
  color: var(--primary);
}
.preview-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9ecef;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.preview-list .preview-item:hover .preview-item-icon {
  background: var(--primary);
  color: #fff;
}
.preview-item-text .title {
  font-weight: 500;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}
.preview-item-text .meta {
  font-size: 0.8rem;
  color: #777;
}

.preview-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  text-align: right;
}

/* 반응형 */
@media (max-width: 900px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .community-preview-section {
    padding: 1.2rem 0.3rem;
    border-radius: 10px;
  }
  .preview-card {
    padding: 1rem;
    border-radius: 9px;
    min-height: 0;
  }
}

@media (min-width: 992px) {
  .logo-image {
    height: 96px; /* 80px에서 20% 증가 (80 * 1.2 = 96) */
  }
  .menu-link {
    font-size: 1.2rem;
    font-weight: 600;
  }
  .submenu a {
    font-size: 1rem;
  }
  .main-menu > ul {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .hero-v2 {
    padding: 4.5rem 2rem;
  }
  .hero-v2-title {
    font-size: 2.4rem;
  }
  .hero-v2-subtitle {
    font-size: 1.25rem;
  }
  /* Info Links Section - 데스크톱 최적화 */
  .info-links-section {
    padding: 1.2rem 0.5rem;
  }
  .info-links-grid {
    gap: 0.7rem;
    max-width: 1000px;
  }
  .info-link-card {
    padding: 0.9rem 0.8rem;
    border-radius: var(--radius-md);
  }
  .info-link-text {
    width: 100%;
  }
  .info-link-text h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }
  .info-link-text p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  .info-links-section .info-link-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    font-size: 1.08rem !important;
    padding: 0.7rem 1.8rem !important;
    height: 2.8rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    border-radius: 2rem !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 1 !important;
  }
  .info-links-section .info-link-button:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary) !important;
    border-color: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  }
  .info-links-section .info-link-button span {
    display: inline-block !important;
    vertical-align: middle !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1.2 !important;
  }
  .info-links-section .info-link-button i {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 1.15em !important;
    margin-left: 0.3rem !important;
    vertical-align: middle !important;
  }
}

/* 기존에 section-title을 모바일에서 숨기던 코드를 주석 처리 또는 삭제 */
/*
@media (max-width: 768px) {
  body[data-page^="education_"] .section-title,
  body[data-page^="job_"] .section-title,
  body[data-page^="recruitment_"] .section-title,
  body[data-page^="community_"] .section-title {
    display: none !important;
  }
}
*/

/* =================================== */
/* 7. FAQ 아코디언 (FAQ Accordion)      */
/* =================================== */
.accordion-container {
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
}

.accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  background: white;
  overflow: hidden;
  transition: all 0.3s ease;
  display: block !important;
  opacity: 1 !important;
  color: #222 !important;
}

.accordion-item:last-child {
  margin-bottom: 0;
}

.accordion-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  background: #f8fafc;
  border: none;
  width: 100%;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

.accordion-header:hover {
  background: #edf2f7;
}

.accordion-header .q-icon {
  background: var(--primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.accordion-header h3 {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.4;
}

.accordion-header .toggle-icon {
  color: #718096;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  margin-left: 1rem;
}

.accordion-item.active .toggle-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  background: white !important;
  padding: 0 !important;
  display: block !important;
}

.accordion-item.active .accordion-content {
  max-height: 1000px !important;
  padding: 1.5rem !important;
  display: block !important;
}

.answer-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.answer-wrapper .a-icon {
  background: #38a169;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.answer-wrapper .answer-content {
  flex: 1;
  color: #4a5568;
  line-height: 1.7;
  font-size: 1rem;
}

.faq-section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
}

.faq-section-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: #718096;
  font-size: 1.1rem;
}

.faq-loading {
  text-align: center;
  padding: 2rem;
  color: #718096;
  font-style: italic;
}

.faq-error {
  text-align: center;
  padding: 2rem;
  color: #e53e3e;
  background: #fed7d7;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .accordion-container {
    margin: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
  }
  
  .accordion-header {
    font-size: 1rem;
    padding: 0.8rem 0;
  }
  
  .accordion-header .q-icon {
    font-size: 1.1rem;
    margin-right: 0.7rem;
  }
  
  .accordion-header h3 {
    font-size: 0.98rem;
    line-height: 1.5;
    font-weight: 600;
  }
  
  .accordion-content {
    font-size: 0.9rem;
  }
  
  .accordion-item.active .accordion-content {
    padding: 0.8rem;
  }
  
  .answer-wrapper {
    padding: 1.1rem 0.7rem 1.3rem 2.1rem;
  }
  
  .answer-wrapper .a-icon {
    font-size: 1.1rem;
    margin-right: 0.7rem;
  }
  
  .answer-wrapper .answer-content {
    font-size: 0.92rem;
  }
  
  .faq-section-title {
    font-size: 1.5rem;
  }
  
  .faq-section-subtitle {
    font-size: 1rem;
  }
}

body[data-page^='education_'] .section-title,
body[data-page^='job_'] .section-title,
body[data-page^='recruitment_'] .section-title,
body[data-page^='community_'] .section-title {
  /* display: none !important; */
}

/* page-hero-container 숨김 규칙 제거 - script.js에서 처리 */

/* 푸터는 항상 좌측 정렬 */
.footer, .footer * {
  text-align: left !important;
}

/* =========================
   연락처 섹션 여백 추가
   (footer.html의 연락처 제목과 첫 아이템 사이) 
   ========================= */
.footer-section.contact-section h4 {
  margin-bottom: 0.7rem; /* 연락처 제목과 첫 줄 사이 여백 */
}

/* ===== 모바일 푸터 여백 최소화 ===== */
@media (max-width: 768px) {
  .footer-container {
    padding: 0.1rem !important;
    margin: 0 !important;
  }
  .footer-main {
    padding: 0.1rem !important;
    margin: 0 !important;
    gap: 0.2rem !important;
  }
  .footer-section {
    padding: 0.1rem 0 !important;
    margin: 0 !important;
  }
  .footer-contact-item {
    margin: 0 !important;
    padding: 0.05rem 0 !important;
  }
  .footer-bottom {
    padding: 0.1rem 0 !important;
    margin: 0 !important;
  }
  .footer-logo {
    margin: 0 !important;
    padding: 0 !important;
  }
  .footer-social-links {
    gap: 0.2rem !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .footer-social-item {
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* ===== 팝업 ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 99999;
  animation: popupFadeIn 0.22s ease;
}
.popup-card {
  position: absolute;
  border-radius: 16px;
  overflow: visible;
  max-width: min(88vw, 420px);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  animation: popupSlideUp 0.32s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.popup-img-wrap {
  display: block;
  line-height: 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  max-height: calc(90vh - 52px);
}
.popup-img {
  display: block;
  width: 100%;
  max-height: calc(90vh - 52px);
  object-fit: contain;
  background: #f0f4f8;
}
.loading-message {
  text-align: center;
  padding: 2rem;
  color: #777;
}

.popup-close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  z-index: 10;
}
@media (hover: hover) and (pointer: fine) {
  .popup-close-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
  }
}
.popup-footer {
  background: #fff;
  border-radius: 0 0 16px 16px;
  display: flex;
  align-items: stretch;
  border-top: 1px solid #f0f0f0;
  overflow: hidden;
  flex-shrink: 0;
}
.popup-action {
  flex: 1;
  padding: 13px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #aaa;
  letter-spacing: -0.2px;
  transition: background 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.popup-action:hover { background: #f8f9fa; }
.popup-action-divider {
  width: 1px;
  background: #f0f0f0;
  flex-shrink: 0;
  align-self: stretch;
}
.popup-action-primary {
  color: #334a6c;
  font-weight: 600;
}
@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popupSlideUp {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
@media (max-width: 768px) {
  .popup-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    box-sizing: border-box;
  }
  .popup-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100dvh - 60px);
    animation: popupSlideUp 0.32s cubic-bezier(0.34, 1.3, 0.64, 1);
  }
  .popup-img-wrap {
    max-height: calc(100dvh - 112px);
  }
}

/* ===== 페이지 로더 ===== */
#page-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.loader-rings {
  position: relative;
  width: 56px;
  height: 56px;
}
.loader-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--primary);
  opacity: 0;
  animation: loaderRing 1.6s ease-out infinite;
}
.loader-rings span:nth-child(2) { animation-delay: 0.53s; }
.loader-rings span:nth-child(3) { animation-delay: 1.06s; }
@keyframes loaderRing {
  0%   { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(1.15); opacity: 0; }
}
.loader-dot {
  position: absolute;
  inset: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--primary);
  border-radius: 50%;
}
.loader-brand {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.3px;
  margin: 0;
  opacity: 0.85;
}

/* ===== 홈 최신소식 에러 상태 ===== */
.news-error {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem;
  color: #999;
  font-size: 0.9rem;
}
.news-error i {
  color: #f59e0b;
  font-size: 1rem;
}
