:root{
  --bg:#0b1020; --panel:#121936; --panel2:#1b2448; --text:#edf2ff; --muted:#aab7d4; --accent:#5ab0ff; --border:#2d3763; --success:#1fa46c;
}
*{box-sizing:border-box} body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:linear-gradient(180deg,#0b1020,#101937);color:var(--text)} a{color:var(--accent);text-decoration:none} a:hover{text-decoration:underline}
.container{width:min(1120px,92%);margin:0 auto}.page{padding:24px 0 40px}.topbar,.site-footer{background:rgba(8,12,25,.82);backdrop-filter: blur(8px);border-bottom:1px solid var(--border)} .site-footer{border-top:1px solid var(--border);border-bottom:none;padding:18px 0;margin-top:32px}
.brand{font-weight:800;color:#fff;font-size:1.1rem}.row{display:flex}.between{justify-content:space-between}.center{align-items:center}.wrap{flex-wrap:wrap}.gap-sm{gap:.5rem}.gap-md{gap:1rem}
.card{background:rgba(18,25,54,.92);border:1px solid var(--border);border-radius:18px;padding:20px;box-shadow:0 12px 30px rgba(0,0,0,.18)}.hero{padding:34px 24px;margin-bottom:24px;background:linear-gradient(120deg,#121936,#1a2858)}.hero h1{margin:0 0 8px;font-size:2rem}.hero p{margin:0;color:var(--muted)}
.grid{display:grid;gap:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.thumb{width:100%;height:180px;object-fit:cover;border-radius:12px;margin-bottom:12px;border:1px solid var(--border)}.thumb.small{width:180px;height:120px}.hero-image{width:100%;max-height:420px;object-fit:cover;border-radius:16px;margin:12px 0}.muted,small{color:var(--muted)}
.tag{display:inline-block;background:#1f2950;border:1px solid var(--border);padding:4px 10px;border-radius:999px;margin:0 8px 8px 0;color:#d7e2ff}.tags{margin:12px 0}.list-item{padding:12px 0;border-bottom:1px solid rgba(255,255,255,.08)}.list-item:last-child{border-bottom:0}
.markdown-body p,.markdown-body li{line-height:1.7}.markdown-body pre{overflow:auto;background:#0b1020;padding:12px;border-radius:12px;border:1px solid var(--border)}.markdown-body code{background:#101937;padding:2px 6px;border-radius:6px}
form.stack{display:grid;gap:10px} input,textarea,select,button{font:inherit} input,textarea,select{width:100%;padding:11px 12px;border-radius:12px;border:1px solid var(--border);background:#0f1630;color:var(--text)} button,.btn{background:linear-gradient(135deg,#4ea7ff,#2f7ae5);color:#fff;border:none;border-radius:12px;padding:11px 16px;cursor:pointer;display:inline-block}.btn:hover,button:hover{text-decoration:none;filter:brightness(1.05)}
.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px;border-bottom:1px solid rgba(255,255,255,.08);text-align:left;vertical-align:top}.table th{color:#cfe0ff}
.auth-card.narrow,.card.narrow{max-width:520px}.alert{padding:10px 12px;background:#4a1d1d;border:1px solid #7e3131;border-radius:12px}
.admin-shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.sidebar{padding:24px;background:#0d142c;border-right:1px solid var(--border);display:flex;flex-direction:column;gap:10px}.sidebar a{padding:10px 12px;border-radius:10px;color:#d7e2ff}.sidebar a:hover{background:#17224a;text-decoration:none}.admin-content{padding:24px}.stats .stat{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.stat strong{font-size:1.8rem}.preview{margin-top:6px}.github-widget{min-width:280px;max-width:520px;width:100%}
.comment{padding:12px 0;border-bottom:1px solid rgba(255,255,255,.08)}
@media (max-width: 980px){.grid.two,.grid.three,.grid.five{grid-template-columns:1fr 1fr}.admin-shell{grid-template-columns:1fr}.sidebar{position:sticky;top:0;z-index:3}}
@media (max-width: 640px){.grid.two,.grid.three,.grid.five{grid-template-columns:1fr}.hero h1{font-size:1.5rem}.container{width:min(94%,1120px)}}


.hero.hero-compact{background:transparent;border:none;box-shadow:none;padding:12px 0 8px;margin-bottom:22px}
.hero-banner-wrap{display:flex;justify-content:center;margin:0 auto 18px;max-width:100%}
.hero-banner-image{width:min(100%,1080px);height:auto;display:block;border-radius:20px;border:1px solid rgba(255,255,255,.08);box-shadow:0 20px 40px rgba(0,0,0,.24)}
.center-text{text-align:center}.hero-copy h1{font-size:1.55rem;letter-spacing:.08em;text-transform:uppercase;margin:0 0 10px}.hero-copy p{max-width:860px;margin:0 auto 8px}.hero-meta{font-size:.95rem}
.resource-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:14px 0 26px}
.resource-card{display:flex;gap:14px;align-items:center;padding:18px;border:1px solid var(--border);border-radius:18px;background:rgba(18,25,54,.86);text-decoration:none;min-height:116px}
.resource-card:hover{text-decoration:none;transform:translateY(-2px);transition:.2s ease;box-shadow:0 12px 24px rgba(0,0,0,.18)}
.resource-card p{margin:.35rem 0 0;color:var(--muted);font-size:.95rem;line-height:1.45}
.resource-icon{width:54px;height:54px;border-radius:14px;display:grid;place-items:center;font-weight:800;letter-spacing:.02em;color:#fff;flex:0 0 auto}
.resource-icon.angular{background:linear-gradient(135deg,#d41f4a,#a70f39)}
.resource-icon.js{background:linear-gradient(135deg,#f7df1e,#cdb100);color:#111}
.resource-icon.azure{background:linear-gradient(135deg,#3db5ff,#0c6ee8)}
.resource-icon.dotnet{background:linear-gradient(135deg,#7b5cff,#5a32d4)}
.section-head{margin-bottom:10px}.post-date{color:var(--muted);font-size:.9rem;margin:0 0 8px}
.post-card h3,.news-card h3{margin-top:0.15rem}
@media (max-width: 980px){.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-copy h1{font-size:1.3rem}}
@media (max-width: 640px){.resource-grid{grid-template-columns:1fr}.hero-banner-image{border-radius:16px}.hero-copy h1{font-size:1.08rem;letter-spacing:.05em}.hero-copy p{font-size:.95rem}}
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-banner-wrap {
  width: 100%;
  max-width: 898px;
  margin: 0 auto;
}

.hero-banner-image {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==================== CSS Variables ==================== */
:root {
  --bg: #0b1020;
  --panel: #121936;
  --panel2: #1b2448;
  --text: #edf2ff;
  --muted: #aab7d4;
  --accent: #5ab0ff;
  --border: #2d3763;
  --success: #1fa46c;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.24);
  --transition: 0.2s ease;
}

/* ==================== Base Styles ==================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(180deg, #0b1020, #101937);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
  color: #7ac4ff;
}

/* ==================== Layout ==================== */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.page {
  padding: 24px 0 40px;
}

.row {
  display: flex;
}

.between {
  justify-content: space-between;
}

.center {
  align-items: center;
}

.wrap {
  flex-wrap: wrap;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 1rem;
}

.center-text {
  text-align: center;
}

/* ==================== Header & Footer ==================== */
.topbar,
.site-footer {
  background: rgba(8, 12, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
  padding: 24px 0;
  margin-top: 48px;
  position: static;
}

.brand {
  font-weight: 800;
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

/* ==================== Hero Section ==================== */
.hero {
  padding: 48px 24px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #121936, #1a2858);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero.hero-compact {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 24px 0 16px;
  margin-bottom: 32px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #b8d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-banner-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 24px;
  max-width: 100%;
}

.hero-banner-image {
  width: min(100%, 1080px);
  height: auto;
  display: block;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-banner-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.hero-copy h1 {
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 900;
}

.hero-copy p {
  max-width: 860px;
  margin: 0 auto 10px;
  font-size: 1.02rem;
}

.hero-meta {
  font-size: 0.92rem;
  opacity: 0.8;
}

/* ==================== Cards ==================== */
.card {
  background: rgba(18, 25, 54, 0.95);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.card.narrow,
.auth-card.narrow {
  max-width: 520px;
  margin: 0 auto;
}

/* ==================== Grid System ==================== */
.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* ==================== Resource Cards ==================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 32px;
}

.resource-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(18, 25, 54, 0.92);
  text-decoration: none;
  min-height: 120px;
  transition: all var(--transition);
}

.resource-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.15);
}

.resource-card strong {
  font-size: 1.05rem;
  color: #fff;
}

.resource-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.resource-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: #fff;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}

.resource-icon.angular {
  background: linear-gradient(135deg, #d41f4a, #a70f39);
}

.resource-icon.js {
  background: linear-gradient(135deg, #f7df1e, #cdb100);
  color: #111;
}

.resource-icon.azure {
  background: linear-gradient(135deg, #3db5ff, #0c6ee8);
}

.resource-icon.dotnet {
  background: linear-gradient(135deg, #7b5cff, #5a32d4);
}

/* ==================== Post & News Cards ==================== */
.post-card,
.news-card {
  transition: transform var(--transition);
}

.post-card:hover,
.news-card:hover {
  transform: translateY(-3px);
}

.post-date {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 10px;
  font-weight: 500;
}

.post-card h3,
.news-card h3 {
  margin: 0.2rem 0 0.8rem;
  font-size: 1.15rem;
  line-height: 1.4;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

/* ==================== Images ==================== */
.thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.thumb:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.thumb.small {
  width: 180px;
  height: 120px;
}

.hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==================== Typography ==================== */
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.muted,
small {
  color: var(--muted);
}

/* ==================== Tags ==================== */
.tag {
  display: inline-block;
  background: linear-gradient(135deg, #1f2950, #2a3665);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 8px 8px 0;
  color: #d7e2ff;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.tag:hover {
  background: linear-gradient(135deg, #2a3665, #1f2950);
  transform: translateY(-1px);
}

.tags {
  margin: 16px 0;
}

/* ==================== Lists ==================== */
.list-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.list-item:last-child {
  border-bottom: 0;
}

/* ==================== Forms ==================== */
form.stack {
  display: grid;
  gap: 14px;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f1630;
  color: var(--text);
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 176, 255, 0.1);
}

button,
.btn {
  background: linear-gradient(135deg, #4ea7ff, #2f7ae5);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn:hover,
button:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 122, 229, 0.35);
}

/* ==================== Tables ==================== */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: #cfe0ff;
  font-weight: 600;
}

/* ==================== Alerts ==================== */
.alert {
  padding: 12px 16px;
  background: #4a1d1d;
  border: 1px solid #7e3131;
  border-radius: 12px;
  margin: 12px 0;
}

/* ==================== Admin Panel ==================== */
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 24px;
  background: #0d142c;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #d7e2ff;
  font-weight: 500;
  transition: var(--transition);
}

.sidebar a:hover {
  background: #17224a;
  text-decoration: none;
  transform: translateX(4px);
}

.admin-content {
  padding: 28px;
}

.stats .stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.stat strong {
  font-size: 2rem;
  font-weight: 800;
}

/* ==================== Markdown & Code ==================== */
.markdown-body p,
.markdown-body li {
  line-height: 1.75;
}

.markdown-body pre {
  overflow: auto;
  background: #0b1020;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.markdown-body code {
  background: #101937;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.92em;
}

/* ==================== Widgets ==================== */
.github-widget {
  min-width: 280px;
  max-width: 520px;
  width: 100%;
}

.preview {
  margin-top: 8px;
}

.comment {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 980px) {
  .grid.two,
  .grid.three,
  .grid.five {
    grid-template-columns: 1fr 1fr;
  }
  
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .hero-copy h1 {
    font-size: 1.4rem;
  }
  
  .admin-shell {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 99;
  }
}

@media (max-width: 640px) {
  .grid.two,
  .grid.three,
  .grid.five {
    grid-template-columns: 1fr;
  }
  
  .resource-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .hero-banner-image {
    border-radius: 16px;
  }
  
  .hero-copy h1 {
    font-size: 1.15rem;
    letter-spacing: 0.03em;
  }
  
  .hero-copy p {
    font-size: 0.96rem;
  }
  
  .container {
    width: min(94%, 1120px);
  }
  
  .card {
    padding: 18px;
  }
}