:root{
  --bg:#ffffff;
  --ink:#0d0d0d;
  --muted:#6b7280;
  --blue:#0b4dbf;      
  --red:#c81d25;       
  --ink-soft:#1f2937;
  --card:#f8fafc;
  --ring:#e5e7eb;
  --shadow:0 10px 25px rgba(0,0,0,.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family: "Noto Sans KR", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.container{max-width:1000px;margin:0 auto;padding:16px 14px}


.ribbon{
  height:6px;
  background:linear-gradient(90deg,var(--red),var(--blue));
}


.header{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 12px; margin-top:6px;
  border-bottom:1px solid var(--ring);
  position:sticky; top:0; background:var(--bg); z-index:20;
  backdrop-filter:saturate(120%) blur(2px);
}

.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.brand-text{display:flex; flex-direction:column; line-height:1.1}
.brand-kr{font-family:"Gowun Dodum", "Noto Sans KR", sans-serif; font-size:clamp(18px, 4vw, 22px); letter-spacing:.5px; color:var(--ink)}
.brand-en{font-size:clamp(10px, 2.7vw, 12px); color:var(--muted); text-transform:uppercase; letter-spacing:.12em}


.taegeuk{
  width:32px; height:32px; border-radius:50%;
  background: conic-gradient(from 0deg at 50% 50%, var(--red) 0 180deg, var(--blue) 180deg 360deg);
  box-shadow: var(--shadow);
  border:2px solid #fff;
}

/* ---- Navbar ---- */
.nav{display:flex; gap:8px; flex-wrap:wrap}
.nav a{
  position:relative;
  text-decoration:none;
  color:var(--ink-soft);
  font-weight:600;
  padding:8px 12px;
  border-radius:10px;
}
.nav a:hover{color:var(--ink)}
.nav a::after{
  content:""; position:absolute; left:12px; right:12px; bottom:6px; height:2px;
  background:linear-gradient(90deg,var(--red),var(--blue));
  transform:scaleX(0); transform-origin:left; transition:transform .25s ease;
}
.nav a:hover::after{transform:scaleX(1)}
.nav a.active{
  color:#fff; background:linear-gradient(90deg,var(--blue),var(--red));
  box-shadow: var(--shadow);
}

/* Mobile */
.nav-toggle{
  display:none;
  border:1px solid var(--ring);
  background:#fff;
  border-radius:10px;
  padding:8px 10px;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}
@media (max-width: 720px){
  .nav-toggle{ display:block; }
  .nav{
    position: fixed;
    top: 60px; right: 10px; left: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--ring);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
    z-index: 30;
  }
  .nav.nav-open{ display:flex; }
  .nav a{ padding:12px; border-radius:10px; }
  .nav a::after{ display:none; } 
}


h1,h2,h3{margin:0 0 10px}
h1{font-weight:800; letter-spacing:.2px}
h2{font-weight:700; font-family: "Noto Sans KR", system-ui, sans-serif; letter-spacing: .5px;}
.muted{color:var(--muted)}

.card{
  background:var(--card);
  border:1px solid var(--ring);
  border-radius:16px;
  padding: clamp(14px, 3.2vw, 18px);
  box-shadow: var(--shadow);
}


.footer{margin-top:28px; padding:16px 12px; border-top:1px solid var(--ring)}
.footer-grid{display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap}


html { font-size: 16px; }
@media (max-width: 420px){
  html { font-size: 15px; }
}

/* ---- About ---- */
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.about-gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--ring);
  box-shadow: var(--shadow);
}
@media (max-width: 720px) {
  .about-gallery { grid-template-columns: 1fr; }
}

/* ---- Officers ---- */
.officers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}
.officer-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.officer-card img {
  width: 180px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}
.officer-info h3 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.officer-info .role { font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.officer-info p { margin: 0 0 10px; line-height: 1.5; }

@media (max-width: 768px) {
  .officer-card { flex-direction: column; align-items: stretch; text-align: left; }
  .officer-card img { width: 100%; max-width: 420px; margin: 0 auto; }
}


.k-culture-list {
  list-style: none; padding: 0; margin: 10px 0 0;
}
.k-culture-list li {
  margin: 4px 0;
  padding-left: 1rem;
  position: relative;
}
.k-culture-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}


.contact-tagline {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(11,77,191,0.08), rgba(200,29,37,0.08));
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}
.contact-tagline a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.contact-tagline a:hover {
  text-decoration: underline;
  color: var(--red);
}

