/* ── Hero Type Section ── */
.hero-type {
position: relative;
padding: 64px 0;
overflow: hidden;
min-height: 400px;
display: flex;
align-items: center;
}


/* Backdrop blur overlay for depth */
.hero-type__overlay {
position: absolute;
inset: 0;
background: rgba(11, 20, 38, 0.3);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
z-index: 1;
}

.hero-type__content {
position: relative;
z-index: 2;
max-width: 800px;
margin: 0 auto;
padding: 0 20px;
text-align: center;
}

.hero-type__eyebrow {
display: inline-flex;
align-items: center;
gap: 6px;
background: rgba(255,255,255,0.15);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
color: #f8c842;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
padding: 6px 16px;
border-radius: 100px;
margin-bottom: 20px;
border: 1px solid rgba(255,255,255,0.2);
}

.hero-type__title {
font-size: clamp(28px, 5vw, 48px);
font-weight: 700;
color: #fff;
line-height: 1.15;
margin-bottom: 12px;
}

.hero-type__title span {
color: #f8c842;
}

.hero-type__desc {
color: #c8d8f0;
font-size: 16px;
margin-bottom: 28px;
max-width: 560px;
margin-left: auto;
margin-right: auto;
line-height: 1.6;
}

/* ── Hero CTA Buttons ── */
.hero-type__actions {
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
}

.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--accent {
background: var(--accent);
color: #fff;
}

.ms-btn--accent:hover { background: #c73030; transform: translateY(-1px); }

.ms-btn--white {
background: #fff;
color: var(--brand);
}

.ms-btn--white:hover { background: #e8eef7; transform: translateY(-1px); }

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

.ms-btn--outline-white:hover {
background: rgba(255,255,255,0.1);
border-color: #fff;
transform: translateY(-1px);
}

/* ── Stats Pills ── */
.ms-stats-pills {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
margin-top: 24px;
}

.ms-stat-pill {
background: rgba(255,255,255,0.12);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255,255,255,0.18);
color: #fff;
padding: 6px 14px;
border-radius: 100px;
font-size: 12px;
font-weight: 500;
display: inline-flex;
align-items: center;
gap: 6px;
}

.ms-stat-pill i {
font-size: 11px;
}

.ms-stat-pill strong {
color: #f8c842;
margin: 0 2px;
}

/* ── Sticky Category Pills ── */
.ms-cats {
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-cats__inner {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
align-items: center;
gap: 4px;
overflow-x: auto;
scrollbar-width: none;
-ms-overflow-style: none;
}

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

.ms-cats__pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 14px 16px;
white-space: nowrap;
font-size: 13px;
font-weight: 500;
color: var(--muted);
text-decoration: none;
border-bottom: 3px solid transparent;
transition: all 0.15s;
flex-shrink: 0;
}

.ms-cats__pill:hover {
color: var(--brand);
border-bottom-color: var(--brand);
}

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

/* ── Main 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: 13px;
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: 6px 0;
font-size: 14px;
color: var(--text);
cursor: pointer;
}

.ms-filter-item input[type="radio"] {
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;
}

.ms-view-all {
font-size: 13px;
font-weight: 600;
color: var(--brand);
text-decoration: none;
white-space: nowrap;
display: flex;
align-items: center;
gap: 4px;
}

.ms-view-all:hover { text-decoration: underline; }

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

/* ── Competition 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;
background: var(--brand);
color: #fff;
font-size: 11px;
font-weight: 600;
padding: 3px 10px;
border-radius: 100px;
}

.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;
color: var(--text);
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__progress-wrap { margin-top: auto; }

.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__progress-date { color: var(--muted); }

.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__footer {
border-top: 1px solid var(--border);
padding: 12px 16px;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 13px;
}

.ms-card__time {
display: flex;
align-items: center;
gap: 4px;
color: var(--muted);
}

.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; }

/* ── 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; }

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

.ms-bottom-cta h3 {
font-size: 18px;
font-weight: 600;
margin-bottom: 16px;
}

@media (max-width: 768px) {
.hero-type { padding: 40px 0; min-height: 380px; }
.hero-type__title { font-size: 24px; }
}