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

:root {
  --bg-page: #f4f8fb;
  --bg-white: #ffffff;
  --text-main: #092140;
  --text-muted: #5a7690;
  --accent-dark: #1565c0;
  --border-color: #d1e2ef;
}

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

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

section {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.mobile-br {
  display: none;
}

.section-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  padding-bottom: 24px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--accent-dark);
}

/* ABOUT */
.about-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 400px;
}

.about-hero img {
  object-fit: cover;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 33, 64, 0.4) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(9, 33, 64, 0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2;
  padding-top: 60px;
}

.about-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-logo-img {
  height: 70px;
  width: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  opacity: 0.95;
}

.hero-welcome {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.55em;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-left: 0.55em;
  /* Optical centering for wide tracking */
}

.hero-main-title {
  font-family: 'Noto Serif KR', "Times New Roman", serif;
  color: #ffffff;
  font-size: 5.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.hero-sub-title {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  margin-left: 0.35em;
}

.about-content {
  background: var(--bg-white);
  max-width: 900px;
  margin: -100px auto 0;
  position: relative;
  z-index: 10;
  padding: 70px 60px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(9, 33, 64, 0.08), 0 0 0 1px rgba(9, 33, 64, 0.03);
  text-align: center;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* HISTORY TIMELINE */
.history-wrap {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 30px;
}

.history-wrap::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 0;
  left: 9px;
  width: 2px;
  background: var(--border-color);
}

.history-item {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}

.history-item::before {
  content: '';
  position: absolute;
  top: 8px;
  left: -29px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 3px solid var(--accent-dark);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
  z-index: 2;
}

.history-year {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.4rem;
  font-weight: 700;
  width: 180px;
  color: var(--text-main);
  flex-shrink: 0;
  padding-top: 2px;
}

.history-desc {
  padding-left: 20px;
}

.history-desc p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* CARDS */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}
.card {
  background: var(--bg-white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(9, 33, 64, 0.08); /* Cafe24 matching border */
  box-shadow: none; /* Flat design */
}

.card:hover {
  box-shadow: 0 12px 30px rgba(9, 33, 64, 0.08);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5; /* Reverted to 4/5 */
  overflow: hidden;
  background: var(--bg-page);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* keep face in center */
  transition: transform 0.6s ease;
}

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

.card-body {
  padding: 24px 20px;
  text-align: left;
  background: #ffffff;
}

.card-badge {
  display: inline-block;
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.card-name {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  word-break: keep-all;
}

.card-name > span:first-child {
  white-space: nowrap;
}

.card-job-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1rem;
  color: #666;
  font-weight: 700;
  word-break: keep-all;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-load-more {
  text-align: center;
  margin-top: 40px;
}

.btn-load-more {
  background: var(--bg-white);
  border: 1px solid rgba(9, 33, 64, 0.15);
  color: var(--text-main);
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.btn-load-more:hover {
  background: var(--accent-dark);
  color: white;
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.2);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  overflow: hidden;
  background: transparent;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.member-modal {
  background: var(--bg-white);
  max-width: 960px;
  width: 100%;
  min-height: 520px;
  display: flex;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(9, 33, 64, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  animation: modalScaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

@keyframes modalScaleUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.member-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(9, 33, 64, 0.04);
  border: none;
  cursor: pointer;
  z-index: 10;
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-modal-close:hover {
  background: rgba(9, 33, 64, 0.08);
  color: var(--text-main);
  transform: rotate(90deg);
}

.member-modal-photo {
  width: 44%;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(145deg, #f4f8fb 0%, #e0eaf3 100%);
  overflow: hidden;
}

.member-modal-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.03);
  pointer-events: none;
}

.member-modal-photo img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.member-modal-photo:hover img {
  transform: scale(1.04) !important;
}

.member-modal-body {
  padding: 60px 50px 60px 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.member-modal-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(9, 33, 64, 0.08);
  position: relative;
}

.member-modal-name-group {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.member-modal-role {
  font-size: 1.2rem;
  color: #666;
  font-weight: 500;
  margin-bottom: 4px;
}

.member-modal-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
}

.member-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 101, 192, 0.06);
  color: var(--accent-dark);
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  font-weight: 600;
  border: 1px solid rgba(21, 101, 192, 0.15);
}

.member-modal-bio {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 300;
}

.member-modal-bio p {
  position: relative;
  padding-left: 28px;
  margin: 0;
  color: #4a5d73;
}

.member-modal-bio p::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background-color: var(--accent-dark);
  opacity: 0.4;
  transform: rotate(45deg);
}

.gallery-modal-content {
  position: relative;
  width: 90vw;
  height: 90vh;
}

/* CONTACT */
/* SPONSORS SLIDER */
.sponsor-slider-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 20px 0;
  position: relative;
}

.sponsor-slider-container::before,
.sponsor-slider-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.sponsor-slider-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-white) 0%, transparent 100%);
}
.sponsor-slider-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-white) 0%, transparent 100%);
}

