/* ═══════════════════════════════════════════
   COURTSIDE — Global Stylesheet
   Brand navy: #2C3564  ·  Accent gold: #C5993A
   Tone: Vintage Editorial Magazine
═══════════════════════════════════════════ */


@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* 브랜드 코어 */
  --navy:        #2C3564;   /* 로고 딥 네이비 */
  --navy-dark:   #1B2148;   /* 푸터·어두운 배경 */
  --navy-light:  #ECEDF5;   /* 연한 네이비 틴트 */
  --navy-mid:    #6B74B2;   /* 미드 톤 */
  --gold:        #C5993A;   /* 빈티지 골드 포인트 */
  --gold-light:  #F5EDD8;   /* 골드 틴트 배경 */

  /* 배경·서피스 — 웜 크림 */
  --white:       #FFFEF9;   /* 웜 오프화이트 */
  --bg:          #F4F1E8;   /* 크림 배경 */
  --bg-card:     #FFFDF6;   /* 카드 배경 */
  --parchment:   #EDE9DC;   /* 구분선·호버 배경 */

  /* 텍스트 */
  --black:       #16161E;   /* 거의 블랙 */
  --text:        #252530;   /* 바디 텍스트 */
  --text-muted:  #7A7669;   /* 서브 텍스트 */

  /* 보더 */
  --border:      #DDD8CC;   /* 웜 베이지 보더 */
  --border-light:#EDE9DC;

  /* 카드 */
  --card-radius: 4px;       /* 각진 빈티지 감 */
  --shadow:      0 2px 12px rgba(28,33,72,0.07);
  --shadow-hover:0 10px 32px rgba(28,33,72,0.14);

  /* 카테고리 — 빈티지 배리에이션 */
  --cat-match:   #2C3564;   /* 주요 경기: 브랜드 네이비 */
  --cat-feature: #5A4A8A;   /* 기획: 빈티지 퍼플 */
  --cat-issue:   #B04010;   /* 이슈: 빈티지 테라코타 */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

/* 크림 배경 텍스처 — 미세한 노이즈 패턴 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
body > * { position: relative; z-index: 1; }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }


/* ════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════ */
.site-nav {
  background: var(--white);
  border-bottom: 2px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 0 var(--gold);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* Category pills */
.nav-cats {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-cats a {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all 0.18s;
}

.nav-cats a:hover,
.nav-cats a.active {
  background: var(--navy);
  color: var(--white) !important;
}

.nav-cats a.all { color: var(--text); font-weight: 700; }
.nav-cats a.all:hover,
.nav-cats a.all.active {
  background: var(--navy);
  color: var(--white) !important;
}

/* Nav right group */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Admin button */
.nav-admin-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.18s;
  white-space: nowrap;
}

.nav-admin-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* Hamburger button — 모바일에서만 표시 */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}

/* X 모양 변환 */
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 모바일 드롭다운 메뉴 */
.nav-mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.nav-mobile-menu.open {
  max-height: 400px;
}

.nav-mobile-menu ul {
  list-style: none;
  padding: 8px 0;
}

.nav-mobile-menu ul li a {
  display: block;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  transition: background 0.15s;
}

.nav-mobile-menu ul li a:hover {
  background: var(--navy-light);
  color: var(--navy);
}


/* ════════════════════════════════════════
   HERO BANNER
════════════════════════════════════════ */
.hero-bar {
  position: relative;
  background: var(--navy-dark);
  background-image: url('../img/hero-bg.svg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 88px 32px 80px;
  overflow: hidden;
}

.hero-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,16,42,0.30) 0%,
    rgba(17,28,80,0.18) 50%,
    rgba(6,16,42,0.45) 100%
  );
  pointer-events: none;
}

.hero-bar h1 {
  position: relative;
  z-index: 1;
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: clamp(16px, 2.2vw, 28px);
  font-weight: 400;        /* Black Han Sans는 단일 굵기 */
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 28px rgba(6,16,42,0.7);
}


/* ════════════════════════════════════════
   CATEGORY SCROLL SECTIONS
════════════════════════════════════════ */
.cat-sections {
  max-width: 1320px;
  margin: 36px auto 80px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.cat-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* 골드 하이라이트 언더라인 */
.cat-section-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 40px; height: 2px;
  background: var(--gold);
}

