/* Base Styles */
:root {
  --primary-color: #6366f1;
  --secondary-color: #10b981;
  --accent-color: #8b5cf6;
  --text-color: #333;
  --light-text: #666;
  --lighter-text: #999;
  --background-color: #fff;
  --light-background: #f8f9fa;
  --border-color: #eaeaea;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  
  /* AI Toolkit specific colors */
  --gradient-start: #6366f1;
  --gradient-end: #8b5cf6;
  --card-bg: #ffffff;
  --tag-bg: #f3f4f6;
  --rating-color: #f59e0b;
}

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

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #2980b9;
}

ul, ol {
  margin-bottom: 1rem;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-weight: 500;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #4f46e5;
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #0ea5e9;
  color: white;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  background-color: white;
  box-shadow: var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 1.5rem;
}

.nav-menu a {
  color: var(--text-color);
  font-weight: 500;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin-bottom: 5px;
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.search-container {
  max-width: 600px;
  margin: 2rem auto 0;
}

.search-form {
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.5rem;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.search-button {
  background: white;
  border: none;
  border-radius: 50px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-icon {
  font-size: 1.2rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 1rem auto 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  margin-bottom: 0.75rem;
}

.card-content p {
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.benefit-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.benefit-item h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.benefit-item p {
  color: var(--light-text);
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), 
              linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 1rem;
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
}

.disclaimer {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* View All Section */
.view-all-wrapper {
  text-align: center;
  margin-top: 3rem;
}

.view-all {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--radius);
    margin-bottom: 1rem;
  }
  
  .newsletter-form button {
    border-radius: var(--radius);
  }
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--light-background);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.category-card:hover {
  box-shadow: var(--shadow);
}

.category-card h3 {
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.category-card ul li {
  margin-bottom: 0.5rem;
}

.category-card ul li:last-child {
  margin-top: 1rem;
  font-weight: 500;
}

/* Content with Sidebar */
.content-with-sidebar {
  background-color: var(--light-background);
  padding: 4rem 0;
}

.content-with-sidebar .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.main-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar-section h3 {
  margin-bottom: 1rem;
}

.sticky {
  position: sticky;
  top: 100px;
}

/* Newsletter */
.newsletter-signup {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.newsletter-signup h3 {
  margin-bottom: 1rem;
}

.newsletter-signup p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.newsletter-signup input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.newsletter-signup button {
  width: 100%;
}

/* Tags */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: var(--light-background);
  border-radius: 20px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.tag:hover {
  background-color: var(--primary-color);
  color: white;
}

.article-tags {
  margin-top: 0.5rem;
}

/* Article List */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-list-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.article-date {
  flex: 0 0 100px;
  color: var(--lighter-text);
  font-size: 0.9rem;
}

.article-content h3 {
  margin-bottom: 0.5rem;
}

.article-content p {
  font-size: 0.95rem;
  color: var(--light-text);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  gap: 0.5rem;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.pagination a {
  background-color: var(--light-background);
}

.pagination a:hover {
  background-color: var(--primary-color);
  color: white;
}

.page-current {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

.page-next, .page-prev {
  width: auto !important;
  padding: 0 1rem;
}

/* Ad Containers */
.ad-container {
  max-width: 100%;
  margin: 2rem auto;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.ad-banner-section {
  background-color: #f9f9f9;
  padding: 1rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.horizontal-banner {
  height: 90px;
  max-width: 728px;
  margin: 0 auto;
}

.sidebar-ad {
  height: 600px;
  max-width: 300px;
  margin-bottom: 2rem;
}

.banner-ad {
  height: 90px;
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
}

.in-article-ad {
  height: auto;
  min-height: 250px;
  margin: 2rem 0;
  max-width: 100%;
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary-color);
}

.ad-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lighter-text);
  text-align: center;
  border: 1px dashed #ddd;
}

.ad-blocker-message {
  padding: 1rem;
  background-color: #fff3e0;
  border: 1px solid #ffcc80;
  border-radius: var(--radius);
  color: #e65100;
  text-align: center;
  font-size: 0.9rem;
}

.consent-pending-message {
  padding: 1rem;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  color: var(--light-text);
  text-align: center;
  font-size: 0.9rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.consent-pending-message a {
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
}

.reloading-ads {
  padding: 1rem;
  background-color: #f5f9ff;
  border: 1px solid #cce0ff;
  border-radius: var(--radius);
  color: #0066cc;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* AdSense specific styling */
.adsbygoogle {
  display: block;
  text-align: center;
}

/* In-article AdSense ad */
.in-article-ad .adsbygoogle {
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: #1e293b;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-logo h2 {
  color: white;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-column h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: white;
}

.social-links li a {
  display: flex;
  align-items: center;
}

.social-links li a::before {
  content: '';
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
  display: flex;
}

.footer-legal li {
  margin-left: 1.5rem;
}

.footer-legal li a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal li a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 992px) {
  .content-with-sidebar .container {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    order: -1;
  }
  
  .sticky {
    position: static;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-links {
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .footer-column {
    flex: 1 0 40%;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    flex-basis: 100%;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 1rem;
  }
  
  .nav-menu.active {
    max-height: 500px;
  }
  
  .nav-menu li {
    margin: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-legal li {
    margin: 0.5rem;
  }
}

@media (max-width: 576px) {
  .card-grid, .category-grid {
    grid-template-columns: 1fr;
  }
  
  .article-list-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .article-date {
    flex: none;
  }
  
  .footer-column {
    flex: 1 0 100%;
  }
}

/* Article Single Page */
.article-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--lighter-text);
  font-size: 0.9rem;
}

.article-author {
  display: flex;
  align-items: center;
}

.article-author img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.article-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.article-content h2 {
  margin-top: 2.5rem;
}

.article-content h3 {
  margin-top: 2rem;
}

.article-content p, .article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  padding-left: 1.5rem;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--light-text);
}

.article-share {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
}

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-background);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.share-button:hover {
  background-color: var(--primary-color);
  color: white;
}

.article-tags-bottom {
  text-align: center;
  margin-bottom: 2rem;
}

.related-articles {
  margin-top: 4rem;
}

/* Legal Pages */
.legal-page {
  padding: 3rem 0;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.legal-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-section ul, .legal-section ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-section ul {
  list-style-type: disc;
}

.legal-section ol {
  list-style-type: decimal;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.small-hero {
  padding: 2rem 0;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

.footer-legal li a.active {
  font-weight: bold;
  color: white;
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-code {
  font-size: 10rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.error-page p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.error-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Javascript enhancements */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-in {
  transform: translateY(20px);
  opacity: 0;
  animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
  from { 
    transform: translateY(20px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

/* AI Toolkit Specific Styles */

/* Tool Cards */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tool-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.tool-card-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.tool-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--light-background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.tool-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tool-rating {
  color: var(--rating-color);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.tool-pricing {
  font-size: 0.8rem;
  color: var(--light-text);
  background: var(--tag-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.tool-card-body {
  padding: 1.25rem;
  flex-grow: 1;
}

.tool-name {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.tool-description {
  color: var(--light-text);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.tool-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-card-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Section Header with View All Link */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header .section-title {
  margin-bottom: 0;
  text-align: left;
}

.section-header .section-title:after {
  margin-left: 0;
}

.view-all-link {
  font-weight: 500;
  display: flex;
  align-items: center;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Tool Filter Components */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--light-background);
  border-radius: var(--radius);
}

.filter-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.filter-group select, .filter-group input {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: white;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: var(--tag-bg);
  border-radius: 50px;
  font-size: 0.85rem;
}

.filter-tag .remove-filter {
  cursor: pointer;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--lighter-text);
  color: white;
  font-size: 0.75rem;
  line-height: 1;
}

/* Comparison Tables */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th, .comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background-color: var(--light-background);
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background-color: rgba(0, 0, 0, 0.02);
}

.comparison-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-check {
  color: var(--success-color);
}

.feature-missing {
  color: var(--error-color);
}

.comparison-note {
  font-size: 0.875rem;
  color: var(--lighter-text);
  font-style: italic;
}

/* Tutorial Cards and Steps */
.tutorial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tutorial-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  transition: var(--transition);
}

.tutorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tutorial-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.tutorial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutorial-level {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.level-beginner {
  background-color: #e6f7ff;
  color: #0099ff;
}

.level-intermediate {
  background-color: #fff7e6;
  color: #ff9900;
}

.level-advanced {
  background-color: #ffe6e6;
  color: #ff4d4f;
}

.tutorial-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tutorial-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.tutorial-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--light-text);
}

.tutorial-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tutorial-description {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.tutorial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.tutorial-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tutorial-author img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-size: 0.85rem;
  color: var(--light-text);
}

/* Step-by-Step Tutorial Elements */
.tutorial-steps {
  counter-reset: steps;
  margin: 2rem 0;
}

.tutorial-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.tutorial-step:last-child {
  border-bottom: none;
}

.step-number {
  position: relative;
  flex: 0 0 40px;
}

.step-number:before {
  counter-increment: steps;
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: 600;
}

.step-number:after {
  content: '';
  position: absolute;
  top: 40px;
  bottom: -50px;
  left: 50%;
  width: 2px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.tutorial-step:last-child .step-number:after {
  display: none;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.step-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.step-img {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.step-tip {
  background: var(--light-background);
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary-color);
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.step-code {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  margin: 1.5rem 0;
}

/* Animations for menu toggle */
.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(7px, -6px);
}