/* ═══════════════════════════════════════
   ACE DAAM - 에이스디에이엠
   대학생 특화 몽골여행 & 전시행사
   ═══════════════════════════════════════ */

:root {
  --sand: #C9A96E;
  --sand-light: #E8D5AA;
  --deep-blue: #1A2744;
  --sky: #3B7DD8;
  --steppe: #2D5016;
  --white: #FAFAF7;
  --charcoal: #111111;
  --dark: #1E1E1E;
  --warm-gray: #7A7060;
  --accent: #D4722A;
  --green: #6ABF3B;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--charcoal);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ─── NAV ─── */
.nav {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  padding: 14px 32px;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.3s;
}
.nav.scrolled {
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-logo { display:flex; align-items:center; gap:8px; }
.logo-main { font-family:'Bebas Neue',sans-serif; font-size:24px; color:var(--sand); letter-spacing:3px; }
.logo-sub { font-size:11px; color:rgba(255,255,255,0.4); }
.nav-links { display:flex; gap:24px; align-items:center; }
.nav-links a { font-size:13px; font-weight:500; color:rgba(255,255,255,0.6); transition:color 0.3s; }
.nav-links a:hover, .nav-links a.active { color:var(--sand); }
.btn-nav-register {
  background:var(--sand)!important; color:var(--charcoal)!important;
  padding:8px 18px!important; border-radius:6px; font-weight:700!important; font-size:12px!important;
}
.nav-mobile-toggle { display:none; background:none; border:none; color:var(--white); font-size:24px; cursor:pointer; }

/* ─── HERO ─── */
.hero {
  position:relative; min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.hero-bg {
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  filter: brightness(0.3);
}
.hero-overlay {
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(17,17,17,1) 100%);
}
.hero-content {
  position:relative; z-index:10; text-align:center;
  padding:0 24px; max-width:800px;
}
.hero-badge {
  display:inline-block; padding:8px 24px;
  border:1px solid var(--sand); border-radius:100px;
  font-size:12px; font-weight:500; color:var(--sand);
  letter-spacing:3px; text-transform:uppercase; margin-bottom:28px;
  animation: fadeInDown 1s ease-out;
}
.hero-title {
  font-size:clamp(32px,6vw,64px); font-weight:900;
  line-height:1.2; margin-bottom:16px;
  animation: fadeInUp 1s ease-out 0.2s both;
}
.hero-title .accent { color:var(--sand); }
.hero-sub {
  font-size:clamp(15px,2vw,19px); font-weight:300;
  color:rgba(255,255,255,0.65); line-height:1.8;
  margin-bottom:40px;
  animation: fadeInUp 1s ease-out 0.4s both;
}
.hero-cta { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; animation: fadeInUp 1s ease-out 0.6s both; }

/* ─── BUTTONS ─── */
.btn-primary {
  display:inline-block; padding:14px 36px;
  background:linear-gradient(135deg,var(--sand),var(--accent));
  color:var(--charcoal); border:none; border-radius:8px;
  font-size:15px; font-weight:700; cursor:pointer;
  transition:transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 12px 40px rgba(201,169,110,0.3); }
.btn-outline {
  display:inline-block; padding:14px 36px;
  background:transparent; color:var(--white);
  border:1px solid rgba(255,255,255,0.3); border-radius:8px;
  font-size:15px; font-weight:500; cursor:pointer;
  transition:all 0.3s;
}
.btn-outline:hover { border-color:var(--sand); color:var(--sand); }
.btn-small {
  padding:10px 20px; border-radius:8px; font-size:13px; font-weight:700;
  background:linear-gradient(135deg,var(--sand),var(--accent));
  color:var(--charcoal); border:none; cursor:pointer; transition:all 0.3s;
}
.btn-small:hover { transform:translateY(-2px); }

/* ─── SECTIONS ─── */
.section { padding:80px 24px; }
.section-dark { background:var(--charcoal); }
.section-darker { background:#0D0D0A; }
.section-inner { max-width:1100px; margin:0 auto; }
.section-label {
  font-family:'Bebas Neue',sans-serif; font-size:13px;
  letter-spacing:4px; color:var(--sand); margin-bottom:8px;
  text-transform:uppercase;
}
.section-title { font-size:clamp(24px,3.5vw,40px); font-weight:800; line-height:1.3; margin-bottom:12px; }
.section-desc { font-size:15px; color:rgba(255,255,255,0.5); line-height:1.8; max-width:650px; }
.section-header { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:40px; flex-wrap:wrap; gap:16px; }

/* ─── KPI BAR ─── */
.kpi-bar { padding:60px 24px; background:#0A0A08; }
.kpi-grid { max-width:900px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
.kpi-number {
  font-family:'Bebas Neue',sans-serif; font-size:clamp(32px,4vw,52px);
  background:linear-gradient(135deg,var(--sand),var(--accent));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text; line-height:1;
}
.kpi-label { font-size:13px; color:rgba(255,255,255,0.4); margin-top:6px; }

/* ─── PRODUCT CARDS ─── */
.product-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px;
}
.product-card {
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:16px; overflow:hidden;
  transition:all 0.35s;
}
.product-card:hover { transform:translateY(-4px); border-color:rgba(201,169,110,0.3); }
.product-img {
  height:200px; background-size:cover; background-position:center;
  position:relative;
}
.product-img::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:60px;
  background:linear-gradient(transparent,rgba(0,0,0,0.6));
}
.product-badge {
  position:absolute; top:12px; right:12px;
  padding:5px 14px; background:var(--sand); color:var(--charcoal);
  border-radius:100px; font-size:11px; font-weight:700; z-index:2;
}
.product-info { padding:24px; }
.product-name { font-size:20px; font-weight:700; margin-bottom:8px; }
.product-desc {
  font-size:13px; color:rgba(255,255,255,0.5); line-height:1.7;
  margin-bottom:16px; display:-webkit-box; -webkit-line-clamp:3;
  -webkit-box-orient:vertical; overflow:hidden;
}
.product-meta { display:flex; gap:12px; font-size:12px; color:rgba(255,255,255,0.4); margin-bottom:16px; flex-wrap:wrap; }
.product-footer { display:flex; justify-content:space-between; align-items:center; }
.product-price { font-size:22px; font-weight:800; color:var(--sand); }
.product-price small { font-size:14px; font-weight:400; }

/* ─── FILTER TABS ─── */
.filter-tabs { display:flex; gap:8px; margin-bottom:32px; flex-wrap:wrap; }
.filter-tab {
  padding:10px 24px; border-radius:100px; border:1px solid rgba(255,255,255,0.15);
  background:transparent; color:rgba(255,255,255,0.6);
  font-size:13px; cursor:pointer; transition:all 0.3s;
}
.filter-tab.active, .filter-tab:hover { background:var(--sand); color:var(--charcoal); border-color:var(--sand); font-weight:700; }

/* ─── NEWS CARDS ─── */
.news-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:20px; }
.news-card {
  background:rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.06);
  border-radius:16px; overflow:hidden; transition:all 0.35s; cursor:pointer;
}
.news-card:hover { transform:translateY(-4px); border-color:rgba(201,169,110,0.3); }
.news-img { height:200px; background-size:cover; background-position:center; position:relative; }
.news-category {
  position:absolute; top:12px; left:12px;
  padding:4px 12px; background:var(--sand); color:var(--charcoal);
  border-radius:100px; font-size:11px; font-weight:700;
}
.news-body { padding:20px; }
.news-date { font-size:12px; color:rgba(255,255,255,0.35); margin-bottom:6px; }
.news-title { font-size:16px; font-weight:700; line-height:1.4; margin-bottom:8px; }
.news-summary { font-size:13px; color:rgba(255,255,255,0.4); line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ─── NEWS DETAIL ─── */
.article-hero { height:360px; border-radius:16px; background-size:cover; background-position:center; position:relative; margin-bottom:32px; }
.article-content { font-size:16px; color:rgba(255,255,255,0.7); line-height:2; white-space:pre-line; }

/* ─── GALLERY ─── */
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px; }
.gallery-item {
  border-radius:12px; overflow:hidden; position:relative;
  padding-bottom:70%; background-size:cover; background-position:center;
  cursor:pointer; transition:transform 0.3s;
}
.gallery-item:hover { transform:scale(1.02); }
.gallery-caption {
  position:absolute; bottom:0; left:0; right:0;
  padding:32px 14px 12px; background:linear-gradient(transparent,rgba(0,0,0,0.75));
}
.gallery-caption h4 { font-size:14px; font-weight:600; }
.gallery-caption span { font-size:11px; color:rgba(255,255,255,0.5); }

/* ─── LIGHTBOX ─── */
.lightbox {
  display:none; position:fixed; inset:0; z-index:3000;
  background:rgba(0,0,0,0.92); align-items:center; justify-content:center;
  cursor:pointer; padding:20px;
}
.lightbox.show { display:flex; }
.lightbox img { max-width:90%; max-height:85vh; border-radius:12px; }
.lightbox-close { position:absolute; top:20px; right:24px; color:#fff; font-size:32px; cursor:pointer; background:none; border:none; }

/* ─── EXHIBITION ─── */
.exhibition-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; }
.exhibition-card {
  background:rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.06);
  border-radius:16px; overflow:hidden; transition:all 0.3s;
}
.exhibition-card:hover { border-color:rgba(201,169,110,0.3); }
.exhibition-card-img { height:180px; background-size:cover; background-position:center; }
.exhibition-card-body { padding:24px; }
.exhibition-icon { font-size:28px; margin-bottom:8px; }
.exhibition-title { font-size:18px; font-weight:700; margin-bottom:8px; }
.exhibition-desc { font-size:13px; color:rgba(255,255,255,0.5); line-height:1.6; margin-bottom:8px; }
.exhibition-schedule { font-size:12px; color:var(--sand); font-weight:500; }

