/* 통일된 반응형 구간 정의
 * Phone: 0~640px
 * Tablet: 641~960px
 * Mobile: 0~960px (Phone + Tablet)
 * Desktop: 961px+
 */

/* CSS Variables */
:root {
  --primary-color: #4e6d8e;
  --primary-dark: #3a5268;
  --primary-light: #6a88a8;
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
  --text-muted: #95a5a6;
  --bg-light: #f5f7f9;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --border-radius: 8px;
  --max-width: 1080px;
  --header-height: 80px;
  --font-family: 'Nanum Square', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
  padding-top: var(--header-height);
}

/* Header & Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.navbar {
  height: var(--header-height);
  padding: 0 1rem;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 70px;
}

.nav-brand .logo {
  display: block;
  width: 200px;
  height: 70px;
  background-image: url('/img/joylogo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  text-indent: -9999px;
  overflow: hidden;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem 0;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Dropdown */
.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1000;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-menu a:hover {
  background-color: var(--bg-light);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  background: none;
}

.btn-outline {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.btn-outline:hover {
  background-color: var(--text-secondary);
  color: var(--white);
}

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

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background-color: var(--text-primary);
  transition: all 0.3s;
}

/* Hero Section - Swiper 캐러셀 */
.hero-section {
  height: 70vh;
  min-height: 500px;
  position: relative;
}

.hero-swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-hero {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-hero:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Swiper 커스터마이징 */
.hero-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
  font-size: 20px;
  font-weight: bold;
}

/* Main Content */
.main-content {
  padding: 4rem 1rem;
}

.content-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Page Wrapper - 세부 페이지용 */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem;
  min-height: calc(100vh - var(--header-height) - 400px);
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.page-visual {
  position: relative;
  width: 100%;
  height: 300px;
  margin-bottom: 3rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-visual img.img-top-center {
  object-position: 50% top;
}

.page-visual img.img-top-20 {
  object-position: 50% 20%;
}

.page-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.page-visual-text {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Vision Page Styles */
.vision-section {
  margin-bottom: 3rem;
}

.vision-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.vision-section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.5rem;
}

.vision-section-content {
  padding: 2rem 0;
}

.vision-section-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0;
}

.spirit-motto {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
}

.spirit-motto-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.spirit-motto-joy {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.spirit-motto-highlight {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
  display: inline-block;
  padding: 0.5rem 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--primary-color);
}

.spirit-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.spirit-item {
  padding: 1.5rem;
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
}

.spirit-item-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.spirit-item-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.spirit-item-list li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.spirit-item-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.spirit-item-list li:last-child {
  margin-bottom: 0;
}

/* History Page Styles */
.page-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.history-decade {
  margin-bottom: 4rem;
}

.history-decade-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #444;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
}

.timeline {
  position: relative;
  padding-left: 200px;
  border-left: 2px solid var(--bg-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  gap: 2rem;
  border-left: 2px solid var(--primary-color);
  padding-left: 1.5rem;
}

.timeline-date {
  position: absolute;
  left: -200px;
  width: 180px;
  text-align: right;
  font-weight: 700;
  color: #444;
  font-size: 0.95rem;
  padding-right: 20px;
}

.timeline-content {
  flex: 1;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.history-closing {
  margin-top: 4rem;
  padding: 3rem;
  background: var(--bg-light);
  text-align: center;
}

.history-closing-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.history-closing-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

/* Donation Page Styles */
.donation-intro,
.donation-method,
.donation-category {
  margin-bottom: 4rem;
}

.donation-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
}

.donation-intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.donation-method-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.method-item {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.method-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.method-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.account-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
}

.bank-name {
  font-weight: 700;
  color: var(--text-primary);
  min-width: 80px;
}

.account-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  font-family: 'Courier New', monospace;
}

.donation-type {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--bg-light);
}

.donation-type:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.donation-type-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--primary-color);
}

.donation-type-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.peace-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.peace-list li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.peace-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.peace-initial {
  font-size: 1.5em;
  font-weight: 800;
  color: var(--primary-color);
  margin-right: 0.1em;
}

/* Form Styles - 후원 신청 폼 */
.donation-info {
  margin-bottom: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--bg-light);
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.donation-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.required {
  color: #dc3545;
  margin-left: 0.25rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  transition: border-color 0.2s;
}

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

.form-input-inline {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  margin-left: 0.5rem;
}

.form-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  margin-top: -0.5rem;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-primary);
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 0.75rem;
  cursor: pointer;
}

