/* ==========================================================================
   JBM Community Forums Stylesheet
   Adopted from JBM Computech Cybersecurity & Creator Theme
   ========================================================================== */

:root {
  --bg-base: #070B14;
  --bg-surface: #0E1626;
  --bg-card: #111C2E;
  --bg-card-hover: #16243C;
  --bg-input: #080D18;
  
  --border: #23344D;
  --border-focus: #00D9E8;
  
  --text-heading: #F8FAFC;
  --text-body: #94A3B8;
  --text-muted: #64748B;
  
  --cyan: #00D9E8;
  --cyan-hover: #00B9CC;
  --cyan-glow: rgba(0, 217, 232, 0.15);
  --green: #22C55E;
  --red: #EF4444;
  --amber: #F59E0B;
  --purple: #8B5CF6;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: #fff;
}

/* Header */
.top-header {
  background: rgba(14, 22, 38, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-badge {
  background: linear-gradient(135deg, #00D9E8 0%, #0284C7 100%);
  color: #070B14;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}
.brand-sub {
  font-size: 0.7rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-item {
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-item:hover {
  color: var(--cyan);
}
.download-badge {
  background: rgba(0, 217, 232, 0.1);
  color: var(--cyan) !important;
  border: 1px solid rgba(0, 217, 232, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.download-badge:hover {
  background: var(--cyan);
  color: #070B14 !important;
}

.btn-signin {
  background: var(--bg-card);
  color: var(--text-heading);
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-signin:hover {
  border-color: var(--cyan);
  color: #fff;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}
.user-name {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.88rem;
}
.btn-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.78rem;
  margin-left: 0.5rem;
}
.btn-logout:hover {
  color: var(--red);
}

/* Hero Section */
.forums-hero {
  background: radial-gradient(circle at 50% 0%, rgba(0, 217, 232, 0.12) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}
.hero-container {
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
}
.forums-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.gradient-text {
  background: linear-gradient(135deg, #00D9E8 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.hero-search-bar:focus-within {
  border-color: var(--cyan);
}
.search-icon {
  padding: 0 0.75rem;
  font-size: 1rem;
}
.hero-search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-sans);
}
.btn-search {
  background: var(--cyan);
  color: #070B14;
  font-weight: 700;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-search:hover {
  background: var(--cyan-hover);
}

.hero-action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00D9E8 0%, #0284C7 100%);
  color: #070B14;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 217, 232, 0.3);
  transition: transform 0.15s ease;
}
.btn-primary-action:hover {
  transform: translateY(-2px);
}
.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  color: #fff;
  border: 1px solid var(--border);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary-action:hover {
  border-color: var(--cyan);
}

/* Main Layout */
.main-container {
  max-width: 1200px;
  width: 100%;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  flex: 1;
}
.layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.category-list, .filter-type-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cat-btn, .filter-type-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid transparent;
  color: var(--text-body);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}
.cat-btn:hover, .filter-type-btn:hover {
  background: var(--bg-card);
  color: #fff;
}
.cat-btn.active, .filter-type-btn.active {
  background: var(--bg-card);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 700;
}
.cat-count {
  font-size: 0.75rem;
  background: var(--bg-input);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}
.info-box h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.info-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.info-box code {
  font-family: var(--font-mono);
  color: var(--cyan);
}

/* Content Area */
.content-area {
  min-width: 0;
}
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.content-header h2 {
  font-size: 1.35rem;
  color: #fff;
  font-weight: 700;
}
.anonymous-notice {
  font-size: 0.8rem;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* Topic Card */
.topics-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.topic-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.topic-card:hover {
  background: var(--bg-card);
  border-color: var(--cyan);
  transform: translateY(-1px);
}
.topic-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.topic-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.badge-feature {
  background: rgba(0, 217, 232, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 217, 232, 0.3);
}
.badge-bug {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-question {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.badge-status {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}
.badge-attachment {
  font-size: 0.75rem;
  background: var(--bg-input);
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.topic-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.topic-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(35, 52, 77, 0.5);
  padding-top: 0.6rem;
}
.topic-author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.author-name {
  color: var(--text-body);
  font-weight: 600;
}
.topic-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Topic Detail View */
.btn-back {
  background: none;
  border: 1px solid var(--border);
  color: var(--cyan);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.btn-back:hover {
  background: var(--bg-card);
}
.topic-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}
.topic-detail-header h1 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.topic-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.topic-body-content {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #e2e8f0;
  white-space: pre-wrap;
  margin-bottom: 1.5rem;
}
.attachments-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1.5rem;
}
.attachments-box h4 {
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.82rem;
  text-decoration: none;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.attachment-pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Comments Thread */
.comments-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.comments-header {
  font-size: 1.2rem;
  color: #fff;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.comment-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.comment-card.engineer-reply {
  border-left: 3px solid var(--cyan);
}
.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.comment-author {
  color: #fff;
  font-weight: 700;
}
.comment-author-badge {
  background: rgba(0, 217, 232, 0.15);
  color: var(--cyan);
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 0.4rem;
}
.comment-date {
  color: var(--text-muted);
}
.comment-body {
  font-size: 0.92rem;
  color: #cbd5e1;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Reply Box */
.reply-box-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1rem;
}
.reply-box-card h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1rem;
}
.reply-box-card textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  resize: vertical;
  margin-bottom: 1rem;
}
.reply-box-card textarea:focus {
  border-color: var(--cyan);
}
.file-attach-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.attach-label {
  display: inline-block;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.attach-label:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.file-selected-badge {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
}
.btn-submit-reply {
  background: var(--cyan);
  color: #070B14;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
}
.btn-submit-reply:hover {
  background: var(--cyan-hover);
}
.reply-auth-prompt {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}
.reply-auth-prompt p {
  font-size: 0.9rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
}
.btn-signin-small {
  background: var(--cyan);
  color: #070B14;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.auth-modal {
  max-width: 440px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-size: 1.15rem;
  color: #fff;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}
.modal-close:hover {
  color: #fff;
}
.modal-body {
  padding: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--cyan);
}
.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-card);
  transition: all 0.15s ease;
}
.drop-zone:hover {
  border-color: var(--cyan);
  background: var(--bg-card-hover);
}
.drop-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}
.drop-zone p {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.25rem;
}
.drop-zone small {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.browse-link {
  color: var(--cyan);
  text-decoration: underline;
}
.file-badge {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--green);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-md);
  margin-top: 0.75rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.btn-cancel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.btn-submit-topic, .btn-auth-submit {
  background: var(--cyan);
  color: #070B14;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
}
.btn-auth-submit {
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.5rem;
}
.btn-submit-topic:hover, .btn-auth-submit:hover {
  background: var(--cyan-hover);
}

/* Auth Tabs & Alerts */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.auth-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.auth-tab.active {
  background: rgba(0, 217, 232, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}
.auth-alert, .alert-box {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}
.auth-alert.success {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}
.btn-inline-signin {
  display: block;
  margin-top: 0.5rem;
  background: var(--cyan);
  color: #070B14;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
}
.otp-instruction {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.otp-instruction p {
  font-size: 0.85rem;
  color: #e2e8f0;
}
.security-note {
  font-size: 0.75rem;
  color: var(--text-muted) !important;
  margin-top: 0.5rem;
}
.btn-resend-link {
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 0.82rem;
  cursor: pointer;
  display: block;
  margin: 0.75rem auto 0;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: auto;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-logo {
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.footer-left p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* ==========================================================================
   Forums Mobile Navigation & Responsive Enhancements
   ========================================================================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
  margin-left: 0.5rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.2s ease;
}

@media (max-width: 860px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .menu-toggle {
    display: flex;
  }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .header-nav {
    position: fixed;
    top: 65px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 65px);
    background: #090e1a;
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 16px;
    transition: right 0.25s ease;
    z-index: 1000;
    display: flex !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    overflow-y: auto;
  }
  .header-nav.active {
    right: 0;
  }
  .header-nav a {
    display: block;
    width: 100%;
    padding: 8px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}

@media (max-width: 480px) {
  .header-container { padding: 0.65rem 1rem; }
  .logo-area { gap: 8px !important; }
  .logo-icon-box {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }
  .logo-title { font-size: 1.15rem !important; }
  .logo-tagline { font-size: 0.5rem !important; letter-spacing: 0.1em !important; }
  .btn-signin { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
  .forums-hero { padding: 2.5rem 0 2rem; }
  .forums-hero h1 { font-size: 1.85rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-search-bar { flex-direction: column; gap: 0.5rem; padding: 0.75rem; }
  .hero-search-bar input { width: 100%; }
  .btn-search { width: 100%; }
  .hero-action-buttons { flex-direction: column; width: 100%; }
  .btn-primary-action, .btn-secondary-action { width: 100%; justify-content: center; }
  .modal-overlay { padding: 0.75rem; }
  .modal-box { padding: 1.25rem; }
  .modal-footer { flex-direction: column; }
  .btn-submit-topic, .btn-cancel { width: 100%; justify-content: center; }
}


/* Unified Institutional Logo Styles */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-icon-box {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(0, 217, 232, 0.2) 0%, rgba(2, 132, 199, 0.15) 100%);
  border: 1px solid rgba(0, 217, 232, 0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d9e8;
  box-shadow: 0 0 12px rgba(0, 217, 232, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-link:hover .logo-icon-box {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 217, 232, 0.35);
}
.logo-svg {
  width: 20px;
  height: 20px;
}
.logo-brand {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.logo-highlight {
  color: #00d9e8;
}
.logo-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  color: #00d9e8;
  letter-spacing: 0.12em;
  margin-top: 1px;
}


/* Institutional Logo Styles - Pixel-identical with jbmcomputech.com */
.logo-area {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}
.logo-icon-box {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%) !important;
  border: 1px solid rgba(14, 165, 233, 0.4) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #38bdf8 !important;
  transition: transform 0.2s ease, border-color 0.2s ease !important;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.2) !important;
}
.logo-area:hover .logo-icon-box {
  transform: scale(1.05) !important;
  border-color: #38bdf8 !important;
}
.logo-svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  color: #38bdf8 !important;
}
.logo-brand {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.logo-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  display: flex !important;
  align-items: center !important;
}
.logo-highlight {
  color: #38bdf8 !important;
  margin-left: 2px !important;
}
.logo-tagline {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.55rem !important;
  letter-spacing: 0.14em !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  margin-top: 2px !important;
  line-height: 1 !important;
}
