/* ======================================================
   University News System - Main Stylesheet
   Aesthetic: Academic Magazine with Lao Cultural touches
   ====================================================== */

:root {
  --primary: #0f2d5e;
  --primary-light: #1a4a8a;
  --accent: #c8961c;
  --accent-light: #f0b429;
  --red: #c0392b;
  --green: #16a34a;
  --text: #1a1a2e;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #f8f7f4;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(15,45,94,.10);
  --shadow-lg: 0 8px 32px rgba(15,45,94,.14);
  --radius: 10px;
  --radius-lg: 18px;
  --font-lao: 'Noto Sans Lao', sans-serif;
  --font-display: 'Playfair Display', 'Noto Sans Lao', serif;
  --font-body: 'Source Serif 4', 'Noto Sans Lao', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-lao);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

.lang-en body { font-family: var(--font-body); }

a { color: var(--primary); text-decoration: none; transition: all .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- TOPBAR ---- */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-left i { color: var(--accent-light); }
.topbar-right { display: flex; align-items: center; gap: 16px; }

/* Language Switcher */
.lang-switcher { display: flex; gap: 6px; background: rgba(255,255,255,.08); border-radius: 20px; padding: 3px; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 12px; border-radius: 16px;
  color: rgba(255,255,255,.7); font-size: 12px; font-weight: 500; letter-spacing: .5px;
  transition: all .2s;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--accent); color: #fff;
}
.flag-icon { font-size: 14px; }

.topbar-link { color: rgba(255,255,255,.75); font-size: 13px; display: flex; align-items: center; gap: 5px; }
.topbar-link:hover { color: var(--accent-light); }

/* ---- MAIN HEADER ---- */
.main-header {
  background: #fff;
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  padding: 16px 0;
  position: sticky; top: 0; z-index: 100;
}
.main-header .container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 14px; color: var(--primary); }
.logo:hover { color: var(--primary); }
.logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px;
  box-shadow: 0 4px 12px rgba(15,45,94,.25);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-abbr { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.logo-name { font-size: 12px; color: var(--text-muted); font-weight: 500; letter-spacing: .3px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--primary); border-radius: 2px; transition: all .3s; }

/* ---- NAVIGATION ---- */
.main-nav {
  background: var(--primary);
  position: relative; z-index: 90;
}
.main-nav .container { position: relative; }
.nav-list {
  display: flex; list-style: none; margin: 0;
  align-items: center;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.85);
  padding: 14px 16px;
  font-size: 14px; font-weight: 500;
  transition: all .2s; white-space: nowrap;
}
.nav-list > li > a i { font-size: 13px; }
.nav-list > li > a:hover, .nav-list > li > a.active {
  color: #fff; background: rgba(255,255,255,.12);
}
.nav-list > li > a.active { border-bottom: 3px solid var(--accent); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none; min-width: 260px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all .25s;
  border-top: 3px solid var(--accent);
  z-index: 200;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block; padding: 10px 20px;
  color: var(--text); font-size: 14px;
  border-bottom: 1px solid var(--border);
  transition: all .15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: #f0f4ff; color: var(--primary); padding-left: 26px; }

.nav-login-btn {
  background: var(--accent) !important;
  color: #fff !important; border-radius: 6px !important;
  padding: 8px 18px !important; margin-left: 8px;
}
.nav-login-btn:hover { background: var(--accent-light) !important; }

/* ---- HERO BANNER ---- */
.hero-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1e5a9e 60%, #0d3b72 100%);
  color: white;
  padding: 60px 0 40px;
  position: relative; overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-banner .container { position: relative; z-index: 1; }
.hero-banner h1 { font-family: var(--font-display); font-size: clamp(28px,4vw,48px); margin-bottom: 12px; }
.hero-banner p { font-size: 16px; opacity: .85; max-width: 600px; }

/* ---- FEATURED POSTS ---- */
.featured-slider {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 20px; margin-bottom: 40px;
}
.featured-main {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 16/9;
  background: var(--primary);
}
.featured-main img { width: 100%; height: 100%; object-fit: cover; }
.featured-main .overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 40px 28px 28px;
  color: white;
}
.featured-main .overlay h2 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1.3; margin-bottom: 10px;
}
.featured-side { display: flex; flex-direction: column; gap: 14px; }
.featured-side-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
  border-left: 4px solid var(--primary);
}
.featured-side-item:hover { box-shadow: var(--shadow); }
.featured-side-item img { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.featured-side-item h4 { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text); }
.featured-side-item .meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---- SECTION HEADERS ---- */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.section-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px; height: 28px;
  background: var(--accent);
  border-radius: 2px; display: inline-block;
}
.view-all { color: var(--primary); font-size: 14px; font-weight: 500; }
.view-all:hover { color: var(--accent); }