/* ─── STRUCTURE DIAGRAM ─── */
.structure-wrap { display:flex; flex-direction:column; align-items:center; margin-top:48px; }
.entity-card {
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08);
  border-radius:16px; padding:28px; text-align:center; min-width:240px;
  transition:all 0.4s;
}
.entity-card:hover { border-color:var(--sand); transform:translateY(-3px); }
.entity-card.main {
  border:2px solid var(--sand);
  background:linear-gradient(135deg,rgba(201,169,110,0.1),rgba(212,114,42,0.05));
  padding:36px; min-width:300px;
}
.entity-icon {
  width:52px; height:52px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 12px; font-size:22px;
}
.entity-card.main .entity-icon { background:linear-gradient(135deg,var(--sand),var(--accent)); width:56px; height:56px; }
.entity-card:not(.main) .entity-icon { background:rgba(255,255,255,0.08); }
.entity-name { font-size:18px; font-weight:700; }
.entity-role { font-size:11px; color:var(--sand); font-weight:500; margin:4px 0 8px; }
.entity-desc { font-size:13px; color:rgba(255,255,255,0.45); line-height:1.5; }
.connector-v { width:2px; height:36px; background:linear-gradient(180deg,var(--sand),transparent); margin:0 auto; }
.connector-label {
  padding:6px 20px; background:var(--sand); color:var(--charcoal);
  border-radius:100px; font-size:11px; font-weight:700; letter-spacing:1px;
}
.entity-row { display:flex; gap:24px; justify-content:center; flex-wrap:wrap; margin-top:12px; }