.sponsor-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-sponsors 20s linear infinite;
}

.sponsor-track img {
  height: 120px;
  margin: 0 50px;
  object-fit: contain;
  vertical-align: middle;
}

@keyframes scroll-sponsors {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.contact-section {
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.contact-item {
  text-align: center;
  padding: 30px 20px;
}

.contact-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 16px;
  color: var(--text-main);
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.contact-value {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 500;
}

.donate-btn-wrap {
  text-align: center;
}

.donate-btn {
  display: inline-block;
  background: var(--text-main);
  color: #fff;
  padding: 16px 48px;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.2s ease;
}

.donate-btn:hover {
  background: #000;
}

.contact-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  section {
    padding: 20px 0;
  }

  .section-header {
    margin-bottom: 16px;
  }

  .mobile-br {
    display: block;
  }

  .hero-main-title {
    font-size: 3rem;
  }

  .hero-welcome {
    font-size: 0.9rem;
    margin-left: 0.3em;
  }

  .hero-sub-title {
    font-size: 1rem;
    margin-left: 0.2em;
  }

  .hero-logo-img {
    height: 50px;
    margin-bottom: 16px;
  }

  .about-content {
    padding: 30px 20px;
    margin-top: -40px;
    width: 92%;
  }

  .about-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .member-modal {
    flex-direction: column;
    max-height: 85vh;
    overflow-y: auto;
    width: 90vw;
    max-width: 380px;
    border-radius: 20px;
  }

  .member-modal-body {
    padding: 30px 20px;
  }

  .member-modal-title-wrapper {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .member-modal-name-group {
    order: 1;
    align-items: center;
    gap: 8px;
  }

  .member-modal-badge {
    order: 2;
    margin-bottom: 0px;
  }

  .member-modal-role {
    font-size: 1rem;
    margin-bottom: 0px;
  }

  .member-modal-name {
    font-size: 1.8rem;
  }

  .member-modal-photo {
    width: 100%;
    height: 300px;
  }

  .history-item {
    flex-direction: column;
  }

  .history-year {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .history-desc {
    border-left: none;
    padding-left: 0;
  }

  .history-desc p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Mobile Member Cards Compression */
  .members-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  /* Executives 3 columns on mobile */
  .executives-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  /* Advisors row on mobile */
  .advisors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .advisor-card-wrapper {
    width: 100%;
  }

  .card-body {
    padding: 12px 10px;
  }

  .card-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    margin-bottom: 6px;
  }

  .card-name {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .card-job-title {
    font-size: 0.65rem;
  }

  .card-role {
    font-size: 0.72rem;
    line-height: 1.3;
  }
}

/* ============================================
   HEADER & NAVBAR
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-transparent {
  background: linear-gradient(to bottom, rgba(9, 33, 64, 0.4) 0%, rgba(9, 33, 64, 0) 100%);
  padding: 15px 0;
}

.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-transparent .logo-scrolled-mode {
  display: none;
}

.header-scrolled .logo-transparent-mode {
  display: none;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-transparent .header-logo {
  color: #fff;
}

.header-scrolled .header-logo {
  color: var(--text-main);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.header-transparent .header-nav a {
  color: rgba(255, 255, 255, 0.8);
}

.header-transparent .header-nav a:hover {
  color: #fff;
}

.header-scrolled .header-nav a {
  color: var(--text-muted);
}

.header-scrolled .header-nav a:hover {
  color: var(--text-main);
}

.header-donate-btn {
  padding: 8px 20px;
  background: var(--text-main);
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none !important;
}

.header-transparent .header-donate-btn {
  background: #fff;
  color: var(--text-main) !important;
}

.mobile-menu-btn {
  display: none;
}

/* FOOTER FIXES */
.bg-black\/90 {
  background-color: #111;
}

.border-t {
  border-top-width: 1px;
}

.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.md\:flex-row {
  flex-direction: row;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.gap-8 {
  gap: 2rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.font-black {
  font-weight: 900;
}

.text-white {
  color: #fff;
}

.tracking-tighter {
  letter-spacing: -0.05em;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-600 {
  color: #4b5563;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.hover\:text-emerald-500:hover {
  color: #10b981;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-duration: 150ms;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.25rem;
}

/* 줄바꿈 반응형 제어 */
.pc-br {
  display: block;
}
.mobile-br {
  display: none;
}

@media (max-width: 768px) {
  .pc-br {
    display: none !important;
  }
  .mobile-br {
    display: block !important;
  }
  
  .header-nav {
    display: none;
  }

  .header-donate-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
  }

  .mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px 0;
    background: #fff;
  }

  .header-scrolled .mobile-menu-btn span {
    background: var(--text-main);
  }

  .md\:flex-row {
    flex-direction: column;
  }

  .text-right {
    text-align: center;
  }

  .gap-8 {
    gap: 1.5rem;
  }

  /* Sponsors Slider Mobile */
  .sponsor-track img {
    height: 70px;
    margin: 0 30px;
  }
}