/* ---- POST CARDS ---- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.posts-grid-4 { grid-template-columns: repeat(4, 1fr); }

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.post-card-img {
  aspect-ratio: 16/10;
  overflow: hidden; position: relative;
  background: linear-gradient(135deg, #1a3a6b, #2563eb);
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); font-size: 48px;
}
.post-type-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: white;
}
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.post-card-meta .date { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.post-faculty { font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 10px; }
.post-card-title {
  font-family: var(--font-display); font-size: 17px;
  font-weight: 700; color: var(--text); line-height: 1.4;
  margin-bottom: 10px; flex: 1;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.post-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.post-card-footer a { font-size: 13px; font-weight: 600; color: var(--primary); }
.post-views { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }

/* ---- POST DETAIL ---- */
.post-detail { max-width: 860px; margin: 0 auto; }
.post-detail-header { margin-bottom: 32px; }
.post-detail-title { font-family: var(--font-display); font-size: clamp(24px,4vw,38px); line-height: 1.3; color: var(--primary); margin-bottom: 16px; }
.post-detail-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 14px; color: var(--text-muted); padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.post-detail-meta i { color: var(--accent); }
.post-thumbnail { width: 100%; border-radius: var(--radius-lg); margin-bottom: 32px; max-height: 500px; object-fit: cover; }
.post-content { font-size: 17px; line-height: 1.9; color: #2d3748; }
.post-content p { margin-bottom: 20px; }
.post-content h2, .post-content h3 { font-family: var(--font-display); color: var(--primary); margin: 32px 0 16px; }
.post-content img { border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow); }
.post-content ul, .post-content ol { padding-left: 28px; margin-bottom: 20px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  background: #fff8e1; padding: 16px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0; font-style: italic;
}