.radio-label-other {
  display: flex;
  align-items: center;
}

.form-actions {
  margin-top: 2.5rem;
  text-align: center;
}

.btn-submit {
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: var(--font-family);
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.card-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

.card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  flex: 1;
  line-height: 1.6;
}

.card .btn {
  margin-top: auto;
  align-self: center;
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

/* 소통 채널 섹션 */
.kakao-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.social-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.social-channel {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.social-channel:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.social-banner {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.social-kakao {
  background: linear-gradient(135deg, #fee500 0%, #fdd835 100%);
}

.social-instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.social-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
}

.social-banner h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.social-kakao h3 {
  color: #3c1e1e;
}

.social-overlay {
  position: relative;
  text-align: center;
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.social-overlay p {
  font-size: 0.9rem;
  margin: 1rem 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-social {
  padding: 0.65rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  border: 2px solid;
  font-size: 0.85rem;
}

.btn-kakao {
  background: transparent;
  color: #3c1e1e;
  border-color: #3c1e1e;
}

.btn-kakao:hover {
  background: #3c1e1e;
  color: #fee500;
  border-color: #3c1e1e;
}

.btn-instagram {
  background: transparent;
  color: #833ab4;
  border-color: #833ab4;
}

.btn-instagram:hover {
  background: #833ab4;
  color: var(--white);
  border-color: #833ab4;
}

.btn-facebook {
  background: transparent;
  color: #1877f2;
  border-color: #1877f2;
}

.btn-facebook:hover {
  background: #1877f2;
  color: var(--white);
  border-color: #1877f2;
}

/* 협력기관 섹션 - IVF 스타일 */
.partner-section {
  padding: 3rem 1rem;
  background: var(--bg-light);
  border-top: 1px solid #dee2e6;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.partner-logo {
  display: block;
  width: 180px;
  height: 100px;
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.partner-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}

.partner-logo img {
  max-width: 100%;
  max-height: 65px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

/* Footer - IVF 스타일 */
.main-footer {
  background: linear-gradient(135deg, #2c3e50 0%, #1a1a1a 100%);
  color: #c1c8cd;
  padding: 4rem 1rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-section h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-description {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #e9ecef;
}

.contact-info p {
  margin-bottom: 0.7rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #c1c8cd;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: block;
  padding: 0.2rem 0;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(5px);
  text-decoration: none;
}

.social-links a:hover {
  color: #fee500;
}

.family-sites a:hover {
  color: var(--primary-color);
}

.btn-donate {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  text-decoration: none;
  color: var(--white);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #495057;
}

.footer-bottom-container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-legal {
  text-align: center;
}

.footer-legal p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Mobile Responsive - 통일된 반응형 구간 */
/* 0~640: phone, 641~960: tablet, 961+: desktop */
@media (max-width: 960px) {
  .nav-item.dropdown::after {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--bg-light);
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: var(--bg-light);
    border-radius: 0;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  .dropdown.active .dropdown-menu {
    max-height: 300px;
  }

  .auth-buttons {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-light);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Hero 모바일 대응 */
  .hero-section {
    height: 60vh;
    min-height: 400px;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .btn-hero {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .hero-swiper .swiper-button-next,
  .hero-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .hero-swiper .swiper-button-next::after,
  .hero-swiper .swiper-button-prev::after {
    font-size: 16px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 180px;
  }

  .card-body {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .card-text {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  /* Footer 모바일 대응 */
  .main-footer {
    padding: 3rem 1rem 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h5 {
    text-align: center;
    width: 100%;
  }

  .footer-description {
    text-align: center;
  }

  .contact-info {
    text-align: center;
  }

  .footer-bottom-container {
    text-align: center;
  }

  .footer-legal {
    text-align: center;
  }

  /* 소통 채널 섹션 모바일 */
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .social-channels {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .social-banner {
    height: 70px;
  }

  .social-banner h3 {
    font-size: 1.2rem;
  }

  .social-overlay {
    padding: 1.25rem;
  }

  .social-overlay p {
    font-size: 0.85rem;
  }

  .btn-social {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }

  /* 협력기관 섹션 모바일 */
  .partner-section {
    padding: 2rem 1rem;
  }

  .partner-logos {
    gap: 1rem;
  }

  .partner-logo {
    width: 150px;
    height: 90px;
    padding: 0.6rem;
  }

  .partner-logo img {
    max-height: 55px;
  }
}

/* Phone Only (0~640px) */
@media (max-width: 640px) {
  .nav-brand {
    height: 45px;
  }

  .nav-brand .logo {
    width: 130px;
    height: 45px;
  }

  .hero-section {
    height: 50vh;
    min-height: 350px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .btn-hero {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .social-channels {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .social-banner {
    height: 60px;
  }

  .social-banner h3 {
    font-size: 1.1rem;
  }

  .social-overlay {
    padding: 1rem;
  }

  .social-overlay p {
    font-size: 0.8rem;
    margin: 0.75rem 0;
  }

  .btn-social {
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
  }

  .partner-logos {
    gap: 0.8rem;
  }

  .partner-logo {
    width: 130px;
    height: 80px;
    padding: 0.5rem;
  }

  .partner-logo img {
    max-height: 50px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .card-image {
    height: 160px;
  }

  .card-body {
    padding: 1.25rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-text {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  /* Vision page 모바일 */
  .vision-section-content {
    padding: 1.5rem;
  }

  .vision-section-content p {
    font-size: 1rem;
  }

  .spirit-motto {
    padding: 1rem;
  }

  .spirit-motto-text {
    font-size: 1.1rem;
  }

  .spirit-motto-joy {
    font-size: 1.3rem;
  }

  .spirit-item {
    padding: 1rem;
  }

  .spirit-item-title {
    font-size: 1.1rem;
  }

  .spirit-item-list li {
    font-size: 0.95rem;
  }

  /* History page 모바일 */
  .timeline {
    padding-left: 0;
    border-left: none;
    padding-top: 0;
  }

  .timeline-item {
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 2rem;
    border-left: 2px solid var(--bg-light);
  }

  .timeline-date {
    position: static;
    width: auto;
    text-align: left;
    padding-right: 0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  .history-decade-title {
    font-size: 1.5rem;
  }

  .history-closing {
    padding: 2rem 1rem;
  }

  .history-closing-title {
    font-size: 1.3rem;
  }

  .history-closing-text {
    font-size: 1rem;
  }

  /* Form 모바일 */
  .donation-form {
    padding: 1.5rem;
  }

  .form-label {
    font-size: 0.95rem;
  }

  .form-input,
  .form-textarea {
    font-size: 0.95rem;
    padding: 0.625rem 0.875rem;
  }

  .radio-label-other {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-input-inline {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }

  .btn-submit {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  /* Donation page 모바일 */
  .donation-section-title {
    font-size: 1.5rem;
  }

  .donation-intro-text {
    font-size: 1rem;
  }

  .method-item {
    padding: 1.5rem;
  }

  .method-title {
    font-size: 1.2rem;
  }

  .account-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .bank-name {
    min-width: auto;
  }

  .account-number {
    font-size: 1rem;
  }

  .donation-type-title {
    font-size: 1.2rem;
  }

  .donation-type-desc {
    font-size: 0.95rem;
  }

  .peace-list li {
    font-size: 0.95rem;
  }
}

/* Tablet (641px~960px) */
@media (min-width: 641px) and (max-width: 960px) {
  .nav-brand {
    height: 60px;
  }

  .nav-brand .logo {
    width: 170px;
    height: 60px;
  }

  .hero-section {
    height: 65vh;
    min-height: 450px;
  }

  .social-channels {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .social-banner {
    height: 70px;
  }

  .social-banner h3 {
    font-size: 1.2rem;
  }

  .social-overlay {
    padding: 1.25rem;
  }

  .social-overlay p {
    font-size: 0.85rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
}

/* Board Styles - 게시판 */
.board-container {
  margin-top: 2rem;
}

.board-header {
  display: grid;
  grid-template-columns: 80px 1fr 120px 80px;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-top: 2px solid var(--primary-color);
  border-bottom: 1px solid #ddd;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: center;
}

.board-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.board-item {
  display: grid;
  grid-template-columns: 80px 1fr 120px 80px;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  align-items: center;
  transition: background-color 0.2s;
}

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

.board-item.notice {
  background-color: #fffbf0;
}

.board-item.notice:hover {
  background-color: #fff5e1;
}

.board-col-num,
.board-col-views,
.board-col-date {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.board-col-title {
  text-align: left;
  font-size: 1rem;
}

.board-col-title a {
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-col-title a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.badge-notice {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-color);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 3px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.page-btn,
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #ddd;
  background: white;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.page-btn:hover:not(.disabled),
.page-num:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.page-num.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  font-weight: 700;
}

.page-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .board-header {
    grid-template-columns: 60px 1fr 90px;
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .board-header .board-col-views {
    display: none;
  }

  .board-item {
    grid-template-columns: 60px 1fr 90px;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
  }

  .board-item .board-col-views {
    display: none;
  }

  .board-col-date {
    font-size: 0.8rem;
  }

  .board-col-title {
    font-size: 0.9rem;
  }

  .badge-notice {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
  }

  .pagination {
    gap: 0.25rem;
    margin-top: 2rem;
  }

  .page-btn,
  .page-num {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.85rem;
  }
}

/* Campus Map Image */
.campus-map {
  margin: 3rem 0;
  text-align: center;
}

.campus-map img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Campus Page Styles */
.campus-section {
  margin-bottom: 3rem;
}

.campus-video {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.campus-video iframe {
  border-radius: var(--border-radius);
}

.campus-section-caption {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1rem;
}

.campus-link {
  display: block;
  max-width: 600px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.campus-homepage-link {
  background: #fff;
  padding: 1rem;
}

.campus-image {
  width: 100%;
  height: auto;
  display: block;
}

.campus-instagram-links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  background: var(--bg-light);
}

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

.instagram-icon {
  font-size: 1.5rem;
}

.campus-branches {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--bg-light);
}

.campus-branches-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  background: var(--primary-color);
  padding: 1rem;
  text-align: center;
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
}

.branch-group {
  margin-bottom: 3rem;
}

.branch-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.campus-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.campus-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
}

.campus-name {
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.campus-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  text-decoration: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 0;
}

.campus-icon.kakao {
  background-image: url('https://campus.joyer.net/ico_kakao.png');
}

.campus-icon.instagram {
  background-image: url('https://campus.joyer.net/ico_insta.jpg');
}

.campus-icon.youtube {
  background-image: url('https://campus.joyer.net/ico_youtube.png');
}

.campus-top-image {
  width: 100%;
  margin-bottom: 3rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.campus-top-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .campus-video {
    max-width: 100%;
  }

  .campus-video iframe {
    height: 250px;
  }

  .campus-list {
    grid-template-columns: 1fr;
  }

  .campus-branches-title {
    font-size: 1.3rem;
  }
}

/* Organization Page Styles */
.org-contact,
.org-structure,
.org-departments,
.org-intro {
  margin-bottom: 4rem;
}

.org-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
}

/* 연락처 정보 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.contact-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* 조직 구조 차트 */
.org-chart {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.org-level {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.org-level-split {
  flex-wrap: wrap;
  gap: 3rem;
}

.org-box {
  background: var(--white);
  padding: 1.25rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  min-width: 160px;
}

.org-box.org-level-1 {
  background: var(--primary-color);
  color: white;
  font-size: 1.3rem;
}

.org-box.org-level-2 {
  background: var(--primary-light);
  color: white;
}

.org-box.org-level-3 {
  background: var(--bg-light);
  border: 2px solid var(--primary-color);
}

.org-box-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.org-sub-items {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.org-sub-item {
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  color: var(--text-secondary);
  border: 1px solid #ddd;
}

/* 주요 사역부서 */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.dept-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.dept-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid;
}

.dept-title-campus {
  color: #4e6d8e;
  border-bottom-color: #4e6d8e;
}

.dept-title-overseas {
  color: #e67e22;
  border-bottom-color: #e67e22;
}

.dept-title-professional {
  color: #27ae60;
  border-bottom-color: #27ae60;
}

.dept-title-publish {
  color: #9b59b6;
  border-bottom-color: #9b59b6;
}

.dept-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dept-list li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-light);
}

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

.dept-list li:before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* 조직도 소개 문구 */
.org-intro {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.org-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

/* Organization Page 모바일 대응 */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .org-level {
    flex-direction: column;
    gap: 1.5rem;
  }

  .org-level-split {
    gap: 1.5rem;
  }

  .org-box {
    min-width: 140px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .org-box.org-level-1 {
    font-size: 1.2rem;
  }

  .dept-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .dept-card {
    padding: 1.5rem;
  }

  .dept-title {
    font-size: 1.2rem;
  }

  .org-section-title {
    font-size: 1.5rem;
  }

  .org-intro {
    padding: 1.5rem;
  }

  .org-intro p {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .contact-value {
    font-size: 1.1rem;
  }

  .org-box {
    min-width: 120px;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }

  .org-sub-item {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }

  .dept-list li {
    font-size: 0.95rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.d-block { display: block; }
.fw-bold { font-weight: bold; }
.text-decoration-none { text-decoration: none; }