.cat-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 0;
  border-bottom: none;
  display: inline-block;
}

.cat-match-title  { color: var(--cat-match); }
.cat-feature-title { color: var(--cat-feature); }
.cat-issue-title  { color: var(--cat-issue); }

.cat-nav-btns { display: flex; gap: 6px; }

.cat-nav-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.18s;
  padding: 0;
}
.cat-nav-btn:hover { border-color: var(--navy); color: var(--navy); }

.cat-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-scroll .article-card {
  flex-shrink: 0;
  width: 260px;
  scroll-snap-align: start;
  margin-bottom: 0;
}

.cat-empty {
  padding: 32px 0;
  font-size: 13px;
  color: var(--text-muted);
}


.article-card {
  break-inside: avoid;
  background: var(--bg-card);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: block;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Thumbnail */
.card-thumb {
  width: 100%;
  aspect-ratio: 2 / 3;   /* 480 × 720 portrait */
  object-fit: cover;
  background: var(--navy-light);
}

.card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, var(--parchment) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

/* Card body */
.card-body {
  padding: 18px 18px 20px;
}

.card-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
  color: var(--white);
}

.card-tag.cat-match   { background: var(--cat-match); }
.card-tag.cat-feature { background: var(--cat-feature); }
.card-tag.cat-issue   { background: var(--cat-issue); }

.card-title {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.card-date {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}


/* ════════════════════════════════════════
   ARTICLE DETAIL PAGE
════════════════════════════════════════ */
.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.article-cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  color: var(--white);
  margin-bottom: 20px;
}

.article-cat-tag.cat-match   { background: var(--cat-match); }
.article-cat-tag.cat-feature { background: var(--cat-feature); }
.article-cat-tag.cat-issue   { background: var(--cat-issue); }

.article-title {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-bottom: 16px;
  word-break: keep-all;
}

.article-subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.article-meta .dot {
  width: 3px; height: 3px;
  background: var(--border);
  border-radius: 50%;
}

.article-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--card-radius);
  margin-bottom: 40px;
}

.article-body p {
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 24px;
  word-break: keep-all;
}

.article-body p:first-child {
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
}


/* ── Article Image Gallery ── */
.article-gallery {
  margin: 40px 0;
}

.gallery-single img {
  width: 100%;
  border-radius: var(--card-radius);
  display: block;
}

.gallery-grid {
  display: grid;
  gap: 10px;
}

.gallery-2 { grid-template-columns: 1fr 1fr; }

.gallery-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 600px) {
  .gallery-2, .gallery-3 { grid-template-columns: 1fr; }
}

.gallery-grid figure img,
.gallery-single img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--card-radius);
  display: block;
  max-height: 480px;
}

.gallery-grid figure,
.gallery-single {
  margin: 0;
}

.article-gallery figcaption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
  font-weight: 400;
}


/* ── Related Articles ── */
.related-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

.related-section h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}


/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
  padding: 52px 32px 36px;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo { display: flex; align-items: center; }

.site-footer img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.18s;
}
.footer-logo:hover img { opacity: 1; }

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  line-height: 1.8;
  margin-top: 12px;
}

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer .footer-copy {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,.75); }


/* ════════════════════════════════════════
   ADMIN — Shared
════════════════════════════════════════ */
.admin-wrap {
  min-height: 100vh;
  background: #EDEAE0;
}

.admin-nav {
  background: var(--navy-dark);
  padding: 0 32px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-nav .logo {
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

.admin-nav .logo span {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.5;
  margin-left: 8px;
}

.admin-nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.admin-nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
}

.admin-nav-links a:hover { color: var(--white); }

.admin-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 32px 80px;
}

.admin-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 24px;
}

/* Flash messages */
.flash-list { list-style: none; margin-bottom: 20px; }

