/* Home Page Specific Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, #3964e8, #5884ff);
    padding: 80px 0;
    color: #fff;
    text-align: center;
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
  }
  
  .search-container {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .search-input-wrapper {
    display: flex;
    position: relative;
    margin-bottom: 1rem;
  }
  
  .search-input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: #3964e8;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .search-submit:hover {
    background-color: #2c51c9;
  }
  
  .popular-searches {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
  }
  
  .popular-searches span {
    margin-right: 10px;
  }
  
  .popular-searches a {
    color: white;
    margin: 0 5px;
    text-decoration: underline;
    transition: opacity 0.3s;
  }
  
  .popular-searches a:hover {
    opacity: 0.8;
  }
  
  /* Categories Section */
  .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
  }
  
  .category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 32px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
  }
  
  .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  
  .category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #f0f5ff;
    margin-bottom: 20px;
  }
  
  .category-icon i {
    font-size: 28px;
    color: #3964e8;
  }
  
  .category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
  }
  
  .category-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  /* Featured Software */
  .software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 40px;
  }
  
  .software-card {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  
  .software-logo {
    width: 120px;
    min-width: 120px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
  }
  
  .software-logo img {
    max-width: 100%;
    height: auto;
  }
  
  .software-content {
    padding: 20px;
    flex: 1;
  }
  
  .software-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
  }
  
  .stars {
    position: relative;
    display: inline-block;
    font-size: 0.9rem;
    line-height: 1;
    color: #e0e0e0;
  }
  
  .stars:before {
    content: "★★★★★";
  }
  
  .stars:after {
    position: absolute;
    left: 0;
    top: 0;
    content: "★★★★★";
    color: #ffb800;
    overflow: hidden;
    width: var(--rating-percent);
  }
  
  .stars[data-rating="5"]:after { --rating-percent: 100%; }
  .stars[data-rating="4.9"]:after { --rating-percent: 98%; }
  .stars[data-rating="4.8"]:after { --rating-percent: 96%; }
  .stars[data-rating="4.7"]:after { --rating-percent: 94%; }
  .stars[data-rating="4.6"]:after { --rating-percent: 92%; }
  .stars[data-rating="4.5"]:after { --rating-percent: 90%; }
  .stars[data-rating="4.4"]:after { --rating-percent: 88%; }
  .stars[data-rating="4.3"]:after { --rating-percent: 86%; }
  .stars[data-rating="4.2"]:after { --rating-percent: 84%; }
  .stars[data-rating="4.1"]:after { --rating-percent: 82%; }
  .stars[data-rating="4"]:after { --rating-percent: 80%; }
  .stars[data-rating="3.9"]:after { --rating-percent: 78%; }
  .stars[data-rating="3.8"]:after { --rating-percent: 76%; }
  .stars[data-rating="3.7"]:after { --rating-percent: 74%; }
  .stars[data-rating="3.6"]:after { --rating-percent: 72%; }
  .stars[data-rating="3.5"]:after { --rating-percent: 70%; }
  .stars[data-rating="3"]:after { --rating-percent: 60%; }
  .stars[data-rating="2.5"]:after { --rating-percent: 50%; }
  .stars[data-rating="2"]:after { --rating-percent: 40%; }
  .stars[data-rating="1"]:after { --rating-percent: 20%; }
  .stars[data-rating="0"]:after { --rating-percent: 0%; }
  
  .review-count {
    color: #6b7280;
    font-size: 0.85rem;
    margin-left: 5px;
  }
  
  .software-desc {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 12px 0;
    line-height: 1.5;
  }
  
  .software-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
  }
  
  .software-tags span {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
  }
  
  .software-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .compare-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background-color: transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .compare-btn:hover {
    background-color: #f9fafb;
  }
  
  /* How It Works Section */
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }
  
  .step-card {
    position: relative;
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 24px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .step-number {
    position: absolute;
    top: -20px;
    background-color: #3964e8;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
  }
  
  .step-icon {
    width: 60px;
    height: 60px;
    background-color: #f0f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
  }
  
  .step-icon i {
    font-size: 24px;
    color: #3964e8;
  }
  
  .step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
  }
  
  .step-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  /* Testimonials */
  .testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 40px auto 20px;
  }
  
  .testimonial-slide {
    display: none;
    transition: opacity 0.3s;
  }
  
  .testimonial-slide.active {
    display: block;
    animation: fade-in 0.5s;
  }
  
  @keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .testimonial-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
  }
  
  .quote-icon {
    color: #e0e7ff;
    font-size: 40px;
    position: absolute;
    top: 20px;
    left: 20px;
  }
  
  .testimonial-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
  }
  
  .testimonial-author {
    display: flex;
    align-items: center;
  }
  
  .author-avatar {
    width: 50px;
    height: 50px;
    background-color: #3964e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-right: 16px;
  }
  
  .author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px;
  }
  
  .author-info p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
  }
  
  .testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .dot.active {
    background-color: #3964e8;
  }
  
  /* Comparisons Section */
  .comparisons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
  }
  
  .comparison-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  
  .comparison-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
  }
  
  .comparison-logo {
    width: 100px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
    border-radius: 5px;
  }
  
  .comparison-logo img {
    max-width: 80%;
    max-height: 80%;
  }
  
  .comparison-vs {
    margin: 0 15px;
    font-weight: bold;
    color: #3964e8;
  }
  
  .comparison-card h3 {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .comparison-card p {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
  }
  
  /* Blog Section */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }
  
  .blog-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  
  .blog-image {
    height: 200px;
    overflow: hidden;
    text-align: center;
  }
  
  .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
  }
  
  .blog-card:hover .blog-image img {
    transform: scale(1.05);
  }
  
  .blog-content {
    padding: 10px;
  }
  
  .blog-category {
    display: inline-block;
    background-color: #f0f5ff;
    color: #3964e8;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
  }
  
  .blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  
  .blog-content p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  
  .blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #6b7280;
  }
  
  .blog-meta span i {
    margin-right: 5px;
  }
  
  .blog-link {
    color: #3964e8;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
  }
  
  .blog-link i {
    margin-left: 6px;
    font-size: 0.8rem;
    transition: transform 0.2s;
  }
  
  .blog-link:hover {
    color: #2c51c9;
  }
  
  .blog-link:hover i {
    transform: translateX(4px);
  }
  
  /* CTA Section */
  .cta-section {
    background-color: #3964e8;
    color: white;
    text-align: center;
  }
  
  .cta-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
  }
  
  .cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
  }
  
  .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  
  .cta-buttons .btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
  }
  
  .cta-buttons .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  /* View All Container */
  .view-all-container {
    margin-top: 40px;
    text-align: center;
  }
  
  /* Media Queries */
  @media (max-width: 768px) {
    .hero-section {
      padding: 60px 0;
    }
    
    .hero-content h1 {
      font-size: 2rem;
    }
    
    .software-grid {
      grid-template-columns: 1fr;
    }
    
    .blog-grid {
      grid-template-columns: 1fr;
    }
    
    .step-card {
      margin-top: 20px;
    }
    
    .cta-content h2 {
      font-size: 1.75rem;
    }
    
    .testimonial-content {
      padding: 30px 20px;
    }
    
    .testimonial-content p {
      font-size: 1rem;
    }
  }
  
  @media (max-width: 576px) {
    .categories-grid {
      grid-template-columns: 1fr;
    }
    
    .comparison-logos {
      flex-direction: column;
      gap: 15px;
    }
    
    .comparison-vs {
      margin: 0;
    }
    
    .software-card {
      flex-direction: column;
    }
    
    .software-logo {
      width: 100%;
      padding: 20px 0;
    }
  }