/* --- UI/UX Pro Max overrides for Education / Learning (Soft UI) --- */

/* Typography & Base Reset */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Improve Navigation Bar */
.navbar {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Subtle depth */
  border-bottom: 1px solid #E5E7EB; /* navbar-border-col */
  transition: all 0.3s ease;
}

.navbar-nav>li>a {
  font-weight: 500;
  border-radius: 6px;
  margin: 0 4px;
  padding: 12px 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover effects for nav items (Micro-interactions) */
@media only screen and (min-width: 768px) {
  .navbar-nav>li>a:hover {
    background-color: #F3F4F6 !important;
    color: #4F46E5 !important;
  }
}

/* Base Buttons */
.btn {
  font-weight: 500;
  border-radius: 8px; /* Softer corners */
  transition: all 0.2s ease;
  min-height: 44px; /* Touch target minimum */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Primary buttons with deeper hover shadows */
.btn-primary {
  background-color: #4F46E5;
  border-color: #4F46E5;
  box-shadow: 0 2px 4px rgba(79,70,229,0.2);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #4338CA;
  border-color: #4338CA;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3); /* Lift effect */
  transform: translateY(-1px);
}

/* Focus States (Accessibility Priority 1) */
a:focus, button:focus, input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.4);
}

/* Content Container Cards (Glass/Soft UI) */
.post-preview, .page-preview {
  background: #FFFFFF;
  border: 1px solid #F3F4F6;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Professional easing */
}

.post-preview:hover, .page-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08); /* Float effect */
}

/* Link Styling */
a {
  transition: color 0.2s ease, border-bottom 0.2s ease;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #111827;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

/* Inputs and Forms */
input[type="text"], input[type="email"], textarea {
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px; /* A11y Touch Target */
}

input:hover, textarea:hover {
  border-color: #9CA3AF;
}

/* Footer Improvements */
footer {
  border-top: 1px solid #374151;
  padding: 40px 0;
}

/* Remove default harsh horizontal rules */
hr.small {
  max-width: 100px;
  margin: 30px auto;
  border-width: 3px;
  border-color: #4F46E5; /* Brand color */
  border-radius: 3px;
}

/* Blog Tags (Pill style) */
.blog-tags {
  margin-top: 15px;
}

.blog-tags .list-inline-item a {
  background-color: #EEF2FF;
  color: #4F46E5;
  border-radius: 9999px; /* Pill */
  padding: 4px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: none;
}

.blog-tags .list-inline-item a:hover {
  background-color: #4F46E5;
  color: #FFFFFF;
}

/* Pagination improvements */
.pagination {
  margin-top: 40px;
}

.pagination .page-link {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  color: #4F46E5;
  border: 1px solid #E5E7EB;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pagination .page-link:hover {
  background-color: #F3F4F6;
  border-color: #D1D5DB;
}

