/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                      url('img/carpage.jpg');
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/backgrounds/carpage.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center; /* optional if you want content centered */
    color: var(--white);
    position: relative;
  }
  
  
    .hero-content {
      text-align: center;
      max-width: 800px;
      margin: 0 auto;
    }
  
    .hero-title {
      margin-bottom: 1rem;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }
  
    .hero-subtitle {
      margin-bottom: 2rem;
      opacity: 0.9;
    }

    .content-section {
          background: white;
          padding: 4rem 0;
          min-height: 50vh;
      }
      
      .container {
          max-width: 1200px;
          margin: 0 auto;
          padding: 0 2rem;
      }

    .section-content {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 2rem;
      align-items: start;
    }
  
    /*#region    search bar  */
    .search-filter-section {
      background: var(--gray-light);
      padding: 40px 0;
    }

    .search-box {
      background: var(--white);
      border-radius: 50px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      padding: 5px;
    }

    .filter-btn {
      background: var(--primary-color);
      color: var(--white);
      border: none;
      padding: 12px 24px;
      border-radius: 25px;
      margin: 0 5px;
      transition: all 0.3s ease;
    }

    .filter-btn:hover, .filter-btn.active {
      background: var(--secondary-color);
      transform: translateY(-2px);
    }

    /*#endregion search bar */


    /* Car Cards */
    .car-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 2rem;
    }
  
    .car-card {
      background: var(--white);
      max-width: 400px;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 5px 20px var(--shadow-light);
      transition: all 0.3s ease;
      position: relative;
    }
  
    .car-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 40px var(--shadow-medium);
    }
  
    .car-badge {
      position: absolute;
      top: 15px;
      left: 15px;
      background: var(--primary-color);
      color: var(--white);
      padding: 0.3rem 0.8rem;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 600;
      z-index: 10;
    }
  
    .car-image {
      height: 250px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
  
    .car-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }
  
    .car-card:hover .car-image img {
      transform: scale(1.05);
    }
  
    .car-placeholder {
      font-size: 4rem;
      color: rgba(255,255,255,0.8);
    }
  
    .car-info {
      padding: 1.5rem;
    }
  
    .car-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1rem;
    }
  
    .car-title {
      font-size: 1.3rem;
      font-weight: 700;
      color:#026f88 ;
      margin-bottom: 0.5rem;
    }
  
    .car-subtitle {
      font-size: 0.9rem;
      color: var(--light-gray);
    }
  
    .car-price {
      text-align: right;
    }
  
    .price-amount {
      font-size: 1.5rem;
      font-weight: 600;
      color: var(--primary-color);
      display: block;
    }
  
    .price-period {
      font-size: 0.9rem;
      color: var(--light-gray);
    }
  
    .car-specs {
      display: grid;
      color: rgb(29, 29, 29);
      grid-template-columns: 1fr 1fr;
      gap: 0.8rem;
      margin: 1.5rem 0;
    }
  
    .spec-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.9rem;
      color: var(--light-gray);
    }
  
    .spec-icon {
      width: 16px;
      height: 16px;
      color: var(--primary-color);
    }
  
    .car-actions {
      display: flex;
      gap: 1rem;
      margin-top: 1.5rem;
    }
  
    .btn-primary {
      background: var(--primary-color);
      color: var(--white);
      border: none;
      padding: 0.8rem 1.5rem;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      flex: 1;
    }
  
    .btn-primary:hover {
      background: var(--secondary-color);
      transform: translateY(-1px);
    }
  
    .btn-secondary {
      background: transparent;
      color: var(--light-gray);
      border: 2px solid var(--border-color);
      padding: 0.8rem;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .btn-secondary:hover {
      border-color: var(--primary-color);
      color: var(--primary-color);
    }
  