*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --black: #000000; --near-black: #1c1c1c; --white: #ffffff;
  --light-grey: #f5f5f5; --text: #333333; --text-muted: #666666;
  --red: #c0392b; --red-hover: #a93226; --gold: #c9a84c; --nav-height: 64px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Raleway', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--nav-height); background: rgba(0,0,0,0.88); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-brand { color: var(--white); font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 0.25rem; }
.nav-links { display: flex; align-items: center; list-style: none; margin-right: 1rem; }
.nav-links a { display: block; color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5rem 0.8rem; border-radius: 2px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-links a.members-link { color: var(--gold); }
.nav-links a.admin-link { color: rgba(255,255,255,0.4); font-size: 0.7rem; }
.nav-social { display: flex; align-items: center; gap: 0.4rem; }
.nav-social a img { width: 26px; height: 26px; opacity: 0.75; transition: opacity 0.2s; display: block; }
.nav-social a:hover img { opacity: 1; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.4rem; margin-left: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: rgba(0,0,0,0.96); z-index: 190; padding: 1rem 0 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.85rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); transition: background 0.2s; }
.mobile-menu a:hover { background: rgba(255,255,255,0.07); }
.mobile-menu a.members-link { color: var(--gold); }
.mobile-menu a.admin-link { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* PAGE SYSTEM */
.page { display: none; }
.page.active { display: block; }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem; }
.hero-bg { position: absolute; inset: 0; background-image: url('/images/hero-bg.jpg'); background-size: cover; background-position: center top; background-attachment: fixed; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; max-width: 700px; }
.hero-logo { width: 150px; height: 150px; border-radius: 50%; box-shadow: 0 4px 40px rgba(0,0,0,0.5); border: 3px solid rgba(255,255,255,0.15); }
.hero h1 { font-family: 'Oswald', sans-serif; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; color: var(--white); letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.1; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.hero-cta { display: inline-block; background: var(--red); color: var(--white); text-decoration: none; font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.85rem 2.5rem; border-radius: 2px; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 20px rgba(192,57,43,0.45); }
.hero-cta:hover { background: var(--red-hover); transform: translateY(-2px); }

/* SHARED */
section { padding: 5rem 1.5rem; }
.container { max-width: 1000px; margin: 0 auto; }
.section-label { font-family: 'Oswald', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 0.6rem; }
.section-title { font-family: 'Oswald', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; margin-bottom: 1.5rem; }
.section-title.light { color: var(--white); }
.title-rule { display: block; width: 48px; height: 3px; background: var(--red); margin-bottom: 2rem; }
.title-rule.gold { background: var(--gold); }

/* NEWS SECTION */
#news { background: var(--white); }
#news.hidden { display: none; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 0.5rem; }
.news-card { background: var(--light-grey); border-radius: 4px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; flex-direction: column; }
.news-card-images { display: grid; gap: 2px; }
.news-card-images.count-1 { grid-template-columns: 1fr; }
.news-card-images.count-2 { grid-template-columns: 1fr 1fr; }
.news-card-images.count-3 { grid-template-columns: 1fr 1fr; }
.news-card-images.count-3 img:first-child { grid-column: 1 / -1; }
.news-card-images img { width: 100%; height: 180px; object-fit: cover; display: block; }
.news-card-images.count-2 img, .news-card-images.count-3 img:not(:first-child) { height: 120px; }
.news-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.news-card-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.news-card-date { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.news-card-pin { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.news-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--near-black); }
.news-card p { font-size: 0.88rem; line-height: 1.7; color: var(--text-muted); flex: 1; white-space: pre-line; }
.news-card-attachments { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.news-attachment-chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; background: var(--white); border-radius: 3px; padding: 0.25rem 0.6rem; color: var(--text-muted); text-decoration: none; transition: background 0.15s; border: 1px solid #e0e0e0; }
.news-attachment-chip:hover { background: #e8e8e8; }
.news-card-link { display: inline-block; margin-top: 0.5rem; color: var(--red); font-size: 0.82rem; font-weight: 700; text-decoration: none; letter-spacing: 0.05em; }
.news-card-link:hover { text-decoration: underline; }
.news-show-more { display: block; margin: 2rem auto 0; background: none; border: 2px solid var(--red); color: var(--red); font-family: 'Oswald', sans-serif; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.7rem 2rem; border-radius: 2px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.news-show-more:hover { background: var(--red); color: var(--white); }

/* ABOUT */
#about { background: var(--light-grey); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text p { font-size: 1rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 1rem; }
.about-text p strong { color: var(--text); }
.about-image img { width: 100%; border-radius: 3px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); display: block; }

/* VALUES */
#values { background: var(--near-black); text-align: center; }
.values-logo { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 1.5rem; display: block; border: 2px solid rgba(255,255,255,0.12); }
#values .title-rule { margin: 0 auto 2rem; }
.values-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; }
.value-pill { border: 1px solid rgba(255,255,255,0.22); border-radius: 100px; padding: 0.5rem 1.4rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.75); transition: border-color 0.2s, color 0.2s; cursor: default; }
.value-pill:hover { border-color: var(--gold); color: var(--gold); }

/* INSTRUCTOR */
#instructor { background: var(--white); }
.instructor-grid { display: grid; grid-template-columns: 300px 1fr; gap: 4rem; align-items: start; }
.instructor-photo { width: 100%; border-radius: 3px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); display: block; }
.instructor-name { font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: 0.04em; color: var(--near-black); margin-bottom: 0.3rem; }
.instructor-rank { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 1.5rem; }
.instructor-bio p { font-size: 0.97rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 1rem; }
.instructor-bio p strong { color: var(--text); }
.credentials { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.credentials li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.credentials li::before { content: '✓'; color: var(--red); font-weight: 800; flex-shrink: 0; }

/* TRAINING TIMES */
#training { background: var(--light-grey); }
.training-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 0.5rem; }
.training-card { background: var(--white); border-radius: 4px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-left: 4px solid var(--red); }
.training-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--near-black); margin-bottom: 0.25rem; }
.training-card .training-time { font-family: 'Oswald', sans-serif; font-size: 1rem; color: var(--red); font-weight: 500; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.training-card .training-location { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.5rem; }
.training-card .training-notes { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-top: 0.5rem; }
.training-card a.training-map { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; color: var(--red); font-size: 0.82rem; font-weight: 700; text-decoration: none; letter-spacing: 0.05em; }
.training-card a.training-map:hover { text-decoration: underline; }
.no-training { color: var(--text-muted); font-size: 0.95rem; }

/* CONTACT */
#contact { background: var(--near-black); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-info .section-label { color: var(--gold); }
.contact-detail { display: flex; align-items: flex-start; gap: 0.8rem; margin-bottom: 1.25rem; }
.contact-detail-icon { font-size: 1.1rem; line-height: 1.6; flex-shrink: 0; }
.contact-detail p { font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.contact-detail a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
.contact-detail a:hover { color: #e0bb6a; }
.contact-form { display: flex; flex-direction: column; gap: 0.85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.contact-form input, .contact-form textarea { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 2px; padding: 0.8rem 1rem; font-family: 'Raleway', sans-serif; font-size: 0.88rem; color: var(--white); outline: none; transition: border-color 0.2s, background 0.2s; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(201,168,76,0.6); background: rgba(255,255,255,0.09); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.form-submit { background: var(--red); color: var(--white); border: none; padding: 0.9rem 2.2rem; font-family: 'Oswald', sans-serif; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; border-radius: 2px; transition: background 0.2s, transform 0.2s; align-self: flex-start; }
.form-submit:hover { background: var(--red-hover); transform: translateY(-1px); }
.form-success { display: none; color: var(--gold); font-weight: 700; font-size: 0.9rem; padding: 0.5rem 0; }

/* FAQ */
.faq-hero { position: relative; height: 300px; display: flex; align-items: center; justify-content: center; margin-top: var(--nav-height); }
.faq-hero-bg { position: absolute; inset: 0; background-image: url('/images/faq-bg.jpg'); background-size: cover; background-position: center; }
.faq-hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.58); }
.faq-hero h1 { position: relative; z-index: 1; font-family: 'Oswald', sans-serif; font-size: clamp(3rem, 8vw, 5rem); font-weight: 700; color: var(--white); letter-spacing: 0.15em; text-transform: uppercase; }
#faq-section { background: var(--light-grey); padding: 4rem 1.5rem; }
.faq-subtitle { font-family: 'Oswald', sans-serif; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2rem; }
.faq-category { font-family: 'Oswald', sans-serif; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; padding-left: 0.25rem; }
.faq-list { margin-bottom: 2.5rem; }
.faq-item { background: var(--white); border-radius: 3px; margin-bottom: 0.6rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; padding: 1.1rem 1.4rem; text-align: left; font-family: 'Raleway', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: background 0.15s; }
.faq-question:hover { background: rgba(0,0,0,0.02); }
.faq-icon { font-size: 1.3rem; color: var(--red); flex-shrink: 0; transition: transform 0.25s; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-body { max-height: 500px; }
.faq-body-inner { padding: 0.25rem 1.4rem 1.3rem; font-size: 0.92rem; line-height: 1.8; color: var(--text-muted); }
.faq-body-inner ol { padding-left: 1.3rem; margin-top: 0.5rem; }
.faq-body-inner li { margin-bottom: 0.35rem; }

/* MEMBERS */
.members-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--near-black); padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem; }
.members-login-box { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 3rem 2.5rem; width: 100%; max-width: 420px; text-align: center; }
.members-login-box img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1.5rem; display: block; border: 2px solid rgba(255,255,255,0.12); }
.members-login-box h2 { font-family: 'Oswald', sans-serif; font-size: 1.8rem; color: var(--white); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.4rem; }
.members-login-box p { color: rgba(255,255,255,0.45); font-size: 0.85rem; margin-bottom: 2rem; }
.members-login-box input { width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 2px; padding: 0.85rem 1rem; font-family: 'Raleway', sans-serif; font-size: 0.95rem; color: var(--white); outline: none; margin-bottom: 1rem; text-align: center; letter-spacing: 0.1em; transition: border-color 0.2s; }
.members-login-box input:focus { border-color: rgba(201,168,76,0.6); }
.members-login-box input::placeholder { color: rgba(255,255,255,0.25); letter-spacing: 0.05em; }
.login-btn { width: 100%; background: var(--red); color: var(--white); border: none; padding: 0.9rem; font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; border-radius: 2px; transition: background 0.2s; }
.login-btn:hover { background: var(--red-hover); }
.login-error { color: #e74c3c; font-size: 0.85rem; font-weight: 600; margin-top: 0.75rem; display: none; }
.members-header { background: var(--near-black); padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem; text-align: center; }
.members-header h1 { font-family: 'Oswald', sans-serif; font-size: clamp(2rem, 5vw, 3rem); color: var(--white); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; }
.members-header p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.members-nav-bar { background: rgba(0,0,0,0.6); border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; gap: 0.25rem; padding: 0.5rem 1rem; flex-wrap: wrap; }
.members-nav-bar a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5rem 0.9rem; border-radius: 2px; transition: color 0.2s, background 0.2s; }
.members-nav-bar a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.members-nav-bar a.logout-link { color: rgba(192,57,43,0.8); margin-left: 1rem; }
.members-nav-bar a.logout-link:hover { color: var(--red); background: rgba(192,57,43,0.1); }
.belt-grid-section { background: var(--light-grey); padding: 4rem 1.5rem; }
.belt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-top: 2rem; }
.belt-card { background: var(--white); border-radius: 4px; padding: 1.4rem 1rem; text-align: center; cursor: pointer; text-decoration: none; box-shadow: 0 2px 12px rgba(0,0,0,0.07); transition: transform 0.2s, box-shadow 0.2s; display: block; border-top: 4px solid transparent; }
.belt-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.belt-swatch { width: 48px; height: 12px; border-radius: 2px; margin: 0 auto 0.75rem; }
.belt-card h3 { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--near-black); margin-bottom: 0.2rem; }
.belt-card p { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.belt-white { border-top-color: #e0e0e0; } .swatch-white { background: #e8e8e8; border: 1px solid #ccc; }
.belt-ystripe { border-top-color: #f5c518; } .swatch-ystripe { background: linear-gradient(90deg, #f5c518 60%, #e0e0e0 60%); }
.belt-yellow { border-top-color: #f5c518; } .swatch-yellow { background: #f5c518; }
.belt-gstripe { border-top-color: #27ae60; } .swatch-gstripe { background: linear-gradient(90deg, #27ae60 60%, #f5c518 60%); }
.belt-green { border-top-color: #27ae60; } .swatch-green { background: #27ae60; }
.belt-bstripe { border-top-color: #2980b9; } .swatch-bstripe { background: linear-gradient(90deg, #2980b9 60%, #27ae60 60%); }
.belt-blue { border-top-color: #2980b9; } .swatch-blue { background: #2980b9; }
.belt-rstripe { border-top-color: #c0392b; } .swatch-rstripe { background: linear-gradient(90deg, #c0392b 60%, #2980b9 60%); }
.belt-red { border-top-color: #c0392b; } .swatch-red { background: #c0392b; }
.belt-black { border-top-color: #1a1a1a; } .swatch-black { background: #1a1a1a; }
.members-info-section { background: var(--white); padding: 4rem 1.5rem; }
.members-info-section + .members-info-section { background: var(--light-grey); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.info-card { background: var(--white); border-radius: 4px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.info-card h4 { font-family: 'Oswald', sans-serif; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 0.75rem; }
.info-card p, .info-card li { font-size: 0.9rem; line-height: 1.75; color: var(--text-muted); }
.info-card ul, .info-card ol { padding-left: 1.2rem; }
.info-card li { margin-bottom: 0.3rem; }
.belt-page-header { padding: calc(var(--nav-height) + 2.5rem) 1.5rem 2.5rem; background: var(--near-black); text-align: center; }
.belt-page-header .belt-badge { display: inline-block; padding: 0.3rem 1.2rem; border-radius: 100px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.belt-page-header h1 { font-family: 'Oswald', sans-serif; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); letter-spacing: 0.06em; text-transform: uppercase; }
.belt-page-header p { color: rgba(255,255,255,0.45); font-size: 0.85rem; margin-top: 0.4rem; }
.tab-bar { background: rgba(0,0,0,0.7); border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; }
.tab-btn { flex: 1; background: none; border: none; padding: 1rem; font-family: 'Oswald', sans-serif; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); cursor: pointer; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.tab-btn:hover { color: rgba(255,255,255,0.8); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-content { display: none; padding: 3rem 1.5rem; background: var(--light-grey); }
.tab-content.active { display: block; }
.tab-content .container { max-width: 800px; }
.content-block { background: var(--white); border-radius: 4px; padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.content-block h3 { font-family: 'Oswald', sans-serif; font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #eee; }
.content-block p { font-size: 0.92rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 0.75rem; }
.content-block ul, .content-block ol { padding-left: 1.3rem; margin-bottom: 0.75rem; }
.content-block li { font-size: 0.92rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 0.3rem; }
.content-block strong { color: var(--text); }
.theory-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.theory-table th { background: var(--near-black); color: var(--white); font-family: 'Oswald', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; padding: 0.6rem 0.9rem; text-align: left; }
.theory-table td { padding: 0.6rem 0.9rem; border-bottom: 1px solid #eee; color: var(--text); vertical-align: top; line-height: 1.6; }
.theory-table tr:last-child td { border-bottom: none; }
.theory-table tr:nth-child(even) td { background: #fafafa; }
.korean { font-weight: 700; color: var(--red); }
.video-block { background: var(--white); border-radius: 4px; padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.video-block h3 { font-family: 'Oswald', sans-serif; font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); margin-bottom: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid #eee; }
.video-block .video-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 3px; background: #000; margin-bottom: 0.5rem; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.downloads-header { background: var(--near-black); padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem; text-align: center; }
.downloads-header h1 { font-family: 'Oswald', sans-serif; font-size: clamp(2rem, 5vw, 3rem); color: var(--white); letter-spacing: 0.06em; text-transform: uppercase; }
.downloads-header p { color: rgba(255,255,255,0.45); font-size: 0.88rem; margin-top: 0.5rem; }
.downloads-section { background: var(--light-grey); padding: 4rem 1.5rem; }
.downloads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.download-card { background: var(--white); border-radius: 4px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.07); display: flex; align-items: flex-start; gap: 1rem; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; border-left: 4px solid var(--red); }
.download-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.download-card.youtube { border-left-color: #ff0000; }
.download-icon { font-size: 2rem; flex-shrink: 0; }
.download-card h3 { font-family: 'Oswald', sans-serif; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--near-black); margin-bottom: 0.25rem; }
.download-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.download-card .dl-meta { font-size: 0.75rem; color: var(--red); font-weight: 700; margin-top: 0.4rem; letter-spacing: 0.05em; }
.download-card.youtube .dl-meta { color: #cc0000; }

/* ADMIN */
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--near-black); padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem; }
.admin-login-box { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 3rem 2.5rem; width: 100%; max-width: 420px; text-align: center; }
.admin-login-box h2 { font-family: 'Oswald', sans-serif; font-size: 1.8rem; color: var(--white); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.4rem; }
.admin-login-box p { color: rgba(255,255,255,0.45); font-size: 0.85rem; margin-bottom: 2rem; }
.admin-login-box input { width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 2px; padding: 0.85rem 1rem; font-family: 'Raleway', sans-serif; font-size: 0.95rem; color: var(--white); outline: none; margin-bottom: 1rem; text-align: center; letter-spacing: 0.1em; transition: border-color 0.2s; }
.admin-login-box input:focus { border-color: rgba(201,168,76,0.6); }
.admin-login-box input::placeholder { color: rgba(255,255,255,0.25); }
.admin-header { background: var(--near-black); padding: calc(var(--nav-height) + 2rem) 1.5rem 2rem; }
.admin-header h1 { font-family: 'Oswald', sans-serif; font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--white); letter-spacing: 0.06em; text-transform: uppercase; }
.admin-header p { color: rgba(255,255,255,0.45); font-size: 0.85rem; margin-top: 0.3rem; }
.admin-nav-bar { background: rgba(0,0,0,0.6); border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 0.25rem; padding: 0.5rem 1rem; flex-wrap: wrap; }
.admin-nav-bar a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5rem 0.9rem; border-radius: 2px; transition: color 0.2s, background 0.2s; }
.admin-nav-bar a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.admin-nav-bar a.logout-link { color: rgba(192,57,43,0.8); margin-left: auto; }
.admin-nav-bar a.logout-link:hover { color: var(--red); }
.admin-section { background: var(--light-grey); padding: 3rem 1.5rem; min-height: 60vh; }
.admin-card { background: var(--white); border-radius: 4px; padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.admin-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid #eee; }
.admin-form-group { margin-bottom: 1rem; }
.admin-form-group label { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.admin-form-group input, .admin-form-group textarea, .admin-form-group select { width: 100%; border: 1px solid #ddd; border-radius: 2px; padding: 0.7rem 0.9rem; font-family: 'Raleway', sans-serif; font-size: 0.9rem; color: var(--text); outline: none; transition: border-color 0.2s; background: var(--white); }
.admin-form-group input:focus, .admin-form-group textarea:focus, .admin-form-group select:focus { border-color: var(--red); }
.admin-form-group textarea { resize: vertical; min-height: 120px; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-btn { display: inline-block; padding: 0.65rem 1.4rem; font-family: 'Oswald', sans-serif; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; border: none; border-radius: 2px; cursor: pointer; transition: background 0.2s, transform 0.15s; text-decoration: none; }
.admin-btn:hover { transform: translateY(-1px); }
.admin-btn-primary { background: var(--red); color: var(--white); }
.admin-btn-primary:hover { background: var(--red-hover); }
.admin-btn-secondary { background: var(--light-grey); color: var(--text); border: 1px solid #ddd; }
.admin-btn-secondary:hover { background: #e8e8e8; }
.admin-btn-danger { background: #e74c3c; color: var(--white); }
.admin-btn-danger:hover { background: #c0392b; }
.admin-btn-sm { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
.admin-btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th { background: var(--near-black); color: var(--white); font-family: 'Oswald', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; padding: 0.6rem 0.9rem; text-align: left; }
.admin-table td { padding: 0.75rem 0.9rem; border-bottom: 1px solid #eee; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }
.admin-msg { padding: 0.75rem 1rem; border-radius: 3px; font-size: 0.88rem; font-weight: 600; margin-bottom: 1rem; display: none; }
.admin-msg.success { background: #d4edda; color: #155724; display: block; }
.admin-msg.error { background: #f8d7da; color: #721c24; display: block; }
.admin-hub-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.admin-hub-card { background: var(--white); border-radius: 4px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-align: center; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; border-top: 4px solid var(--red); display: block; }
.admin-hub-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.admin-hub-card .hub-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.admin-hub-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--near-black); margin-bottom: 0.4rem; }
.admin-hub-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ADMIN NEWS EDIT */
.news-edit-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.news-preview-wrap { position: sticky; top: calc(var(--nav-height) + 1rem); }
.news-preview-label { font-family: 'Oswald', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem; }
.news-preview-card { background: var(--light-grey); border-radius: 4px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.news-preview-images { display: grid; gap: 2px; }
.news-preview-images img { width: 100%; height: 160px; object-fit: cover; display: block; }
.news-preview-body { padding: 1.25rem; }
.news-preview-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.news-preview-date { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.news-preview-pin { font-size: 0.7rem; font-weight: 700; color: var(--gold); }
.news-preview-title { font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 600; text-transform: uppercase; color: var(--near-black); margin-bottom: 0.5rem; }
.news-preview-text { font-size: 0.88rem; line-height: 1.7; color: var(--text-muted); white-space: pre-line; margin-bottom: 0.5rem; }
.news-preview-link { display: inline-block; color: var(--red); font-size: 0.82rem; font-weight: 700; text-decoration: none; }

/* IMAGE / ATTACHMENT UPLOAD */
.image-upload-area { border: 2px dashed #ddd; border-radius: 4px; padding: 1.5rem; text-align: center; cursor: pointer; transition: border-color 0.2s; margin-bottom: 0.75rem; }
.image-upload-area:hover { border-color: var(--red); }
.image-upload-area p { font-size: 0.85rem; color: var(--text-muted); }
.image-upload-area input { display: none; }
.image-thumbnails { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.image-thumb { position: relative; width: 80px; height: 80px; }
.image-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: block; }
.image-thumb-del { position: absolute; top: -6px; right: -6px; background: var(--red); color: var(--white); border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }
.attachment-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.75rem; }
.attachment-item { display: flex; align-items: center; gap: 0.75rem; background: var(--light-grey); border-radius: 4px; padding: 0.5rem 0.75rem; font-size: 0.85rem; }
.attachment-item-icon { font-size: 1.1rem; flex-shrink: 0; }
.attachment-item-name { flex: 1; color: var(--near-black); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-item-size { color: var(--text-muted); font-size: 0.78rem; flex-shrink: 0; }
.attachment-item-del { background: none; border: none; color: var(--text-muted); font-size: 1rem; padding: 0; cursor: pointer; flex-shrink: 0; transition: color 0.15s; }
.attachment-item-del:hover { color: var(--red); }

/* DOWNLOADS ADMIN */
.downloads-admin-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.download-admin-item { display: flex; align-items: center; gap: 0.75rem; background: var(--white); border-radius: 4px; padding: 0.65rem 1rem; box-shadow: 0 2px 6px rgba(0,0,0,0.06); font-size: 0.88rem; }
.download-admin-icon { font-size: 1.3rem; flex-shrink: 0; }
.download-admin-name { flex: 1; font-weight: 600; color: var(--near-black); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; border-bottom: 1px dashed transparent; transition: border-color 0.2s; }
.download-admin-name:hover { border-bottom-color: var(--red); }
.download-admin-name input { border: none; border-bottom: 1px solid var(--red); outline: none; font-size: 0.88rem; font-family: inherit; font-weight: 600; width: 100%; background: transparent; padding: 0; }
.download-admin-size { color: var(--text-muted); font-size: 0.78rem; flex-shrink: 0; }
.download-admin-ext { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--light-grey); padding: 0.15rem 0.45rem; border-radius: 3px; color: var(--text-muted); flex-shrink: 0; }

/* BELT ADMIN */
.belt-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.belt-admin-card { background: var(--white); border-radius: 4px; padding: 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; flex-direction: column; gap: 0.75rem; }
.belt-admin-card-header { display: flex; align-items: center; gap: 0.75rem; }
.belt-admin-badge { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 3px; font-family: 'Oswald', sans-serif; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.belt-admin-card-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.belt-admin-reorder { display: flex; gap: 0.3rem; }
.belt-admin-reorder button { background: var(--light-grey); border: 1px solid #ddd; border-radius: 3px; padding: 0.25rem 0.5rem; font-size: 0.8rem; cursor: pointer; color: var(--text-muted); transition: all 0.15s; }
.belt-admin-reorder button:hover:not(:disabled) { background: var(--near-black); color: var(--white); border-color: var(--near-black); }

/* BELT EDIT TABS */
.belt-edit-tab-bar { display: flex; border-bottom: 2px solid #eee; margin-bottom: 1.5rem; overflow-x: auto; }
.belt-edit-tab-btn { background: none; border: none; font-family: 'Oswald', sans-serif; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding: 0.75rem 1.25rem; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.belt-edit-tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.belt-edit-tab-btn:hover { color: var(--near-black); }
.belt-edit-tab-panel { display: none; }
.belt-edit-tab-panel.active { display: block; }

/* SYLLABUS EDITOR */
.syllabus-item-list { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.5rem; min-height: 20px; }
.syllabus-item { display: flex; align-items: center; gap: 0.5rem; background: var(--light-grey); border-radius: 3px; padding: 0.4rem 0.6rem; font-size: 0.85rem; }
.syllabus-item-text { flex: 1; color: var(--text); }
.syllabus-item-actions { display: flex; gap: 0.25rem; flex-shrink: 0; }
.syllabus-item-actions button { background: none; border: 1px solid #ddd; border-radius: 3px; padding: 0.15rem 0.35rem; font-size: 0.72rem; cursor: pointer; color: var(--text-muted); transition: all 0.15s; }
.syllabus-item-actions button:hover:not(:disabled) { background: var(--near-black); color: var(--white); border-color: var(--near-black); }

/* THEORY EDITOR */
.theory-editor-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 0.5rem; align-items: center; background: var(--light-grey); border-radius: 3px; padding: 0.5rem 0.6rem; margin-bottom: 0.35rem; }
.theory-editor-row input[type="text"] { border: 1px solid #ddd; border-radius: 3px; padding: 0.4rem 0.5rem; font-size: 0.83rem; font-family: 'Raleway', sans-serif; background: var(--white); outline: none; }
.theory-editor-row input[type="text"]:focus { border-color: var(--red); }
.theory-editor-actions { display: flex; gap: 0.25rem; }
.theory-editor-actions button { background: none; border: 1px solid #ddd; border-radius: 3px; padding: 0.2rem 0.4rem; font-size: 0.72rem; cursor: pointer; color: var(--text-muted); }
.theory-editor-actions button:hover { background: var(--near-black); color: var(--white); border-color: var(--near-black); }

/* VIDEO EDITOR */
.video-editor-item { background: var(--light-grey); border-radius: 3px; padding: 0.75rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.video-editor-item input { border: 1px solid #ddd; border-radius: 3px; padding: 0.4rem 0.5rem; font-size: 0.83rem; font-family: 'Raleway', sans-serif; background: var(--white); outline: none; }
.video-editor-item input:focus { border-color: var(--red); }
.video-editor-item input.wide { flex: 1; min-width: 120px; }
.video-editor-item input.narrow { width: 130px; }
.video-editor-item button { background: none; border: 1px solid #ddd; border-radius: 3px; padding: 0.2rem 0.45rem; font-size: 0.8rem; cursor: pointer; color: var(--text-muted); flex-shrink: 0; }
.video-editor-item button:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* COLOUR PICKER */
.colour-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.colour-row input[type="color"] { width: 44px; height: 36px; border: 1px solid #ddd; border-radius: 3px; padding: 2px; cursor: pointer; background: none; }
.colour-preview { display: inline-block; padding: 0.3rem 0.9rem; border-radius: 3px; font-family: 'Oswald', sans-serif; font-size: 0.85rem; letter-spacing: 0.05em; }

/* TOGGLE */
.toggle-wrap { display: flex; align-items: center; gap: 0.75rem; }
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #ccc; border-radius: 24px; cursor: pointer; transition: background 0.2s; }
.toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: transform 0.2s; }
.toggle input:checked + .toggle-slider { background: var(--red); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-label { font-size: 0.85rem; font-weight: 600; color: var(--text); }

/* FOOTER */
footer { background: var(--black); color: rgba(255,255,255,0.35); text-align: center; padding: 1.75rem 1.5rem; font-size: 0.8rem; letter-spacing: 0.05em; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .news-edit-layout { grid-template-columns: 1fr; }
  .news-preview-wrap { position: static; }
  .admin-hub-cards { grid-template-columns: 1fr; }
  .theory-editor-row { grid-template-columns: 1fr 1fr; }
  .theory-editor-row .theory-editor-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-grid, .instructor-grid, .contact-grid, .two-col, .admin-form-row { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-bg { background-attachment: scroll; }
  section { padding: 3rem 1.25rem; }
  .belt-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .members-login-box, .admin-login-box { padding: 2rem 1.5rem; }
  .tab-btn { font-size: 0.72rem; padding: 0.85rem 0.4rem; letter-spacing: 0.06em; }
  .theory-editor-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-logo { width: 110px; height: 110px; }
  .nav-brand { font-size: 0.95rem; }
}

/* ROSTER */
.roster-section { margin-bottom: 2.5rem; }
.roster-section-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.roster-swatch { width: 48px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.roster-section-title { font-family: 'Oswald', sans-serif; font-size: 1.15rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--near-black); }
.roster-section-kup { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.roster-senior-badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--gold); color: var(--near-black); padding: 0.2rem 0.6rem; border-radius: 100px; }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.roster-card { background: var(--white); border-radius: 4px; padding: 1rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-top: 3px solid transparent; }
.roster-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.75rem; display: block; border: 2px solid #eee; background: #f0f0f0; }
.roster-name { font-family: 'Oswald', sans-serif; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.03em; color: var(--near-black); margin-bottom: 0.2rem; line-height: 1.3; }
.roster-since { font-size: 0.75rem; color: var(--text-muted); }
.roster-empty { color: var(--text-muted); font-style: italic; }
@media (max-width: 480px) {
  .roster-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; }
  .roster-photo { width: 68px; height: 68px; }
}

/* ROSTER MEMBER DETAIL */
.roster-card-link { cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.roster-card-link:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.roster-detail-head { display: flex; align-items: center; gap: 1.5rem; background: var(--white); border-radius: 4px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 2rem; }
.roster-detail-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid #eee; flex-shrink: 0; }
.roster-detail-name { font-family: 'Oswald', sans-serif; font-size: 1.5rem; font-weight: 600; letter-spacing: 0.03em; color: var(--near-black); margin-bottom: 0.3rem; }
.roster-detail-grade { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 0.4rem; }
.roster-detail-since { font-size: 0.85rem; color: var(--text-muted); }
.roster-detail-section { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--near-black); margin-bottom: 1rem; }
.grading-timeline { position: relative; padding-left: 1.5rem; }
.grading-timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: #e0e0e0; }
.timeline-item { position: relative; margin-bottom: 1.25rem; }
.timeline-dot { position: absolute; left: -1.5rem; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid var(--white); box-shadow: 0 0 0 2px #e0e0e0; }
.timeline-belt { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; color: var(--near-black); }
.timeline-date { font-size: 0.82rem; color: var(--red); font-weight: 600; }
.timeline-held { font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 480px) {
  .roster-detail-head { flex-direction: column; text-align: center; gap: 1rem; }
  .roster-detail-photo { width: 90px; height: 90px; }
}

/* NEWS IMAGE MODES */
.news-card-images img { cursor: zoom-in; }
.news-card-images.img-fit img { object-fit: contain; background: #f0f0f0; }
.news-card-images.img-full { grid-template-columns: 1fr; }
.news-card-images.img-full img { height: auto; width: 100%; object-fit: contain; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.lightbox.lightbox-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 3px; }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: none; color: rgba(255,255,255,0.8); font-size: 2.5rem; line-height: 1; cursor: pointer; padding: 0.25rem 0.75rem; }
.lightbox-close:hover { color: #fff; }

/* FIT MODE — stack vertically at natural aspect ratio */
.news-card-images.img-fit { grid-template-columns: 1fr; gap: 4px; background: #f0f0f0; }
.news-card-images.img-fit img { height: auto !important; width: 100%; object-fit: contain; }

/* QUIZ */
.quiz-card { background: var(--white); border-radius: 4px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 1rem; }
.quiz-intro { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 1.25rem; }
.quiz-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.quiz-select { width: 100%; border: 1px solid #ddd; border-radius: 3px; padding: 0.75rem 0.9rem; font-family: inherit; font-size: 0.95rem; background: var(--white); color: var(--text); outline: none; margin-bottom: 1rem; }
.quiz-select:focus { border-color: var(--red); }
.quiz-error { color: var(--red); font-size: 0.85rem; font-weight: 600; min-height: 1.2rem; margin-bottom: 0.5rem; }
.quiz-submit { width: 100%; background: var(--red); color: var(--white); border: none; padding: 0.9rem; font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 3px; cursor: pointer; transition: background 0.2s; }
.quiz-submit:hover { background: var(--red-hover); }
.quiz-secondary { width: 100%; background: none; color: var(--text); border: 2px solid #ddd; padding: 0.85rem; font-family: 'Oswald', sans-serif; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 3px; cursor: pointer; margin-top: 0.6rem; }
.quiz-secondary:hover { border-color: var(--red); color: var(--red); }
.quiz-progress { margin-bottom: 1rem; }
.quiz-progress-track { height: 6px; background: #e0e0e0; border-radius: 100px; overflow: hidden; }
.quiz-progress-bar { height: 100%; background: var(--red); width: 0; transition: width 0.3s ease; }
.quiz-progress-text { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.5rem; }
.quiz-prompt { font-size: 1.1rem; line-height: 1.5; color: var(--near-black); font-weight: 600; margin-bottom: 1.25rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.6rem; }
.quiz-option { text-align: left; background: var(--light-grey); border: 2px solid transparent; border-radius: 4px; padding: 0.85rem 1rem; font-family: inherit; font-size: 0.95rem; color: var(--text); cursor: pointer; transition: all 0.15s; }
.quiz-option:hover:not(:disabled) { border-color: var(--red); background: var(--white); }
.quiz-option:disabled { cursor: default; }
.quiz-option.opt-correct { background: #d4edda; border-color: #1e7e34; color: #155724; font-weight: 700; }
.quiz-option.opt-wrong { background: #f8d7da; border-color: #c0392b; color: #721c24; }
.quiz-input { width: 100%; border: 2px solid #ddd; border-radius: 4px; padding: 0.85rem 1rem; font-family: inherit; font-size: 1rem; outline: none; margin-bottom: 0.85rem; }
.quiz-input:focus { border-color: var(--red); }
.quiz-input.input-correct { background: #d4edda; border-color: #1e7e34; }
.quiz-input.input-wrong { background: #f8d7da; border-color: #c0392b; }
.quiz-feedback { margin-top: 1.1rem; }
.quiz-feedback:empty { display: none; }
.fb-line { font-family: 'Oswald', sans-serif; font-size: 1.1rem; letter-spacing: 0.04em; margin-bottom: 0.3rem; }
.fb-correct .fb-line { color: #1e7e34; }
.fb-wrong .fb-line { color: var(--red); }
.fb-answer { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0.9rem; }
.fb-answer strong { color: var(--near-black); }
.quiz-next { width: 100%; background: var(--near-black); color: var(--white); border: none; padding: 0.8rem; font-family: 'Oswald', sans-serif; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 3px; cursor: pointer; }
.quiz-next:hover { background: #000; }
.quiz-score-card { background: var(--white); border-radius: 4px; padding: 2rem 1.5rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-top: 4px solid var(--red); margin-bottom: 1rem; }
.quiz-score-card.perfect { border-top-color: var(--gold); }
.quiz-score-num { font-family: 'Oswald', sans-serif; font-size: 3rem; font-weight: 700; color: var(--near-black); line-height: 1; }
.quiz-score-lbl { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.3rem; }
.quiz-points { font-family: 'Oswald', sans-serif; font-size: 1.5rem; color: var(--red); margin-top: 1rem; }
.quiz-bonus { font-size: 0.9rem; font-weight: 700; color: var(--gold); margin-top: 0.4rem; }
.quiz-actions { display: flex; flex-direction: column; }

/* LEADERBOARD */
.lb-list { display: flex; flex-direction: column; gap: 0.5rem; }
.lb-row { display: flex; align-items: center; gap: 0.85rem; background: var(--white); border-radius: 4px; padding: 0.75rem 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.lb-row.lb-top { border-left: 3px solid var(--gold); }
.lb-rank { font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--text-muted); min-width: 28px; text-align: center; }
.lb-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #eee; flex-shrink: 0; }
.lb-name { flex: 1; font-weight: 600; color: var(--near-black); font-size: 0.95rem; line-height: 1.3; }
.lb-attempts { display: block; font-size: 0.72rem; font-weight: 400; color: var(--text-muted); }
.lb-points { font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--red); }

/* WHAT'S NEW */
.wn-entry { background: var(--white); border-radius: 4px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 1rem; border-left: 3px solid var(--red); }
.wn-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.wn-cat { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 100px; }
.cat-feature { background: #fdf1d8; color: #8a6100; }
.cat-improve { background: #e0edf7; color: #1c5a85; }
.cat-fix { background: #ddf0e2; color: #1b5e2a; }
.wn-date { font-size: 0.78rem; color: var(--text-muted); }
.wn-title { font-family: 'Oswald', sans-serif; font-size: 1.2rem; font-weight: 600; letter-spacing: 0.03em; color: var(--near-black); margin-bottom: 0.6rem; }
.wn-body p { font-size: 0.92rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 0.75rem; }
.wn-body p:last-child { margin-bottom: 0; }

/* HISTORY */
.hist-hero { position: relative; height: 300px; display: flex; align-items: center; justify-content: center; margin-top: var(--nav-height); }
.hist-hero-bg { position: absolute; inset: 0; background-image: url('/images/hero-bg.jpg'); background-size: cover; background-position: center; }
.hist-hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.hist-hero h1 { position: relative; z-index: 1; font-family: 'Oswald', sans-serif; font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 700; color: var(--white); letter-spacing: 0.14em; text-transform: uppercase; }
#history-section { background: var(--light-grey); padding: 4rem 1.5rem; }
.hist-intro { font-size: 1rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 3rem; }
.hist-section { display: grid; grid-template-columns: 160px 1fr; gap: 2.5rem; align-items: start; background: var(--white); border-radius: 4px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 1.5rem; }
.hist-badge-wrap { display: flex; align-items: flex-start; justify-content: center; }
.hist-badge { width: 100%; max-width: 150px; height: auto; display: block; }
.hist-subtitle { font-family: 'Oswald', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 0.5rem; }
.hist-title { font-family: 'Oswald', sans-serif; font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.15; color: var(--near-black); margin-bottom: 1rem; }
.hist-body p { font-size: 0.95rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 1rem; }
.hist-body p:last-child { margin-bottom: 0; }
.hist-link { display: inline-block; margin-top: 1rem; color: var(--red); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-decoration: none; }
.hist-link:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .hist-section { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; }
  .hist-badge-wrap { justify-content: flex-start; }
  .hist-badge { max-width: 110px; }
  #history-section { padding: 3rem 1.25rem; }
}
