/* ========================================================
   Schools2India - Discussion Module Unified Design Theme
   Matches main site theme (b2imain.css palette & typography)
   ======================================================== */

:root {
  --primary: #fe521d;
  --primary-hover: #e04413;
  --primary-light: #fff5f2;
  --secondary: #1b2a47;
  --secondary-light: #2c3e66;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --body-bg: #f8fafc;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
}

body.discuss-body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 14px;
}

/* Discussion Wrapper */
.discuss-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px 40px;
}

/* Breadcrumbs */
.discuss-breadcrumbs {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.discuss-breadcrumbs .b2-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.discuss-breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}
.discuss-breadcrumbs a:hover {
  text-decoration: underline;
}

/* Header & User Bar */
.discuss-top-userbar {
  background: var(--secondary);
  color: #ffffff;
  padding: 6px 0;
  font-size: 12px;
}
.discuss-top-userbar .wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.discuss-top-userbar a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.discuss-top-userbar a:hover {
  background: rgba(255,255,255,0.15);
}
.discuss-top-userbar .btn-auth-highlight {
  background: var(--primary);
  font-weight: 600;
}
.discuss-top-userbar .btn-auth-highlight:hover {
  background: var(--primary-hover);
}

/* Main Discussion Layout */
.discuss-layout {
  display: flex;
  gap: 25px;
  margin-top: 20px;
}
.discuss-main {
  flex: 1;
  min-width: 0;
}
.discuss-sidebar {
  width: 340px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .discuss-layout {
    flex-direction: column;
  }
  .discuss-sidebar {
    width: 100%;
  }
}

/* Discussion Hero / Banner */
.discuss-hero {
  background: linear-gradient(135deg, #1b2a47 0%, #2c3e66 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.discuss-hero h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffffff;
}
.discuss-hero p {
  color: #cbd5e1;
  margin: 0;
  font-size: 14px;
}
.discuss-hero .back-school-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  background: rgba(254, 82, 29, 0.9);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 12px;
  transition: background 0.2s;
}
.discuss-hero .back-school-link:hover {
  background: var(--primary-hover);
}

/* Topic Cards */
.discuss-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.discuss-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}
.discuss-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}
.discuss-card-title a {
  color: var(--secondary);
  text-decoration: none;
}
.discuss-card-title a:hover {
  color: var(--primary);
}
.discuss-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.discuss-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #475569;
}
.discuss-badge.admission { background: #fee2e2; color: #991b1b; }
.discuss-badge.fees { background: #fef3c7; color: #92400e; }
.discuss-badge.facilities { background: #e0e7ff; color: #3730a3; }
.discuss-badge.reviews { background: #dcfce7; color: #166534; }

/* Comment / Thread Styling */
.comment-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.comment-card-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.comment-author {
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.comment-date {
  color: var(--text-muted);
  font-size: 12px;
}
.comment-card-body {
  padding: 14px 16px;
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.6;
}
.comment-card-footer {
  padding: 8px 16px;
  border-top: 1px solid #f1f5f9;
  text-align: right;
  background: #ffffff;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.btn-reply {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: var(--secondary);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-reply:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Post Comment Form */
.post-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
}
.post-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--secondary);
}
.post-box textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  resize: vertical;
  min-height: 90px;
  outline: none;
  transition: border-color 0.2s;
}
.post-box textarea:focus {
  border-color: var(--primary);
}
.btn-post-submit {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}
.btn-post-submit:hover {
  background: var(--primary-hover);
}

/* Verification Notices & Callouts */
.alert-notice {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}
.alert-notice.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.alert-notice.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.alert-notice.danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.alert-notice.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Auth Cards (Login/Register) */
.auth-container {
  max-width: 480px;
  margin: 40px auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px;
}
.auth-container h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 6px;
  text-align: center;
}
.auth-container p.subtitle {
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 24px;
  font-size: 13px;
}
.auth-form-group {
  margin-bottom: 16px;
}
.auth-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}
.auth-form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
.auth-form-group input:focus {
  border-color: var(--primary);
}
.btn-auth-submit {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 11px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}
.btn-auth-submit:hover {
  background: var(--primary-hover);
}
.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-links a:hover {
  text-decoration: underline;
}

/* Sidebar Widgets */
.sidebar-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-box h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--secondary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  display: inline-block;
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.sidebar-list li:last-child {
  border-bottom: none;
}
.sidebar-list a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.sidebar-list a:hover {
  color: var(--primary);
}
