/* ── Breadcrumb ── */
.ms-breadcrumb {
background: var(--brand);
padding: 8px 20px;
position: sticky;
top: 64px;
z-index: 20;
}

.ms-breadcrumb__inner {
max-width: 1200px;
margin: 0 auto;
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: #9db8d8;
}

.ms-breadcrumb a {
color: #c8d8f0;
text-decoration: none;
}

.ms-breadcrumb a:hover { color: #fff; }

.ms-breadcrumb i { font-size: 8px; color: #5a7a9a; }

/* ── Hero ── */
.ms-hero-sm {
background: var(--brand);
padding: 40px 0 48px;
text-align: center;
}

.ms-hero-sm__title {
font-size: clamp(26px, 4vw, 40px);
font-weight: 700;
color: #fff;
margin-bottom: 8px;
}

.ms-hero-sm__title span { color: var(--gold); }

.ms-hero-sm__sub {
color: #9db8d8;
font-size: 15px;
margin-bottom: 24px;
}

/* ── Stats Bar ── */
.ms-stats-bar {
display: flex;
justify-content: center;
gap: 40px;
flex-wrap: wrap;
}

.ms-stats-bar__item { text-align: center; }

.ms-stats-bar__num {
font-family: 'Sora', sans-serif;
font-size: 24px;
font-weight: 700;
color: var(--gold);
}

.ms-stats-bar__label {
font-size: 12px;
color: #9db8d8;
margin-top: 2px;
}

/* ── Sticky Tabs ── */
.ms-tabs {
background: #fff;
border-bottom: 1px solid var(--border);
padding: 0;
position: sticky;
top: 65px;
z-index: 10;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ms-tabs__inner {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
gap: 4px;
overflow-x: auto;
scrollbar-width: none;
}

.ms-tabs__inner::-webkit-scrollbar { display: none; }

.ms-tabs__tab {
padding: 14px 20px;
font-size: 13px;
font-weight: 500;
color: var(--muted);
border-bottom: 3px solid transparent;
cursor: pointer;
white-space: nowrap;
transition: all 0.15s;
text-decoration: none;
flex-shrink: 0;
}

.ms-tabs__tab:hover { color: var(--brand); border-bottom-color: var(--brand); }
.ms-tabs__tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ── Layout ── */
.ms-layout {
max-width: 1200px;
margin: 0 auto;
padding: 32px 20px;
display: grid;
grid-template-columns: 1fr;
gap: 32px;
}

@media (min-width: 1024px) {
.ms-layout { grid-template-columns: 220px 1fr; }
}

/* ── Sidebar ── */
.ms-sidebar { display: none; }
@media (min-width: 1024px) { .ms-sidebar { display: block; } }

.ms-filter-box {
background: var(--white);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 20px;
margin-bottom: 16px;
}

.ms-filter-box h4 {
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--muted);
margin-bottom: 14px;
}

.ms-filter-item {
display: flex;
align-items: center;
gap: 8px;
padding: 5px 0;
font-size: 14px;
color: var(--text);
cursor: pointer;
}

.ms-filter-item input[type="radio"] { accent-color: var(--brand); width: 16px; height: 16px; }

.ms-filter-item input[type="checkbox"] { accent-color: var(--brand); width: 16px; height: 16px; }

/* ── Section Head ── */
.ms-section-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
margin-bottom: 20px;
gap: 12px;
flex-wrap: wrap;
}

.ms-section-head h2 { font-size: 22px; font-weight: 700; }
.ms-section-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }

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

/* ── Card ── */
.ms-card {
background: var(--white);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
overflow: hidden;
transition: box-shadow 0.2s, transform 0.2s;
display: flex;
flex-direction: column;
text-decoration: none;
color: inherit;
}

.ms-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.10); transform: translateY(-2px); }

.ms-card__img-wrap {
position: relative;
aspect-ratio: 16/10;
background: var(--surface);
overflow: hidden;
}

.ms-card__img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: top;
opacity: 0;
transition: opacity 0.35s ease;
}

.ms-card__img.ms-loaded { opacity: 1; }

.ms-card__skeleton {
position: absolute;
inset: 0;
background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
background-size: 200% 100%;
animation: ms-shimmer 1.4s infinite;
}

@keyframes ms-shimmer {
0%   { background-position: 200% 0; }
100% { background-position: -200% 0; }
}

.ms-card__badge {
position: absolute;
top: 10px;
left: 10px;
font-size: 11px;
font-weight: 600;
padding: 3px 10px;
border-radius: 100px;
display: flex;
align-items: center;
gap: 4px;
}