/* Post Media Gallery */
.post-gallery { margin: 32px 0; }
.post-gallery h3 { font-family: var(--font-display); font-size: 20px; color: var(--primary); margin-bottom: 16px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-item img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius); cursor: pointer; transition: transform .2s; }
.gallery-item img:hover { transform: scale(1.03); }
.post-videos { margin: 32px 0; }
.post-videos video { width: 100%; border-radius: var(--radius); margin-bottom: 16px; background: #000; }

/* ---- SIDEBAR ---- */
.sidebar-widget { background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.widget-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.recent-post-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.recent-post-item:last-child { border-bottom: none; }
.recent-post-item img { width: 70px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.recent-post-item h5 { font-size: 14px; line-height: 1.4; color: var(--text); font-weight: 600; }
.recent-post-item .date { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Faculty Tags */
.faculty-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500; margin: 4px;
  color: white; transition: opacity .2s;
}
.faculty-tag:hover { opacity: .85; color: white; }

/* ---- FILTERS ---- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }
.filter-btn {
  padding: 8px 20px; border-radius: 24px;
  border: 2px solid var(--border); background: var(--bg-card);
  color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .2s; font-family: inherit;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--primary); background: var(--primary); color: white; }
.search-box { position: relative; flex: 1; min-width: 240px; }
.search-box input {
  width: 100%; padding: 10px 44px 10px 16px;
  border: 2px solid var(--border); border-radius: 24px;
  font-size: 14px; font-family: inherit; background: var(--bg-card);
  transition: border-color .2s;
}
.search-box input:focus { outline: none; border-color: var(--primary); }
.search-box button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 2px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: all .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: white; }

/* ---- LOGIN ---- */
.login-page { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  width: 100%; max-width: 480px;
}
.login-header { background: linear-gradient(135deg, var(--primary), var(--primary-light)); padding: 36px; text-align: center; color: white; }
.login-header .icon { font-size: 48px; margin-bottom: 12px; }
.login-header h2 { font-family: var(--font-display); font-size: 26px; }
.login-body { padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-family: inherit; background: var(--bg);
  transition: border-color .2s; color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--primary); background: white; }
.form-control.error { border-color: #e53e3e; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); color: white; box-shadow: 0 4px 12px rgba(15,45,94,.3); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-light); color: var(--text); }
.btn-danger { background: #dc2626; color: white; }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-full { width: 100%; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.alert-danger { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }
.alert-success { background: #dcfce7; color: #14532d; border-left: 4px solid #16a34a; }
.alert-info { background: #dbeafe; color: #1e3a8a; border-left: 4px solid #2563eb; }

/* ---- ADMIN / FACULTY DASHBOARD ---- */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 60px); }
.dash-sidebar {
  background: var(--primary); color: white;
  padding: 0; position: sticky; top: 60px; height: calc(100vh - 60px);
  overflow-y: auto;
}
.dash-sidebar-header { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.dash-sidebar-header .user-name { font-size: 16px; font-weight: 600; }
.dash-sidebar-header .user-role { font-size: 12px; opacity: .7; }
.dash-nav { list-style: none; padding: 12px 0; }
.dash-nav li a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: rgba(255,255,255,.75);
  font-size: 14px; font-weight: 500; transition: all .2s;
}
.dash-nav li a:hover, .dash-nav li a.active {
  background: rgba(255,255,255,.12); color: white;
  border-right: 3px solid var(--accent);
}
.dash-nav li a i { width: 18px; }
.dash-nav .nav-section { padding: 16px 20px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: .5; }
.dash-main { padding: 32px; background: var(--bg); overflow-x: hidden; }
.dash-title { font-family: var(--font-display); font-size: 28px; color: var(--primary); margin-bottom: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 18px;
  border-left: 4px solid var(--primary);
}
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: white; flex-shrink: 0; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.table-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 12px 16px; background: var(--bg); color: var(--text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--border); }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8f9ff; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.badge-published { background: #dcfce7; color: #166534; }
.badge-draft { background: #f1f5f9; color: #64748b; }
.badge-archived { background: #fee2e2; color: #991b1b; }

/* ---- POST FORM (Faculty) ---- */
.post-form-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-tabs { display: flex; gap: 0; margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border); width: fit-content; }
.form-tab { padding: 10px 24px; background: var(--bg); border: none; cursor: pointer; font-size: 14px; font-weight: 500; font-family: inherit; transition: all .2s; display: flex; align-items: center; gap: 6px; }
.form-tab.active { background: var(--primary); color: white; }
.form-tab-content { display: none; }
.form-tab-content.active { display: block; }
textarea.form-control { resize: vertical; min-height: 200px; }
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 40px; text-align: center; cursor: pointer;
  transition: all .2s; background: var(--bg);
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: #f0f4ff; }
.upload-zone i { font-size: 36px; color: var(--text-light); margin-bottom: 12px; }
.upload-zone p { color: var(--text-muted); font-size: 14px; }
.media-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 16px; }
.media-preview-item { position: relative; border-radius: var(--radius); overflow: hidden; }
.media-preview-item img, .media-preview-item video { width: 100%; height: 100px; object-fit: cover; }
.media-preview-item .remove { position: absolute; top: 4px; right: 4px; background: rgba(220,38,38,.9); color: white; border: none; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 12px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* ---- MISC ---- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); padding: 16px 0; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }
.no-posts { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.no-posts i { font-size: 64px; margin-bottom: 20px; opacity: .3; }
.page-header { background: var(--primary); color: white; padding: 48px 0 32px; margin-bottom: 40px; }
.page-header h1 { font-family: var(--font-display); font-size: 36px; }
.page-header p { opacity: .8; margin-top: 8px; }

/* ---- FOOTER ---- */
.main-footer { background: var(--primary); color: rgba(255,255,255,.8); margin-top: 60px; }
.footer-top { padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: white; font-size: 28px; font-family: var(--font-display); font-weight: 700; margin-bottom: 16px; }
.footer-logo i { font-size: 24px; color: var(--accent-light); }
.footer-about p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); transition: all .2s; }
.footer-social a:hover { background: var(--accent); color: white; }
.footer-col h4 { color: white; font-size: 16px; font-family: var(--font-display); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.1); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.footer-col ul li a:hover { color: var(--accent-light); }
.footer-col ul li a i { font-size: 10px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.footer-contact li i { color: var(--accent-light); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .featured-slider { grid-template-columns: 1fr; }
  .featured-side { flex-direction: row; }
}
@media (max-width: 768px) {
  .topbar-left { display: none; }
  .nav-toggle { display: flex; }
  .main-nav { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
  .main-nav.open { max-height: 600px; }
  .nav-list { flex-direction: column; padding: 8px 0; }
  .nav-list > li { width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: rgba(255,255,255,.08); border-radius: 0; }
  .dropdown li a { color: rgba(255,255,255,.8); padding-left: 40px; }
  .posts-grid { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; height: auto; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .featured-side { flex-direction: column; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: unset; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.animate-in { animation: fadeInUp .5s ease forwards; }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: white; font-size: 36px; cursor: pointer; background: none; border: none; }
