/* Base Styles */
:root {
  --primary-color: #4a6baf;
  --secondary-color: #5a7cc5;
  --accent-color: #3c5998;
  --text-color: #333;
  --light-text: #666;
  --lighter-text: #999;
  --bg-color: #fff;
  --light-bg: #f5f8ff;
  --border-color: #ddd;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hind Siliguri", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Header */
.main-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

.main-nav .nav-menu {
  display: flex;
}

.main-nav .nav-menu li {
  margin-left: 1.5rem;
}

.main-nav .nav-menu a {
  color: white;
  font-weight: 500;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}

.main-nav .nav-menu a i {
  margin-right: 0.5rem;
}

.main-nav .nav-menu a:hover {
  color: var(--warning-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main Content */
main {
  padding: 2rem 0;
  min-height: calc(100vh - 150px);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 0;
  background-color: var(--light-bg);
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero-section p {
  font-size: 1.2rem;
  color: var(--light-text);
  max-width: 800px;
  margin: 0 auto;
}

/* Search Section */
.search-section {
  margin-bottom: 2rem;
}

.search-form {
  display: flex;
  margin-bottom: 1.5rem;
}

.search-form .form-group {
  flex: 1;
  display: flex;
}

.search-form input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem 0 0 0.25rem;
  font-size: 1rem;
}

.search-form button {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 0.25rem 0.25rem 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.search-form button:hover {
  background-color: var(--accent-color);
}

.search-form button i {
  margin-right: 0.5rem;
}

/* Search Results */
.search-results {
  margin-top: 1.5rem;
}

.no-results {
  padding: 1.5rem;
  background-color: var(--light-bg);
  border-radius: 0.25rem;
  text-align: center;
}

/* Q&A Cards */
.qa-card {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.qa-question h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.qa-meta {
  display: flex;
  color: var(--lighter-text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.qa-meta span {
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

.qa-meta span i {
  margin-right: 0.3rem;
}

.qa-answer {
  color: var(--text-color);
}

.qa-answer p {
  margin-bottom: 0.5rem;
}

/* Recent Q&A Section */
.recent-qa-section {
  margin-bottom: 2rem;
}

.qa-list {
  display: grid;
  gap: 1.5rem;
}

/* Forms */
.form-section {
  max-width: 800px;
  margin: 0 auto;
}

.auth-form,
.qa-form {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  padding: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: white;
}

.btn-secondary {
  background-color: var(--light-bg);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Alerts */
.alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0.25rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert ul {
  margin-left: 1.5rem;
  list-style-type: disc;
}

/* Admin Panel */
.admin-section {
  margin-bottom: 2rem;
}

.admin-tabs {
  margin-top: 2rem;
}

.tab-buttons {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: var(--light-text);
  transition: all 0.3s;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.admin-actions {
  margin-bottom: 1.5rem;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background-color: var(--light-bg);
  font-weight: 600;
}

.admin-table tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.status-approved {
  color: var(--success-color);
  font-weight: 500;
}

.status-pending {
  color: var(--warning-color);
  font-weight: 500;
}

/* Footer */
.main-footer {
  background-color: var(--light-bg);
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--light-text);
}