/* Base Styles */
:root {
    --primary-color: #1a56db;
    --primary-hover: #1e429f;
    --secondary-color: #f3f4f6;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --text-light: #ffffff;
    --border-color: #e5e7eb;
    --bg-color: #ffffff;
    --bg-alt: #f9fafb;
    --bg-light-blue: #f0f7ff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.375rem;
    --transition: all 0.3s ease;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-alt);
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
  }
  
  a:hover {
    color: var(--primary-hover);
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  ul, ol {
    list-style: none;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .hidden {
    display: none !important;
  }
  
  .w-full {
    width: 100%;
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border: none;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--text-light);
  }
  
  .btn-outline {
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
  }
  
  .btn-outline:hover {
    background-color: rgba(59, 130, 246, 0.05);
    color: var(--primary-color);
  }
  
  /* Header */
  .main-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
  }
  
  .header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
  }
  
  .logo-link {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
  }
  
  .desktop-nav {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-link {
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
  }
  
  .nav-link i {
    margin-left: 0.25rem;
    font-size: 0.75rem;
  }
  
  .nav-link:hover {
    color: var(--primary-color);
  }
  
  .dropdown {
    position: relative;
  }
  
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 14rem;
    opacity: 0;
    visibility: hidden;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    z-index: 10;
    margin-top: 0.5rem;
  }
  
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
  }
  
  .dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-size: 0.875rem;
  }
  
  .dropdown-menu a:hover {
    background-color: var(--secondary-color);
  }
  
  .dropdown-menu .view-all {
    color: var(--primary-color);
  }
  
  .header-actions {
    display: none;
    align-items: center;
    gap: 1rem;
  }
  
  .search-button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
  }
  
  .search-button:hover {
    color: var(--primary-color);
  }
  
  .mobile-menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
  }
  
  .mobile-nav {
    background-color: var(--bg-color);
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
  }
  
  .mobile-menu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-weight: 500;
    border-radius: var(--radius);
  }
  
  .mobile-menu-item:hover {
    background-color: var(--secondary-color);
  }
  
  .accordion {
    margin-bottom: 0.5rem;
  }
  
  .accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .accordion-content {
    display: none;
    padding-left: 1rem;
  }
  
  .accordion-content.active {
    display: block;
  }
  
  .mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
  }
  
  .mobile-user {
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
  }
  
  .user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #dbeafe;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 0.75rem;
  }
  
  .user-name {
    font-weight: 500;
  }
  
  .user-email {
    font-size: 0.875rem;
    color: var(--text-muted);
  }
  
  .mobile-auth {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
  }
  
  /* Breadcrumb */
  .breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 1.5rem 0;
    flex-wrap: wrap;
  }
  
  .breadcrumb a {
    color: var(--text-muted);
  }
  
  .breadcrumb i {
    width: 1rem;
    height: 1rem;
    margin: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .breadcrumb span {
    font-weight: 500;
    color: var(--text-color);
  }
  
  /* Hero */
  .hero {
    background: linear-gradient(to right, #edf2f7, #f0f5fa);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
  }
  
  .hero p {
    color: var(--text-muted);
    /* max-width: 48rem; */
    margin-bottom: 1.5rem;
  }
  
  .search-container {
    position: relative;
    max-width: 36rem;
  }
  
  .search-container input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
  }
  
  .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
  }
  
  /* Content Layout */
  .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  /* Filter Sidebar */
  .filter-sidebar {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
  }
  
  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .sidebar-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
  }
  
  .sidebar-header h3 i {
    margin-right: 0.5rem;
  }
  
  .reset-filters {
    color: var(--primary-color);
    background: none;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
  }
  
  .divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 1rem 0;
  }
  
  .filter-section {
    margin-bottom: 1.5rem;
  }
  
  .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
  }
  
  .filter-header h4 {
    font-size: 1rem;
    font-weight: 500;
  }
  
  .filter-content {
    margin-bottom: 1rem;
  }
  
  .checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  
  .checkbox-item input[type="checkbox"] {
    margin-right: 0.5rem;
  }
  
  .checkbox-item label {
    font-size: 0.875rem;
  }
  
  .show-more {
    color: var(--primary-color);
    background: none;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
  }
  
  .apply-filters {
    width: 100%;
  }
  /* FAQ Section */
  .faq-section,
  .blog-section,
  .popular-software-section {
    padding: 3rem 0;
    background-color: var(--bg-alt);
  }
  
  .section-title-centered {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
  }
  
  .faq-container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .faq-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
  }
  
  .faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .faq-question h3 {
    font-size: 1.125rem;
    margin: 0;
    font-weight: 600;
    flex: 1;
  }
  
  .faq-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease;
  }
  
  .faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
  }
  
  .faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
    max-height: 1000px;
  }
  
  .faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-muted);
  }
  
   .faq-item ul {
    list-style:disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
  }
  .faq-item ul li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.875rem;
  }
 

  /* Software Listings */
  .software-listings {
    flex: 1;
  }
  
  .list-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .results-count {
    color: var(--text-muted);
  }
  
  .count-number {
    font-weight: 600;
    color: var(--text-color);
  }
  
  .sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
  }
  
  .sort-select {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
  }
  
  /* Software Cards */
  .software-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .software-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
  }
  
  .software-card:hover {
    box-shadow: var(--shadow-md);
  }
  
  .card-logo {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 8rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .card-logo img {
    max-height: 4rem;
    max-width: 10rem;
  }
  
  .card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .card-header {
    margin-bottom: 0.75rem;
  }
  
  .software-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .rating {
    display: flex;
    align-items: center;
  }
  
  .stars {
    color: #facc15;
    margin-right: 0.5rem;
  }
  
  .review-count {
    font-size: 0.875rem;
    color: var(--text-muted);
  }
  
  .description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
  }
  
  .pricing {
    color: #1e3a8a;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1.2rem;
  }
  
  .tag {
    background-color: var(--bg-light-blue);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
  }
  
  .card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 10px;
  }
  
  .compare-checkbox {
    display: flex;
    align-items: center;
    margin-left: auto;
  }
  
  .compare-checkbox label {
    font-size: 0.875rem;
    margin-left: 0.5rem;
    cursor: pointer;
  }
  
  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
  }
  
  .pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    margin: 0 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-color);
  }
  
  .pagination-item:hover {
    background-color: var(--secondary-color);
  }
  
  .pagination-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }
  
  .pagination-item.prev,
  .pagination-item.next {
    padding: 0 1rem;
  }
  
  /* Footer */
  .main-footer {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 3rem 0 1.5rem;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-column h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
  }
  
  .footer-column p {
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }
  
  .social-icons {
    display: flex;
    gap: 1rem;
  }
  
  .social-icon {
    width: 2rem;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
  }
  
  .social-icon:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
 .footer-links a,.legal-links a {
    color: #d1d5db;
    transition: color 0.2s;
  }
  
  .footer-links a:hover, .legal-links a:hover {
    color: white;
  }
  
  .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .newsletter-form input {
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    color: white;
  }
  
  .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
  
  .footer-divider {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
  }
  
  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
  }
  
  .footer-legal {
    display: flex;
    gap: 1.5rem;
  }
  
  .footer-legal a {
    color: rgba(255, 255, 255, 0.6);
  }
  
  .footer-legal a:hover {
    color: white;
  }
  
  /* Comparison Bar */
  .comparison-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 40;
  }
  
  .comparison-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .compare-counter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .compare-label {
    font-weight: 600;
  }
  
  .compare-items {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .compare-item {
    display: flex;
    align-items: center;
    background-color: #f3f4f6;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
  }
  
  .remove-item {
    border: none;
    background: none;
    margin-left: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .compare-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .clear-all {
    color: var(--text-muted);
    background: none;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
  }
  
  /* Media Queries */
  @media (min-width: 640px) {
    .list-header {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
  
    .footer-bottom {
      flex-direction: row;
      justify-content: space-between;
    }
  }
  
  @media (min-width: 768px) {
    .software-card {
      flex-direction: row;
    }
  
    .card-logo {
      width: 14rem;
      height: auto;
      border-bottom: none;
      border-right: 1px solid var(--border-color);
    }
  
    .footer-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .desktop-nav {
      display: block;
    }
  
    .header-actions {
      display: flex;
    }
  
    .mobile-menu-toggle {
      display: none;
    }
  
    .content-wrapper {
      flex-direction: row;
    }
  
    .filter-sidebar {
      width: 16rem;
    }
  
    .software-listings {
      padding-left: 1rem;
    }
  
    .footer-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  
    .newsletter-form {
      flex-direction: row;
    }
  }