/* ========================
   eNews - 신문 사이트 스타일
   ======================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --secondary: #0f172a;
  --accent: #3b82f6;
  --bg: #f0f4f8;
  --white: #ffffff;
  --border: #ddd;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
  --header-height: 70px;
}

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ========================
   HEADER
   ======================== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
  background: var(--secondary);
  color: white;
  font-size: 0.75rem;
  padding: 4px 0;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 400px;
  margin: 0 24px;
}

.search-input {
  flex: 1;
  padding: 9px 16px;
  border: 2px solid var(--border);
  border-radius: 24px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg);
}

.search-input:focus {
  border-color: var(--primary);
}

.search-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
}

.search-btn:hover {
  background: var(--primary-dark);
}

/* Header Actions */
.header-actions {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

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

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

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background: #1a252f;
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-success {
  background: #27ae60;
  color: white;
}

.btn-success:hover {
  background: #219a52;
}

/* Navigation */
.main-nav {
  background: var(--secondary);
  padding: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 11px 18px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  user-select: none;
}

.nav-link:hover, .nav-link.active {
  color: white;
  background: rgba(255,255,255,0.1);
  border-bottom-color: var(--primary);
}

.nav-arrow {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-left: 2px;
}

/* 2단계 드롭다운 */
.nav-item.has-dropdown {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 8px 8px;
  min-width: 150px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  list-style: none;
  z-index: 1100;
}

.nav-item.has-dropdown:hover .nav-dropdown {
  display: block;
}

.nav-dropdown-item {
  padding: 9px 16px;
  font-size: 0.87rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f0;
}

.nav-dropdown-item:last-child {
  border-bottom: none;
}

.nav-dropdown-item:hover {
  background: var(--bg);
  color: var(--primary);
  padding-left: 20px;
}

/* ========================
   CONTAINER
   ======================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================
   BREAKING NEWS TICKER
   ======================== */
.breaking-ticker {
  background: var(--primary);
  color: white;
  padding: 8px 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-label {
  background: #14532d;
  padding: 2px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  border-radius: 3px;
}

.ticker-text {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================
   MAIN CONTENT
   ======================== */
.main-content {
  padding: 24px 0;
}

/* Section Title */
.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  border-left: 4px solid var(--primary);
  padding-left: 12px;
  margin-bottom: 20px;
}

/* ========================
   FEATURED NEWS (Hero)
   ======================== */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 32px;
}

.featured-main {
  grid-row: 1 / 3;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}

.featured-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.featured-main:hover img {
  transform: scale(1.03);
}

.featured-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 40px 20px 20px;
  color: white;
}

.featured-main-overlay .category-badge {
  margin-bottom: 8px;
}

