/* CSS for index.css */
:root {
      --bg: #0b1020;
      --bg-soft: #101830;
      --text: #eaf1ff;
      --muted: #a3b0c7;
      --primary: #4f7cff;
      --accent: #17d4ff;
      --card: #0f1a38;
      --border: #1f2a4a;
      --radius: 16px;
      --shadow: 0 20px 50px rgba(0, 0, 0, .35);
      --maxw: 1100px;
      --gap: 20px;
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      height: 100%;
      margin: 0;
      font-family: 'Pretendard', sans-serif;
      background: radial-gradient(1200px 600px at 10% -10%, rgba(79, 124, 255, .18), transparent 60%), radial-gradient(1200px 600px at 110% 10%, rgba(23, 212, 255, .12), transparent 60%), var(--bg);
      color: var(--text);
      line-height: 1.65;
    }

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

    img {
      max-width: 100%;
      display: block;
    }

    .img {
      border-radius: 3%;
    }

    .container {
      width: min(100% - 32px, var(--maxw));
      margin: 0 auto;
      max-width: 100%;
    }

    .section {
      padding: 72px 0;
    }

    header {
      position: sticky;
      top: 0;
      backdrop-filter: saturate(180%) blur(10px);
      background: color-mix(in oklab, #0a1228 85%, transparent);
      border-bottom: 1px solid var(--border);
      z-index: 50;
      transition: opacity .4s ease, visibility .4s ease;
    }

    header.hide {
      opacity: 0;
      visibility: hidden;
    }

    .nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 0;
    }

    .brand {
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .logo {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 12px 18px;
      border-radius: 999px;
      border: 1px solid color-mix(in oklab, var(--primary) 40%, var(--border));
      background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 26%, #09122a), #0a1430);
      color: #fff;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 10px 24px rgba(79, 124, 255, .25);
      transition: transform .07s ease, box-shadow .2s ease;
    }

    .btn:hover {
      transform: translateY(-1px);
    }

    .btn.ghost {
      background: transparent;
      border-color: var(--border);
      box-shadow: none;
      color: var(--text);
    }

    .hero-wrap {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 36px;
      align-items: center;
    }

    .hero h1 {
      font-size: clamp(34px, 6vw, 56px);
      margin: 10px 0;
      line-height: 1.12;
    }

    .hero p {
      font-size: clamp(16px, 2.6vw, 18px);
      color: var(--muted);
    }

    .roles {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      background: #f9fafb;
      padding: 60px 20px;
      border-top: 2px solid #e5e7eb;
      border-bottom: 2px solid #e5e7eb;
    }

    .roles-grid {
      display: grid;
      grid-template-columns: repeat(3, auto);
      gap: 40px;
      justify-content: center;
      max-width: 100%;
    }

    .role {
      flex: 1 1 250px;
      padding: 30px 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      background: #ffffff;
      border: 1px solid #e5e7eb;
      border-radius: var(--radius);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
      transition: transform .2s, box-shadow .2s;
      color: black;
      width: 100%;
      /* 칸 크기에 맞게 */
      max-width: 280px;
      /* 너무 넓어지지 않게 제한 */
    }

    .role:hover {
      transform: translateY(-6px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .role .icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 40%, #0b1535), #0b193f);
      border: 1px solid var(--border);
      font-weight: 800;
      width: 70px;
      height: 70px;
      border-radius: 16px;
      /* 동그라미 대신 네모 틀 */
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 32px;
      margin-bottom: 20px;
    }

    .role h3 {
      margin: 10px 0 8px;
      font-size: 20px;
      font-weight: 700;
    }

    .role p {
      color: var(--muted);
      font-size: 15px;
      line-height: 1.5;
    }

    .timeline .t-row {
      display: grid;
      grid-template-columns: 160px 1fr;
      gap: 12px;
      align-items: center;
    }

    .accordion .row {
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px;
      background: #0c1530;
      margin-top: 10px;
    }

    .accordion .head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
    }

    .accordion .body {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows .3s ease;
    }

    .accordion .row.open .body {
      grid-template-rows: 1fr;
    }

    .preview {
      max-width: 80;
      border-radius: 5%;
    }

    .sectionroles {
      margin: 0;
      background: radial-gradient(1200px 600px at 10% -10%, rgba(79, 124, 255, .18), transparent 60%), radial-gradient(1200px 600px at 110% 10%, rgba(23, 212, 255, .12), transparent 60%), var(--bg);
      line-height: 1.65;
    }

    iframe {
      width: 100%;
      border: none;
      border-radius: 12px;
      min-height: 600px;
      display: block;
    }

    @media(max-width:980px) {
      .roles {
        grid-template-columns: 1fr 1fr;
      }

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

    @media(max-width:640px) {

      .roles,
      .hero-wrap {
        grid-template-columns: 1fr;
      }

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

    /* 구글폼 iframe 반응형 */
    #apply iframe {
      min-height: 800px;
    }

    @media(max-width:768px) {
      #apply iframe {
        min-height: 1200px;
      }
    }

/* 활동소개 탭 가운데 정렬 */
#activity-tab {
  margin: 0 auto;
  text-align: center;
}

/* 관리자, 통화방, 저작권 표시 하단 고정 */
.footer-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  text-align: center;
  z-index: 999;
}

/* nav 크기 확대 */
nav {
  height: 70px;
  font-size: 1.2rem;
}

nav img.logo {
  height: 60px;
}


/* --- Assistant adjustments: fixed bottom bar, activity centering, nav sizing --- */

/* Fixed bottom bar */
.fixed-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: linear-gradient(180deg, rgba(11,16,32,0.0), #0b1020);
  padding: 10px 12px calc(env(safe-area-inset-bottom, 12px) + 8px);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.fixed-bottom-bar .fixed-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.fixed-bottom-bar .btn.small { padding:8px 12px; font-size: 14px; border-radius:10px; }
.fixed-bottom-bar .copy { color: rgba(234,241,255,0.75); margin-left: 8px; font-size: 13px; }

/* ensure body has bottom padding so content is not hidden behind the fixed bar */
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

/* Activity section centering - match common section patterns */
#apply, #apply.section, .sectionroles, #activities, .activities, .activity, .accordion {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Nav size increase */
header .nav, .container.nav, .brand {
  min-height: 76px !important;
  display: flex;
  align-items: center;
  gap: 12px;
}
header .logo { height: 56px !important; width: auto; }
header .brand { font-size: 1.15rem; font-weight:700; }

@media (max-width: 720px) {
  /* compact layout for buttons in bottom bar on small screens */
  .fixed-bottom-bar .fixed-inner { flex-direction: column; gap:6px; }
  .fixed-bottom-bar .copy { margin-left:0; opacity:0.95; }
  body { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
}



/* --- Activity cards responsive centering --- */
.activity-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center on all sizes */
  gap: 16px;
  padding: 12px;
  box-sizing: border-box;
}
.activity-cards .card, .activity-card {
  flex: 1 1 260px;
  max-width: 340px;
  min-width: 220px;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .activity-cards { padding: 8px; gap: 12px; }
  .activity-cards .card, .activity-card {
    flex: 1 1 90%;
    max-width: 420px;
  }
}
/* Smaller nav */
header .nav { height: 56px; }
header .nav .brand .logo { height: 28px; }