/* ---- Lessons */
.lesson-placeholder {
  margin-top: 20px;
  padding: 16px;
  border: 2px dashed var(--ring);
  border-radius: 12px;
  background: #f9fafb;
  text-align: center;
}
.lesson-placeholder h2 { margin: 0 0 8px; }


.club-ideas { list-style: none; padding: 0; margin: 16px 0; }
.club-ideas li { margin: 12px 0; padding-left: 1.2rem; position: relative; }
.club-ideas li::before { content: "✨"; position: absolute; left: 0; top: 0; }


.club-activities p { margin: 6px 0; line-height: 1.5; }


.highlight-link {
  display:inline-block;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  background: linear-gradient(90deg, rgba(11,77,191,0.1), rgba(200,29,37,0.1));
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}
.highlight-link:hover {
  background: linear-gradient(90deg, var(--blue), var(--red));
  color: #fff;
}


.discord-invite {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(88,101,242,0.15), rgba(88,101,242,0.05));
  font-weight: 600;
  text-align: center;
}
.discord-invite a { color: #5865F2; font-weight: 700; text-decoration: none; }
.discord-invite a:hover { text-decoration: underline; }

/* ---- Taste of Korea modal ---- */
.tok-modal.is-hidden { display: none; }
.tok-modal { position: fixed; inset: 0; z-index: 1000; }
.tok-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(2px); }

.tok-dialog {
  position: relative;
  max-width: 560px;
  max-height: 85vh;    
  overflow-y: auto;     
  margin: 6vh auto;
  background: var(--bg);
  border: 1px solid var(--ring);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  animation: tok-pop .18s ease-out both;
}
@keyframes tok-pop {
  from { transform: translateY(8px) scale(.98); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}
.tok-close {
  position: absolute; top: 8px; right: 8px;
  border: 0; background: transparent; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--ink-soft);
}
.tok-dialog h3 {
  margin: 4px 0 10px;
  font-weight: 800;
  background: linear-gradient(90deg,var(--blue),var(--red));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.tok-figure { margin: 0; }
.tok-figure img {
  width: 100%; height: auto;
  max-height: 70vh;           
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--ring);
  box-shadow: var(--shadow);
}
.tok-figure figcaption { margin-top: 6px; text-align: center; }
.tok-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }

/* Buttons */
.btn{
  display:inline-block; text-decoration:none; font-weight:700;
  padding:12px 16px; border-radius:12px; color:#fff;
  background:linear-gradient(90deg,var(--blue),var(--red));
  box-shadow: var(--shadow);
}
.btn:hover{ filter:brightness(1.05) }
.btn.btn-outline{ background:#fff; color:var(--ink); border:1px solid var(--ring); }
.btn.btn-outline:hover{ background:#f9fafb }


@media (max-width: 640px){
  .tok-dialog{
    margin: 0 auto;
    border-radius: 14px 14px 0 0;
    position: absolute;
    left: 0; right: 0; bottom: 0; top: auto;
    max-width: none;
    width: 100%;
    max-height: 92vh;
    padding: 14px;
  }
  .tok-close{ top: 6px; right: 6px; }
  .tok-figure img{ max-height: 62vh; }
}

/* Events */
.event-grid{
  display:grid;
  grid-template-columns: 1.15fr 1fr; 
  gap: 20px;
  align-items: start;
}


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


.event-media{
  margin:0;
}
.event-media img{
  width:100%;
  max-width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  border:1px solid var(--ring);
  box-shadow: var(--shadow);
}


@media (max-width: 480px){
  .event-media img{
    max-height: 60vh;        
    object-fit: contain;     
  }
}

.event-details h2{ margin-top: 2px; }
.event-list{
  margin: 10px 0 16px;
  padding-left: 0;
  list-style: none;
}
.event-list li{ margin: 8px 0; }

.event-actions{
  display:flex; flex-wrap:wrap; gap:10px;
}

/* --- Events --- */
.tok-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:12px;
}
.tok-gallery .tok-item{
  border:1px solid var(--border, #e5e7eb);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.tok-gallery .tok-thumb{
  width:100%;
  height:220px;      
  object-fit:cover;  
  display:block;
  cursor:zoom-in;
}
@media (max-width:480px){
  .tok-gallery .tok-thumb{ height:200px; }
}