.flash-msg {
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.flash-msg.success {
  background: #E8F5E9;
  color: #2E7D32;
  border-left: 3px solid #4CAF50;
}

.flash-msg.error {
  background: #FFEBEE;
  color: #C62828;
  border-left: 3px solid #EF5350;
}


/* ── Admin Article Table ── */
.admin-table-wrap {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  background: #F4F5FB;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}

.admin-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:hover td { background: #F9F9FD; }

.admin-table .thumb-cell img {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
}

.admin-table .thumb-cell .no-thumb {
  width: 40px;
  height: 60px;
  background: var(--navy-light);
  border-radius: 3px;
}

.status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.status-badge.pub  { background: #E8F5E9; color: #2E7D32; }
.status-badge.hide { background: #F5F5F5; color: #999;    }

.action-btns { display: flex; gap: 8px; align-items: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.16s;
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover { background: var(--navy-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 12px;
}
.btn-ghost:hover { color: var(--text); border-color: #999; }

.btn-danger {
  background: transparent;
  color: #C62828;
  border: 1px solid #FFCDD2;
  padding: 6px 12px;
  font-size: 12px;
}
.btn-danger:hover { background: #FFEBEE; }

.btn-sm { padding: 5px 12px; font-size: 12px; }


/* ── Admin Form ── */
.form-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.form-group { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-label .required { color: #EF5350; margin-left: 4px; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.16s;
  outline: none;
}

.form-control:focus { border-color: var(--navy); }

select.form-control { cursor: pointer; }

textarea.form-control {
  resize: vertical;
  min-height: 320px;
  line-height: 1.7;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Thumbnail preview */
.thumb-preview-wrap {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.thumb-preview {
  width: 96px;
  height: 144px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.thumb-preview-placeholder {
  width: 96px;
  height: 144px;
  background: var(--navy-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--navy-mid);
  text-align: center;
  padding: 8px;
}

/* Checkbox toggle */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-wrap input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: var(--navy);
  cursor: pointer;
}

.toggle-wrap label {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* Form actions */
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

/* Admin dashboard top bar */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.stat-card .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}


/* ── Admin Login ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-dark);
}

.login-card {
  background: var(--white);
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-card img {
  height: 36px;
  width: auto;
  margin: 0 auto 8px;
  object-fit: contain;
}

.login-card .login-sub {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.login-error {
  background: #FFEBEE;
  color: #C62828;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: left;
}


/* ════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 80px 32px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p { font-size: 14px; }


/* ════════════════════════════════════════
   HIGHLIGHT SLIDER
════════════════════════════════════════ */
.highlight-section {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 32px;
}

.highlight-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.highlight-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

.highlight-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.highlight-slider {
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  width: 100%;
}

.highlight-slider::-webkit-scrollbar { display: none; }
.highlight-slider { scrollbar-width: none; }

.hl-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  display: block;
  height: 420px;
  text-decoration: none;
  overflow: hidden;
  border-radius: 10px;
}

.hl-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.hl-slide:hover .hl-img { transform: scale(1.03); }

.hl-img-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hl-img-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: .4;
}

.hl-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 80px 32px 28px;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
  color: #fff;
}

.hl-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.hl-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.hl-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  margin: 0 0 10px;
  line-height: 1.5;
}

.hl-date {
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

.hl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: background .2s;
}

.hl-nav:hover { background: var(--white); color: var(--navy); }
.hl-prev { left: 12px; }
.hl-next { right: 12px; }

.hl-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.hl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--parchment);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.hl-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}


/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1100px) {
  .cat-sections  { padding: 0 24px; gap: 40px; }
  .admin-stats   { grid-template-columns: repeat(2, 1fr); }
  .highlight-section { padding: 0 24px; }
}

@media (max-width: 768px) {
  .nav-inner     { padding: 0 20px; }
  .cat-sections  { padding: 0 16px; gap: 36px; margin-top: 28px; }
  .cat-scroll .article-card { width: 220px; }
  .article-page  { padding: 36px 20px 60px; }
  .related-grid  { grid-template-columns: 1fr; }
  .admin-content { padding: 24px 16px 60px; }
  .form-card     { padding: 24px; }
  .site-footer   { flex-direction: column; text-align: center; }
  .site-footer .footer-copy { text-align: center; }
  .highlight-section { padding: 0 16px; margin-top: 24px; }
  .hl-slide      { height: 280px; }
  .hl-title      { font-size: 18px; }
  .hl-overlay    { padding: 60px 20px 20px; }
}

@media (max-width: 480px) {
  .cat-scroll .article-card { width: 200px; }
  .nav-cats      { display: none; }
  .nav-admin-btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu { display: block; }
  .hl-slide      { height: 240px; }
  .hl-nav        { width: 32px; height: 32px; font-size: 14px; }
}