.ms-card__badge--active { background: var(--accent); color: #fff; }
.ms-card__badge--upcoming { background: var(--gold); color: #5a3a0a; }
.ms-card__badge--completed { background: #6b7280; color: #fff; }
.ms-card__badge--winner { background: var(--gold); color: #3a2a00; font-weight: 700; }

.ms-card__count {
position: absolute;
top: 10px;
right: 10px;
background: rgba(255,255,255,0.92);
color: var(--text);
font-size: 11px;
font-weight: 600;
padding: 3px 8px;
border-radius: 100px;
display: flex;
align-items: center;
gap: 4px;
}

.ms-card__body {
padding: 16px;
flex: 1;
display: flex;
flex-direction: column;
gap: 8px;
}

.ms-card__title {
font-family: 'Sora', sans-serif;
font-size: 15px;
font-weight: 600;
line-height: 1.35;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.ms-card__desc {
font-size: 13px;
color: var(--muted);
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.ms-card__meta {
display: flex;
justify-content: space-between;
font-size: 12px;
color: var(--muted);
margin-top: auto;
padding-top: 12px;
border-top: 1px solid var(--border);
}

.ms-card__progress-wrap { margin-top: 4px; }
.ms-card__progress-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.ms-card__progress-votes { font-weight: 600; color: var(--text); font-size: 13px; }
.ms-card__bar { width: 100%; height: 4px; background: var(--surface); border-radius: 2px; overflow: hidden; }
.ms-card__bar-fill { height: 100%; background: var(--brand); border-radius: 2px; }

.ms-card__cta {
display: inline-flex;
align-items: center;
gap: 4px;
background: var(--accent);
color: #fff;
font-size: 12px;
font-weight: 600;
padding: 6px 14px;
border-radius: 100px;
text-decoration: none;
transition: background 0.15s;
}

.ms-card__cta:hover { background: #c73030; }
.ms-card__cta--blue { background: var(--brand); }
.ms-card__cta--blue:hover { background: #142f58; }
.ms-card__cta--gray { background: #6b7280; }
.ms-card__cta--gold { background: var(--gold); color: #3a2a00; }

/* ── Empty ── */
.ms-empty {
grid-column: 1 / -1;
text-align: center;
padding: 64px 20px;
background: var(--surface);
border-radius: var(--radius-xl);
border: 1px dashed var(--border);
}

.ms-empty i { font-size: 48px; color: #cbd5e1; margin-bottom: 16px; display: block; }
.ms-empty h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.ms-empty p { color: var(--muted); font-size: 14px; }

/* ── FAQ ── */
.ms-faq { padding: 64px 20px; background: var(--surface); }
.ms-faq__inner { max-width: 720px; margin: 0 auto; }
.ms-faq h2 { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 32px; }

.ms-faq-item {
background: #fff;
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 20px;
margin-bottom: 12px;
transition: border-color 0.2s;
}

.ms-faq-item:hover { border-color: var(--brand); }
.ms-faq-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.ms-faq-item h3 i { color: var(--brand); font-size: 14px; }
.ms-faq-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── CTA ── */
.ms-cta-bar {
background: var(--brand);
padding: 48px 20px;
text-align: center;
}

.ms-cta-bar h2 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ms-cta-bar p { color: #9db8d8; font-size: 15px; margin-bottom: 24px; }

.ms-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 13px 26px;
border-radius: 100px;
font-family: 'Sora', sans-serif;
font-size: 14px;
font-weight: 600;
text-decoration: none;
transition: all 0.2s;
cursor: pointer;
border: none;
}

.ms-btn--white { background: #fff; color: var(--brand); }
.ms-btn--white:hover { background: var(--brand-light); }
.ms-btn--accent { background: var(--accent); color: #fff; }
.ms-btn--outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.ms-btn--outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ── Modal ── */
.ms-modal {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.85);
z-index: 1000;
justify-content: center;
align-items: center;
backdrop-filter: blur(5px);
}

.ms-modal.active { display: flex; }
.ms-modal__img { max-width: 90%; max-height: 85vh; border-radius: var(--radius-lg); }
.ms-modal__close {
position: absolute;
top: 16px;
right: 16px;
background: rgba(0,0,0,0.5);
color: #fff;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 20px;
transition: background 0.2s;
}
.ms-modal__close:hover { background: rgba(0,0,0,0.7); }

@media (max-width: 768px) {
.ms-hero-sm { padding: 32px 0 36px; }
.ms-tabs { top: 96px; }
}