/* Common CSS for all blog pages */

/* Google Font - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* Smooth scroll padding for anchor links */
html {
  scroll-padding-top: 5rem;
}

/* Reveal animation for elements */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: all .6s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Common component styles */
.blog-card {
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Search and filter styles */
.search-container {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.search-input {
  background: white;
  border: 2px solid #e2e8f0;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Custom select dropdown styling */
.dropdown-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem !important;
}

/* Blog post content styles */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  color: #0F172A;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

.blog-content h2 {
  font-size: 1.875rem;
}

.blog-content h3 {
  font-size: 1.5rem;
}

.blog-content p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #374151;
}

.blog-content blockquote {
  border-left: 4px solid #2563EB;
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
  color: #4B5563;
}

.blog-content ul,
.blog-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
}

.blog-content .highlight {
  background-color: #FEF3C7;
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid #F59E0B;
  margin: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-content h1 {
    font-size: 1.875rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
  }
}