.featured-main-overlay h2 {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.featured-main-overlay p {
  font-size: 0.85rem;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-sub {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  position: relative;
}

.featured-sub img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.featured-sub:hover img {
  transform: scale(1.03);
}

.featured-sub-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 30px 14px 14px;
  color: white;
}

.featured-sub-overlay h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ========================
   NEWS GRID
   ======================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.news-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.news-card-body {
  padding: 14px;
}

.news-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body p {
  font-size: 0.8rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================
   CATEGORY BADGE
   ======================== */
.category-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-news     { background: #2563eb; color: white; }   /* 뉴스 - 파랑 */
.badge-local    { background: #7c3aed; color: white; }   /* 지역뉴스 - 보라 */
.badge-edu      { background: #d97706; color: white; }   /* 교육이슈 - 주황 */
.badge-together { background: #16a34a; color: white; }   /* 함께IN - 초록 */
.badge-default  { background: #95a5a6; color: white; }

/* ========================
   CATEGORY FILTER
   ======================== */
.category-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cat-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--text-light);
}

.cat-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ========================
   ARTICLE DETAIL PAGE
   ======================== */
.article-page {
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 24px;
}

.article-header h1 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.3;
  margin: 12px 0;
  color: var(--secondary);
}

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 20px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}

.article-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
}

.article-content p {
  margin-bottom: 16px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
  display: block;
}

.article-content h1, .article-content h2, .article-content h3 {
  font-weight: 800;
  color: var(--secondary);
  margin: 24px 0 12px;
}

.article-content ul, .article-content ol {
  padding-left: 28px;
  margin-bottom: 16px;
}

.article-content li {
  margin-bottom: 6px;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  margin: 20px 0;
  padding: 12px 20px;
  background: #f0fdf4;
  color: var(--text-light);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: 20px;
  transition: gap 0.2s;
}

.back-btn:hover {
  gap: 10px;
}

/* ========================
   RELATED NEWS
   ======================== */
.related-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
}

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

/* ========================
   SEARCH PAGE
   ======================== */
.search-page {}

.search-hero {
  background: var(--secondary);
  padding: 40px 0;
  margin-bottom: 32px;
}

.search-hero h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.search-hero-bar {
  display: flex;
  gap: 12px;
}

.search-hero-input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.search-hero-btn {
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.search-hero-btn:hover {
  background: var(--primary-dark);
}

.search-results-count {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.search-results-count strong {
  color: var(--primary);
}

.search-result-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-result-item {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  gap: 16px;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.search-result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.search-result-item img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.search-result-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.search-result-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.no-results {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}

.no-results .icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.no-results p {
  font-size: 1.1rem;
}

/* ========================
   ADMIN PAGE
   ======================== */
.admin-page {
  background: #f0f2f5;
  min-height: 100vh;
  padding: 0;
}

.admin-header {
  background: var(--secondary);
  color: white;
  padding: 16px 0;
}

.admin-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-body {
  padding: 24px 0;
}

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

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-table-wrapper {
  background: white;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.admin-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.admin-table-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

th {
  background: #f8f9fa;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  font-size: 0.88rem;
}

tr:hover td {
  background: #f9f9f9;
}

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

.btn-sm {
  padding: 4px 10px;
  font-size: 0.78rem;
  border-radius: 4px;
}

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

.login-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

.login-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

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

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  min-height: 200px;
  resize: vertical;
}

.login-error {
  background: #fdecea;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Article Form (Admin) */
.article-form {
  background: white;
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}

.article-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Quill WYSIWYG Editor */
.ql-toolbar.ql-snow {
  border-radius: 8px 8px 0 0;
  border-color: var(--border);
  background: #f8f9fa;
}

.ql-container.ql-snow {
  border-radius: 0 0 8px 8px;
  border-color: var(--border);
  font-size: 0.95rem;
  font-family: 'Noto Sans KR', sans-serif;
}

.ql-editor {
  min-height: 450px;
  line-height: 1.7;
}

.ql-editor img {
  max-width: 100%;
  border-radius: 6px;
  margin: 8px 0;
}

.ql-editor p {
  margin-bottom: 6px;
}

/* ========================
   YOUTH POLICY PAGE
   ======================== */
.youth-policy-page {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.youth-policy-header {
  border-left: 5px solid var(--primary);
  padding-left: 16px;
  margin-bottom: 28px;
}

.youth-policy-header h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--secondary);
}

.youth-intro {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 14px;
  padding: 16px 20px;
  background: #f0fdf4;
  border-radius: 8px;
}

.youth-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.youth-section h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.youth-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
}

.youth-section p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-light);
  padding-left: 36px;
}

.youth-officers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.youth-officer-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.youth-officer-title {
  background: var(--secondary);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 16px;
  text-align: center;
}

.youth-officer-table {
  width: 100%;
  border-collapse: collapse;
}

.youth-officer-table th,
.youth-officer-table td {
  padding: 9px 14px;
  font-size: 0.88rem;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}

.youth-officer-table th {
  background: #f8f9fa;
  color: var(--text-muted);
  font-weight: 600;
  width: 70px;
}

.youth-officer-table td {
  color: var(--text);
}

.youth-officer-table tr:last-child th,
.youth-officer-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  .youth-officers {
    grid-template-columns: 1fr;
  }
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 20px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo-title {
  color: white;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
  cursor: pointer;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-legal-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
}

.footer-legal-divider {
  color: rgba(255,255,255,0.25);
  margin: 0 2px;
}

.footer-legal-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.68rem;
}

.footer-legal-link:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ========================
   VIEW COUNTER
   ======================== */
.view-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========================
   PAGE NOT FOUND
   ======================== */
.not-found {
  text-align: center;
  padding: 80px 20px;
}

.not-found h2 {
  font-size: 5rem;
  color: var(--primary);
  font-weight: 900;
}

/* ========================
   MODAL
   ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  background: white;
  border-radius: 12px;
  padding: 28px;
  max-width: 560px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ========================
   HIGHLIGHT (Search)
   ======================== */
.highlight {
  background: #fff3cd;
  color: #856404;
  padding: 0 2px;
  border-radius: 2px;
}

/* ========================
   UTILITIES
   ======================== */
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ========================
   LOADING SPINNER
   ======================== */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .featured-main {
    grid-row: 1;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-main {
    flex-wrap: wrap;
    gap: 12px;
  }
  .search-bar {
    order: 3;
    max-width: 100%;
    margin: 0;
    width: 100%;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .search-result-item img {
    width: 100px;
    height: 70px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .article-header h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
}
