/* Windows Server Team - Modern Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0078d4;
  --blue-dark: #005a9e;
  --blue-light: #deecf9;
  --header-bg: #16213e;
  --nav-bg: #0f3460;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --radius: 8px;
  --radius-sm: 4px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-900);
  background: #f4f6f9;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

/* ===== HEADER ===== */
.site-header {
  background: var(--header-bg);
  color: white;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: white;
}
.site-logo:hover { text-decoration: none !important; }

.site-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--blue);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  letter-spacing: -1px;
}

.site-logo-text h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.2;
  color: white;
}

.site-logo-text span {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
.header-actions a { color: rgba(255,255,255,.75); padding: 4px 6px; border-radius: 4px; }
.header-actions a:hover { color: white; background: rgba(255,255,255,.1); text-decoration: none; }
.header-actions .sep { color: rgba(255,255,255,.3); padding: 0 2px; }

/* ===== NAVIGATION ===== */
.site-nav {
  background: var(--nav-bg);
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.site-nav ul {
  display: flex;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-nav ul li a {
  display: block;
  padding: 12px 16px;
  color: rgba(255,255,255,.75);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.site-nav ul li a:hover {
  color: white;
  border-bottom-color: var(--blue);
  background: rgba(255,255,255,.07);
  text-decoration: none;
}
.site-nav ul li a.active {
  color: white;
  border-bottom-color: var(--blue);
}

/* ===== LAYOUT ===== */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}
.page-wrap.reverse { grid-template-columns: 280px 1fr; }
.page-wrap.full { grid-template-columns: 1fr; }

.content-main {}

/* ===== CARDS ===== */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

/* ===== WELCOME BOX ===== */
.welcome-box {
  background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
  color: white;
  padding: 28px 32px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
.welcome-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.welcome-box p { color: rgba(255,255,255,.85); line-height: 1.7; margin-bottom: 8px; }
.welcome-box p:last-child { margin-bottom: 0; }

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== BLOG POSTS ===== */
.blog-post {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, border-color .15s;
}
.blog-post:hover { box-shadow: var(--shadow-md); border-color: #c8d3e0; }
.blog-post-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.blog-post-title a { color: var(--gray-900); }
.blog-post-title a:hover { color: var(--blue); text-decoration: none; }
.blog-post-body { font-size: 14px; color: var(--gray-700); line-height: 1.65; margin-bottom: 14px; }
.blog-post-body p { margin-bottom: 12px; }
.blog-post-body p:last-child { margin-bottom: 0; }
.blog-post-body ul, .blog-post-body ol { margin: 8px 0 12px 22px; }
.blog-post-body li { margin-bottom: 4px; }
.blog-post-body code {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12.5px;
  background: #f0f4f8;
  padding: 1px 5px;
  border-radius: 3px;
  color: #c7254e;
}
.blog-post-meta {
  font-size: 12.5px;
  color: var(--gray-600);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.blog-post-meta a { color: var(--gray-600); }
.blog-post-meta a:hover { color: var(--blue); text-decoration: underline; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11.5px; background: var(--blue-light); color: var(--blue-dark); font-weight: 500; margin: 2px; text-decoration: none !important; }
.tag:hover { background: var(--blue); color: white; text-decoration: none !important; }

/* ===== SEARCH RESULTS ===== */
.result-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.result-type { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; padding: 2px 6px; border-radius: 3px; margin-bottom: 6px; }
.result-type.blog { background: #dbeafe; color: #1e40af; }
.result-type.forum { background: #d1fae5; color: #065f46; }
.result-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.result-excerpt { font-size: 13px; color: var(--gray-700); line-height: 1.5; margin-bottom: 8px; }
.result-meta { font-size: 12px; color: var(--gray-600); }

/* ===== SIDEBAR ===== */
.sidebar {}
.sidebar-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gray-600);
  padding: 10px 14px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}
.sidebar-widget-body { padding: 10px 14px; }
.sidebar-widget-body ul { list-style: none; }
.sidebar-widget-body ul li { padding: 6px 0; border-bottom: 1px solid var(--gray-100); font-size: 13.5px; }
.sidebar-widget-body ul li:last-child { border-bottom: none; }
.sidebar-widget-body ul li a { color: var(--blue); }
.sidebar-widget-body ul li a:hover { text-decoration: underline; }

.link-list { list-style: none; padding: 0; }
.link-list li { padding: 9px 0; border-bottom: 1px solid var(--gray-100); }
.link-list li:last-child { border-bottom: none; }
.link-list .link-title { font-weight: 600; font-size: 13.5px; }
.link-list .link-desc { font-size: 12.5px; color: var(--gray-600); margin-top: 3px; line-height: 1.4; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 14px; }

.book-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gray-100); align-items: flex-start; }
.book-item:last-child { border-bottom: none; }
.book-title { font-weight: 600; font-size: 13.5px; }
.book-desc { font-size: 12.5px; color: var(--gray-600); margin-top: 3px; line-height: 1.4; }

.alert-info { padding: 12px 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius); font-size: 13.5px; color: #1e40af; margin-bottom: 16px; }

/* ===== FORUM ===== */
.forum-section { margin-bottom: 28px; }
.forum-section-title {
  font-size: 15px;
  font-weight: 700;
  padding: 10px 16px;
  background: var(--nav-bg);
  color: white;
  border-radius: var(--radius) var(--radius) 0 0;
}
.forum-section-title a { color: rgba(255,255,255,.85); }
.forum-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.forum-table th {
  background: var(--gray-50);
  padding: 9px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.forum-table th:not(:first-child) { text-align: center; width: 80px; }
.forum-table td { padding: 14px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.forum-table tr:last-child td { border-bottom: none; }
.forum-table tr:hover td { background: var(--gray-50); }
.forum-name { font-weight: 600; font-size: 14.5px; }
.forum-name a { color: var(--gray-900); }
.forum-name a:hover { color: var(--blue); }
.forum-desc { font-size: 12.5px; color: var(--gray-600); margin-top: 3px; }
.forum-stat { text-align: center; font-size: 14px; color: var(--gray-700); }
.forum-last { font-size: 12.5px; }
.forum-last a { color: var(--gray-900); font-weight: 500; }
.forum-last .by { color: var(--gray-600); margin-top: 2px; }

/* ===== FILES ===== */
.files-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.files-table th {
  background: var(--gray-50);
  padding: 10px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.files-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.files-table tr:last-child td { border-bottom: none; }
.files-table tr:hover td { background: var(--gray-50); }
.file-name { font-weight: 600; font-size: 14.5px; color: var(--gray-900); }
.file-desc { font-size: 12.5px; color: var(--gray-600); margin-top: 3px; }
.file-size { font-size: 12px; color: var(--gray-600); margin-top: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all .15s;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); color: white; text-decoration: none !important; }

/* ===== BLOG LAYOUT (sidebar left) ===== */
.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

.blog-header {
  background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
  padding: 20px 24px;
  color: white;
}
.blog-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.blog-header p { font-size: 13px; color: rgba(255,255,255,.75); }
.blog-header a { color: rgba(255,255,255,.85); }

.blog-sidebar-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.blog-sidebar-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-600);
  padding: 9px 13px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}
.blog-sidebar-body { padding: 10px 13px; }
.blog-sidebar-body ul { list-style: none; }
.blog-sidebar-body ul li { padding: 5px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.blog-sidebar-body ul li:last-child { border-bottom: none; }

/* ===== PROSE ===== */
.prose p { margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 8px 0 14px 22px; }
.prose li { margin-bottom: 5px; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose a:hover { color: var(--blue-dark); }
.prose strong, .prose b { font-weight: 600; }
.prose em, .prose i { font-style: italic; }
.prose code {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12.5px;
  background: #f0f4f8;
  padding: 1px 5px;
  border-radius: 3px;
  color: #c7254e;
}

/* ===== PHOTOS ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.photo-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #0f3460, #0078d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: rgba(255,255,255,.4);
}
.photo-info { padding: 8px 10px; font-size: 12.5px; color: var(--gray-600); }

/* ===== MEMBER PROFILE ===== */
.member-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nav-bg), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--header-bg);
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 22px 24px;
  margin-top: 40px;
  font-size: 13px;
}
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: rgba(255,255,255,.9); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb .sep { color: var(--gray-200); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .page-wrap, .page-wrap.reverse { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header { padding: 0 14px; height: 56px; }
  .site-logo-text span { display: none; }
  .site-nav ul { padding: 0 8px; overflow-x: auto; }
  .site-nav ul li a { padding: 10px 10px; white-space: nowrap; }
  .page-wrap, .blog-layout { padding: 14px; }
}