/* ─── FORMS ─── */
.form-group { margin-bottom:14px; }
.form-label { display:block; font-size:12px; color:rgba(255,255,255,0.5); margin-bottom:4px; font-weight:500; }
.form-input, .form-select, .form-textarea {
  width:100%; padding:11px 14px;
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);
  border-radius:8px; color:#fff; font-size:14px; font-family:inherit;
  outline:none; transition:border-color 0.3s;
}
.form-input:focus, .form-textarea:focus { border-color:var(--sand); }
.form-textarea { resize:vertical; min-height:80px; }

/* ─── MODAL ─── */
.modal-overlay {
  display:none; position:fixed; inset:0; z-index:2000;
  background:rgba(0,0,0,0.7); align-items:center; justify-content:center; padding:20px;
}
.modal-overlay.show { display:flex; }
.modal-box {
  background:#1E1E1E; border-radius:16px; padding:32px;
  max-width:480px; width:100%; max-height:90vh; overflow-y:auto;
}
.modal-title { font-size:20px; font-weight:700; margin-bottom:4px; }
.modal-subtitle { font-size:13px; color:rgba(255,255,255,0.4); margin-bottom:20px; }

/* ─── TOAST ─── */
.toast {
  position:fixed; top:20px; left:50%; transform:translateX(-50%) translateY(-80px);
  z-index:9999; background:var(--sand); color:var(--charcoal);
  padding:12px 28px; border-radius:8px; font-weight:700; font-size:14px;
  box-shadow:0 4px 20px rgba(0,0,0,0.3); transition:transform 0.4s ease;
  pointer-events:none;
}
.toast.show { transform:translateX(-50%) translateY(0); }

/* ─── FOOTER ─── */
.footer { background:#0A0A08; padding:48px 24px 24px; border-top:1px solid rgba(255,255,255,0.05); }
.footer-inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:2fr 1fr 1fr; gap:32px; }
.footer-brand { font-family:'Bebas Neue',sans-serif; font-size:24px; color:var(--sand); letter-spacing:3px; margin-bottom:12px; }
.footer-info { font-size:12px; color:rgba(255,255,255,0.3); line-height:1.8; }
.footer-heading { font-size:13px; font-weight:700; color:rgba(255,255,255,0.5); margin-bottom:12px; }
.footer-links { list-style:none; }
.footer-links li { margin-bottom:8px; }
.footer-links a { font-size:12px; color:rgba(255,255,255,0.3); transition:color 0.3s; }
.footer-links a:hover { color:var(--sand); }
.footer-bottom {
  max-width:1100px; margin:24px auto 0; padding-top:16px;
  border-top:1px solid rgba(255,255,255,0.05);
  text-align:center; font-size:11px; color:rgba(255,255,255,0.2);
}
.admin-link { margin-left:12px; color:rgba(255,255,255,0.15); }
.admin-link:hover { color:var(--sand); }

/* ─── PAGE HEADER (sub pages) ─── */
.page-header { padding:120px 24px 60px; background:var(--charcoal); }
.page-header .section-inner { max-width:1100px; margin:0 auto; }
.back-link { font-size:14px; color:var(--sand); margin-bottom:20px; display:inline-block; }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
.fade-in { opacity:0; transform:translateY(20px); transition:opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width:768px) {
  .nav { padding:12px 16px; }
  .nav-links { display:none; position:fixed; top:56px; left:0; right:0; background:rgba(17,17,17,0.98); flex-direction:column; padding:20px; gap:16px; }
  .nav-links.open { display:flex; }
  .nav-mobile-toggle { display:block; }
  .section { padding:60px 16px; }
  .kpi-grid { grid-template-columns:repeat(2,1fr); gap:16px; }
  .footer-inner { grid-template-columns:1fr; }
  .entity-row { flex-direction:column; }
  .hero-title { font-size:clamp(28px,6vw,48px); }
}
